/* ===== DESIGN TOKENS ===== */
:root {
  /* === COULEURS === */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-color: #667eea;
  --primary-dark: #5a6fd8;
  --primary-light: #8da5f0;
  
  --secondary-gradient: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --secondary-color: #ffd700;
  --secondary-dark: #e6c200;
  --secondary-light: #fff56b;
  
  --success-color: #28a745;
  --success-light: #d4edda;
  --warning-color: #ffc107;
  --warning-light: #fff3cd;
  --error-color: #dc3545;
  --error-light: #f8d7da;
  --info-color: #17a2b8;
  --info-light: #d1ecf1;
  
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --gray-900: #0d1117;
  
  --white: #ffffff;
  --black: #000000;
  
  /* === TYPOGRAPHIE === */
  --font-family-base: 'Roboto', Arial, sans-serif;
  --font-family-display: 'Luckiest Guy', cursive;
  
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  
  /* === ESPACEMENTS === */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  
  /* === RAYONS DE BORDURE === */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-base: 0.5rem;  /* 8px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* === OMBRES === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 4px 16px rgba(102, 126, 234, 0.3);
  --shadow-secondary: 0 4px 16px rgba(255, 215, 0, 0.3);
  
  /* === TAILLES TOUCH === */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  --touch-target-spacious: 56px;
  
  /* === BREAKPOINTS === */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  
  /* === Z-INDEX === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  
  /* === TRANSITIONS === */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
}

/* ===== BASE STYLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--gray-800);
  background: var(--primary-gradient);
  height: 100vh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Classe pour permettre le scroll sur les autres pages */
body.allow-scroll {
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
  padding-bottom: var(--space-16);
}

/* ===== UTILITAIRES DE BASE ===== */

/* Boutons de base avec zones touch optimisées */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-target-min);
  padding: var(--space-3) var(--space-4);
  border: none;
  border-radius: var(--radius-base);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Variantes de boutons */
.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-success {
  background: var(--success-color);
  color: var(--white);
}

.btn-warning {
  background: var(--warning-color);
  color: var(--gray-800);
}

.btn-danger {
  background: var(--error-color);
  color: var(--white);
}

/* Tailles de boutons */
.btn-sm {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
}

.btn-lg {
  min-height: var(--touch-target-spacious);
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-lg);
}

/* Cartes de base */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: var(--space-4) var(--space-4) var(--space-2);
  text-align: center;
}

.card-body {
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.card-title {
  margin-bottom: var(--space-2);
}

.card-rarity {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.card-details {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-200);
}

.card-description {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.card-footer {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

/* Extensions de cartes pour modules spécifiques */
.card-emoji {
  font-size: 3rem;
  text-align: center;
  margin-bottom: var(--space-2);
  display: block;
}

/* Nouveaux styles pour la structure simplifiée */
.card {
  display: flex;
  flex-direction: column;
  min-height: auto;
  height: auto;
}

.item-header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  background: white;
}

.item-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.item-emoji {
  font-size: 2.5rem;
}

.item-pricing {
  display: block !important;
  padding: 1rem;
  text-align: center;
  background: var(--gray-50);
  flex-grow: 1;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-grapes, .price-gems {
  font-size: 0.9rem;
  font-weight: 600;
}

.price-grapes {
  color: var(--primary-color);
}

.price-gems {
  color: var(--secondary-color);
}

.item-rarity {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.item-stock {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.stock-count.good {
  color: var(--success-color);
  font-weight: 600;
}

.stock-count.low {
  color: var(--warning-color);
  font-weight: 600;
}

.stock-count.empty {
  color: var(--error-color);
  font-weight: 600;
}

.item-footer {
  display: block !important;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--gray-200);
  background: white;
  margin-top: auto;
}

.btn-shop {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-shop:hover:not(.disabled) {
  background: var(--primary-color-dark);
  transform: translateY(-2px);
}

.btn-shop.disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: var(--space-2);
  text-align: center;
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  text-align: center;
  margin-bottom: var(--space-3);
}

.card-rarity {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  margin-bottom: var(--space-2);
}

.card-price {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

/* Styles simplifiés pour les prix */
.price-primary, .price-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.price-primary {
  color: var(--primary-color);
}

.price-secondary {
  color: var(--secondary-color);
}

/* Styles simplifiés pour le stock */
.card-stock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
}

.stock-value.good {
  color: var(--success-color);
  font-weight: 600;
}

.stock-value.low {
  color: var(--warning-color);
  font-weight: 600;
}

.stock-value.empty {
  color: var(--error-color);
  font-weight: 600;
}

.price-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.price-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-base);
  background: var(--gray-100);
  transition: all var(--transition-base);
}

.price-option.affordable {
  background: var(--success-light);
  color: var(--success-color);
}

.price-option.expensive {
  background: var(--error-light);
  color: var(--error-color);
}

.currency-icon {
  font-size: var(--font-size-lg);
}

.price-value {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
}

.price-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.price-divider {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  font-weight: var(--font-weight-medium);
}

.card-stock {
  margin-bottom: var(--space-3);
}

.stock-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.stock-fill {
  height: 100%;
  background: var(--success-color);
  transition: width 0.3s ease;
}

.stock-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
}

.stock-value {
  font-weight: var(--font-weight-semibold);
}

.stock-value.empty {
  color: var(--error-color);
}

.stock-value.low {
  color: var(--warning-color);
}

.stock-value.good {
  color: var(--success-color);
}

.card-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.stars-container {
  display: flex;
  gap: var(--space-1);
}

.star {
  font-size: var(--font-size-sm);
}

.star.filled {
  color: var(--secondary-color);
}

.star.empty {
  color: var(--gray-300);
}

/* États des cartes */
.card.selected {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-primary);
}

.card.out-of-stock {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.card.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Styles pour les recettes */
.recipe-section {
  margin-bottom: var(--space-6);
}

.recipe-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: var(--space-3);
}

.section-icon {
  font-size: var(--font-size-xl);
}

.recipe-category {
  margin-bottom: var(--space-4);
}

.category-chip {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--white);
}

.recipe-steps-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.recipe-step-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-base);
  border-left: 4px solid var(--primary-color);
}

.step-number {
  background: var(--primary-color);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.step-icon {
  font-size: var(--font-size-lg);
}

.step-content {
  flex: 1;
}

.step-name {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: var(--space-1);
}

.step-desc {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.recipe-grapes-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.grape-chip {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background: var(--secondary-light);
  color: var(--gray-800);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.recipe-info-grid {
  display: grid;
  gap: var(--space-3);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-label {
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
}

.info-value {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
}

.complexity-stars {
  display: flex;
  gap: var(--space-1);
}

.complexity-star {
  font-size: var(--font-size-sm);
}

.complexity-star.filled {
  color: var(--secondary-color);
}

.complexity-star.empty {
  color: var(--gray-300);
}

/* États des cartes de recettes */
.card.locked {
  opacity: 0.6;
  background: var(--gray-100);
}

.card.unlocked {
  cursor: pointer;
  background: var(--white);
}

.card.unlocked:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.recipe-status-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.recipe-status-badge.unlocked {
  background: var(--success-color);
  color: var(--white);
}

.recipe-status-badge.locked {
  background: var(--gray-400);
  color: var(--white);
}

.recipe-category-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--white);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Grid système */
.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Text utilities */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }

.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Color utilities */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--error-color); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-white { color: var(--white); }

/* Background utilities */
.bg-primary { background: var(--primary-gradient); }
.bg-secondary { background: var(--secondary-gradient); }
.bg-white { background: var(--white); }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }

/* Spacing utilities */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
/* ===== HEADER MODERNE - IDLE GAME ===== */

/* Variables spécifiques au header */
.header-modern {
  --header-gold: #ffd700;
  --header-gold-dark: #b8860b;
  --header-gold-glow: rgba(255, 215, 0, 0.4);
  --header-grape-color: #9c27b0;
  --header-grape-glow: rgba(156, 39, 176, 0.5);
  --header-gem-color: #00bcd4;
  --header-gem-glow: rgba(0, 188, 212, 0.5);
  --header-glass-bg: rgba(255, 255, 255, 0.08);
  --header-glass-border: rgba(255, 255, 255, 0.15);
}

.header-modern {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: 72px;
  padding: 0 16px;

  /* Dégradé sophistiqué violet/bleu */
  background: linear-gradient(135deg,
    #1a0a2e 0%,
    #2d1b4e 25%,
    #4a2c7a 50%,
    #3d2066 75%,
    #2d1b4e 100%
  );

  /* Ombre portée élégante */
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;

  /* Bordure inférieure dorée subtile */
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  gap: 12px;
}

/* ===== SECTION DOMAINE (Logo + Niveau + XP) ===== */
.domain-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Avatar/Logo avec effet de brillance */
.domain-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg,
    rgba(255, 215, 0, 0.25),
    rgba(255, 215, 0, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--header-gold);
  box-shadow:
    0 0 20px var(--header-gold-glow),
    inset 0 0 15px rgba(255, 215, 0, 0.1);
  animation: avatarPulse 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.domain-avatar:hover {
  transform: scale(1.08);
}

.avatar-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--header-gold), var(--header-gold-dark), var(--header-gold));
  opacity: 0.6;
  z-index: -1;
  animation: glowRotate 4s linear infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 15px var(--header-gold-glow); }
  50% { box-shadow: 0 0 25px var(--header-gold-glow), 0 0 40px rgba(255, 215, 0, 0.2); }
}

@keyframes glowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.domain-emoji {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  z-index: 1;
}

/* Infos domaine */
.domain-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.domain-name {
  font-family: var(--font-family-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Module Niveau avec badge doré */
.level-module {
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--header-gold-dark), var(--header-gold));
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
}

.level-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.level-icon {
  font-size: 10px;
  color: #1a0a2e;
}

.level-text {
  font-size: 10px;
  font-weight: 700;
  color: #1a0a2e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.level-number {
  font-size: 13px;
  font-weight: 800;
  color: #1a0a2e;
}

/* Barre XP mini dans le header */
.xp-bar-mini {
  position: relative;
  flex: 1;
  max-width: 80px;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.xp-fill-mini {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--header-gold-dark), var(--header-gold), #ffe066);
  border-radius: 10px;
  position: relative;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: xpShine 2s ease-in-out infinite;
}

.xp-fill-mini::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 10px 10px 0 0;
}

@keyframes xpShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.xp-tooltip-mini {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  border: 1px solid var(--header-gold-dark);
  z-index: 100;
}

.xp-bar-mini:hover .xp-tooltip-mini {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ===== SECTION RESSOURCES (Glassmorphism) ===== */
.currencies-section {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--header-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--header-glass-border);
  border-radius: 16px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Séparateur entre ressources */
.currency-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Item ressource individuel */
.currency-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: default;
}

.currency-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.currency-grapes:hover {
  border-color: var(--header-grape-color);
  box-shadow: 0 4px 15px var(--header-grape-glow);
}

.currency-gems:hover {
  border-color: var(--header-gem-color);
  box-shadow: 0 4px 15px var(--header-gem-glow);
}

/* Icône ressource */
.currency-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.currency-item:hover .currency-icon {
  transform: scale(1.15) rotate(-5deg);
}

.currency-grapes .currency-icon {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0.1));
  box-shadow: 0 0 10px var(--header-grape-glow);
}

.currency-gems .currency-icon {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.3), rgba(0, 188, 212, 0.1));
  box-shadow: 0 0 10px var(--header-gem-glow);
}

/* Valeur ressource */
.currency-value {
  font-family: var(--font-family-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  min-width: 45px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

/* Animation pulsation quand valeur change */
.currency-value.value-pulse {
  animation: valuePulse 0.4s ease;
}

@keyframes valuePulse {
  0% { transform: scale(1); color: #fff; }
  50% { transform: scale(1.25); color: var(--header-gold); }
  100% { transform: scale(1); color: #fff; }
}

/* Bouton + doré */
.currency-add-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--header-gold), var(--header-gold-dark));
  color: #1a0a2e;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  transition: all 0.25s ease;
}

.currency-add-btn:hover {
  transform: rotate(90deg) scale(1.15);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
}

.currency-add-btn:active {
  transform: rotate(90deg) scale(0.95);
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (max-width: 768px) {
  .header-modern {
    height: 64px;
    padding: 0 12px;
  }

  .header-content {
    gap: 10px;
  }

  .domain-avatar {
    width: 42px;
    height: 42px;
  }

  .domain-emoji {
    font-size: 20px;
  }

  .domain-name {
    font-size: 13px;
    max-width: 100px;
  }

  .level-badge {
    padding: 2px 6px;
  }

  .level-text {
    font-size: 9px;
  }

  .level-number {
    font-size: 12px;
  }

  .xp-bar-mini {
    max-width: 60px;
  }

  .currencies-section {
    padding: 4px 8px;
    gap: 4px;
  }

  .currency-item {
    padding: 4px 8px;
    gap: 4px;
  }

  .currency-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .currency-value {
    font-size: 13px;
    min-width: 38px;
  }

  .currency-add-btn {
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 480px) {
  .header-modern {
    height: 58px;
    padding: 0 8px;
  }

  .header-content {
    gap: 8px;
  }

  .domain-section {
    gap: 8px;
  }

  .domain-avatar {
    width: 36px;
    height: 36px;
  }

  .domain-emoji {
    font-size: 18px;
  }

  .domain-info {
    min-width: auto;
    gap: 2px;
  }

  .domain-name {
    font-size: 11px;
    max-width: 70px;
  }

  .level-module {
    gap: 4px;
  }

  .level-badge {
    padding: 1px 5px;
  }

  .level-icon {
    display: none;
  }

  .level-text {
    font-size: 8px;
  }

  .level-number {
    font-size: 11px;
  }

  .xp-bar-mini {
    max-width: 45px;
    height: 5px;
  }

  .currencies-section {
    padding: 3px 6px;
    gap: 3px;
    border-radius: 12px;
  }

  .currency-divider {
    height: 20px;
  }

  .currency-item {
    padding: 3px 6px;
    gap: 3px;
    border-radius: 8px;
  }

  .currency-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
    border-radius: 6px;
  }

  .currency-value {
    font-size: 12px;
    min-width: 32px;
  }

  .currency-add-btn {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }
}

/* ===== RESPONSIVE TRES PETIT ECRAN ===== */
@media (max-width: 360px) {
  .header-modern {
    height: 54px;
  }

  .domain-name {
    display: none;
  }

  .xp-bar-mini {
    max-width: 35px;
  }

  .currency-value {
    min-width: 28px;
    font-size: 11px;
  }

  .currency-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}
    
    /* Currency Info Modal */
    .currency-info-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .currency-info-modal.show {
      opacity: 1;
      visibility: visible;
    }
    
    .currency-info-modal .modal-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
    }
    
    .currency-info-modal .modal-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
      border-radius: 20px;
      padding: 0;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
      overflow: hidden;
    }
    
    .currency-info-modal .modal-header {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      padding: 20px;
      text-align: center;
      position: relative;
      color: white;
    }
    
    .currency-info-modal .currency-icon-large {
      font-size: 3rem;
      margin-bottom: 8px;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    
    .currency-info-modal .modal-header h3 {
      margin: 0;
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.5rem;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .currency-info-modal .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      transition: all 0.3s ease;
    }
    
    .currency-info-modal .modal-close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(1.1);
    }
    
    .currency-info-modal .modal-body {
      padding: 24px;
    }
    
    .currency-info-modal .currency-description {
      font-size: 1rem;
      color: #2d2d2d;
      margin-bottom: 20px;
      line-height: 1.5;
    }
    
    .currency-info-modal .currency-tips h4 {
      font-family: 'Luckiest Guy', cursive;
      color: #667eea;
      margin-bottom: 12px;
      font-size: 1.1rem;
    }
    
    .currency-info-modal .currency-tips ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .currency-info-modal .currency-tips li {
      padding: 8px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      color: #666;
      position: relative;
      padding-left: 20px;
    }
    
    .currency-info-modal .currency-tips li:last-child {
      border-bottom: none;
    }
    
    .currency-info-modal .currency-tips li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #667eea;
      font-weight: bold;
    }
    
    .currency-info-modal .modal-footer {
      padding: 20px 24px;
      text-align: center;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .currency-info-modal .btn-primary {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border: none;
      color: white;
      padding: 12px 24px;
      border-radius: 16px;
      font-family: 'Luckiest Guy', cursive;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    }
    
    .currency-info-modal .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    
    /* ===== ANNOUNCEMENTS BANNER ===== */
    .announcements-banner {
      width: calc(100% - 24px);
      max-width: 450px;
      margin: 12px auto 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
      backdrop-filter: blur(20px);
      border-radius: 16px;
      padding: 12px 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      border: 2px solid rgba(255, 255, 255, 0.6);
      position: relative;
      overflow: hidden;
    }

    .announcements-slider {
      position: relative;
      min-height: 50px;
    }

    .announcement-slide {
      display: none;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .announcement-slide.active {
      display: flex;
      animation: slideIn 0.4s ease;
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(20px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .announcement-slide:hover {
      transform: scale(1.01);
    }

    .announcement-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      flex-shrink: 0;
    }

    .announcement-slide[data-type="event"] .announcement-icon {
      background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    }

    .announcement-slide[data-type="offer"] .announcement-icon {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .announcement-slide[data-type="news"] .announcement-icon {
      background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    }

    .announcement-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .announcement-tag {
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #667eea;
    }

    .announcement-slide[data-type="event"] .announcement-tag {
      color: #ff6b6b;
    }

    .announcement-slide[data-type="offer"] .announcement-tag {
      color: #764ba2;
    }

    .announcement-slide[data-type="news"] .announcement-tag {
      color: #11998e;
    }

    .announcement-text {
      font-size: 0.85rem;
      font-weight: 600;
      color: #2d2d2d;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .announcement-arrow {
      font-size: 1.5rem;
      color: #ccc;
      font-weight: 300;
      flex-shrink: 0;
    }

    .announcements-dots {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin-top: 10px;
    }

    .announcements-dots .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.15);
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .announcements-dots .dot.active {
      width: 18px;
      border-radius: 3px;
      background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    }

    .announcements-dots .dot:hover:not(.active) {
      background: rgba(0, 0, 0, 0.3);
    }

    /* ===== DASHBOARD ROUND BUTTONS LAYOUT ===== */
    .dashboard-container {
      height: calc(100vh - 280px);
      width: 100%;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 20px;
      padding-top: 50px;
      position: relative;
      overflow: visible;
    }

    .dashboard-center {
      position: relative;
      width: 350px;
      height: 350px;
    }
    
    
    @keyframes float {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      33% { transform: translateY(-10px) rotate(1deg); }
      66% { transform: translateY(5px) rotate(-1deg); }
    }
    
    @keyframes gentleFloat {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-2px); }
    }
    
    @keyframes pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
      50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    }
    
    
    .domain-status {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      z-index: 10;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
      backdrop-filter: blur(25px);
      border-radius: 28px;
      padding: 20px 24px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
      border: 3px solid rgba(255, 255, 255, 0.6);
      min-width: 140px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
    
    .domain-avatar-large {
      width: 65px;
      height: 65px;
      background: linear-gradient(135deg, #ffd700 0%, #ffed4e 20%, #ffd700 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 10px;
      box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.6);
      border: 4px solid rgba(255, 255, 255, 0.8);
      animation: pulse 3s infinite;
      position: relative;
    }
    
    .domain-avatar-large::before {
      content: '';
      position: absolute;
      top: -3px;
      left: -3px;
      right: -3px;
      bottom: -3px;
      background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
      border-radius: 50%;
      z-index: -1;
      animation: rotate 8s linear infinite;
    }
    
    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    
    .domain-emoji-large {
      font-size: 2rem;
      filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
      animation: bounce 2s ease-in-out infinite;
    }
    
    @keyframes bounce {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-3px); }
    }
    
    .domain-info-central h2 {
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.3rem;
      color: #2d2d2d;
      margin: 0 0 8px 0;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .domain-level-info {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    
    .domain-level-info span {
      font-size: 0.9rem;
      color: #666;
      font-weight: 600;
    }
    
    .xp-bar {
      width: 120px;
      height: 8px;
      background: rgba(0, 0, 0, 0.1);
      border-radius: 4px;
      position: relative;
      overflow: hidden;
    }
    
    .xp-fill {
      height: 100%;
      background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
      border-radius: 4px;
      width: 0%;
      transition: width 0.6s ease;
    }
    
    .xp-text {
      position: absolute;
      top: -20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.75rem;
      color: #666;
      font-weight: 600;
    }
    
.round-buttons-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}



    .round-button-wrapper {
      position: absolute;
      width: 75px;
      height: 75px;
    }

    /* Constellation : 6 boutons en cercle autour du centre */
    .round-button-wrapper.top-left {
      top: 5%;
      left: 10%;
    }

    .round-button-wrapper.top-right {
      top: 5%;
      right: 10%;
    }

    .round-button-wrapper.middle-left {
      top: 50%;
      left: -5%;
      transform: translateY(-50%);
    }

    .round-button-wrapper.middle-right {
      top: 50%;
      right: -5%;
      transform: translateY(-50%);
    }

    .round-button-wrapper.bottom-left {
      bottom: 5%;
      left: 10%;
    }

    .round-button-wrapper.bottom-right {
      bottom: 5%;
      right: 10%;
    }
    
    .round-btn {
      width: 75px;
      height: 75px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
      box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      border: 3px solid rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(20px);
      animation: gentleFloat 4s ease-in-out infinite;
    }
    
    .round-btn:hover {
      transform: translateY(-6px) scale(1.08);
      box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
      border-color: rgba(102, 126, 234, 0.4);
      background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(251, 252, 255, 0.98) 100%);
    }
    
    .round-btn:active {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    .btn-icon {
      font-size: 1.6rem;
      margin-bottom: 3px;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
      transition: transform 0.3s ease;
    }
    
    .btn-label {
      font-size: 0.65rem;
      font-weight: 700;
      color: #374151;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }
    
    .notification-badge {
      position: absolute;
      top: -8px;
      right: -8px;
      background: linear-gradient(135deg, #ff4757 0%, #ff6b7d 100%);
      color: white;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: bold;
      box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    }
    
    /* Button hover effects */
    .round-btn:hover .btn-icon {
      animation: bounce 0.6s ease;
    }
    
    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }
    
    /* Note: Le style .main-btn est maintenant dans la section NAVIGATION BOTTOM */

    /* Mobile responsive dashboard */
    @media (max-width: 480px) {
      body {
        height: 100vh;
        overflow: hidden;
      }
      
      .dashboard-full-width {
        top: 120px !important;
        bottom: 80px !important;
      }
      
      .dashboard-container {
        height: calc(100vh - 120px);
        padding: 15px;
        overflow: hidden;
      }

      .dashboard-center {
        max-width: 320px;
        height: 320px;
        margin: 0 auto;
        transform: translateY(-15%) translateX(-4%);
      }
      
      .domain-status {
        padding: 14px;
        max-width: 180px;
        min-width: 160px;
        width: fit-content;
        margin: 0;
        box-sizing: border-box;
      }
      
      .domain-avatar-large {
        width: 55px;
        height: 55px;
      }
      
      .domain-emoji-large {
        font-size: 1.8rem;
      }
      
      .domain-info-central h2 {
        font-size: 1.1rem;
      }
      
      .xp-bar {
        width: 100px;
        height: 6px;
      }
      
      .round-btn {
        width: 65px;
        height: 65px;
      }
      
      .btn-icon {
        font-size: 1.5rem;
      }
      
      .btn-label {
        font-size: 0.65rem;
      }
      
      .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
      }

      .round-button-wrapper.top-left {
        top: 15%;
        left: -2%;
      }

      .round-button-wrapper.top-right {
        top: 15%;
        right: -2%;
      }

      .round-button-wrapper.middle-left {
        top: 40%;
        left: -2%;
      }

      .round-button-wrapper.middle-right {
        top: 40%;
        right: -2%;
      }

      .round-button-wrapper.bottom-left {
        top: 65%;
        left: -2%;
      }

      .round-button-wrapper.bottom-right {
        top: 65%;
        right: -2%;
      }
    }
    
    @media (max-width: 360px) {
      body {
        height: 100vh;
        overflow: hidden;
      }
      
      .dashboard-full-width {
        top: 110px !important;
        bottom: 70px !important;
      }
      
      .dashboard-container {
        height: calc(100vh - 110px);
        overflow: hidden;
      }

      .dashboard-center {
        max-width: 280px;
        height: 280px;
        margin: 0 auto;
        transform: translateY(-15%) translateX(-4%);
      }
      
      .domain-status {
        padding: 12px;
        min-width: 140px;
        width: fit-content;
        max-width: 160px;
        margin: 0;
        box-sizing: border-box;
      }
      
      .domain-avatar-large {
        width: 45px;
        height: 45px;
      }
      
      .domain-emoji-large {
        font-size: 1.5rem;
      }
      
      .domain-info-central h2 {
        font-size: 1rem;
      }
      
      .round-btn {
        width: 55px;
        height: 55px;
      }
      
      .btn-icon {
        font-size: 1.3rem;
      }
      
      .btn-label {
        font-size: 0.6rem;
      }
      
      .notification-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
      }
      
      .round-button-wrapper.top-left {
        top: 15%;
        left: 0%;
      }

      .round-button-wrapper.top-right {
        top: 15%;
        right: 0%;
      }

      .round-button-wrapper.middle-left {
        top: 40%;
        left: 0%;
      }

      .round-button-wrapper.middle-right {
        top: 40%;
        right: 0%;
      }

      .round-button-wrapper.bottom-left {
        top: 65%;
        left: 0%;
      }

      .round-button-wrapper.bottom-right {
        top: 65%;
        right: 0%;
      }
    }
    
    /* Page Transition Animations */
    .page {
      position: relative;
      transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
      transform: translateX(0);
      opacity: 1;
    }
    
    .page.slide-out-left {
      transform: translateX(-100%);
      opacity: 0;
    }
    
    .page.slide-out-right {
      transform: translateX(100%);
      opacity: 0;
    }
    
    .page.slide-in-left {
      transform: translateX(-100%);
      opacity: 0;
    }
    
    .page.slide-in-right {
      transform: translateX(100%);
      opacity: 0;
    }
    
    .page.active {
      transform: translateX(0);
      opacity: 1;
    }
    
    
    /* Dashboard Modal Styles */
    .dashboard-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .dashboard-modal.show {
      opacity: 1;
      visibility: visible;
    }
    
    .dashboard-modal .modal-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
    }
    
    .dashboard-modal .modal-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
      border-radius: 20px;
      padding: 0;
      max-width: 450px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }
    
    .dashboard-modal .modal-header {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      padding: 20px;
      text-align: center;
      position: relative;
      color: white;
    }
    
    .dashboard-modal .modal-icon {
      font-size: 2.5rem;
      margin-bottom: 8px;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    
    .dashboard-modal .modal-header h3 {
      margin: 0;
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.4rem;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .dashboard-modal .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      transition: all 0.3s ease;
    }
    
    .dashboard-modal .modal-close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(1.1);
    }
    
    .dashboard-modal .modal-body {
      padding: 24px;
    }
    
    /* Stats Grid */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
    }
    
    .stat-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: rgba(102, 126, 234, 0.05);
      border-radius: 12px;
      border: 1px solid rgba(102, 126, 234, 0.1);
    }
    
    .stat-icon {
      font-size: 1.8rem;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 50%;
      color: white;
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .stat-label {
      font-size: 0.85rem;
      color: #666;
      margin-bottom: 4px;
    }
    
    .stat-value {
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.2rem;
      color: #2d2d2d;
    }
    
    /* Missions List */
    .missions-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    
    .mission-item {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 16px;
      background: rgba(255, 215, 0, 0.05);
      border-radius: 12px;
      border: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .mission-icon {
      font-size: 1.8rem;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
      border-radius: 50%;
      box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
      flex-shrink: 0;
    }
    
    .mission-title {
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.1rem;
      color: #2d2d2d;
      margin-bottom: 4px;
    }
    
    .mission-desc {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 8px;
    }
    
    .mission-progress {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .progress-bar {
      flex: 1;
      height: 6px;
      background: rgba(0, 0, 0, 0.1);
      border-radius: 3px;
      overflow: hidden;
    }
    
    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
      border-radius: 3px;
      transition: width 0.6s ease;
    }
    
    .progress-text {
      font-size: 0.8rem;
      color: #666;
      font-weight: 600;
    }
    
    /* Equipment Grid */
    .equipment-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 16px;
    }
    
    .equipment-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: rgba(139, 69, 19, 0.05);
      border-radius: 12px;
      border: 1px solid rgba(139, 69, 19, 0.1);
    }
    
    .equipment-icon {
      font-size: 1.5rem;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
      border-radius: 50%;
      color: white;
      box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    }
    
    .equipment-name {
      font-weight: 600;
      color: #2d2d2d;
      font-size: 0.9rem;
    }
    
    .equipment-count {
      font-family: 'Luckiest Guy', cursive;
      color: #8B4513;
      font-size: 0.9rem;
    }
    
    /* Upgrade Options */
    .upgrade-options {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    
    .upgrade-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px;
      background: rgba(34, 197, 94, 0.05);
      border-radius: 12px;
      border: 1px solid rgba(34, 197, 94, 0.1);
    }
    
    .upgrade-icon {
      font-size: 1.8rem;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
      border-radius: 50%;
      color: white;
      box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
      flex-shrink: 0;
    }
    
    .upgrade-info {
      flex: 1;
    }
    
    .upgrade-title {
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.1rem;
      color: #2d2d2d;
      margin-bottom: 4px;
    }
    
    .upgrade-desc {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 8px;
    }
    
    .upgrade-cost {
      font-size: 0.85rem;
      color: #22c55e;
      font-weight: 600;
    }
    
    .upgrade-btn {
      background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
      border: none;
      color: white;
      padding: 8px 16px;
      border-radius: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    }
    
    .upgrade-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    }
    
    main {
      max-width: 480px;
      margin: 0 auto;
      padding: 20px 8px 0 8px;
    }
    
    /* ===== STYLES POUR LA MODALE DES MISSIONS ===== */
    .missions-container {
      display: flex;
      flex-direction: column;
      height: 100%;
      max-height: 500px;
    }
    
    .missions-tabs {
      display: flex;
      gap: 4px;
      margin-bottom: 16px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 4px;
    }
    
    .missions-tab {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 10px 8px;
      background: transparent;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.7);
      position: relative;
    }
    
    .missions-tab.active {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .missions-tab:hover:not(.active) {
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.9);
    }
    
    .tab-icon {
      font-size: 1.2rem;
    }
    
    .tab-label {
      font-weight: 600;
      white-space: nowrap;
    }
    
    .tab-badge {
      position: absolute;
      top: -2px;
      right: -2px;
      background: #ef4444;
      color: white;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 700;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .missions-content {
      flex: 1;
      overflow-y: auto;
      padding-right: 4px;
    }
    
    .missions-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .mission-item {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 16px;
      padding: 16px;
      transition: all 0.3s ease;
      border: 2px solid transparent;
      position: relative;
      overflow: hidden;
    }
    
    .mission-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .mission-item.completed::before {
      background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
      opacity: 1;
    }
    
    .mission-item.claimable {
      border-color: #f59e0b;
      box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
      animation: pulse-reward 2s infinite;
    }
    
    @keyframes pulse-reward {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.02); }
    }
    
    .mission-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .mission-main {
      margin-bottom: 12px;
    }
    
    .mission-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
    }
    
    .mission-icon {
      font-size: 2rem;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      border-radius: 12px;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mission-info {
      flex: 1;
      min-width: 0;
    }
    
    .mission-title {
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.1rem;
      color: #1f2937;
      margin-bottom: 2px;
      line-height: 1.2;
    }
    
    .mission-desc {
      font-size: 0.9rem;
      color: #6b7280;
      line-height: 1.3;
    }
    
    .mission-status {
      flex-shrink: 0;
    }
    
    .status-indicator {
      display: inline-block;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      font-weight: 600;
    }
    
    .status-indicator.pending {
      background: #f3f4f6;
      color: #9ca3af;
    }
    
    .status-indicator.completed {
      background: #dcfce7;
      color: #16a34a;
    }
    
    .status-indicator.claimable {
      background: #fef3c7;
      color: #d97706;
      animation: bounce 1s infinite;
    }
    
    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-2px); }
    }
    
    .mission-progress {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .progress-bar.modern {
      flex: 1;
      height: 8px;
      background: #e5e7eb;
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }
    
    .progress-bar.modern .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
      border-radius: 4px;
      transition: width 0.3s ease;
      position: relative;
    }
    
    .mission-item.completed .progress-bar.modern .progress-fill {
      background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    }
    
    .progress-text {
      font-size: 0.85rem;
      color: #6b7280;
      font-weight: 600;
      white-space: nowrap;
    }
    
    .mission-footer {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 16px;
      padding-top: 12px;
      border-top: 1px solid #e5e7eb;
      flex-wrap: wrap;
    }
    
    .mission-reward {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    
    .reward-item {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 4px 8px;
      background: rgba(59, 130, 246, 0.1);
      border-radius: 16px;
      font-size: 0.85rem;
      font-weight: 600;
    }
    
    .reward-icon {
      font-size: 1rem;
    }
    
    .reward-amount {
      color: #1f2937;
    }
    
    .claim-btn {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      border: none;
      color: white;
      padding: 12px 24px;
      border-radius: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 1rem;
      min-height: 44px;
      min-width: 120px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .claim-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
      background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    }
    
    .claim-btn:active {
      transform: translateY(0);
    }
    
    .claim-icon {
      font-size: 1.1rem;
    }
    
    .mission-item.empty,
    .mission-item.loading {
      text-align: center;
      padding: 32px 16px;
      color: #6b7280;
    }
    
    .mission-item.empty .mission-icon,
    .mission-item.loading .mission-icon {
      font-size: 3rem;
      background: none;
      box-shadow: none;
      margin: 0 auto 16px;
    }
    
    .mission-item.empty .mission-title,
    .mission-item.loading .mission-title {
      font-size: 1.2rem;
      color: #4b5563;
    }
    
    /* Responsive adjustments */
      @media (max-width: 480px) {
        .dashboard-center {
          max-width: 320px;
          height: 320px;
          margin: 0 auto;
          transform: translateY(-5%) translateX(-4%); /* au lieu de -15% */
        }
      }

      
      .missions-tab {
        padding: 8px 4px;
        font-size: 0.8rem;
      }
      
      .tab-label {
        display: none;
      }
      
      .mission-item {
        padding: 12px;
      }
      
      .mission-header {
        gap: 8px;
      }
      
      .mission-icon {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
      }
      
      .mission-title {
        font-size: 1rem;
      }
      
      .claim-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
        justify-content: center;
        border-radius: 16px;
        font-weight: 700;
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
      }
      
      .claim-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
      }
      
      .mission-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
      }
      
      .mission-desc {
        font-size: 0.85rem;
      }
    }
    
    /* ===== STYLES POUR LA MODALE DE PROFIL ===== */
    .profile-container {
      display: flex;
      flex-direction: column;
      height: 100%;
      max-height: 500px;
    }
    
    .profile-tabs {
      display: flex;
      gap: 4px;
      margin-bottom: 16px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 4px;
    }
    
    .profile-tab {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 10px 8px;
      background: transparent;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.7);
      position: relative;
    }
    
    .profile-tab.active {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .profile-tab:hover:not(.active) {
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.9);
    }
    
    .profile-content {
      flex: 1;
      overflow-y: auto;
      padding-right: 4px;
    }
    
    .profile-section {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    
    /* Titres */
    .titles-header {
      text-align: center;
      margin-bottom: 20px;
    }
    
    .titles-header h3 {
      color: white;
      margin: 0 0 8px 0;
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.3rem;
    }
    
    .titles-header p {
      color: rgba(255, 255, 255, 0.8);
      margin: 0;
      font-size: 0.9rem;
    }
    
    .titles-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .title-item {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 16px;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid transparent;
    }
    
    .title-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .title-item.active {
      border-color: #f59e0b;
      box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    }
    
    .title-icon {
      font-size: 2rem;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      border-radius: 12px;
      flex-shrink: 0;
    }
    
    .title-info {
      flex: 1;
      min-width: 0;
    }
    
    .title-name {
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.1rem;
      color: #1f2937;
      margin-bottom: 2px;
    }
    
    .title-desc {
      font-size: 0.9rem;
      color: #6b7280;
    }
    
    .title-status {
      flex-shrink: 0;
    }
    
    .current-badge {
      background: #22c55e;
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 0.8rem;
      font-weight: 600;
    }
    
    .select-text {
      color: #6b7280;
      font-size: 0.9rem;
    }
    
    .no-titles {
      text-align: center;
      padding: 40px 20px;
      color: rgba(255, 255, 255, 0.8);
    }
    
    .no-titles-icon {
      font-size: 4rem;
      margin-bottom: 16px;
    }
    
    .no-titles p {
      font-size: 1.1rem;
      margin: 0 0 8px 0;
      color: white;
    }
    
    .no-titles small {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.7);
    }
    
    /* Paramètres */
    .settings-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    
    .setting-item {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 16px;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .setting-info {
      flex: 1;
    }
    
    .setting-title {
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.1rem;
      color: #1f2937;
      margin-bottom: 4px;
    }
    
    .setting-desc {
      font-size: 0.9rem;
      color: #6b7280;
    }
    
    .setting-btn {
      background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
      border: none;
      color: white;
      padding: 8px 16px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.9rem;
    }
    
    .setting-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
    
    .setting-btn.secondary {
      background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    }
    
    .setting-btn.secondary:hover {
      box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
    }
    
    .setting-btn.danger {
      background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }
    
    .setting-btn.danger:hover {
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    
    .setting-actions {
      display: flex;
      gap: 8px;
    }
    
    /* Toggle Switch */
    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 50px;
      height: 24px;
    }
    
    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    
    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: 0.3s;
      border-radius: 24px;
    }
    
    .toggle-slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: 0.3s;
      border-radius: 50%;
    }
    
    .toggle-switch input:checked + .toggle-slider {
      background-color: #22c55e;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
      transform: translateX(26px);
    }
    
    /* Notifications */
    .game-notification {
      position: fixed;
      top: 20px;
      right: 20px;
      background: rgba(255, 255, 255, 0.95);
      border-radius: 12px;
      padding: 12px 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(10px);
      transform: translateX(100%);
      transition: transform 0.3s ease;
      z-index: 10001;
      max-width: 300px;
    }
    
    .game-notification.show {
      transform: translateX(0);
    }
    
    .game-notification.success {
      border-left: 4px solid #22c55e;
    }
    
    .game-notification.info {
      border-left: 4px solid #3b82f6;
    }
    
    .game-notification.error {
      border-left: 4px solid #ef4444;
    }
    
    .notification-content {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .notification-message {
      flex: 1;
      color: #1f2937;
      font-size: 0.9rem;
      font-weight: 500;
    }
    
    .notification-close {
      background: none;
      border: none;
      font-size: 1.2rem;
      cursor: pointer;
      color: #6b7280;
      padding: 0;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .notification-close:hover {
      color: #1f2937;
    }
    
    /* Responsive */
    @media (max-width: 480px) {
      .profile-tabs {
        gap: 2px;
        padding: 2px;
      }
      
      .profile-tab {
        padding: 8px 4px;
        font-size: 0.8rem;
      }
      
      .tab-label {
        display: none;
      }
      
      .setting-actions {
        flex-direction: column;
        gap: 4px;
      }
      
      .setting-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
      }
    }
    
    /* Dashboard full-width override */
    .dashboard-full-width {
      position: fixed !important;
      top: 140px !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 100px !important;
      width: 100vw !important;
      max-width: none !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
      background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%) !important;
    }
    
    .card-list {
      display: flex;
      flex-direction: column;
      gap: 18px;
      margin-top: 10px;
    }
    .card {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 20px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      padding: 20px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      display: flex;
      align-items: center;
      gap: 16px;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }
    .card:active { 
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
      transform: translateY(-2px);
    }
    .card-icon {
      width: 60px;
      height: 60px;
      border-radius: 18px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    .card-info h3 {
      margin: 0 0 5px 0;
      font-size: 1.2rem;
      font-family: 'Luckiest Guy', cursive;
      letter-spacing: .5px;
      color: #667eea;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .card-info p {
      margin: 0;
      color: #2d2d2d;
      font-size: .97rem;
      font-family: 'Roboto', Arial, sans-serif;
    }
/* ===== NAVIGATION BOTTOM - IDLE GAME FOOTER ===== */

/* Variables du footer */
nav.bottom-bar {
  --footer-height: 100px;
  --footer-bg-dark: #1a0a2e;
  --footer-bg-mid: #2d1b4e;
  --footer-gold: #ffd700;
  --footer-gold-dark: #b8860b;
  --footer-gold-glow: rgba(255, 215, 0, 0.5);
  --footer-purple-glow: rgba(102, 126, 234, 0.4);
}

nav.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-height);
  z-index: var(--z-fixed);

  /* Fond dégradé sophistiqué */
  background: linear-gradient(180deg,
    rgba(26, 10, 46, 0.95) 0%,
    rgba(45, 27, 78, 0.98) 50%,
    rgba(26, 10, 46, 1) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* Bordure lumineuse supérieure */
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.4),
    0 -2px 0 rgba(255, 215, 0, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;

  /* Layout - boutons en haut, espace en bas */
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 10px 12px 25px 12px;
}

/* Effet de texture légère */
nav.bottom-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===== BOUTONS DU FOOTER ===== */
.bottom-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  width: 56px;
  height: 56px;
  padding: 6px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;

  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icône du bouton */
.bottom-btn .btn-icon {
  font-size: 22px;
  line-height: 1;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Label sous l'icône */
.bottom-btn .btn-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Tooltip au survol */
.bottom-btn .btn-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);

  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--footer-gold-dark);
  border-radius: 8px;

  font-size: 11px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.bottom-btn .btn-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--footer-gold-dark);
}

/* ===== ÉTATS DES BOUTONS ===== */

/* Hover */
.bottom-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bottom-btn:hover .btn-icon {
  transform: scale(1.15);
}

.bottom-btn:hover .btn-label {
  color: rgba(255, 255, 255, 0.95);
}

.bottom-btn:hover .btn-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Active (clic) avec bounce */
.bottom-btn:active {
  transform: translateY(-2px) scale(0.95);
}

/* Focus */
.bottom-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--footer-purple-glow);
}

/* ===== BOUTON ACTIF (onglet sélectionné) ===== */
.bottom-btn.active {
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(255, 215, 0, 0.1) 100%
  );
  border-color: var(--footer-gold);
  transform: translateY(-6px) scale(1.08);
  box-shadow:
    0 8px 30px rgba(255, 215, 0, 0.3),
    0 0 20px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bottom-btn.active .btn-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px var(--footer-gold-glow));
}

.bottom-btn.active .btn-label {
  color: var(--footer-gold);
  font-weight: 700;
}

/* Halo animé pour l'onglet actif */
.bottom-btn.active::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--footer-gold-glow),
    transparent,
    var(--footer-gold-glow),
    transparent
  );
  opacity: 0.6;
  animation: haloRotate 3s linear infinite;
  z-index: -1;
}

@keyframes haloRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== BOUTON PRINCIPAL (Domaine) ===== */
.bottom-btn.main-btn {
  width: 68px;
  height: 68px;
  margin-top: -20px;
  border-radius: 50%;

  background: linear-gradient(135deg,
    var(--footer-gold) 0%,
    var(--footer-gold-dark) 100%
  );
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 6px 20px rgba(255, 215, 0, 0.5),
    0 0 30px rgba(255, 215, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.bottom-btn.main-btn .btn-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.bottom-btn.main-btn .btn-label {
  color: var(--footer-bg-dark);
  font-weight: 700;
  font-size: 8px;
}

/* Effet glow animé sur le bouton principal */
.bottom-btn.main-btn .btn-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--footer-gold-glow) 0%, transparent 70%);
  animation: mainBtnPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes mainBtnPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }
}

/* Hover sur bouton principal */
.bottom-btn.main-btn:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow:
    0 12px 35px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.4);
}

.bottom-btn.main-btn:hover .btn-icon {
  transform: scale(1.2) rotate(-5deg);
}

/* Active sur bouton principal */
.bottom-btn.main-btn.active {
  background: linear-gradient(135deg,
    #ffe566 0%,
    var(--footer-gold) 50%,
    var(--footer-gold-dark) 100%
  );
}

.bottom-btn.main-btn.active::before {
  display: none;
}

/* ===== ANIMATION BOUNCE AU CLIC ===== */
.bottom-btn.bounce {
  animation: btnBounce 0.5s ease;
}

@keyframes btnBounce {
  0% { transform: translateY(-4px) scale(1); }
  30% { transform: translateY(-12px) scale(1.1); }
  50% { transform: translateY(-4px) scale(0.95); }
  70% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(-4px) scale(1); }
}

.bottom-btn.main-btn.bounce {
  animation: mainBtnBounce 0.5s ease;
}

@keyframes mainBtnBounce {
  0% { transform: translateY(-20px) scale(1); }
  30% { transform: translateY(-30px) scale(1.15); }
  50% { transform: translateY(-20px) scale(0.95); }
  70% { transform: translateY(-25px) scale(1.05); }
  100% { transform: translateY(-20px) scale(1); }
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (max-width: 768px) {
  nav.bottom-bar {
    --footer-height: 95px;
    padding: 8px 8px 22px 8px;
  }

  .bottom-btn {
    width: 52px;
    height: 52px;
  }

  .bottom-btn .btn-icon {
    font-size: 20px;
  }

  .bottom-btn .btn-label {
    font-size: 8px;
  }

  .bottom-btn.main-btn {
    width: 62px;
    height: 62px;
    margin-top: -16px;
  }

  .bottom-btn.main-btn .btn-icon {
    font-size: 26px;
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 480px) {
  nav.bottom-bar {
    --footer-height: 88px;
    padding: 6px 6px 20px 6px;
  }

  .bottom-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    gap: 2px;
  }

  .bottom-btn .btn-icon {
    font-size: 18px;
  }

  .bottom-btn .btn-label {
    font-size: 7px;
  }

  .bottom-btn .btn-tooltip {
    display: none;
  }

  .bottom-btn.main-btn {
    width: 58px;
    height: 58px;
    margin-top: -14px;
  }

  .bottom-btn.main-btn .btn-icon {
    font-size: 24px;
  }

  .bottom-btn.main-btn .btn-label {
    font-size: 7px;
  }

  .bottom-btn.active {
    transform: translateY(-4px) scale(1.05);
  }
}

/* ===== RESPONSIVE TRES PETIT ECRAN ===== */
@media (max-width: 360px) {
  nav.bottom-bar {
    --footer-height: 80px;
    padding: 5px 4px 18px 4px;
    gap: 2px;
  }

  .bottom-btn {
    width: 44px;
    height: 44px;
    padding: 4px;
    border-radius: 12px;
  }

  .bottom-btn .btn-icon {
    font-size: 16px;
  }

  .bottom-btn .btn-label {
    font-size: 6px;
  }

  .bottom-btn.main-btn {
    width: 52px;
    height: 52px;
    margin-top: -10px;
  }

  .bottom-btn.main-btn .btn-icon {
    font-size: 22px;
  }
}

/* ===== SAFE AREA iOS ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  nav.bottom-bar {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  @media (max-width: 480px) {
    nav.bottom-bar {
      padding-bottom: calc(4px + env(safe-area-inset-bottom));
    }
  }
}

/* ===== SYSTÈME DE CARTES UNIFIÉ ===== */

/* Cartes de base pour tous les modules */
.card-modern {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
}

.card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card-modern:active {
  transform: translateY(0);
}

/* États des cartes */
.card-modern.selected {
  border-color: var(--success-color);
  background: linear-gradient(135deg, var(--success-light) 0%, #e8f5e8 100%);
}

.card-modern.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.card-modern.out-of-stock {
  opacity: 0.3;
  filter: grayscale(1);
}

.card-modern.animate-select {
  animation: cardSelectModern 0.3s ease;
}

@keyframes cardSelectModern {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Contenu des cartes */
.card-emoji {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.card-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  color: var(--gray-800);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-tight);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-3);
}

.card-rarity {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.card-stock {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.card-stock.empty {
  color: var(--error-color);
  font-weight: var(--font-weight-bold);
}

.card-price {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--gray-800);
  margin-bottom: var(--space-2);
}

/* Indicateurs de cartes */
.card-indicator {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--success-color);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.card-indicator.warning {
  background: var(--warning-color);
  color: var(--gray-800);
}

.card-indicator.error {
  background: var(--error-color);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
  color: var(--gray-500);
}

/* Grilles de cartes */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (max-width: 360px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* ===== SYSTÈME DE MODALS UNIFIÉ ===== */

/* Modal de base pour tous les modules */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: var(--space-4);
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  transform: scale(0.95);
  transition: all var(--transition-base);
}

.modal-backdrop.show .modal-content {
  transform: scale(1);
}

.modal-header {
  background: var(--primary-gradient);
  color: var(--white);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.modal-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: var(--space-4);
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* Modals plein écran pour mobile */
@media (max-width: 480px) {
  .modal-backdrop {
    padding: 0;
  }
  
  .modal-content {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }
  
  .modal-body {
    max-height: calc(100vh - 160px);
  }
}

/* ===== FORMULAIRES UNIFIÉS ===== */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
}

.form-input {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:invalid {
  border-color: var(--error-color);
}

.form-select {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-error {
  color: var(--error-color);
  font-size: var(--font-size-sm);
  margin-top: var(--space-1);
}

.form-help {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  margin-top: var(--space-1);
}

/* ===== BADGES ET ÉTIQUETTES ===== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.badge-primary {
  background: var(--primary-color);
  color: var(--white);
}

.badge-secondary {
  background: var(--secondary-color);
  color: var(--gray-800);
}

.badge-success {
  background: var(--success-color);
  color: var(--white);
}

.badge-warning {
  background: var(--warning-color);
  color: var(--gray-800);
}

.badge-error {
  background: var(--error-color);
  color: var(--white);
}

.badge-gray {
  background: var(--gray-200);
  color: var(--gray-800);
}

/* ===== PROGRESSIONS ET BARRES ===== */

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-base);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-base);
  transition: width var(--transition-base);
}

.progress-fill.success {
  background: var(--success-color);
}

.progress-fill.warning {
  background: var(--warning-color);
}

.progress-fill.error {
  background: var(--error-color);
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  white-space: nowrap;
  pointer-events: none;
}
    /* --- Boutique --- */
    .currencies {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 15px;
      font-size: 1rem;
      margin: 10px 0 8px 0;
      padding: 0 15px;
    }
    .currencies span {
      display: flex; align-items: center; gap: 4px;
      background: rgba(255, 255, 255, 0.95);
      padding: 6px 12px;
      border-radius: 20px;
      border: 2px solid rgba(102, 126, 234, 0.3);
      font-weight: bold;
      color: #667eea;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      min-width: 80px;
      justify-content: center;
      transition: all 0.3s ease;
    }
    .currencies span:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    /* ===== BOUTIQUE HEADER & CATEGORIES ===== */
    .shop-header-section {
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
      border-radius: 20px;
      padding: 16px;
      margin: 15px;
      margin-bottom: 12px;
      backdrop-filter: blur(15px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    .shop-timer-row {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .shop-timer-badge {
      display: flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      padding: 10px 18px;
      border-radius: 30px;
      border: 2px solid #ffd700;
      box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .timer-icon-animated {
      font-size: 1.3rem;
      animation: timerPulse 2s ease-in-out infinite;
    }

    @keyframes timerPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.1); opacity: 0.8; }
    }

    .timer-countdown {
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.1rem;
      color: #ffd700;
      text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
      letter-spacing: 2px;
    }

    .shop-refresh-btn {
      background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
      border: none;
      padding: 10px 16px;
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      font-family: 'Luckiest Guy', cursive;
      font-size: 0.85rem;
      color: #1a1a2e;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }

    .shop-refresh-btn:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    }

    .shop-refresh-btn:active {
      transform: translateY(0) scale(0.98);
    }

    .shop-refresh-btn .refresh-icon {
      transition: transform 0.5s ease;
    }

    .shop-refresh-btn:hover .refresh-icon {
      transform: rotate(180deg);
    }

    .shop-tabs {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin: 15px;
      margin-bottom: 20px;
      padding: 6px;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 18px;
      backdrop-filter: blur(10px);
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .shop-tab {
      background: transparent;
      border: none;
      color: #667eea;
      padding: 10px 14px;
      border-radius: 14px;
      font-size: 0.85rem;
      cursor: pointer;
      font-family: 'Luckiest Guy', cursive;
      letter-spacing: .5px;
      outline: none;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      flex: 1;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      min-height: 60px;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .shop-tab::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
      border-radius: 14px;
    }

    .shop-tab:hover::before {
      opacity: 1;
    }

    .shop-tab.active {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
      color: #fff !important;
      transform: scale(1.02);
      box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .shop-tab.active::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 50%;
      transform: translateX(-50%);
      width: 30px;
      height: 4px;
      background: #ffd700;
      border-radius: 2px;
    }

    .shop-tab:hover:not(.active) {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.8);
    }

    .shop-tab:focus {
      outline: none;
    }

    .shop-tab:active:not(.active) {
      transform: scale(0.98);
    }

    .tab-emoji {
      font-size: 1.4rem;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
      transition: transform 0.3s ease;
      position: relative;
      z-index: 1;
    }

    .shop-tab:hover .tab-emoji {
      transform: scale(1.15) rotate(-5deg);
    }

    .shop-tab.active .tab-emoji {
      animation: tabEmojiPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes tabEmojiPop {
      0% { transform: scale(1); }
      50% { transform: scale(1.3) rotate(10deg); }
      100% { transform: scale(1); }
    }

    .tab-name {
      font-size: 0.75rem;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      position: relative;
      z-index: 1;
    }

    .tab-count {
      font-size: 0.65rem;
      background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
      color: white;
      border-radius: 10px;
      padding: 3px 8px;
      min-width: 18px;
      text-align: center;
      font-weight: bold;
      box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
      position: relative;
      z-index: 1;
    }

    .shop-tab.active .tab-emoji {
      filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.5));
    }

    .shop-tab.active .tab-name {
      color: white !important;
    }

    .shop-tab.active .tab-count {
      background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%) !important;
      color: #1a1a2e !important;
    }
    /* ===== BOUTIQUE CARDS CONTAINER ===== */
    .shop-cards {
      max-width: 100%;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
      gap: 16px;
      padding: 15px;
      padding-bottom: 130px;
    }

    /* ===== SHOP CARD ENHANCED ===== */
    .shop-card {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
      border-radius: 20px;
      box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.08),
        0 -2px 0 rgba(255, 255, 255, 0.8) inset,
        0 2px 0 rgba(0, 0, 0, 0.03) inset;
      border: 1px solid rgba(255, 255, 255, 0.5);
      padding: 14px 10px 12px;
      text-align: center;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      backdrop-filter: blur(15px);
      cursor: pointer;
      overflow: hidden;
      animation: cardAppear 0.5s ease-out backwards;
    }

    .shop-card:nth-child(1) { animation-delay: 0.05s; }
    .shop-card:nth-child(2) { animation-delay: 0.1s; }
    .shop-card:nth-child(3) { animation-delay: 0.15s; }
    .shop-card:nth-child(4) { animation-delay: 0.2s; }
    .shop-card:nth-child(5) { animation-delay: 0.25s; }
    .shop-card:nth-child(6) { animation-delay: 0.3s; }

    @keyframes cardAppear {
      from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Card shine effect */
    .shop-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -150%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
      );
      transition: left 0.6s ease;
      pointer-events: none;
    }

    .shop-card:hover::before {
      left: 150%;
    }

    /* Rarity glow border */
    .shop-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      border-radius: 20px 20px 0 0;
      background: var(--card-rarity-color, linear-gradient(90deg, #667eea, #764ba2));
      opacity: 0.8;
    }

    .shop-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(102, 126, 234, 0.2),
        0 -2px 0 rgba(255, 255, 255, 0.9) inset;
    }

    .shop-card .emoji {
      font-size: 2.5rem;
      margin-bottom: 8px;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
      transition: transform 0.3s ease;
      position: relative;
      z-index: 2;
    }

    .shop-card:hover .emoji {
      transform: scale(1.15) rotate(-5deg);
      animation: emojiWiggle 0.6s ease;
    }

    @keyframes emojiWiggle {
      0%, 100% { transform: scale(1.15) rotate(-5deg); }
      25% { transform: scale(1.15) rotate(5deg); }
      50% { transform: scale(1.15) rotate(-5deg); }
      75% { transform: scale(1.15) rotate(5deg); }
    }

    .shop-card .item-name {
      font-family: 'Luckiest Guy', cursive;
      font-size: 0.95rem;
      color: #2d3748;
      margin-bottom: 6px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
      line-height: 1.2;
      position: relative;
      z-index: 2;
    }

    /* Rarity badge enhanced */
    .shop-card .rarity {
      font-size: 0.7rem;
      margin-bottom: 8px;
      padding: 4px 12px;
      border-radius: 20px;
      font-weight: bold;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .rarity-commun {
      background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
      --card-rarity-color: linear-gradient(90deg, #94a3b8, #64748b);
    }
    .rarity-rare {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      box-shadow: 0 3px 15px rgba(16, 185, 129, 0.4);
      --card-rarity-color: linear-gradient(90deg, #10b981, #059669);
    }
    .rarity-epique {
      background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
      box-shadow: 0 3px 15px rgba(139, 92, 246, 0.4);
      --card-rarity-color: linear-gradient(90deg, #8b5cf6, #7c3aed);
    }
    .rarity-legendaire {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      box-shadow: 0 3px 15px rgba(245, 158, 11, 0.5);
      animation: legendaryPulse 2s ease-in-out infinite;
      --card-rarity-color: linear-gradient(90deg, #f59e0b, #d97706);
    }

    @keyframes legendaryPulse {
      0%, 100% { box-shadow: 0 3px 15px rgba(245, 158, 11, 0.5); }
      50% { box-shadow: 0 3px 25px rgba(245, 158, 11, 0.8); }
    }

    /* Price section enhanced */
    .shop-card .price {
      margin-bottom: 10px;
      font-size: 0.95rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
      width: 100%;
      position: relative;
      z-index: 2;
    }

    .shop-card .price-grapes,
    .shop-card .price-gems {
      display: flex;
      align-items: center;
      gap: 3px;
      padding: 5px 10px;
      border-radius: 12px;
      font-size: 0.85rem;
      font-weight: 700;
    }

    .shop-card .price-grapes {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
      color: #7c3aed;
      border: 1px solid rgba(139, 92, 246, 0.3);
    }

    .shop-card .price-gems {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
      color: #2563eb;
      border: 1px solid rgba(59, 130, 246, 0.3);
    }

    /* Stock indicator */
    .shop-card .stock-indicator {
      font-size: 0.7rem;
      color: #64748b;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 4px;
      position: relative;
      z-index: 2;
    }

    .shop-card .stock-indicator.low {
      color: #f59e0b;
    }

    .shop-card .stock-indicator.empty {
      color: #ef4444;
    }

    /* Button enhanced */
    .shop-card button {
      padding: 10px 16px;
      border: none;
      border-radius: 14px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      font-family: 'Luckiest Guy', cursive;
      font-size: 0.8rem;
      cursor: pointer;
      box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 -1px 0 rgba(255, 255, 255, 0.2) inset;
      margin-top: auto;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      width: 100%;
      position: relative;
      overflow: hidden;
      z-index: 2;
    }

    .shop-card button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
      );
      transition: left 0.5s ease;
    }

    .shop-card button:hover::before {
      left: 100%;
    }

    .shop-card button:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.5),
        0 -1px 0 rgba(255, 255, 255, 0.3) inset;
    }

    .shop-card button:active {
      transform: translateY(0) scale(0.98);
      box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }

    /* Out of stock card */
    .shop-card.out-of-stock {
      opacity: 0.7;
      filter: grayscale(0.4);
    }

    .shop-card.out-of-stock button {
      background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
      cursor: not-allowed;
      box-shadow: none;
    }

    .shop-card.out-of-stock button:hover {
      transform: none;
      box-shadow: none;
    }

    /* Purchase success animation */
    @keyframes purchaseSuccess {
      0% { transform: scale(1); }
      25% { transform: scale(0.95); }
      50% { transform: scale(1.05); background: rgba(16, 185, 129, 0.2); }
      100% { transform: scale(1); }
    }

    .shop-card.purchase-success {
      animation: purchaseSuccess 0.6s ease;
    }
    .modal {
      display: none; position: fixed; z-index: 9999;
      left: 0; top: 0; width: 100vw; height: 100vh;
      background: rgba(38, 38, 38, 0.16);
      justify-content: center; align-items: center;
    }
    .modal .modal-content {
      background: #fff;
      padding: 32px 18px 22px 18px;
      border-radius: 18px;
      box-shadow: 0 6px 24px #0003;
      text-align: center;
      max-width: 330px;
    }
    .modal .modal-content h3 {
      margin-top: 0; color: #2851a3;
      font-family: 'Luckiest Guy', cursive;
      font-size: 1.22rem;
    }
    .modal .modal-content button {
      margin: 10px 7px 0 7px;
      padding: 7px 20px;
    }
    .recipe-list {
      display: flex;
      flex-direction: column;
      gap: 18px;
      margin-top: 10px;
    }
    .recipe-card {
      background: linear-gradient(110deg, #fefcf8 80%, #f0e1ba 100%);
      border-radius: 16px;
      border: 2.5px solid #ffd949;
      box-shadow: 0 2px 8px #0001;
      padding: 16px;
      display: flex;
      align-items: flex-start;
      gap: 16px;
      position: relative;
    }
    .recipe-card.locked {
      filter: grayscale(1);
      opacity: 0.6;
    }
    .locked-msg {
      font-style: italic;
      color: #666;
    }
    .recipe-icon {
      font-size: 2.1rem;
      width: 46px;
      height: 46px;
      border-radius: 10px;
      background: #fff3d4;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      border: 1px solid #ffd949;
    }
    .recipe-info h4 {
      margin: 0 0 3px 0;
      font-family: 'Luckiest Guy', cursive;
      color: #2851a3;
      font-size: 1.08rem;
      letter-spacing: .5px;
    }
    .stars {
      color: #ffc700;
      font-size: 1.09rem;
      margin-bottom: 4px;
    }
    .recipe-dosage {
      font-size: .98rem;
      color: #333;
    }
    .prod-form {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 2px 8px #0001;
      border: 2.5px solid #ffd949;
      max-width: 420px;
      margin: 0 auto 20px auto;
      padding: 22px 14px 18px 14px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .prod-form label {
      font-weight: bold;
      color: #2851a3;
      font-size: 1.03rem;
      margin-bottom: 4px;
    }
    .prod-form select,
    .prod-form input[type='number'] {
      padding: 6px 10px;
      border: 1.5px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
      margin-bottom: 4px;
    }
    .prod-form button {
      background: linear-gradient(90deg, #ffd949, #ffd700);
      color: #2851a3;
      border: none;
      border-radius: 10px;
      font-family: 'Luckiest Guy', cursive;
      font-size: 1rem;
      padding: 9px 18px;
      cursor: pointer;
      box-shadow: 0 1px 4px #0002;
      margin-top: 10px;
      transition: background .14s;
    }
    .prod-form button:active { background: #f9e29d; }
    .prod-status {
      margin-top: 14px;
      text-align: center;
      color: #2d2d2d;
      font-size: 1.05rem;
    }
    .accel-btn {
      margin-top: 8px;
      background: linear-gradient(90deg, #e1dbfa, #ffe07c);
      color: #2851a3;
      border: 1.5px solid #ffd949;
      border-radius: 9px;
      font-family: 'Luckiest Guy', cursive;
      font-size: .95rem;
      padding: 6px 17px;
      cursor: pointer;
      transition: background .14s;
    }
    .accel-btn:active { background: #fff6c6; }
    .vente-module {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 2px 8px #0001;
      border: 2.5px solid #ffd949;
      max-width: 420px;
      margin: 0 auto 20px auto;
      padding: 22px 14px 18px 14px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .vente-module label {
      font-weight: bold;
      color: #2851a3;
      font-size: 1.04rem;
      margin-bottom: 4px;
    }
    .vente-module input[type='number'],
    .vente-module select {
      padding: 6px 10px;
      border: 1.5px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
      margin-bottom: 4px;
      width: 100%;
      box-sizing: border-box;
    }
    .vente-radio-group {
      display: flex;
      gap: 12px;
      margin-top: 4px;
      margin-bottom: 8px;
    }
    .vente-radio {
      flex: 1;
      padding: 6px 5px;
      border-radius: 10px;
      border: 1.5px solid #ffd949;
      background: #fdf7e2;
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: .97rem;
      cursor: pointer;
      transition: background .15s, border-color .15s;
      position: relative;
    }
    .vente-radio.active {
      border: 2px solid #3880c2;
      background: #e7f5ff;
    }
    .vente-radio input[type=radio] { display: none; }
    .vente-gain {
      text-align: center;
      font-size: 1.07rem;
      color: #2851a3;
      margin: 8px 0 4px 0;
    }
    .vente-btn {
      background: linear-gradient(90deg, #ffd949, #ffd700);
      color: #2851a3;
      border: none;
      border-radius: 10px;
      font-family: 'Luckiest Guy', cursive;
      font-size: 1rem;
      padding: 9px 18px;
      cursor: pointer;
      box-shadow: 0 1px 4px #0002;
      margin-top: 10px;
      transition: background .14s;
      width: 100%;
    }
    .vente-btn:active { background: #f9e29d; }
    .vente-stock {
      font-size: .98rem;
      color: #5b5b5b;
      margin-bottom: 6px;
    }
    .vente-result {
      background: #eafcd6;
      border: 1.5px solid #96d56b;
      color: #28513d;
      border-radius: 11px;
      padding: 12px 8px;
      margin-top: 8px;
      text-align: center;
      font-size: 1.05rem;
    }
    .boutique-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
    .shop-title { font-family: 'Luckiest Guy', cursive; text-align: center; color: #2172c4; letter-spacing: 1px; margin-bottom: 7px; font-size: 1.21em; }
    .shop-cards { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; transition: opacity .35s; }
    .shop-cards.fadeout { opacity: .1; }
    .shop-cards.fadein  { animation: fadeinshop .4s; }
    @keyframes fadeinshop { 0%{opacity:0} 100%{opacity:1} }
    .shop-card.card-buy-anim { animation: shopbuy .45s; }
    @keyframes shopbuy { 0%{box-shadow:0 0 0 #40b14b;} 35%{box-shadow:0 0 16px 6px #44e37888;} 100%{box-shadow:0 0 0 #40b14b;} }
    .card-out { opacity: 0.65; filter: grayscale(1); }
    .buy-btn[disabled] { background:#aaa !important; color:#fff !important; opacity:.7; }
    .stock-flash { animation: stockpulse .35s; }
    @keyframes stockpulse { 0%{background:#fff;} 40%{background:#48e243; color:#222;} 100%{background:none;} }
    .reroll-btn {
    background: linear-gradient(90deg,#ffd949,#ffd700);
    border-radius: 12px; border: none;
    padding: 8px 24px;
    font-size: 1.07em; font-family: 'Luckiest Guy',cursive;
    color: #2471ad; box-shadow: 0 1px 6px #0002;
    margin-bottom:8px; cursor:pointer;
    transition: background .13s;
    }
    .reroll-btn:active { background:#ffe287; }

    .modal-nice { background: #fff; border-radius:18px; padding:20px 24px 12px 24px; box-shadow:0 2px 16px #b2b2b2a0; min-width:240px; text-align:center; }
    .modal-actions { margin: 13px 0 8px 0; display: flex; gap: 14px; justify-content: center; }
    .modal-actions button { font-size:1.12em; border-radius:9px; background:#ffd700; color:#2172c4; font-weight:bold; border:none; padding:8px 20px; transition: background .14s;}
    .modal-actions button:active { background: #ffe287; }
    .modal-close { background: #eee; border-radius:7px; border:none; padding:7px 18px; color:#888; margin-top:3px; cursor:pointer;}
    .modal-close:active { background:#fff2c7; }
    #modal-emoji { text-shadow: 0 3px 9px #fff7, 0 1px 0 #2222; }
    .rarity-label { font-weight:500; letter-spacing:.3px;}

    .shop-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  gap: 0;
}
.shop-tab {
  font-family: 'Luckiest Guy',cursive;
  font-size: 1.1em;
  background: #f3f7ff;
  border: none;
  padding: 10px 24px 9px 24px;
  border-radius: 16px 16px 0 0;
  color: #2873b8;
  margin-right: 2px;
  border-bottom: 4px solid #ffd700;
  box-shadow: 0 2px 7px #0001;
  cursor: pointer;
  transition: background .13s, color .13s;
  outline: none;
}
.shop-tab.active {
  background: linear-gradient(90deg,#59bbff 70%,#ffd700 100%);
  color: #fff;
  border-bottom: 4px solid #3493eb;
  z-index: 1;
}
.shop-tab:not(.active):hover {
  background: #e3efff;
  color: #388be2;
}
.shop-tab-content {
  min-height: 160px;
  padding-bottom: 4px;
}
.modal-bg {position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000a;display:flex;align-items:center;justify-content:center;z-index:50;}

/* Ajustement pour la modale de production mobile */
#prod-modal-bg {
  align-items: flex-start;
  padding-top: 200px; /* Descendre drastiquement la modale */
  padding-bottom: 20px;
  overflow-y: auto;
}

#prod-modal-bg .prod-modal {
  margin: auto;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}
.prod-modal {background:#fff;border-radius:13px;box-shadow:0 2px 18px #0002;padding:22px 13px;min-width:280px;max-width:97vw;}
.prep-inv-raisins,.prep-inv-equips {display:flex;gap:10px;flex-wrap:wrap;margin:13px 0;}
.prep-raisin,.prep-equip {background:#f7fbff;border-radius:10px;min-width:80px;padding:10px 4px 6px 4px;cursor:pointer;font-size:1.03em;box-shadow:0 2px 7px #0001;border:2px solid #bbb;text-align:center;}
.prep-raisin[disabled],.prep-equip[disabled]{opacity:.45;pointer-events:none;}
.prep-btn {background:linear-gradient(90deg,#ffd949,#ffd700);color:#2172c4;font-family:'Luckiest Guy',cursive;font-size:1.12em;border:none;border-radius:8px;padding:8px 0;width:140px;margin-right:8px;box-shadow:0 1px 6px #0002;transition:.13s;}
.prep-btn-cancel {background:#eee;color:#c00;font-size:1.04em;border:none;border-radius:7px;padding:8px 0;width:110px;}
.prod-card { border-radius: 13px; box-shadow: 0 1px 7px #bfdfff8c; background: #fff; margin-bottom: 13px; padding: 12px 13px 9px 13px;}
.prod-card-header { display: flex; align-items: center; margin-bottom: 6px; gap: 11px; }
.prod-card-title { font-weight: 600; font-size: 1.1em;}
.prod-detail { font-size:0.99em;}
.prod-empty { color: #999; font-size: 1.09em; text-align: center; padding: 10px 0;}
@media (max-width:700px){ 
  .prod-modal{min-width:unset;padding:10vw 2vw;} 
  
  /* Ajustements spécifiques mobile pour la modale de production */
  #prod-modal-bg {
    padding-top: 150px; /* Descendre drastiquement sur mobile */
    padding-left: 10px;
    padding-right: 10px;
  }
  
  #prod-modal-bg .prod-modal {
    max-height: calc(100vh - 170px);
    padding: 20px 15px;
    margin: 0;
    width: 100%;
    max-width: calc(100vw - 20px);
  }
}
.prod-btn {
  display: block;
  margin: 32px auto 24px auto;
  padding: 16px 42px;
  background: linear-gradient(90deg, #ffd949 0%, #ffd700 100%);
  color: #1e385a;
  font-family: 'Luckiest Guy', cursive, 'Segoe UI', Arial, sans-serif;
  font-size: 1.25em;
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 16px #ffd70033, 0 2px 8px #aaa2;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.13s, box-shadow 0.13s;
}
.prod-btn:active {
  background: #ffe287;
  transform: scale(0.96);
}
.prod-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(30%);
}
/* Panel principal */
.vente-module-card {
  background: #fffdfa;
  border-radius: 18px;
  box-shadow: 0 4px 16px #ffe08245, 0 1px 5px #aaa1;
  max-width: 400px;
  margin: 16px auto 0 auto;
  padding: 17px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: 'Segoe UI', 'Fredoka', Arial, sans-serif;
  font-size: 1em;
}

/* Ligne de formulaire, tout bien aligné */
.vente-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 10px;
  width: 100%;
}

.vente-label {
  font-weight: 600;
  color: #b49737;
  font-size: 1.02em;
}

.vin-select {
  border-radius: 8px;
  background: #fffbe9;
  border: 1.5px solid #ffe082;
  color: #333;
  font-size: 1.07em;
  padding: 3px 7px;
  box-shadow: 0 1px 4px #ffe0821c;
  min-width: 120px;
}

/* Stock indication */
.vente-stock,
.vente-panel-stock {
  font-size: 1.06em;
  color: #a68028;
  margin-bottom: 4px;
  text-align: left;
}

/* Qte input + boutons */
.qte-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.qte-btn {
  background: #ffd700;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 1.15em;
  font-weight: 700;
  box-shadow: 0 1px 2px #bbb2;
  cursor: pointer;
  margin: 0 3px;
  transition: background .13s, transform .13s;
}
.qte-btn:active { background: #ffe082; transform: scale(.96); }

.qte-input {
  background: #fffbe9;
  border: 1.5px solid #ffe082;
  border-radius: 7px;
  font-size: 1.07em;
  font-family: inherit;
  color: #222;
  width: 44px;
  text-align: center;
  padding: 2px 0;
  margin: 0 2px;
}

.lieux-vente-row {
  display: flex;
  gap: 9px;
  width: 100%;
  margin: 7px 0 5px 0;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.lieu-card {
  background: #fffcf3;
  border-radius: 9px;
  box-shadow: 0 1px 4px #ffd70018;
  padding: 7px 5px 6px 5px;
  cursor: pointer;
  width: 92px;
  min-width: 80px;
  text-align: center;
  border: 2px solid transparent;
  transition: border .13s, box-shadow .13s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 70px;
  font-size: .97em;
}
.lieu-card.active, .lieu-card:hover {
  border: 2px solid #ffd700;
  box-shadow: 0 3px 11px #ffe08226;
}
.lieu-emoji { font-size: 1.18em; }
.lieu-nom { font-weight: 600; color: #bb9612; font-size: .97em; margin-top: 2px; margin-bottom: 2px;}
.lieu-desc {
  font-size: .81em;
  color: #c1a24c;
  margin-top: 0px;
  line-height: 1.1;
  max-height: 2.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.vente-gain,
.vente-panel-gain {
  margin: 6px 0 4px 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #39a045;
  text-align: center;
  background: #fffee4;
  border-radius: 9px;
  padding: 5px 0;
  box-shadow: 0 0.5px 2px #fff8;
}

/* Bouton vendre principal */
.vente-btn-main {
  margin: 8px 0 0 0;
  padding: 11px 0 11px 0;
  background: linear-gradient(90deg,#ffe082 0,#ffd700 100%);
  color: #735f04;
  border: none;
  border-radius: 10px;
  font-family: 'Fredoka', Arial, sans-serif;
  font-size: 1.08em;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 8px #ffe08227, 0 1px 5px #aaa1;
  transition: background .13s, transform .13s;
  width: 100%;
}
.vente-btn-main:active { background: #ffe5b2; transform: scale(.96); }

.vente-result {
  margin: 7px 0 0 0;
  font-size: 1em;
  text-align:center;
}

/* Tuiles historique sous le formulaire, verticales */
.ventes-histo-list {
  margin: 17px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ventes-histo-empty {
  color: #b6a554;
  text-align: center;
  font-size: 0.98em;
  font-style: italic;
  margin-bottom: 5px;
}
.vente-histo-tile {
  background: #fffcf3;
  border-radius: 11px;
  box-shadow: 0 2px 6px #ffe08219;
  padding: 9px 13px 8px 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-left: 5px solid #ffd700;
  min-height: 47px;
  font-size: .98em;
  animation: tilePop 0.38s;
}
@keyframes tilePop { 0% { opacity:0; transform: translateY(16px) scale(.97);} 100% {opacity:1;transform:none;} }
.vente-histo-tile.pending { border-left: 5px solid #b0b6e6; }
.vente-histo-tile.done { border-left: 5px solid #13b82d; }
.vente-histo-emoji { font-size: 1.5em; margin-right: 4px;}
.vente-histo-info { font-size: .98em; color: #333;}
.vente-histo-pending { color: #aaa258; font-size: 0.98em;}
.vente-histo-ok { color: #18c231; font-weight: bold; font-size: 1.07em;}
.vente-timer { font-weight: 600; color: #3949ab;}

/* === MOBILE PRODUCTION STYLES === */
.mobile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-modal.show {
  opacity: 1;
}

.mobile-modal-content {
  background: white;
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.mobile-modal.show .mobile-modal-content {
  transform: scale(1);
}

.mobile-step-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 80vh;
}

.mobile-step-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-btn, .back-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-info {
  flex: 1;
  text-align: center;
  margin: 0 16px;
}

.step-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
}

.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  width: 100px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  background: white;
  height: 100%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9em;
  opacity: 0.8;
}

.mobile-step-actions {
  padding: 16px;
  display: flex;
  gap: 12px;
  border-top: 1px solid #eee;
}

.mobile-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-btn.primary {
  background: #667eea;
  color: white;
}

.mobile-btn.primary:hover {
  background: #5a6fd8;
}

.mobile-btn.secondary {
  background: #f5f5f5;
  color: #666;
}

.mobile-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-raisin-grid, .mobile-equipment-grid, .mobile-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 16px;
}

.mobile-raisin-card, .mobile-equipment-card, .mobile-step-card {
  background: white;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-raisin-card:hover, .mobile-equipment-card:hover, .mobile-step-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.mobile-raisin-card.selected, .mobile-equipment-card.selected, .mobile-step-card.selected {
  border-color: #667eea;
  background: #f0f4ff;
}

.mobile-raisin-card.disabled, .mobile-equipment-card.disabled, .mobile-step-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.selected-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #667eea;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.mobile-wine-preview {
  padding: 16px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.mobile-wine-preview-filled {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 2px solid #667eea;
}

.mobile-wine-preview-empty {
  text-align: center;
  color: #666;
  font-style: italic;
}

.preview-icon {
  font-size: 2em;
  margin-bottom: 8px;
}

.mobile-inventory-section, .mobile-equipment-section, .mobile-steps-section {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}

.mobile-inventory-section h3, .mobile-equipment-section h3, .mobile-steps-section h3 {
  margin: 16px 0 8px 0;
  color: #333;
}

/* Responsive mobile */
@media (max-width: 650px) {
  .vente-module-card { max-width: 99vw; padding: 3vw 1vw;}
  .lieux-vente-row { gap: 3vw;}
  .lieu-card { width: 29vw; min-width: 84px; max-width: 33vw; }
  .vente-histo-tile { font-size: .95em; padding: 6px 5px 7px 7px; }
  
  .mobile-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .mobile-raisin-grid, .mobile-equipment-grid, .mobile-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === MODERN PRODUCTION CARDS === */
.prod-card.modern {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.prod-card.modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.prod-card-header.modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.wine-info {
  flex: 1;
}

.wine-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wine-emoji {
  font-size: 1.5em;
}

.wine-name {
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

.wine-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9em;
}

.wine-volume {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.wine-rarity {
  font-weight: 600;
}

.wine-status {
  flex-shrink: 0;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge.completed {
  background: #d4edda;
  color: #155724;
}

.status-badge.in-progress {
  background: #fff3cd;
  color: #856404;
}

.prod-progress-section {
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.current-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-weight: 500;
}

.step-icon {
  font-size: 1.1em;
}

.progress-time {
  color: #667eea;
  font-weight: 600;
}

.progress-bar-modern {
  background: #e9ecf4;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-fill.completed {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.prod-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9ff;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.detail-icon {
  font-size: 1.2em;
}

.detail-content {
  flex: 1;
}

.detail-label {
  display: block;
  font-size: 0.8em;
  color: #666;
  margin-bottom: 2px;
}

.detail-value {
  display: block;
  font-weight: 500;
  color: #333;
}

.prod-actions.modern {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vinif-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.vinif-action-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.vinif-action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.vinif-action-btn.secondary {
  background: #f8f9ff;
  color: #667eea;
  border: 1px solid #667eea;
}

.vinif-action-btn.secondary:hover {
  background: #667eea;
  color: white;
}

.vinif-action-btn.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.vinif-action-btn.success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-icon {
  font-size: 1.1em;
}

.btn-text {
  font-weight: 500;
}

/* Mobile adaptations */
@media (max-width: 650px) {
  .prod-card.modern {
    padding: 16px;
  }
  
  .prod-card-header.modern {
    flex-direction: column;
    gap: 12px;
  }
  
  .wine-meta {
    gap: 12px;
  }
  
  .prod-details-grid {
    grid-template-columns: 1fr;
  }
  
  .prod-actions.modern {
    flex-direction: column;
  }
  
  .vinif-action-btn {
    justify-content: center;
  }
}

.progress-outer {
  position: relative;
  background: #f6f8ff;
  border-radius: 9px;
  height: 18px;
  margin-top: 7px;
  overflow: hidden;
  box-shadow: 0 1px 4px #ccc2;
}
.progress-inner {
  background: linear-gradient(90deg, #ffd700 0%, #ffee99 100%);
  height: 100%;
  border-radius: 9px 0 0 9px;
  transition: width 0.3s cubic-bezier(.4,2.1,.2,1);
}
.progress-timer {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  text-align: center;
  font-size: 0.98em;
  color: #b59d2a;
  line-height: 18px;
  font-weight: bold;
  pointer-events: none;
}
.progress-inner.done { background: linear-gradient(90deg,#79d54d,#ccffc3 100%);}
.vente-histo-tile {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 9px #c6c2c229;
  padding: 9px 13px;
  position: relative;
}




#domaine-nom {
  font-weight: 700;
  color: #865A13;
  font-size: 1.13em;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 #ffe6b5, 0 1px 6px #fff8e1;
}



body {
  background: url('assets/dashboard-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  /* Optionnel pour un effet doux par-dessus */
  /* background-color: #f9f6f3cc; */
}

body.bg-dashboard {
  background: url('assets/dashboard-bg.jpg') no-repeat center center/cover;
}
body.bg-boutique {
  background: url('assets/boutique-bg.jpg') no-repeat center center/cover;
}
body.bg-production {
  background: url('assets/production-bg.jpg') no-repeat center center/cover;
}
body.bg-recettes {
  background: url('assets/recettes-bg.jpg') no-repeat center center/cover;
}
body.bg-ventes {
  background: url('assets/ventes-bg.jpg') no-repeat center center/cover;
}
.prep-btn, .vinif-action-btn {
  display: inline-block;
  padding: 9px 18px;
  margin: 4px 7px 4px 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg,#b87738,#dfb676);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow .15s, filter .12s;
  box-shadow: 0 1px 4px 0 #e5c99b5e;
}
.prep-btn-cancel, .vinif-action-btn-cancel {
  background: #c63434;
  color: #fff;
}
.prep-btn:hover, .vinif-action-btn:hover { filter: brightness(1.13); }
.prod-actions { margin-top: 11px; }
.prep-raisin {
  padding: 8px 14px;
  margin: 7px;
  border-radius: 9px;
  background: #fcf4eb;
  font-size: 1.06em;
  cursor: pointer;
  min-width: 115px;
  min-height: 70px;
}
.prep-inv-raisins { margin-bottom: 13px; }
.prod-card {
  background: #fffbe8;
  border-radius: 13px;
  padding: 13px 18px;
  margin: 13px 0;
  box-shadow: 0 2px 7px #e5c99b31;
}
.progress-outer {
  position: relative;
  background: #f7e9d4;
  border-radius: 8px;
  height: 21px;
  margin-bottom: 2px;
}
.progress-inner {
  position: absolute; left:0; top:0; bottom:0;
  background: #f7c468;
  border-radius: 8px;
  height: 100%;
  transition: width 0.7s;
}
.progress-inner.done {
  background: #86da77;
}
.progress-timer {
  position: absolute; right: 10px; top: 1px; color: #9c742c; font-size:0.98em;
}
.prod-card-title { font-weight:bold; font-size:1.1em;}
.prod-detail { font-size:0.98em; margin:7px 0; }
.modal-bg {
  display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,19,3,.18); align-items: center; justify-content: center;
  z-index: 99;
}
.modal-content.modal-nice {
  background: #fffbe8;
  border-radius: 14px;
  padding: 28px 28px 20px 28px;
  min-width: 320px;
  min-height: 140px;
  box-shadow: 0 3px 21px #d9bf7e66;
}
.vin-popup {
  position: fixed; left:0; top:0; width:100vw; height:100vh;
  background: rgba(45,33,12,0.32); z-index:9999; display:flex; align-items:center; justify-content:center;
}
.vin-popup-inner {
  background: #fffbe8;
  border-radius: 18px;
  padding: 32px 28px 18px 28px;
  box-shadow: 0 6px 28px #c2a86b6b;
  min-width: 330px;
  text-align: center;
}
.vin-popup-inner h2 { margin-top: 0; }
#history-modal-bg {
  display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,19,3,.20); align-items: center; justify-content: center;
  z-index: 2000;
}
#history-modal {
  background: #fffbe8;
  border-radius: 15px;
  padding: 27px 22px 18px 22px;
  min-width: 330px;
  box-shadow: 0 6px 28px #c2a86b6b;
  max-width: 95vw;
  max-height: 80vh;
  overflow: auto;
}
.history-title { font-size:1.18em; margin-top:0; }
.history-list { margin:0; padding:0; list-style: none; }
.history-list li { margin-bottom: 11px; font-size: 0.99em;}
.history-list li .bottle { font-size: 1.12em;}
.mission-list { margin:0; padding-left:20px; }
.mission-list li { margin-bottom:4px; }

/* ===== PAGE DE LOGIN MODERNISÉE ===== */
.login-page {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  padding: 50px 40px;
  border-radius: 32px;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 440px;
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-family-base);
  backdrop-filter: blur(30px);
  border: 3px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  animation: fadeInScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Effet de fond animé */
.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(102, 126, 234, 0.03) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Logo du jeu */
.login-page::after {
  content: '🍷';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 100px;
  opacity: 0.05;
  transform: rotate(15deg);
  pointer-events: none;
}

.login-page h2 {
  text-align: center;
  font-family: var(--font-family-display);
  font-size: 2.8rem;
  margin-bottom: 8px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  z-index: 1;
  letter-spacing: 2px;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Sous-titre du logo */
.login-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-top: -12px;
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Groupe d'input avec label */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.input-group label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-700);
  padding-left: 4px;
  letter-spacing: 0.5px;
}

.login-page input {
  padding: 18px 24px;
  padding-left: 52px;
  font-size: 1.05rem;
  border-radius: 16px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  font-family: var(--font-family-base);
  color: var(--gray-800);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* Icônes dans les inputs */
.input-group .input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  opacity: 0.6;
  pointer-events: none;
  transition: all var(--transition-base);
}

.input-group:has(input:focus) .input-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.login-page input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow:
    0 0 0 4px rgba(102, 126, 234, 0.15),
    0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.login-page input::placeholder {
  color: var(--gray-400);
  font-weight: var(--font-weight-normal);
}

/* Boutons stylisés */
.login-page button {
  padding: 18px 28px;
  font-size: 1.15rem;
  background: var(--primary-gradient);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-family-display);
  letter-spacing: 2px;
  transition: all var(--transition-base);
  box-shadow:
    0 8px 24px rgba(102, 126, 234, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  font-weight: var(--font-weight-normal);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

/* Effet shine au survol */
.login-page button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.login-page button:hover::before {
  left: 100%;
}

.login-page button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(102, 126, 234, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-page button:active {
  transform: translateY(0);
  box-shadow:
    0 4px 16px rgba(102, 126, 234, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.login-page button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Séparateur */
.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gray-300),
    transparent
  );
}

/* Texte et liens */
.login-page p {
  text-align: center;
  color: var(--gray-600);
  margin: 8px 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

.login-page a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-fast);
  position: relative;
  padding: 2px 4px;
}

.login-page a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-base);
}

.login-page a:hover::after {
  width: 100%;
}

.login-page a:hover {
  color: var(--primary-dark);
  transform: translateX(2px);
}

/* Message d'erreur/succès */
.login-message {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  animation: slideDown 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-message.error {
  background: var(--error-light);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.login-message.success {
  background: var(--success-light);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

/* ==== STYLES RESPONSIFS MOBILE GAMING ==== */
@media (max-width: 480px) {
  .login-page {
    margin: 40px 20px;
    padding: 36px 28px;
    border-radius: 28px;
  }

  .login-page h2 {
    font-size: 2.4rem;
    letter-spacing: 1px;
  }

  .login-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .login-page input {
    padding: 16px 20px;
    padding-left: 48px;
    font-size: 1rem;
  }

  .input-group .input-icon {
    left: 16px;
    font-size: 1.2rem;
  }

  .input-group label {
    font-size: 0.8rem;
  }

  .login-page button {
    padding: 16px 24px;
    font-size: 1.05rem;
  }

  .card {
    padding: 16px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .card-info h3 {
    font-size: 1.1rem;
  }

  .bottom-btn {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }


}

@media (max-width: 360px) {
  .login-page {
    margin: 30px 15px;
    padding: 30px 24px;
    border-radius: 24px;
  }

  .login-page h2 {
    font-size: 2.1rem;
  }

  .login-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
  }

  .login-page input {
    padding: 14px 18px;
    padding-left: 44px;
    font-size: 0.95rem;
  }

  .input-group .input-icon {
    left: 14px;
    font-size: 1.1rem;
  }

  .login-page button {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .card {
    padding: 14px;
    gap: 12px;
  }

  .card-icon {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  .bottom-btn {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

}

/* ==== EFFETS TACTILES POUR MOBILE ==== */
.card:active,
.bottom-btn:active,
.login-page button:active {
  transform: scale(0.95);
}

.card:hover,
.bottom-btn:hover {
  transform: translateY(-2px);
}

/* ==== AMÉLIORATIONS ACCESSIBILITÉ ==== */
.bottom-btn:focus,
.login-page button:focus,
.login-page input:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ==== ANIMATIONS FLUIDES ==== */
.card,
.bottom-btn,
.login-page button,
.login-page input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-btn.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1.1); }
  50% { transform: scale(1.15); }
}

/* ==== STYLES BOUTIQUE COMPACTE ==== */
.boutique-header {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.boutique-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4rem;
  color: #667eea;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.boutique-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rotation-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: #666;
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.refresh-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  color: white;
  font-family: 'Luckiest Guy', cursive;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.refresh-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Anciens styles supprimés - utilisation de la nouvelle structure simplifiée */

/* Statistiques supprimées pour plus de compacité */

/* ==== RESPONSIVE BOUTIQUE ==== */
@media (max-width: 480px) {
  .boutique-container-enhanced {
    margin: 8px;
    padding: 12px;
    border-radius: 16px;
    min-height: calc(100vh - 120px);
  }
  
  .boutique-header {
    margin: 10px;
    padding: 10px 12px;
    flex-direction: column;
    gap: 12px;
  }
  
  .boutique-title {
    font-size: 1.2rem;
  }
  
  .boutique-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .shop-tabs {
    gap: 4px;
    margin: 10px;
    margin-bottom: 15px;
  }
  
  .shop-tab {
    padding: 6px 8px;
    min-height: 50px;
  }
  
  .tab-emoji {
    font-size: 1rem;
  }
  
  .tab-name {
    font-size: 0.7rem;
  }
  
  .tab-count {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
  
  .shop-cards {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 12px;
  }
  
  .shop-card {
    padding: 10px 6px;
  }
  
  .shop-card .emoji {
    font-size: 1.8rem;
  }
  
  .currencies {
    gap: 8px;
    margin: 8px 0 6px 0;
  }
  
  .currencies span {
    padding: 4px 10px;
    min-width: 70px;
  }
}

@media (max-width: 360px) {
  .boutique-header-ultra-modern {
    margin: 8px;
    padding: 10px 10px;
  }
  
  .boutique-title-ultra-modern {
    font-size: 1.4rem;
  }
  
  .shop-cards {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    padding: 10px;
  }
  
  .shop-card {
    padding: 8px 4px;
  }
  
  .shop-card .emoji {
    font-size: 1.6rem;
  }
  
  .shop-card .item-name {
    font-size: 0.9rem;
  }
  
  .shop-card button {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ==== STYLES POUR DASHBOARD AMÉLIORÉ ==== */
.dashboard-header-enhanced {
  background: linear-gradient(135deg, #f8f4e6 0%, #e8dfc7 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid #f0e68c;
}

.welcome-section {
  text-align: center;
  margin-bottom: 20px;
}

.welcome-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8em;
  color: #8b4513;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.welcome-subtitle {
  color: #a0522d;
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-action-btn {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: #ffd700;
}

.action-icon {
  font-size: 1.5em;
}

.action-label {
  font-size: 0.85em;
  font-weight: 600;
  color: #333;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  font-weight: bold;
}

.stats-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.stat-card-enhanced:hover {
  transform: translateY(-2px);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-icon {
  font-size: 1.8em;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0e68c 0%, #ddd700 100%);
}

.stat-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #8b4513;
  margin: 0;
}

.stat-value {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.stat-progress {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.stat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.stat-description {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

.modules-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.module-card-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.module-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-color: #ffd700;
}

.module-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.module-icon {
  font-size: 2.5em;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0e68c 0%, #ddd700 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.module-info h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4em;
  color: #8b4513;
  margin: 0 0 4px 0;
}

.module-info p {
  color: #666;
  margin: 0;
  font-size: 0.95em;
}

.module-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.module-stat {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 8px;
}

.module-stat-value {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.module-stat-label {
  font-size: 0.8em;
  color: #666;
  margin-top: 2px;
}

/* ==== STYLES POUR BOUTIQUE AMÉLIORÉE ==== */

/* Conteneur principal boutique avec fond uniforme */
.boutique-container-enhanced {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 50%, #e6f3ff 100%);
  border-radius: 24px;
  padding: 20px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(135, 206, 235, 0.2);
  min-height: calc(100vh - 160px);
  position: relative;
  overflow: hidden;
}

/* Effet de texture subtile */
.boutique-container-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(176, 224, 230, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Contenu au-dessus de l'effet */
.boutique-container-enhanced > * {
  position: relative;
  z-index: 1;
}

.boutique-header-enhanced {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid #87ceeb;
}

.boutique-title-section {
  text-align: center;
  margin-bottom: 20px;
}

.boutique-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8em;
  color: #2c5aa0;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.boutique-subtitle {
  color: #4682b4;
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
}

.shop-controls-enhanced {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.shop-timer-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.timer-icon {
  font-size: 1.5em;
  margin-bottom: 8px;
}

.timer-value {
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.timer-label {
  font-size: 0.9em;
  color: #666;
}

.reroll-button-enhanced {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ddd700;
  border-radius: 16px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #8b4513;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.reroll-button-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.shop-tabs-enhanced {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.shop-tab-enhanced {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border: 2px solid #ddd;
  border-radius: 16px 16px 0 0;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #666;
  position: relative;
}

.shop-tab-enhanced.active {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-color: #ffd700;
  color: #8b4513;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.shop-tab-enhanced:hover:not(.active) {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  border-color: #ccc;
}

.shop-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.shop-item-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.shop-item-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-color: #ffd700;
}

.item-emoji {
  font-size: 2.5em;
  margin-bottom: 12px;
  display: block;
}

.item-name-enhanced {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.item-rarity-enhanced {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-rarity-enhanced.commun {
  background: linear-gradient(135deg, #888 0%, #aaa 100%);
}

.item-rarity-enhanced.rare {
  background: linear-gradient(135deg, #4a9 0%, #5ba 100%);
}

.item-rarity-enhanced.epique {
  background: linear-gradient(135deg, #94c 0%, #a5d 100%);
}

.item-rarity-enhanced.legendaire {
  background: linear-gradient(135deg, #fb3 0%, #fc4 100%);
}

.item-price-enhanced {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-button-enhanced {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ddd700;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1em;
  color: #8b4513;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.buy-button-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.buy-button-enhanced:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.shop-item-enhanced.out-of-stock {
  opacity: 0.6;
  filter: grayscale(0.5);
}

/* ==== STYLES POUR ÉQUIPEMENTS AMÉLIORÉS ==== */
.prep-etape-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #ccc;
}

.etape-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #ffe6e6;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.9em;
  color: #cc0000;
}

.etape-equipment {
  margin-top: 12px;
  padding: 8px;
  background: #f0f8ff;
  border-radius: 8px;
  border: 1px solid #e0e6ff;
}

.equipment-label {
  font-size: 0.85em;
  font-weight: bold;
  color: #4a6741;
  margin-bottom: 6px;
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8em;
}

.equipment-emoji {
  font-size: 1.2em;
}

.equipment-name {
  flex: 1;
  color: #666;
}

.equipment-bonus {
  background: #e6f5e6;
  color: #2d5016;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: bold;
}

.equipment-more {
  font-size: 0.8em;
  color: #666;
  font-style: italic;
  margin-top: 4px;
}

.equipment-status.available {
  color: #28a745;
  font-weight: bold;
}

.equipment-status.busy {
  color: #dc3545;
  font-weight: bold;
}

.equipment-capacity {
  color: #666;
  font-size: 0.9em;
  margin: 4px 0;
}

.equipment-steps {
  margin: 8px 0;
  font-size: 0.9em;
}

.steps-label {
  font-weight: bold;
  color: #4a6741;
}

.steps-list {
  color: #666;
}

.equipment-description {
  font-size: 0.85em;
  color: #888;
  font-style: italic;
  margin-top: 8px;
}

.bonus-label {
  font-weight: bold;
  color: #4a6741;
}

.bonus-value {
  background: #e6f5e6;
  color: #2d5016;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
}

/* Styles pour les nouvelles stats d'équipements dans la boutique */
.stat-value {
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 4px;
  text-align: right;
}

.stat-value.bonus-value {
  color: #28a745;
  background: #e8f5e8;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.stat-value.steps-value {
  color: #4a6741;
  font-size: 0.8em;
  background: #f0f8ff;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.3;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85em;
  color: #666;
  flex: 1;
}

.item-description-modern {
  font-size: 0.9em;
  color: #555;
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 40px;
}

/* Styles pour la modale d'aperçu rapide */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 0;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

.stat-value {
  font-size: 0.9em;
  font-weight: bold;
  color: #333;
}

.bonus-highlight {
  color: #28a745 !important;
  background: #e8f5e8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
}

.steps-highlight {
  color: #4a6741 !important;
  background: #f0f8ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  max-width: 200px;
  text-align: right;
}

/* ==== STYLES POUR PRODUCTION MOBILE ==== */
.production-mobile-container {
  padding: 16px;
  max-width: 100vw;
  margin: 0 auto;
  padding-bottom: 100px; /* Espace pour le footer fixe */
  box-sizing: border-box;
}

/* ==== NOUVEAU RÉCAPITULATIF AMÉLIORÉ ==== */
.confirmation-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.confirmation-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.confirmation-subtitle {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

.confirmation-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.confirmation-section {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-200);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.section-icon {
  font-size: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  flex-grow: 1;
  margin-left: 0.5rem;
}

.section-count {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.section-badge {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* Raisins Grid */
.selected-raisins-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.raisin-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.raisin-emoji {
  font-size: 2rem;
}

.raisin-info {
  flex-grow: 1;
}

.raisin-name {
  font-weight: 600;
  color: var(--gray-800);
  display: block;
  margin-bottom: 0.25rem;
}

.raisin-rarity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.rarity-stars {
  font-weight: bold;
}

.rarity-label {
  font-weight: 500;
}

/* Equipment Card */
.equipment-card, .step-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.equipment-emoji, .step-emoji {
  font-size: 2rem;
}

.equipment-info, .step-info {
  flex-grow: 1;
}

.equipment-name, .step-name {
  font-weight: 600;
  color: var(--gray-800);
  display: block;
  margin-bottom: 0.25rem;
}

.equipment-specs {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}

.equipment-capacity {
  color: var(--gray-600);
}

.equipment-bonus {
  color: var(--success-color);
  font-weight: 600;
}

.step-desc {
  color: var(--gray-600);
  font-size: 0.8rem;
}

/* Predictions Grid */
.predictions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.prediction-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.prediction-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.prediction-data {
  width: 100%;
}

.prediction-value {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.prediction-label {
  color: var(--gray-600);
  font-size: 0.7rem;
  line-height: 1.2;
}

.quality-stars {
  color: var(--warning-color);
}

@media (max-width: 480px) {
  .predictions-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .prediction-card {
    flex-direction: row;
    text-align: left;
    gap: 0.75rem;
  }
  
  .prediction-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* ==== MODALE DE CONDITIONNEMENT AMÉLIORÉE ==== */
.bottling-modal-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem;
  height: 100%;
}

.bottling-header {
  text-align: center;
  position: relative;
  flex-shrink: 0;
}

.close-btn-modern {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn-modern:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.header-content {
  padding-right: 2rem;
}

.header-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 0.25rem 0;
}

.header-subtitle {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

/* Carte d'informations du vin */
.wine-info-card {
  background: linear-gradient(135deg, #fef7f7 0%, #fef2f2 100%);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem;
  flex-shrink: 0;
}

.wine-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wine-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.wine-details {
  flex-grow: 1;
}

.wine-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.5rem 0;
}

.wine-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.wine-volume, .wine-quality {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.volume-icon, .quality-icon {
  font-size: 1rem;
}

/* Section des bouteilles */
.bottling-section {
  background: white;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.section-header {
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.25rem 0;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 0.8rem;
  margin: 0;
}

.bottles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.bottle-option {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.bottle-option.available {
  border-color: var(--success-color);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.bottle-option.available:hover {
  border-color: var(--success-color);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
  transform: translateY(-2px);
}

.bottle-option.unavailable {
  border-color: var(--gray-300);
  background: var(--gray-50);
  cursor: not-allowed;
  opacity: 0.6;
}

.bottle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.bottle-emoji {
  font-size: 1.5rem;
}

.bottle-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.bottle-status.available {
  background: var(--success-color);
  color: white;
}

.bottle-status.unavailable {
  background: var(--error-color);
  color: white;
}

.bottle-info {
  margin-bottom: 0.5rem;
  flex: 1;
}

.bottle-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.5rem 0;
}

.bottle-specs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-label {
  color: var(--gray-600);
  font-size: 0.7rem;
}

.spec-value {
  font-weight: 600;
  font-size: 0.8rem;
}

.spec-value.success {
  color: var(--success-color);
}

.spec-value.error {
  color: var(--error-color);
}

.spec-value.efficiency {
  color: var(--primary-color);
}

.bottle-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--success-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.bottle-action.unavailable {
  background: var(--gray-400);
  justify-content: center;
}

.action-icon {
  font-weight: bold;
  font-size: 1.1rem;
}

/* Note d'aide */
.bottling-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #fefbf3 0%, #fef3c7 100%);
  border: 1px solid #fbbf24;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ==== TUILES COMPACTES DE PRODUCTION ==== */
.production-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .production-tiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .production-tiles-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.production-tile-compact {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.production-tile-compact:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.wine-info-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wine-emoji {
  font-size: 1.5rem;
}

.wine-name-compact {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.9rem;
}

.status-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-indicator.completed {
  background: var(--success-color);
  color: white;
}

.status-indicator.in-progress {
  background: var(--warning-color);
  color: white;
}

.current-step-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.step-icon-compact {
  font-size: 1.2rem;
}

.step-name-compact {
  font-size: 0.85rem;
  color: var(--gray-700);
  font-weight: 500;
}

.progress-section-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.progress-bar-compact {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill-compact {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 4px;
  transition: width 0.15s linear; /* Transition fluide et linéaire pour une progression naturelle */
  position: relative;
  overflow: hidden;
}

/* Animation de brillance pour la barre en cours */
.progress-fill-compact:not(.completed)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.progress-fill-compact.completed {
  background: linear-gradient(90deg, var(--success-color), #4ade80);
  /* Pas d'animation pour éviter les sursauts lors des mises à jour */
}

.progress-time-compact {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
  min-width: 60px;
  text-align: right;
}

.quick-actions-compact {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.quick-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn.primary {
  background: var(--primary-color);
  color: white;
}

.quick-action-btn.primary:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.quick-action-btn.secondary {
  background: var(--gray-600);
  color: white;
}

.quick-action-btn.secondary:hover {
  background: var(--gray-700);
  transform: scale(1.1);
}

.quick-action-btn.success {
  background: var(--success-color);
  color: white;
}

.quick-action-btn.success:hover {
  background: #16a34a;
  transform: scale(1.1);
}

/* ==== MODAL DÉTAILS DE PRODUCTION ==== */
.production-details-modal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-100);
}

.modal-header-compact h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: 1.2rem;
}

.wine-details-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--gray-200);
}

.wine-main-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wine-title-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wine-emoji-large {
  font-size: 2.5rem;
}

.wine-name-detail {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
  font-size: 1.1rem;
}

.wine-meta-detail {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.wine-volume-detail {
  color: var(--gray-600);
  font-weight: 500;
}

.wine-rarity-detail {
  font-weight: 600;
}

.status-badge-detail {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge-detail.completed {
  background: var(--success-light);
  color: var(--success-color);
}

.status-badge-detail.in-progress {
  background: var(--warning-light);
  color: var(--warning-color);
}

.current-step-detail {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--gray-200);
}

.step-header-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.step-icon-detail {
  font-size: 1.5rem;
}

.step-text-detail h4 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
  font-size: 0.9rem;
}

.step-text-detail p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1rem;
  font-weight: 500;
}

.progress-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar-detail {
  flex: 1;
  height: 12px;
  background: var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill-detail {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 6px;
  transition: width 0.15s linear; /* Transition fluide et linéaire */
  position: relative;
  overflow: hidden;
}

/* Animation de brillance pour la barre en cours */
.progress-fill-detail:not(.completed)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s infinite;
}

.progress-fill-detail.completed {
  background: linear-gradient(90deg, var(--success-color), #4ade80);
  /* Pas d'animation pour éviter les sursauts lors des mises à jour */
}

.progress-time-detail {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.production-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 0.9rem;
  color: var(--gray-800);
  font-weight: 500;
}

.actions-detail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-detail.primary {
  background: var(--primary-color);
  color: white;
}

.action-btn-detail.primary:hover {
  background: var(--primary-dark);
}

.action-btn-detail.secondary {
  background: var(--gray-600);
  color: white;
}

.action-btn-detail.secondary:hover {
  background: var(--gray-700);
}

.action-btn-detail.success {
  background: var(--success-color);
  color: white;
}

.action-btn-detail.success:hover {
  background: #16a34a;
}

@media (max-width: 480px) {
  .production-info-grid {
    grid-template-columns: 1fr;
  }
  
  .wine-main-info {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .wine-title-detail {
    align-self: stretch;
  }
  
  .progress-detail {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .progress-time-detail {
    align-self: flex-end;
  }
}

.prod-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--gray-600);
  font-size: 1rem;
  background: var(--gray-50);
  border-radius: 12px;
  border: 2px dashed var(--gray-300);
}

.note-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.note-text {
  color: var(--gray-700);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

@media (min-width: 480px) {
  .bottles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .bottles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .bottle-option {
    min-height: 180px;
    padding: 0.5rem;
  }
}

.production-mobile-header {
  background: linear-gradient(135deg, #f0f8e8 0%, #e6f5e6 100%);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 2px solid #90ee90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== VENTES MOBILE ===== */

/* Header de vente mobile */
.vente-header-mobile {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
  border: 2px solid #fbbf24;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vente-header-content {
  flex: 1;
}

.vente-title-mobile {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vente-subtitle-mobile {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 4px 0 0 0;
}

.vente-stats-mobile {
  display: flex;
  gap: 16px;
}

.stat-item-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-item-mobile .stat-icon {
  font-size: 1.2rem;
}

.stat-item-mobile .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.stat-item-mobile .stat-label {
  font-size: 0.7rem;
  color: var(--gray-600);
}

/* Section mobile */
.vente-section-mobile {
  margin-bottom: 20px;
}

.section-title-mobile {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 1.2rem;
}

/* Carousel de vins mobile */
.vins-carousel-mobile {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
}

.vins-carousel-mobile::-webkit-scrollbar {
  height: 4px;
}

.vins-carousel-mobile::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 2px;
}

.vins-carousel-mobile::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 2px;
}

.vin-card-mobile {
  min-width: 140px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
}

.vin-card-mobile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.vin-card-mobile.selected {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fefbf3 0%, #fef3c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.vin-card-mobile.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
}

.vin-card-mobile.out-of-stock:hover {
  transform: none;
  box-shadow: none;
}

.vin-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vin-emoji-mobile {
  font-size: 2rem;
  margin-bottom: 4px;
}

.vin-info-mobile {
  text-align: center;
  width: 100%;
}

.vin-name-mobile {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  line-height: 1.2;
}

.vin-quality-mobile {
  margin-bottom: 4px;
}

.quality-stars-mobile {
  font-size: 0.9rem;
}

.vin-stock-mobile {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.vin-stock-mobile.empty {
  color: var(--error-color);
  font-weight: 600;
}

.selected-indicator-mobile {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fbbf24;
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.disabled-overlay-mobile {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Panel de configuration de vente */
.vente-config-panel {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 2px solid var(--gray-200);
}

.config-section {
  margin-bottom: 20px;
}

.config-section:last-child {
  margin-bottom: 0;
}

.config-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.config-icon {
  font-size: 1.2rem;
}

.config-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* Contrôle de quantité mobile */
.quantity-control-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  padding: 12px;
}

.qty-btn-mobile {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.qty-btn-mobile:hover {
  background: var(--gray-100);
  transform: scale(1.05);
}

.qty-btn-mobile:active {
  transform: scale(0.95);
}

.qty-display-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.qty-display-mobile #qty-value-mobile {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
}

.qty-unit {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Lieux de vente mobile */
.lieux-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lieu-card-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lieu-card-mobile:hover {
  background: var(--gray-50);
}

.lieu-card-mobile.active {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fefbf3 0%, #fef3c7 100%);
}

.lieu-emoji-mobile {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.lieu-info-mobile {
  flex: 1;
}

.lieu-name-mobile {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.lieu-bonus-mobile {
  font-size: 0.8rem;
  color: var(--success-color);
  font-weight: 600;
}

.lieu-badge-mobile {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lieu-badge-mobile.instant {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: var(--success-color);
}

.lieu-badge-mobile.delayed {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: var(--warning-color);
}

/* Résumé mobile */
.config-section.summary {
  background: linear-gradient(135deg, #f0f8e8 0%, #e6f5e6 100%);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.summary-mobile {
  margin-bottom: 16px;
}

.summary-line-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.summary-label {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.summary-quality {
  font-size: 0.8rem;
}

.summary-timing {
  font-size: 1rem;
}

.summary-empty-mobile {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  padding: 8px;
}

/* Bouton de vente mobile */
.btn-vente-mobile {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-vente-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-vente-mobile:active {
  transform: translateY(0);
}

.btn-vente-mobile:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-vente-mobile .btn-icon {
  font-size: 1.2rem;
}

.btn-vente-mobile .btn-text {
  flex: 1;
}

.btn-gain {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Message pas de vin */
.no-wine-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.no-wine-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.no-wine-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.no-wine-text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Résultat de vente mobile */
.vente-result-mobile {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  max-width: 320px;
  width: 90%;
}

.vente-success-mobile {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  border: 2px solid var(--success-color);
  animation: successPop 0.3s ease-out;
}

@keyframes successPop {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.success-content-mobile {
  text-align: center;
}

.success-icon-mobile {
  font-size: 3rem;
  margin-bottom: 16px;
}

.success-title-mobile {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--success-color);
  margin-bottom: 16px;
}

.success-details-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-wine-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 12px;
}

.success-emoji {
  font-size: 1.5rem;
}

.success-name {
  font-weight: 600;
  color: var(--gray-800);
}

.success-qty {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.success-gain-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-radius: 12px;
}

.success-gain-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--success-color);
}

.success-timing-mobile {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Liste des ventes mobiles */
.ventes-list-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vente-item-mobile {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
}

.vente-item-mobile.done {
  border-color: var(--success-color);
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.vente-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.vente-item-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.vente-item-info {
  flex: 1;
}

.vente-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.vente-item-quality {
  font-size: 0.8rem;
  margin-left: 4px;
}

.vente-item-location {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.vente-item-gain {
  text-align: right;
}

.gain-completed {
  color: var(--success-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.gain-pending {
  color: var(--warning-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.vente-item-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar-mobile {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill-mobile {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  transition: width 0.3s ease;
}

.progress-fill-mobile.completed {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.progress-text-mobile {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

/* ===== SYSTÈME DE TUTORIEL ===== */

/* Overlay principal du tutoriel */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

/* Backdrop sombre avec découpe */
.tutorial-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  pointer-events: none;
}

/* Spotlight pour mettre en évidence l'élément */
.tutorial-spotlight {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid #fbbf24;
  border-radius: 8px;
  animation: tutorialPulse 2s infinite;
  pointer-events: none;
  z-index: 10002;
}

@keyframes tutorialPulse {
  0%, 100% { 
    transform: scale(1);
    border-color: #fbbf24;
  }
  50% { 
    transform: scale(1.02);
    border-color: #f59e0b;
  }
}

/* Modal du tutoriel */
.tutorial-modal {
  position: fixed;
  width: 300px;
  max-width: 90vw;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  animation: tutorialSlideIn 0.3s ease-out;
  z-index: 10001;
}

@keyframes tutorialSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tutorial-content {
  padding: 20px;
}

.tutorial-header {
  margin-bottom: 16px;
}

.tutorial-header h3 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
}

.tutorial-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-progress .progress-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.tutorial-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  transition: width 0.3s ease;
}

.tutorial-progress .progress-text {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 600;
}

.tutorial-body {
  margin-bottom: 20px;
}

.tutorial-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray-700);
}

.tutorial-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-tutorial {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-skip {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-skip:hover {
  background: var(--gray-300);
}

.btn-prev {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-prev:hover {
  background: var(--gray-300);
}

.btn-next {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: var(--white);
}

.btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-finish {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
}

.btn-finish:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-ok {
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.btn-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tutorial-help {
  margin-top: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
  border-radius: 8px;
  border: 1px solid #f59e0b;
}

.tutorial-help p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray-800);
  font-weight: 600;
}

/* Modal de completion du tutoriel */
.tutorial-completion-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tutorial-completion-modal.show {
  opacity: 1;
}

.completion-content {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: completionBounce 0.5s ease-out;
}

@keyframes completionBounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.completion-header h2 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  color: var(--success-color);
}

.completion-body p {
  margin: 0 0 24px 0;
  color: var(--gray-700);
  font-size: 1rem;
}

.completion-reward {
  background: linear-gradient(135deg, #f0f8e8 0%, #e6f5e6 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.completion-reward h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: var(--gray-800);
}

.reward-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 1rem;
}

.reward-icon {
  font-size: 1.2rem;
}

.reward-text {
  font-weight: 600;
  color: var(--gray-800);
}

.btn-collect {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-collect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* ===== SYSTÈME DE MISSIONS ===== */

/* Notification de mission terminée */
.mission-complete-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--success-color);
  z-index: 9999;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 300px;
}

.mission-complete-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.notification-text h4 {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--success-color);
}

.notification-text p {
  margin: 0 0 8px 0;
  font-size: 0.8rem;
  color: var(--gray-700);
}

.notification-reward {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* Style pour les missions dans le modal dashboard */
.missions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-item {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 16px;
  border: 2px solid var(--gray-200);
  transition: all 0.2s ease;
}

.mission-item:hover {
  border-color: var(--primary-color);
  background: var(--white);
}

.mission-item.completed {
  border-color: var(--success-color);
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.mission-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mission-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mission-info {
  flex: 1;
}

.mission-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.mission-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.mission-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mission-progress .progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.mission-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transition: width 0.3s ease;
}

.mission-progress .progress-text {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.mission-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.mission-reward-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Responsive pour mobile */
@media (max-width: 480px) {
  .tutorial-modal {
    width: 280px;
    margin: 0 20px;
  }
  
  .completion-content {
    padding: 24px;
    margin: 0 20px;
  }
  
  .mission-complete-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .production-mobile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
  
  .production-stats-mobile {
    justify-content: space-between;
    width: 100%;
  }
}

.production-title-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-emoji {
  font-size: 2.5em;
  display: block;
}

.title-content h2 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4em;
  color: #2d5016;
  margin: 0;
}

.title-content p {
  color: #4a6741;
  margin: 0;
  font-size: 0.9em;
}

.production-stats-mobile {
  display: flex;
  gap: 16px;
}

.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.7);
  padding: 8px 12px;
  border-radius: 12px;
  min-width: 50px;
}

.stat-emoji {
  font-size: 1.2em;
  display: block;
}

.stat-value {
  font-weight: bold;
  font-size: 1.1em;
  color: #2d5016;
  display: block;
}

.stat-label {
  font-size: 0.8em;
  color: #4a6741;
  display: block;
}

.production-quick-actions {
  margin-bottom: 24px;
}

.quick-action-card {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ddd700;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.quick-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.action-icon {
  font-size: 2.5em;
  background: rgba(255,255,255,0.3);
  padding: 12px;
  border-radius: 12px;
  min-width: 60px;
  text-align: center;
}

.action-content {
  flex: 1;
}

.action-content h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3em;
  color: #8b4513;
  margin: 0 0 4px 0;
}

.action-content p {
  color: #8b4513;
  margin: 0;
  font-size: 0.9em;
  opacity: 0.8;
}

.action-arrow {
  font-size: 1.5em;
  color: #8b4513;
  opacity: 0.7;
}

.quick-action-row {
  display: flex;
  gap: 12px;
}

.quick-action-btn {
  flex: 1;
  background: linear-gradient(135deg, #e6f5e6 0%, #d4edda 100%);
  border: 2px solid #90ee90;
  border-radius: 12px;
  padding: 16px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quick-action-btn .btn-icon {
  font-size: 1.5em;
  display: block;
  margin-bottom: 4px;
}

.quick-action-btn .btn-text {
  font-size: 0.9em;
  color: #2d5016;
  font-weight: bold;
}

.production-queue-mobile {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 2px solid #e0e0e0;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.queue-header h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #2d5016;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-counter {
  background: #90ee90;
  color: #2d5016;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
}

.production-suggestions {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 2px solid #e0e0e0;
}

.production-suggestions h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #2d5016;
  margin: 0 0 16px 0;
}

/* Mobile Modal Styles */
.mobile-modal {
  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: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-modal.show {
  opacity: 1;
}

.mobile-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 5vh;
}

@media (max-width: 480px) {
  .mobile-modal-content {
    max-width: 95vw;
    width: 95vw;
    max-height: 95vh;
    border-radius: 16px;
    margin-top: 2.5vh;
  }
}

.mobile-modal.show .mobile-modal-content {
  transform: scale(1);
}

.mobile-step-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  flex-shrink: 0;
}

.back-btn, .close-btn {
  background: #f0f0f0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.back-btn:hover, .close-btn:hover {
  background: #e0e0e0;
}

.step-info {
  flex: 1;
}

.step-info h2 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4em;
  color: #2d5016;
  margin: 0 0 8px 0;
}

.step-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #90ee90 0%, #7cfc00 100%);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9em;
  color: #666;
  font-weight: bold;
}

.mobile-wine-preview {
  margin-bottom: 16px;
}

.mobile-wine-preview-empty {
  text-align: center;
  padding: 20px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.mobile-wine-preview-empty .preview-icon {
  font-size: 2em;
  margin-bottom: 8px;
  opacity: 0.5;
}

.mobile-wine-preview-filled {
  background: linear-gradient(135deg, #fff8dc 0%, #ffeaa7 100%);
  border-radius: 12px;
  padding: 16px;
  border: 2px solid #f39c12;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-wine-preview-filled .preview-icon {
  font-size: 2em;
}

.preview-content h4 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.preview-raisins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.raisin-tag {
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.9em;
  color: #8b4513;
}

.preview-quality, .preview-volume {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.quality-label, .volume-label {
  color: #8b4513;
  font-size: 0.9em;
}

.quality-value, .volume-value {
  font-weight: bold;
  color: #8b4513;
}

.mobile-inventory-section {
  margin-bottom: 16px;
  flex: 1;
  min-height: 0;
}

.mobile-inventory-section h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #2d5016;
  margin: 0 0 16px 0;
}

.mobile-raisin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

@media (max-width: 480px) {
  .mobile-raisin-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: 300px;
  }
}

.mobile-raisin-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-raisin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-raisin-card.selected {
  border-color: #90ee90;
  background: #f0f8e8;
}

.mobile-raisin-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-raisin-card .raisin-emoji {
  font-size: 2em;
  margin-bottom: 8px;
}

.mobile-raisin-card .raisin-name {
  font-weight: bold;
  color: #2d5016;
  margin-bottom: 4px;
}

.mobile-raisin-card .raisin-rarity {
  font-size: 0.8em;
  margin-bottom: 4px;
}

.mobile-raisin-card .raisin-stock {
  font-size: 0.8em;
  color: #666;
}

.selected-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #90ee90;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: bold;
}

.mobile-equipment-section {
  margin-bottom: 24px;
}

.mobile-equipment-section h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #2d5016;
  margin: 0 0 16px 0;
}

.mobile-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

@media (max-width: 480px) {
  .mobile-equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mobile-equipment-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-equipment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-equipment-card.selected {
  border-color: #90ee90;
  background: #f0f8e8;
}

.mobile-equipment-card .equipment-emoji {
  font-size: 2em;
  margin-bottom: 8px;
}

.mobile-equipment-card .equipment-name {
  font-weight: bold;
  color: #2d5016;
  margin-bottom: 4px;
  font-size: 0.9em;
}

.mobile-equipment-card .equipment-capacity {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 4px;
}

.mobile-equipment-card .equipment-bonus {
  background: #e8f5e8;
  color: #2d5016;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
}

.no-equipment {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 2px dashed #ddd;
}

.no-equipment-icon {
  font-size: 3em;
  margin-bottom: 16px;
  opacity: 0.5;
}

.mobile-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-shrink: 0;
}

/* Responsive global pour mobile */
@media (max-width: 480px) {
  .production-mobile-container {
    padding: 12px;
  }
  
  .mobile-step-container {
    padding: 20px;
  }
  
  .mobile-step-actions {
    gap: 8px;
  }
  
  .mobile-wine-preview-filled {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .quick-action-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .quick-action-btn {
    padding: 12px 8px;
  }
  
  /* Éviter le débordement horizontal */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Assurer que les pages principales ont un padding pour le footer */
  .page {
    padding-bottom: 100px;
  }
}

.mobile-btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
}

.mobile-btn.primary {
  background: linear-gradient(135deg, #90ee90 0%, #98fb98 100%);
  color: #2d5016;
}

.mobile-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-btn.secondary {
  background: #f0f0f0;
  color: #666;
}

.mobile-btn.secondary:hover {
  background: #e0e0e0;
}

.mobile-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==== STYLES POUR PRODUCTION AMÉLIORÉE (ANCIENS) ==== */
.production-header-enhanced {
  background: linear-gradient(135deg, #f0f8e8 0%, #e6f5e6 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid #90ee90;
}

.production-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8em;
  color: #2d5016;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.production-subtitle {
  color: #4a6741;
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
  text-align: center;
}

.production-controls-enhanced {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.production-button-enhanced {
  background: linear-gradient(135deg, #90ee90 0%, #98fb98 100%);
  border: 2px solid #7cfc00;
  border-radius: 16px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #2d5016;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.production-button-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.production-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.production-card-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.production-card-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.production-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.production-icon {
  font-size: 2em;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #90ee90 0%, #98fb98 100%);
}

.production-info h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3em;
  color: #2d5016;
  margin: 0 0 4px 0;
}

.production-info p {
  color: #666;
  margin: 0;
  font-size: 0.9em;
}

.production-progress-enhanced {
  background: #f0f0f0;
  border-radius: 12px;
  height: 12px;
  margin: 16px 0;
  overflow: hidden;
  position: relative;
}

.production-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #90ee90 0%, #98fb98 100%);
  border-radius: 12px;
  transition: width 0.6s ease;
}

.production-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8em;
  font-weight: bold;
  color: #333;
}

.production-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.production-action-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ddd700;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 0.9em;
  color: #8b4513;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.production-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.production-action-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ==== STYLES POUR RECETTES AMÉLIORÉES ==== */
.recettes-header-enhanced {
  background: linear-gradient(135deg, #fff8dc 0%, #ffeaa7 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid #f39c12;
}

.recettes-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8em;
  color: #8b4513;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.recettes-subtitle {
  color: #a0522d;
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
  text-align: center;
}

.recettes-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.recette-card-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.recette-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-color: #ffd700;
}

.recette-card-enhanced.locked {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.recette-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f39c12 0%, #f1c40f 100%);
  border-radius: 16px 16px 0 0;
}

.recette-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.recette-icon {
  font-size: 2.5em;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8dc 0%, #ffeaa7 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recette-info h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.recette-stars {
  color: #f39c12;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.recette-description {
  color: #666;
  margin: 0;
  font-size: 0.95em;
  line-height: 1.4;
}

.recette-ingredients {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.recette-ingredients h4 {
  font-size: 1em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingredient-item {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.85em;
  color: #666;
}

.unlock-requirement {
  background: #ffe6e6;
  border: 1px solid #ffaaaa;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 12px;
  font-size: 0.9em;
  color: #cc0000;
  text-align: center;
}

/* ==== STYLES POUR VENTES AMÉLIORÉES ==== */
.ventes-header-enhanced {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid #28a745;
}

.ventes-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8em;
  color: #155724;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.ventes-subtitle {
  color: #28a745;
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
  text-align: center;
}

.ventes-form-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ventes-form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ventes-form-label {
  font-weight: bold;
  color: #155724;
  font-size: 1.1em;
  min-width: 100px;
}

.ventes-form-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.ventes-form-input:focus {
  border-color: #28a745;
  outline: none;
}

.ventes-locations-enhanced {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.ventes-location-card {
  background: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.ventes-location-card:hover {
  border-color: #28a745;
  background: #e8f5e8;
}

.ventes-location-card.active {
  border-color: #28a745;
  background: #d4edda;
}

.location-emoji {
  font-size: 1.5em;
  margin-bottom: 8px;
}

.location-name {
  font-weight: bold;
  color: #155724;
  margin-bottom: 4px;
}

.location-description {
  font-size: 0.85em;
  color: #666;
}

.ventes-gain-display {
  background: #d4edda;
  border: 2px solid #28a745;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin: 16px 0;
}

.ventes-gain-value {
  font-size: 1.5em;
  font-weight: bold;
  color: #155724;
  margin-bottom: 4px;
}

.ventes-gain-label {
  font-size: 0.9em;
  color: #666;
}

.ventes-submit-btn {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  border: 2px solid #28a745;
  border-radius: 16px;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: white;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ventes-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.ventes-submit-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.ventes-history-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ventes-history-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4em;
  color: #155724;
  margin: 0 0 16px 0;
  text-align: center;
}

.ventes-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ventes-history-item {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.ventes-history-item:hover {
  border-color: #28a745;
  background: #e8f5e8;
}

.ventes-history-item.pending {
  border-left: 4px solid #ffc107;
}

.ventes-history-item.completed {
  border-left: 4px solid #28a745;
}

.ventes-history-emoji {
  font-size: 1.5em;
}

.ventes-history-info {
  flex: 1;
}

.ventes-history-wine {
  font-weight: bold;
  color: #155724;
  margin-bottom: 4px;
}

.ventes-history-details {
  font-size: 0.9em;
  color: #666;
}

.ventes-history-status {
  font-size: 0.9em;
  font-weight: bold;
}

.ventes-history-status.pending {
  color: #ffc107;
}

.ventes-history-status.completed {
  color: #28a745;
}

.ventes-history-empty {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 24px;
}

/* ==== RESPONSIVITÉ ==== */
@media (max-width: 768px) {
  .quick-actions,
  .shop-controls-enhanced,
  .production-controls-enhanced {
    flex-direction: column;
    align-items: center;
  }
  
  .quick-action-btn,
  .reroll-button-enhanced,
  .production-button-enhanced {
    width: 100%;
    max-width: 300px;
  }
  
  .stats-grid-enhanced,
  .modules-grid-enhanced,
  .shop-grid-enhanced,
  .production-grid-enhanced,
  .recettes-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ventes-form-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ventes-form-label {
    min-width: auto;
  }
  
  .ventes-locations-enhanced {
    flex-direction: column;
  }
  
  .ventes-location-card {
    min-width: auto;
  }
}

/* ==== STYLES MANQUANTS POUR DASHBOARD ==== */
.stat-card-enhanced.primary {
  border-color: #ffd700;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
}

.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.action-card-large {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.action-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-color: #ffd700;
}

.action-card-large.primary {
  border-color: #ffd700;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
}

.action-icon-large {
  font-size: 2.5em;
  margin-bottom: 12px;
}

.action-content-large h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.action-content-large p {
  color: #666;
  margin: 0;
  font-size: 0.9em;
}

.modal-enhanced {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-enhanced.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop-enhanced {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modal-container-enhanced {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-enhanced.open .modal-container-enhanced {
  transform: scale(1);
}

.modal-container-enhanced.large {
  max-width: 700px;
}

.modal-header-enhanced {
  background: linear-gradient(135deg, #f8f4e6 0%, #e8dfc7 100%);
  padding: 24px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f0e68c;
}

.modal-header-enhanced h2 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5em;
  color: #8b4513;
  margin: 0;
}

.modal-close-enhanced {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #8b4513;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-close-enhanced:hover {
  background: rgba(0,0,0,0.1);
}

.modal-body-enhanced {
  padding: 24px;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-avatar {
  font-size: 3em;
  padding: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0e68c 0%, #ddd700 100%);
}

.profile-info h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3em;
  color: #8b4513;
  margin: 0 0 4px 0;
}

.profile-domain {
  color: #666;
  font-size: 0.9em;
  margin: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.profile-stat {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.profile-stat .stat-label {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 4px;
}

.profile-stat .stat-value {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.profile-achievements h4 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #8b4513;
  margin-bottom: 12px;
}

.achievements-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.achievement-item {
  background: #f8f8f8;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.achievement-item.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.achievement-icon {
  font-size: 1.5em;
  margin-bottom: 4px;
}

.achievement-name {
  font-size: 0.8em;
  color: #666;
}

.missions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-item-enhanced {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mission-icon {
  font-size: 2em;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0e68c 0%, #ddd700 100%);
}

.mission-content {
  flex: 1;
}

.mission-content h4 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.mission-progress {
  margin-bottom: 8px;
}

.mission-progress .progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.mission-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  transition: width 0.6s ease;
}

.progress-text {
  font-size: 0.9em;
  color: #666;
}

.mission-reward {
  font-size: 0.9em;
  color: #28a745;
  font-weight: bold;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

.mail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mail-item {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mail-icon {
  font-size: 1.5em;
  margin-top: 4px;
}

.mail-content {
  flex: 1;
}

.mail-content h4 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.mail-content p {
  margin: 0 0 8px 0;
  color: #666;
}

.mail-date {
  font-size: 0.8em;
  color: #999;
}

.patch-notes {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.patch-note {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 12px;
}

.patch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.patch-header h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #8b4513;
  margin: 0;
}

.patch-date {
  font-size: 0.9em;
  color: #666;
}

.patch-content h4 {
  font-size: 1em;
  color: #8b4513;
  margin: 16px 0 8px 0;
}

.patch-content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.patch-content li {
  margin-bottom: 4px;
  color: #666;
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.equipment-item-enhanced {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.equipment-icon {
  font-size: 2em;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0e68c 0%, #ddd700 100%);
}

.equipment-info {
  flex: 1;
}

.equipment-info h4 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #8b4513;
  margin: 0 0 4px 0;
}

.equipment-quantity {
  font-size: 0.9em;
  color: #666;
}

.objective-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.objective-card {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.objective-icon {
  font-size: 2em;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0e68c 0%, #ddd700 100%);
}

.objective-content {
  flex: 1;
}

.objective-content h3 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.objective-content p {
  margin: 0 0 16px 0;
  color: #666;
}

.objective-progress {
  margin-bottom: 8px;
}

.progress-bar.large {
  height: 16px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.progress-stats .reward {
  color: #28a745;
  font-weight: bold;
}

.objectives-tips {
  background: #e8f4f8;
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid #2196f3;
}

.objectives-tips h4 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #1976d2;
  margin: 0 0 8px 0;
}

.objectives-tips ul {
  margin: 0;
  padding-left: 20px;
}

.objectives-tips li {
  margin-bottom: 4px;
  color: #666;
}

.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.success-toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.2em;
}

.toast-message {
  font-size: 0.9em;
}

/* ==== STYLES MANQUANTS POUR BOUTIQUE ==== */
.shop-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.rotation-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  padding: 8px 16px;
  border-radius: 12px;
  border: 2px solid #ddd;
}

.timer-icon {
  font-size: 1.2em;
}

.timer-text {
  font-weight: bold;
  color: #666;
}

.reroll-btn-enhanced {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ddd700;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 0.9em;
  color: #8b4513;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reroll-btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reroll-btn-enhanced.reroll-animation {
  animation: rerollPulse 1s ease;
}

@keyframes rerollPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.reroll-icon {
  font-size: 1.1em;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.reroll-price {
  font-size: 0.8em;
  background: rgba(255,255,255,0.3);
  padding: 2px 6px;
  border-radius: 6px;
}

.tab-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-emoji {
  font-size: 1.2em;
}

.tab-name {
  font-weight: bold;
}

.tab-count {
  background: rgba(255,255,255,0.3);
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 0.8em;
  min-width: 20px;
  text-align: center;
}

.shop-filters-enhanced {
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrapper-shop {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.shop-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.shop-search-input:focus {
  border-color: #ffd700;
  outline: none;
}

.search-icon-shop {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #666;
}

.rarity-filter-select {
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1em;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.rarity-filter-select:focus {
  border-color: #ffd700;
  outline: none;
}

.shop-content-enhanced {
  margin-bottom: 24px;
}

.shop-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.shop-card-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.shop-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-color: #ffd700;
}

.shop-card-enhanced.out-of-stock {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.shop-card-enhanced.filtered-out {
  display: none;
}

.card-header-enhanced {
  padding: 16px 16px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.item-emoji-enhanced {
  font-size: 2.5em;
  margin-bottom: 8px;
}

.rarity-badge-enhanced {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
  text-align: center;
  min-width: 60px;
}

.rarity-badge-enhanced .stars {
  display: block;
  margin-bottom: 2px;
}

.rarity-badge-enhanced .rarity-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content-enhanced {
  padding: 0 16px 16px 16px;
}

.item-name-enhanced {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3em;
  color: #8b4513;
  margin: 0 0 8px 0;
  text-align: center;
}

.item-description {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.price-section-enhanced {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.price-section-enhanced.single-price {
  justify-content: center;
}

.price-option {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f8f8f8;
}

.price-option.primary {
  background: #fff9e6;
  color: #8b4513;
}

.price-option.secondary {
  background: #f0f8ff;
  color: #4682b4;
}

.price-divider {
  font-size: 0.8em;
  color: #999;
}

.currency-icon {
  font-size: 1.1em;
}

.price-value {
  font-size: 1.1em;
}

.stock-info-enhanced {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 16px;
}

.stock-value.empty {
  color: #dc3545;
  font-weight: bold;
}

.card-footer-enhanced {
  padding: 0 16px 16px 16px;
}

.buy-btn-enhanced {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ddd700;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1em;
  color: #8b4513;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.buy-btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.buy-btn-enhanced.disabled,
.buy-btn-enhanced:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.card-glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.shop-card-enhanced:hover .card-glow-effect {
  opacity: 1;
}

.region-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
  background: #4682b4;
  text-align: center;
}

.region-card {
  border-color: #4682b4;
}

.empty-state-enhanced {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 3em;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 0.9em;
  color: #999;
}

.modal-title-section {
  text-align: center;
  flex: 1;
}

.modal-item-emoji {
  font-size: 3em;
  margin-bottom: 8px;
}

.modal-item-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.modal-rarity-info {
  display: flex;
  justify-content: center;
}

.rarity-badge-modal {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  color: white;
  text-align: center;
}

.region-badge-modal {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  color: white;
  background: #4682b4;
  text-align: center;
}

.modal-description {
  font-size: 1.1em;
  color: #666;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.info-card.out-of-stock {
  background: #ffebee;
  border: 2px solid #ffcdd2;
}

.info-label {
  font-weight: bold;
  color: #8b4513;
  margin-bottom: 8px;
}

.info-content {
  font-size: 1.1em;
  color: #333;
}

.price-options-modal {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.price-options-modal .price-option {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  background: #f0f0f0;
}

.price-single {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #8b4513;
}

.stock-number {
  font-size: 1.2em;
  font-weight: bold;
  color: #28a745;
}

.stock-number.empty {
  color: #dc3545;
}

.modal-footer-enhanced {
  padding: 24px;
  border-top: 1px solid #eee;
  background: #f8f8f8;
  border-radius: 0 0 20px 20px;
}

.modal-actions-enhanced {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.action-btn-enhanced {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-btn-enhanced.primary {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  color: white;
}

.action-btn-enhanced.secondary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.action-btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.action-btn-enhanced:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-icon {
  font-size: 1.1em;
}

.btn-text {
  font-size: 0.9em;
}

.cancel-btn-enhanced {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  width: 100%;
}

.cancel-btn-enhanced:hover {
  background: #5a6268;
}

.purchase-success-effect {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #28a745;
  color: white;
  padding: 20px 30px;
  border-radius: 16px;
  font-size: 1.2em;
  font-weight: bold;
  z-index: 2000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: successPulse 2s ease;
}

@keyframes successPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

.shop-refresh-animation {
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

/* ==== STYLES MANQUANTS POUR PRODUCTION ==== */
.production-header {
  background: linear-gradient(135deg, #f0f8e8 0%, #e6f5e6 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid #90ee90;
  text-align: center;
}

.production-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8em;
  color: #2d5016;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.production-subtitle {
  color: #4a6741;
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
}

.title-icon {
  font-size: 1.2em;
  margin-right: 8px;
}

.production-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.prod-btn-main {
  background: linear-gradient(135deg, #90ee90 0%, #98fb98 100%);
  border: 2px solid #7cfc00;
  border-radius: 16px;
  padding: 20px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #2d5016;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.prod-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.prod-btn-main .btn-icon {
  font-size: 1.5em;
}

.prod-btn-main .btn-text {
  font-size: 1.1em;
}

.prod-btn-main .btn-subtitle {
  font-size: 0.8em;
  color: #4a6741;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: normal;
}

.prod-btn-secondary {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ddd700;
  border-radius: 16px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1em;
  color: #8b4513;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.prod-queue.enhanced {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prod-card.enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.prod-card.enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.modal-bg.enhanced {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal-content.modal-nice.enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 20px;
  padding: 32px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-bg.enhanced .modal-content.modal-nice.enhanced {
  transform: scale(1);
}

.modal-show {
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-hide {
  animation: modalSlideOut 0.3s ease;
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

.modal-success {
  animation: modalSuccess 0.5s ease;
}

@keyframes modalSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); background: #d4edda; }
  100% { transform: scale(1); }
}

.prep-step-header {
  text-align: center;
  margin-bottom: 24px;
}

.prep-step-header h2 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5em;
  color: #2d5016;
  margin: 0 0 16px 0;
}

.step-icon {
  font-size: 1.2em;
  margin-right: 8px;
}

.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.3s ease;
}

.step-dot.active {
  background: #90ee90;
}

.step-dot.completed {
  background: #28a745;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: #ddd;
  transition: background 0.3s ease;
}

.step-connector.active {
  background: #90ee90;
}

.step-connector.completed {
  background: #28a745;
}

.wine-preview-panel {
  margin-bottom: 24px;
}

.wine-preview {
  background: linear-gradient(135deg, #f8f4e6 0%, #e8dfc7 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #f0e68c;
  text-align: center;
}

.wine-preview.empty {
  background: #f8f9fa;
  border-color: #dee2e6;
}

.wine-preview.filled {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
  border-color: #ffd700;
}

.wine-preview.animated {
  animation: winePreviewPulse 2s ease infinite;
}

@keyframes winePreviewPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-icon {
  font-size: 2em;
}

.preview-icon.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.preview-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3em;
  color: #8b4513;
  margin: 0;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wine-name {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4em;
  color: #8b4513;
  margin-bottom: 8px;
}

.wine-rarity {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 4px;
}

.wine-grapes {
  font-size: 1em;
  color: #666;
  margin-bottom: 4px;
}

.wine-volume {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
}

.wine-status {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wine-status.appellation {
  background: #d4edda;
  color: #155724;
}

.wine-status.custom {
  background: #e2e3e5;
  color: #383d41;
}

.status-icon {
  font-size: 1.1em;
}

.preview-text {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 8px;
}

.preview-hint {
  font-size: 0.9em;
  color: #999;
  font-style: italic;
}

.transformation-line.enhanced {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #dee2e6;
  overflow-x: auto;
}

.transf-step.enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  text-align: center;
}

.transf-emoji-container {
  position: relative;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #ddd;
}

.transf-emoji {
  font-size: 1.5em;
}

.rarity-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

.transf-name {
  font-size: 0.8em;
  color: #666;
  font-weight: bold;
}

.prep-section {
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #2d5016;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 1.3em;
}

.section-hint {
  font-size: 0.8em;
  color: #666;
  font-weight: normal;
  margin-left: auto;
}

.prep-inv-raisins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.prep-raisin-card {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prep-raisin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.prep-raisin-card.selected {
  border-color: #90ee90;
  background: linear-gradient(135deg, #f0f8e8 0%, #e6f5e6 100%);
}

.prep-raisin-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prep-raisin-card.out-of-stock {
  opacity: 0.3;
  filter: grayscale(1);
}

.prep-raisin-card.animate-select {
  animation: cardSelect 0.3s ease;
}

@keyframes cardSelect {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.raisin-emoji {
  font-size: 2em;
  margin-bottom: 8px;
}

.raisin-name {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #2d5016;
  margin-bottom: 8px;
}

.raisin-rarity {
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 8px;
}

.raisin-stock {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
}

.raisin-stock.empty {
  color: #dc3545;
  font-weight: bold;
}

.selected-indicator {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8em;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 8px;
  right: 8px;
}

.check-icon {
  font-size: 1.1em;
}

.disabled-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  color: #999;
}

.prep-inv-equips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.prep-equip-card {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.prep-equip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: #90ee90;
}

.equip-emoji {
  font-size: 2em;
  margin-bottom: 8px;
}

.equip-name {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #2d5016;
  margin-bottom: 8px;
}

.equip-capacity {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
}

.equip-status {
  font-size: 0.9em;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px;
}

.equip-status.available {
  background: #d4edda;
  color: #155724;
}

.no-equipment {
  text-align: center;
  padding: 40px;
  color: #666;
  grid-column: 1 / -1;
}

.no-equipment-icon {
  font-size: 3em;
  margin-bottom: 16px;
}

.no-equipment-text {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.no-equipment-hint {
  font-size: 0.9em;
  color: #999;
}

.prep-etapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.prep-etape-card {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.prep-etape-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: #90ee90;
}

.etape-emoji {
  font-size: 2em;
  margin-bottom: 8px;
}

.etape-name {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #2d5016;
  margin-bottom: 8px;
}

.etape-desc {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
}

.etape-requirement {
  font-size: 0.8em;
  color: #999;
  font-style: italic;
}

.prep-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.selection-summary {
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.summary-label {
  font-weight: bold;
  color: #2d5016;
}

.summary-value {
  font-weight: bold;
  color: #666;
}

.summary-value.complete {
  color: #28a745;
}

.prep-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.prep-btn-next {
  background: linear-gradient(135deg, #90ee90 0%, #98fb98 100%);
  border: 2px solid #7cfc00;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1em;
  color: #2d5016;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prep-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.prep-btn-next.disabled,
.prep-btn-next:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.prep-btn-back {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  border: 2px solid #5a6268;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1em;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prep-btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.prep-btn-cancel {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: 2px solid #c82333;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1em;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prep-btn-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.progress-outer.enhanced {
  background: #f0f0f0;
  border-radius: 12px;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.progress-inner.enhanced {
  height: 100%;
  background: linear-gradient(90deg, #90ee90 0%, #98fb98 100%);
  border-radius: 12px;
  transition: width 0.6s ease;
}

.progress-inner.enhanced.done {
  background: linear-gradient(90deg, #28a745 0%, #34ce57 100%);
}

.vinif-action-btn.enhanced {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ddd700;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 0.9em;
  color: #8b4513;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-right: 8px;
  margin-bottom: 8px;
}

.vinif-action-btn.enhanced:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vinif-action-btn.enhanced.success {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  border-color: #28a745;
  color: white;
}

/* ==== STYLES MANQUANTS POUR RECETTES ==== */
.recettes-header-enhanced {
  background: linear-gradient(135deg, #fff8dc 0%, #ffeaa7 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid #f39c12;
}

.recettes-title-enhanced {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8em;
  color: #8b4513;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.recettes-subtitle-enhanced {
  color: #a0522d;
  font-size: 1.1em;
  margin: 0 0 16px 0;
  opacity: 0.9;
  text-align: center;
}

.progress-section {
  text-align: center;
}

.progress-info {
  margin-bottom: 8px;
  font-size: 0.9em;
  color: #666;
}

.progress-bar-wrapper {
  display: flex;
  justify-content: center;
}

.progress-bar-recipes {
  width: 200px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill-recipes {
  height: 100%;
  background: linear-gradient(90deg, #f39c12 0%, #f1c40f 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.recettes-filters-enhanced {
  margin-bottom: 24px;
}

.filter-section {
  margin-bottom: 16px;
}

.filter-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #8b4513;
  margin-bottom: 12px;
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-filter {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-filter.active {
  background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
  border-color: #f39c12;
  color: white;
}

.filter-emoji {
  font-size: 1.1em;
}

.filter-name {
  font-weight: bold;
}

.filter-count {
  background: rgba(255,255,255,0.3);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.8em;
  min-width: 18px;
  text-align: center;
}

.search-section {
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.recipe-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.recipe-search-input:focus {
  border-color: #f39c12;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #666;
}

.recettes-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.recipe-card-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 16px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.recipe-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-color: #f39c12;
}

.recipe-card-enhanced.locked {
  opacity: 0.7;
  filter: grayscale(0.3);
}

.recipe-card-enhanced.unlocked {
  cursor: pointer;
}

.recipe-card-header {
  padding: 16px 16px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.recipe-status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
  text-align: center;
  min-width: 30px;
}

.recipe-status-badge.unlocked {
  background: #28a745;
}

.recipe-status-badge.locked {
  background: #6c757d;
}

.recipe-category-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
  text-align: center;
}

.recipe-card-content {
  padding: 16px;
  text-align: center;
}

.recipe-icon-enhanced {
  font-size: 2.5em;
  margin-bottom: 12px;
}

.recipe-name-enhanced {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3em;
  color: #8b4513;
  margin: 0 0 16px 0;
}

.recipe-details {
  margin-bottom: 16px;
}

.recipe-complexity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.complexity-label {
  font-size: 0.9em;
  color: #666;
}

.complexity-stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1.1em;
}

.star.filled {
  color: #f39c12;
}

.star.empty {
  color: #ddd;
}

.recipe-grapes-preview {
  margin-bottom: 12px;
}

.grapes-label {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.grapes-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.grape-chip {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.8em;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.grape-chip.more {
  background: #e0e0e0;
  color: #999;
}

.recipe-card-footer {
  padding: 0 16px 16px 16px;
  text-align: center;
}

.view-details {
  color: #f39c12;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
}

.recipe-locked-content {
  text-align: center;
  padding: 20px;
}

.locked-message {
  font-size: 1em;
  color: #666;
  margin-bottom: 8px;
}

.locked-hint {
  font-size: 0.9em;
  color: #999;
  font-style: italic;
}

.no-recipes-enhanced {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  grid-column: 1 / -1;
}

.no-recipes-icon {
  font-size: 3em;
  margin-bottom: 16px;
}

.no-recipes-text {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.no-recipes-hint {
  font-size: 0.9em;
  color: #999;
}

.recipe-modal-enhanced {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.recipe-modal-enhanced.open {
  opacity: 1;
  visibility: visible;
}

.recipe-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.recipe-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.recipe-modal-enhanced.open .recipe-modal-content {
  transform: scale(1);
}

.recipe-modal-header {
  background: linear-gradient(135deg, #fff8dc 0%, #ffeaa7 100%);
  padding: 24px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f39c12;
}

.recipe-modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #8b4513;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.recipe-modal-close:hover {
  background: rgba(0,0,0,0.1);
}

.recipe-modal-title-section {
  text-align: center;
  flex: 1;
}

.recipe-modal-icon {
  font-size: 2.5em;
  margin-bottom: 8px;
}

.recipe-modal-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5em;
  color: #8b4513;
  margin: 0 0 8px 0;
}

.recipe-modal-category {
  display: flex;
  justify-content: center;
}

.category-chip {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  color: white;
  text-align: center;
}

.recipe-modal-body {
  padding: 24px;
}

.recipe-modal-section {
  margin-bottom: 24px;
}

.recipe-section-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #8b4513;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recipe-step-card {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-number {
  background: #f39c12;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.step-icon {
  font-size: 1.5em;
}

.step-content {
  flex: 1;
}

.step-name {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #8b4513;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.9em;
  color: #666;
}

.recipe-grapes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.recipe-grape-item {
  background: #f8f8f8;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #ddd;
}

.grape-emoji {
  font-size: 1.5em;
}

.grape-name {
  font-weight: bold;
  color: #2d5016;
}

.recipe-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.info-item {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.info-label {
  font-weight: bold;
  color: #8b4513;
  margin-bottom: 8px;
}

.info-value {
  font-size: 1.1em;
  color: #333;
}

/* ==== STYLES MANQUANTS POUR VENTES ==== */
.vente-header-enhanced {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid #28a745;
}

.vente-title-enhanced {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8em;
  color: #155724;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.vente-subtitle-enhanced {
  color: #28a745;
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
  text-align: center;
}

.vente-section-enhanced {
  margin-bottom: 24px;
}

.section-title-enhanced {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.2em;
  color: #155724;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vins-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.vin-card-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.vin-card-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.vin-card-enhanced.selected {
  border-color: #28a745;
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.vin-card-enhanced.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.vin-card-enhanced.animate-select {
  animation: vinCardSelect 0.3s ease;
}

@keyframes vinCardSelect {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.vin-emoji-enhanced {
  font-size: 2em;
  margin-bottom: 8px;
}

.vin-name-enhanced {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #155724;
  margin-bottom: 8px;
}

.vin-quality-enhanced {
  margin-bottom: 8px;
}

.quality-stars {
  font-size: 1.1em;
  font-weight: bold;
}

.vin-stock-enhanced {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
}

.vin-stock-enhanced.empty {
  color: #dc3545;
  font-weight: bold;
}

.selected-indicator-enhanced {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8em;
  font-weight: bold;
  position: absolute;
  top: 8px;
  right: 8px;
}

.disabled-overlay-enhanced {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  color: #999;
}

.no-vins-enhanced {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  grid-column: 1 / -1;
}

.no-vins-icon {
  font-size: 3em;
  margin-bottom: 16px;
}

.no-vins-text {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.no-vins-hint {
  font-size: 0.9em;
  color: #999;
}

.vente-preview-panel-enhanced {
  margin-bottom: 24px;
}

.vente-preview-enhanced {
  background: linear-gradient(135deg, #f8f4e6 0%, #e8dfc7 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #f0e68c;
  text-align: center;
}

.vente-preview-enhanced.empty {
  background: #f8f9fa;
  border-color: #dee2e6;
}

.vente-preview-enhanced.filled {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border-color: #28a745;
}

.preview-header-enhanced {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-details-enhanced {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-item-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
}

.preview-item-enhanced.highlight {
  background: rgba(40,167,69,0.1);
  border: 1px solid rgba(40,167,69,0.3);
}

.preview-label {
  font-weight: bold;
  color: #666;
}

.preview-value {
  font-weight: bold;
  color: #333;
}

.preview-value-gain {
  font-weight: bold;
  color: #28a745;
  font-size: 1.1em;
}

.preview-timing-enhanced {
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  font-size: 0.9em;
  color: #666;
}

.quantity-controls-enhanced {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.qty-btn-enhanced {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn-enhanced:hover {
  background: #218838;
  transform: scale(1.1);
}

.qty-btn-enhanced:active {
  transform: scale(0.95);
}

.qty-display-enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qty-input-enhanced {
  width: 60px;
  text-align: center;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
}

.qty-label {
  font-size: 0.9em;
  color: #666;
}

.stock-info-enhanced {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9em;
  color: #666;
}

.stock-icon {
  font-size: 1.1em;
}

.lieux-vente-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.lieu-card-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.lieu-card-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.lieu-card-enhanced.active {
  border-color: #28a745;
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.lieu-header-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.lieu-emoji-large {
  font-size: 2em;
}

.lieu-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
  text-align: center;
}

.lieu-badge.instant {
  background: #28a745;
}

.lieu-badge.delayed {
  background: #ffc107;
  color: #212529;
}

.lieu-name-enhanced {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #155724;
  margin-bottom: 8px;
}

.lieu-description-enhanced {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
}

.lieu-bonus-enhanced {
  font-size: 0.9em;
  color: #28a745;
  font-weight: bold;
}

.vente-summary-panel-enhanced {
  margin-bottom: 24px;
}

.summary-content-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.summary-gain-enhanced {
  margin-bottom: 16px;
}

.gain-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gain-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
}

.gain-line.total {
  background: rgba(40,167,69,0.1);
  border: 1px solid rgba(40,167,69,0.3);
}

.gain-value {
  font-weight: bold;
  color: #333;
}

.gain-value-total {
  font-weight: bold;
  color: #28a745;
  font-size: 1.1em;
}

.vente-btn-action-enhanced {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  border: 2px solid #28a745;
  border-radius: 16px;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  width: 100%;
}

.vente-btn-action-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.vente-btn-action-enhanced:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.vente-result-panel-enhanced {
  margin-bottom: 24px;
}

.vente-success-enhanced {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  animation: successSlideIn 0.5s ease;
}

@keyframes successSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  font-size: 2em;
  margin-bottom: 8px;
}

.success-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3em;
  color: #155724;
  margin-bottom: 12px;
}

.success-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.success-line {
  font-size: 1em;
  color: #155724;
}

.success-line.gain {
  font-weight: bold;
  color: #28a745;
  font-size: 1.1em;
}

.success-timing {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}

.ventes-histo-container-enhanced {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ventes-histo-empty-enhanced {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.vente-histo-tile-enhanced {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  animation: histoSlideIn 0.5s ease;
}

@keyframes histoSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.vente-histo-tile-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.vente-histo-tile-enhanced.pending {
  border-left: 4px solid #ffc107;
}

.vente-histo-tile-enhanced.done {
  border-left: 4px solid #28a745;
}

.histo-icon {
  font-size: 1.5em;
  padding: 8px;
  border-radius: 50%;
  background: #f8f9fa;
}

.histo-content {
  flex: 1;
}

.histo-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.1em;
  color: #155724;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quality-indicator {
  font-size: 0.9em;
  font-weight: bold;
}

.histo-location {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
}

.progress-bar-enhanced {
  background: #f0f0f0;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill-enhanced {
  height: 100%;
  background: linear-gradient(90deg, #ffc107 0%, #ffed4e 100%);
  border-radius: 8px;
  transition: width 0.6s ease;
}

.progress-fill-enhanced.completed {
  background: linear-gradient(90deg, #28a745 0%, #34ce57 100%);
}

.progress-text-enhanced {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8em;
  font-weight: bold;
  color: #333;
}

.histo-gain {
  text-align: center;
  font-size: 0.9em;
}

.gain-completed {
  color: #28a745;
  font-weight: bold;
}

.gain-pending {
  color: #ffc107;
  font-weight: bold;
}

/* ==== ANIMATIONS GLOBALES ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease;
}

.animate-slide-in {
  animation: slideInUp 0.6s ease;
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* ==== RESPONSIVE AMÉLIORÉ ==== */
@media (max-width: 768px) {
  .dashboard-actions-grid,
  .shop-grid-enhanced,
  .vins-grid-enhanced,
  .lieux-vente-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-container-enhanced {
    max-width: 95vw;
    margin: 20px;
  }
  
  .category-filters {
    justify-content: flex-start;
  }
  
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-wrapper,
  .search-wrapper-shop {
    max-width: none;
  }
  
  .quantity-controls-enhanced {
    gap: 8px;
  }
  
  .qty-btn-enhanced {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }
  
  .prep-actions {
    flex-direction: column;
  }
  
  .prep-btn-next,
  .prep-btn-back,
  .prep-btn-cancel {
    width: 100%;
    justify-content: center;
  }
}

/* ============ STYLES ENHANCED COMPLETS ============ */

/* Animation globales */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* Utility classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Focus states améliorés */
*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Transitions globales */
* {
  transition: all 0.2s ease;
}

/* États de loading */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Badges et labels */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.badge-success {
  background-color: #10b981;
  color: white;
}

.badge-warning {
  background-color: #f59e0b;
  color: white;
}

.badge-danger {
  background-color: #ef4444;
  color: white;
}

.badge-info {
  background-color: #3b82f6;
  color: white;
}

/* Améliorations des cartes existantes */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Amélioration des boutons existants */
.bottom-btn {
  transition: all 0.3s ease;
}

.bottom-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive breakpoints */
@media (max-width: 480px) {
  .dashboard-header-enhanced,
  .boutique-header-enhanced,
  .production-header,
  .recettes-header-enhanced,
  .vente-header-enhanced {
    padding: 1.5rem 1rem;
  }
  
  .welcome-title,
  .boutique-title,
  .production-title,
  .recettes-title-enhanced,
  .vente-title-enhanced {
    font-size: 2rem;
  }
  
  .stats-grid-enhanced,
  .dashboard-actions-grid,
  .shop-grid-enhanced,
  .recettes-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .modal-container-enhanced {
    width: 95%;
    margin: 0.5rem;
  }
  
  .quick-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .shop-tabs-enhanced {
    flex-direction: column;
  }
  
  .category-filters {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .production-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Dark mode support (pour l'avenir) */
@media (prefers-color-scheme: dark) {
  /* Dark mode sera implémenté plus tard */
}

/* Print styles */
@media print {
  .dashboard-header-enhanced,
  .boutique-header-enhanced,
  .production-header,
  .recettes-header-enhanced,
  .vente-header-enhanced {
    background: white !important;
    color: black !important;
  }
  
  .modal-enhanced {
    display: none !important;
  }
  
  .bottom-bar {
    display: none !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .shop-card-enhanced,
  .recipe-card-enhanced,
  .vin-card-enhanced,
  .lieu-card-enhanced {
    border-width: 3px;
  }
  
  .modal-enhanced {
    border: 3px solid #000;
  }
}

/* Styles pour l'amélioration progressive */
.js-enabled .no-js-fallback {
  display: none;
}

.no-js .js-only {
  display: none;
}

/* Corrections finales pour compatibilité */
.enhanced-module {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.enhanced-module.loaded {
  opacity: 1;
}

/* Corrections spécifiques pour les modules */
#domaine.enhanced,
#boutique.enhanced,
#production.enhanced,
#recettes.enhanced,
#vente.enhanced {
  animation: fadeIn 0.5s ease-out;
}

/* Optimisations performances */
.card-list,
.shop-grid-enhanced,
.recettes-grid-enhanced,
.vins-grid-enhanced {
  will-change: transform;
}

/* Corrections pour les états de chargement */
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: #6b7280;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Corrections pour les alertes et notifications */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: #d1fae5;
  border-color: #a7f3d0;
  color: #065f46;
}

.alert-warning {
  background-color: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.alert-error {
  background-color: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-info {
  background-color: #dbeafe;
  border-color: #bfdbfe;
  color: #1e40af;
}

/* Corrections pour les formulaires */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Corrections pour les listes */
.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Corrections pour les tableaux */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.table th {
  font-weight: 600;
  background-color: #f8fafc;
}

/* Corrections pour les icônes */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Corrections pour les espacements */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

/* Corrections pour les couleurs de texte */
.text-primary { color: #3b82f6; }
.text-secondary { color: #6b7280; }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }

/* Corrections pour les arrière-plans */
.bg-primary { background-color: #3b82f6; }
.bg-secondary { background-color: #6b7280; }
.bg-success { background-color: #10b981; }
.bg-warning { background-color: #f59e0b; }
.bg-danger { background-color: #ef4444; }

/* Corrections pour les bordures */
.border { border: 1px solid #e2e8f0; }
.border-0 { border: 0; }
.border-top { border-top: 1px solid #e2e8f0; }
.border-bottom { border-bottom: 1px solid #e2e8f0; }

.rounded { border-radius: 0.375rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Corrections pour l'affichage */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Corrections pour flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

/* Corrections pour les positions */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Corrections pour les z-index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Corrections pour les ombres */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Corrections pour les transitions */
.transition-all { transition: all 0.15s ease-in-out; }
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
.transition-opacity { transition: opacity 0.15s ease-in-out; }
.transition-transform { transition: transform 0.15s ease-in-out; }

/* Corrections pour les transformations */
.transform { transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Corrections pour les opacités */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Corrections pour les curseurs */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* Corrections pour les interactions utilisateur */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Corrections pour les dépassements */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Corrections pour les largeurs */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }

/* Corrections pour les hauteurs */
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-fit { height: fit-content; }

/* Corrections pour les tailles minimales */
.min-w-0 { min-width: 0; }
.min-h-0 { min-height: 0; }
.min-h-screen { min-height: 100vh; }

/* Corrections pour les tailles maximales */
.max-w-none { max-width: none; }
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }

/* Corrections pour les alignements texte */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Corrections pour les poids de police */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Corrections pour les tailles de police */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* Corrections pour les hauteurs de ligne */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* Corrections pour les styles de liste */
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }

/* Corrections pour les décorations de texte */
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }

/* Corrections pour les transformations de texte */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* Corrections pour les espaces entre lettres */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Corrections pour les espaces entre mots */
.whitespace-normal { white-space: normal; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* Corrections pour les césures */
.break-normal { word-break: normal; overflow-wrap: normal; }
.break-words { overflow-wrap: break-word; }
.break-all { word-break: break-all; }

/* Corrections pour les troncatures */
.truncate { 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

/* Corrections pour les alignements verticaux */
.align-baseline { vertical-align: baseline; }
.align-top { vertical-align: top; }
.align-middle { vertical-align: middle; }
.align-bottom { vertical-align: bottom; }
.align-text-top { vertical-align: text-top; }
.align-text-bottom { vertical-align: text-bottom; }

/* Corrections de dernière minute pour assurer la cohérence */
.enhanced-ready {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.enhanced-loading {
  opacity: 0.5;
  transform: translateY(10px);
}

/* ============ BOUTIQUE ULTRA-MODERNE ============ */

/* Header Ultra-Moderne */
.boutique-header-ultra-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.header-background-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 50px;
  height: 50px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.shape-2 {
  width: 35px;
  height: 35px;
  top: 65%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 25px;
  height: 25px;
  bottom: 25%;
  left: 75%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 15px 12px;
}

.boutique-title-section-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.title-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.title-icon-large {
  font-size: 2rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

.title-text {
  flex: 1;
}

.boutique-title-modern {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.2rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(45deg, #fff, #f0f0f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.boutique-subtitle-modern {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: none;
}

.player-currencies {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.currency-display {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 8px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 60px;
}

.currency-icon {
  font-size: 1rem;
}

.currency-amount {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

/* Mobile responsive adjustments for boutique header */
@media (max-width: 400px) {
  .boutique-title-section-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .title-container {
    width: 100%;
  }
  
  .player-currencies {
    width: 100%;
    justify-content: flex-end;
  }
  
  .boutique-title-modern {
    font-size: 1.2rem;
  }
  
  .title-icon-large {
    font-size: 1.8rem;
  }
  
  .boutique-subtitle-modern {
    display: none;
  }
}

.shop-status-bar-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.rotation-info-modern {
  flex: 1;
  min-width: 300px;
}

.timer-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timer-icon-modern {
  font-size: 1.5rem;
  opacity: 0.9;
}

.timer-content {
  flex: 1;
}

.timer-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.timer-text-modern {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.rotation-progress {
  width: 100%;
}

.progress-bar-timer {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill-timer {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 4px;
  transition: width 1s ease;
  width: 100%;
}

.shop-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.reroll-btn-modern {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  overflow: hidden;
  position: relative;
}

.reroll-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.reroll-btn-modern:active {
  transform: translateY(0);
}

.btn-icon-container {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reroll-icon-modern {
  font-size: 1.5rem;
  animation: none;
  transition: transform 0.3s ease;
}

.reroll-btn-modern:hover .reroll-icon-modern {
  transform: rotate(180deg);
}

.btn-content {
  padding: 1rem;
  text-align: left;
}

.btn-text {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.btn-price {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
}

.wishlist-btn-modern {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.wishlist-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.wishlist-icon {
  font-size: 1.5rem;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fbbf24;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  display: none;
}

/* Navigation Ultra-Moderne */
.shop-navigation-ultra-modern {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}

.nav-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.nav-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.shop-tabs-modern {
  display: flex;
  position: relative;
  z-index: 2;
}

.shop-tab-modern {
  background: transparent;
  border: none;
  flex: 1;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  min-height: 60px;
}

.shop-tab-modern:hover {
  transform: translateY(-2px);
}

.shop-tab-modern.active {
  color: white;
}

.tab-content-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex-direction: column;
}

.tab-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-emoji-modern {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.shop-tab-modern:hover .tab-emoji-modern {
  transform: scale(1.1);
}

.tab-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--tab-color, #3b82f6);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-text-container {
  text-align: center;
}

.tab-name-modern {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  display: block;
}

.tab-desc-modern {
  font-size: 0.65rem;
  opacity: 0.8;
  display: block;
}

/* Mobile optimizations for navigation */
@media (max-width: 480px) {
  .shop-navigation-ultra-modern {
    border-radius: 12px;
    margin-bottom: 12px;
  }
  
  .shop-tab-modern {
    padding: 10px 4px;
    min-height: 50px;
  }
  
  .tab-content-modern {
    gap: 4px;
  }
  
  .tab-emoji-modern {
    font-size: 1.2rem;
  }
  
  .tab-name-modern {
    font-size: 0.75rem;
  }
  
  .tab-desc-modern {
    font-size: 0.6rem;
    display: none;
  }
  
  .shop-tab-modern:hover {
    transform: none;
  }
}

.tab-active-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--tab-color, #3b82f6);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.shop-tab-modern.active .tab-active-indicator {
  width: 80%;
}

.tab-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.stats-item {
  text-align: center;
}

.stats-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  display: block;
}

.stats-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
}

.stats-value.new-items {
  color: #10b981;
}

.stats-divider {
  width: 1px;
  height: 30px;
  background: #e2e8f0;
}

/* Filtres Ultra-Modernes */
.shop-filters-ultra-modern {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  overflow: hidden;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e2e8f0;
}

.filters-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-icon {
  font-size: 1.3rem;
}

.clear-filters-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-filters-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.clear-icon {
  font-size: 1rem;
}

.filters-content {
  padding: 2rem;
}

.search-section-modern {
  margin-bottom: 2rem;
}

.search-wrapper-ultra-modern {
  position: relative;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.shop-search-input-modern {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.shop-search-input-modern:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.search-icon-container {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.search-icon-modern {
  font-size: 1.2rem;
  color: #6b7280;
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #e5e7eb;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.clear-search-btn:hover {
  background: #d1d5db;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-label {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.rarity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rarity-filter-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.rarity-filter-btn:hover {
  border-color: var(--rarity-color, #3b82f6);
  transform: translateY(-1px);
}

.rarity-filter-btn.active {
  background: var(--rarity-color, #3b82f6);
  color: white;
  border-color: var(--rarity-color, #3b82f6);
}

.stars-mini {
  font-size: 0.85rem;
}

.filter-text {
  font-weight: 500;
}

.filter-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.rarity-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
}

.price-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.price-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.price-separator {
  color: #6b7280;
  font-weight: 500;
}

.price-slider {
  width: 100%;
}

.slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.availability-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.checkbox-container input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
  border-color: #667eea;
}

.checkbox-container input:checked ~ .checkmark {
  background: #667eea;
  border-color: #667eea;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-label {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}

.sort-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sort-select-modern {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-select-modern:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.active-filters {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.active-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.active-filters-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
}

.clear-all-filters {
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

.clear-all-filters:hover {
  background: #e5e7eb;
  color: #374151;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-filter-tag {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.active-filter-tag.search {
  background: #fef3c7;
  color: #92400e;
}

.active-filter-tag.rarity {
  background: #f3e8ff;
  color: #7c3aed;
}

.active-filter-tag.sort {
  background: #ecfdf5;
  color: #065f46;
}

.filter-tag-text {
  font-weight: 500;
}

.filter-tag-remove {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  color: inherit;
}

.filter-tag-remove:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Cartes Produits Ultra-Modernes */
.shop-card-ultra-modern {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 140px;
}

.shop-card-ultra-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

@media (max-width: 480px) {
  .shop-card-ultra-modern {
    border-radius: 12px;
    min-height: 120px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }
  
  .shop-card-ultra-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
}

.shop-card-ultra-modern.out-of-stock {
  opacity: 0.6;
  cursor: not-allowed;
}

.shop-card-ultra-modern.out-of-stock:hover {
  transform: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.card-background-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.rarity-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rarity-color, #3b82f6);
  opacity: 0.8;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.shop-card-ultra-modern:hover .card-shine {
  left: 100%;
}

.card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.badge-new {
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-popular {
  background: #f59e0b;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-stock-out {
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-header-ultra-modern {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.item-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.item-emoji-ultra-modern {
  font-size: 3rem;
  z-index: 2;
  position: relative;
  transition: transform 0.3s ease;
}

.shop-card-ultra-modern:hover .item-emoji-ultra-modern {
  transform: scale(1.1);
}

.icon-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 50%;
  z-index: 1;
}

.rarity-section {
  text-align: center;
}

.rarity-badge-ultra-modern {
  background: white;
  border: 2px solid var(--rarity-color, #3b82f6);
  border-radius: 16px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.stars-container {
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}

.star {
  font-size: 1rem;
  transition: color 0.3s ease;
}

.star.filled {
  color: var(--rarity-color, #3b82f6);
}

.star.empty {
  color: #d1d5db;
}

.rarity-label-modern {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rarity-color, #3b82f6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-actions-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-btn-mini {
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.action-btn-mini:hover {
  opacity: 1;
  transform: scale(1.1);
}

.wishlist-btn {
  background: #fef2f2;
  color: #dc2626;
}

.wishlist-btn:hover {
  background: #fecaca;
}

.compare-btn {
  background: #eff6ff;
  color: #2563eb;
}

.compare-btn:hover {
  background: #dbeafe;
}

.heart-icon, .compare-icon {
  font-size: 1rem;
}

.card-content-ultra-modern {
  padding: 0 1.5rem 1.5rem;
}

.item-name-ultra-modern {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1rem 0;
  text-align: center;
}

.item-description-modern {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

.item-stats-modern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.stat-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-left: 1rem;
}

.stat-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.price-section-ultra-modern {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.price-option-modern {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.price-option-modern.primary {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.price-option-modern.primary.affordable {
  background: #dcfce7;
  border-color: #86efac;
}

.price-option-modern.primary.expensive {
  background: #fef2f2;
  border-color: #fecaca;
}

.price-option-modern.secondary {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
}

.price-option-modern.secondary.affordable {
  background: #dbeafe;
  border-color: #93c5fd;
}

.price-option-modern.secondary.expensive {
  background: #fef2f2;
  border-color: #fecaca;
}

.currency-icon-modern {
  font-size: 1.5rem;
}

.price-content {
  text-align: center;
}

.price-value-modern {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  display: block;
}

.price-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-divider-modern {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
  text-align: center;
}

.stock-section-modern {
  margin-bottom: 1.5rem;
}

.stock-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.stock-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.stock-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.stock-label {
  color: #6b7280;
  font-weight: 500;
}

.stock-value-modern {
  font-weight: 600;
}

.stock-value-modern.empty {
  color: #ef4444;
}

.stock-value-modern.low {
  color: #f59e0b;
}

.stock-value-modern.good {
  color: #10b981;
}

.card-footer-ultra-modern {
  padding: 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.buy-btn-ultra-modern {
  flex: 1;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.buy-btn-ultra-modern:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-2px);
}

.buy-btn-ultra-modern.disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.buy-btn-ultra-modern.expensive {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.buy-btn-ultra-modern.available {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.btn-icon {
  font-size: 1.1rem;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.buy-btn-ultra-modern:hover .btn-glow {
  opacity: 1;
}

.quick-view-btn {
  background: #f3f4f6;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #6b7280;
}

.quick-view-btn:hover {
  background: #e5e7eb;
  color: #374151;
  transform: translateY(-2px);
}

.view-icon {
  font-size: 1.2rem;
}

.card-hover-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.shop-card-ultra-modern:hover .card-hover-effects {
  opacity: 1;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 400px;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid #3b82f6;
}

.notification.show {
  transform: translateX(0);
}

.notification.notification-success {
  border-left-color: #10b981;
}

.notification.notification-warning {
  border-left-color: #f59e0b;
}

.notification.notification-error {
  border-left-color: #ef4444;
}

.notification-content {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-text {
  color: #374151;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.notification-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Modals */
.wishlist-modal-ultra-modern,
.quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wishlist-modal-ultra-modern.show,
.quick-view-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

/* Mobile optimizations for modals */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    max-height: 85vh;
    border-radius: 16px;
    margin: 10px;
  }
  
  .modal-header {
    padding: 1rem 1rem 0.5rem;
  }
  
  .modal-header h3 {
    font-size: 1.2rem;
  }
  
  .modal-close {
    padding: 8px;
    font-size: 1.2rem;
  }
}

.wishlist-modal-ultra-modern.show .modal-content,
.quick-view-modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Wishlist Content */
.empty-wishlist {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-hint {
  font-size: 1rem;
  opacity: 0.8;
}

.wishlist-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.wishlist-item:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.wishlist-item .item-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.wishlist-item .item-info {
  flex: 1;
}

.wishlist-item .item-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.wishlist-item .item-price {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.wishlist-item .item-actions {
  display: flex;
  gap: 0.5rem;
}

.buy-from-wishlist {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-from-wishlist:hover {
  background: #059669;
  transform: translateY(-1px);
}

.remove-from-wishlist {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-from-wishlist:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Quick View Content */
.quick-view-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quick-view-item .item-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.item-icon-large {
  font-size: 4rem;
  flex-shrink: 0;
}

.item-basic-info {
  flex: 1;
}

.item-basic-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.rarity-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rarity-info .stars {
  color: #f59e0b;
  font-size: 1.1rem;
}

.rarity-info .rarity-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.quick-view-item .item-description {
  color: #6b7280;
  line-height: 1.6;
}

.item-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Responsive améliorations */
@media (max-width: 768px) {
  .boutique-title-section-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .shop-status-bar-modern {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .shop-tabs-modern {
    flex-direction: column;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .price-options {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .wishlist-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .wishlist-item .item-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 1.5rem;
  }
  
  .boutique-title-modern {
    font-size: 2rem;
  }
  
  .currency-display {
    padding: 0.5rem 0.75rem;
  }
  
  .shop-card-ultra-modern {
    margin: 0.5rem;
  }
  
  .filters-content {
    padding: 1rem;
  }
  
  .rarity-filters {
    flex-direction: column;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .quick-view-item .item-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Animations spéciales */
@keyframes cardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes shimmerCard {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.shop-card-ultra-modern.loading {
  animation: cardPulse 1.5s ease-in-out infinite;
}

.shop-card-ultra-modern.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmerCard 1.5s infinite;
}

/* ===== PREMIUM SHOP STYLES ===== */

.premium-card {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-radius: 20px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #ffd700;
}

.premium-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}

.premium-emoji {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
}

.premium-info {
  flex: 1;
}

.premium-name {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.3rem;
  color: #2d2d2d;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}

.premium-desc {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.premium-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff4757 0%, #ff6b7d 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
  z-index: 1;
}

.premium-content {
  text-align: center;
}

.premium-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.premium-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #2d2d2d;
  padding: 4px 0;
}

.premium-price {
  margin-bottom: 16px;
}

.price-amount {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8rem;
  color: #2d2d2d;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.premium-buy-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  color: white;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.premium-buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.premium-buy-btn:hover::before {
  left: 100%;
}

.premium-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.premium-buy-btn:active {
  transform: translateY(0);
}

/* Mobile responsive premium cards */
@media (max-width: 480px) {
  .premium-card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .premium-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .premium-emoji {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .premium-name {
    font-size: 1.1rem;
  }
  
  .premium-desc {
    font-size: 0.85rem;
  }
  
  .premium-items {
    padding: 12px;
  }
  
  .premium-item {
    font-size: 0.9rem;
  }
  
  .price-amount {
    font-size: 1.5rem;
  }
  
  .premium-buy-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Fin des styles enhanced */

/* ===== STYLES VENTES MOBILE ENHANCED ===== */

.ventes-mobile-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: var(--gray-50);
  min-height: 100vh;
}

/* Header avec stats */
.ventes-mobile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 16px;
  color: white;
  border-radius: 0 0 24px 24px;
  margin-bottom: 16px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.header-title p {
  margin: 4px 0 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.header-stats {
  display: flex;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Toggle buttons */
.header-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 4px;
  position: relative;
}

.toggle-btn {
  flex: 1;
  background: none;
  border: none;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.toggle-btn.active {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
}

.toggle-badge {
  background: var(--error-color);
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* États vides */
.no-vins-state, .no-ventes-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}

.no-vins-icon, .no-ventes-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.no-vins-title, .no-ventes-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-700);
}

.no-vins-subtitle, .no-ventes-subtitle {
  margin-bottom: 24px;
  color: var(--gray-500);
}

.no-vins-btn, .no-ventes-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.no-vins-btn:hover, .no-ventes-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Étapes de vente */
.vente-steps-container {
  padding: 0 16px;
  max-width: 600px;
  margin: 0 auto;
}

.vente-step {
  background: white;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.vente-step.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.vente-step.completed {
  border-color: var(--success-color);
}

.step-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.vente-step.active .step-number {
  background: var(--primary-color);
  color: white;
}

.step-number.completed {
  background: var(--success-color);
  color: white;
}

.step-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--gray-700);
}

.step-title p {
  margin: 4px 0 0 0;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.step-content {
  max-height: 1000px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.step-content.collapsed {
  max-height: 0;
}

/* Grille de vins */
.vins-grid-mobile {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.vin-card-modern {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid var(--gray-100);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.vin-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vin-card-modern.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.vin-card-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-radius: 0 16px 0 50px;
  opacity: 0.1;
}

.vin-card-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.vin-emoji-large {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 50%;
}

.vin-info {
  flex: 1;
}

.vin-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.vin-quality {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.quality-stars {
  font-size: 0.9rem;
}

.quality-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.vin-stock {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-600);
  font-size: 0.85rem;
}

.vin-price-preview {
  text-align: right;
}

.price-base {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--success-color);
}

.price-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.selected-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Configuration */
.config-sections {
  padding: 20px;
}

.config-section {
  margin-bottom: 32px;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.config-header h4 {
  margin: 0;
  color: var(--gray-700);
  font-size: 1rem;
}

.stock-indicator {
  background: var(--info-light);
  color: var(--info-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Sélecteur de quantité */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-btn:hover:not(.disabled) {
  background: var(--primary-color);
  color: white;
}

.qty-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-display {
  flex: 1;
  text-align: center;
}

.qty-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.qty-slider-container {
  padding: 0 10px;
}

.qty-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  outline: none;
  -webkit-appearance: none;
}

.qty-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.qty-shortcuts {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.qty-shortcut {
  background: var(--gray-100);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-shortcut:hover {
  background: var(--primary-color);
  color: white;
}

.qty-shortcut.max {
  background: var(--warning-color);
  color: white;
}

/* Grille des lieux */
.lieux-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.lieu-card-modern {
  background: white;
  border: 2px solid var(--gray-100);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.lieu-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lieu-card-modern.selected {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

.lieu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lieu-emoji {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.lieu-timing {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.lieu-timing.instant {
  background: var(--success-light);
  color: var(--success-color);
}

.lieu-timing.delayed {
  background: var(--warning-light);
  color: var(--warning-color);
}

.lieu-name {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.lieu-bonus {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.lieu-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.lieu-price-preview {
  font-weight: 600;
  color: var(--success-color);
}

/* Actions des étapes */
.step-actions {
  padding: 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--gray-100);
}

.step-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-btn.secondary {
  background: var(--gray-100);
  color: var(--gray-600);
}

.step-btn.primary {
  background: var(--primary-color);
  color: white;
}

.step-btn.confirm {
  background: var(--success-color);
}

.step-btn:hover {
  transform: translateY(-2px);
}

/* Confirmation */
.confirmation-content {
  padding: 20px;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.summary-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.summary-title h4 {
  margin: 0;
  color: var(--gray-700);
}

.summary-title p {
  margin: 4px 0 0 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.summary-details {
  margin-bottom: 24px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 12px;
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.detail-content {
  flex: 1;
}

.detail-main {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.detail-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.detail-value {
  font-weight: 600;
  color: var(--success-color);
  font-size: 1.1rem;
}

.summary-total {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.total-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
}

.total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
}

.total-timing {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-align: center;
}

/* Ventes en cours */
.ventes-encours-container {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.ventes-encours-header {
  text-align: center;
  margin-bottom: 24px;
}

.ventes-encours-header h3 {
  margin: 0 0 8px 0;
  color: var(--gray-700);
}

.ventes-encours-header p {
  margin: 0;
  color: var(--gray-500);
}

.vente-item-enhanced {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color);
}

.vente-item-enhanced.done {
  border-left-color: var(--success-color);
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

.vente-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.vente-item-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.vente-item-info {
  flex: 1;
}

.vente-item-name {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.vente-item-details {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.vente-item-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.vente-item-gain {
  text-align: right;
}

.gain-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--warning-color);
}

.gain-value.completed {
  color: var(--success-color);
}

.gain-status {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Barre de progression */
.vente-item-progress {
  margin-top: 16px;
}

.progress-bar-enhanced {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill-enhanced {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-fill-enhanced.completed {
  background: linear-gradient(90deg, var(--success-color) 0%, #4ade80 100%);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Toast */
.vente-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  font-weight: 500;
  transition: all 0.3s ease;
  max-width: 90vw;
}

.vente-toast.show {
  transform: translateX(-50%) translateY(0);
}

.vente-toast.success {
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

.vente-toast.error {
  border-left: 4px solid var(--error-color);
  color: var(--error-color);
}

/* Responsive */
@media (min-width: 480px) {
  .vins-grid-mobile {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lieux-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .ventes-mobile-header {
    border-radius: 0 0 32px 32px;
  }
  
  .header-stats {
    gap: 24px;
  }
  
  .vins-grid-mobile {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lieux-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .step-actions {
    flex-direction: row;
  }
}

/* ====== STYLES GAMIFICATION ====== */

/* Widget de niveau */
.level-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.level-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.level-display {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.level-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.level-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.level-title {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

.level-number {
  font-size: 1.1rem;
  font-weight: bold;
}

.xp-bar {
  width: 120px;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  border-radius: 4px;
  transition: width 0.5s ease;
  position: relative;
}

.xp-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.xp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-weight: 600;
}

/* Popup XP */
.xp-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255,255,255,0.2);
}

.xp-popup.show {
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Level Up */
.level-up-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.level-up-modal.show {
  opacity: 1;
}

.level-up-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.2);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.level-up-modal.show .level-up-content {
  transform: scale(1);
}

.level-up-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.level-up-content h2 {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.level-up-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 600;
}

.level-up-rewards {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.reward-item {
  background: rgba(255,255,255,0.2);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,0.3);
}

.level-up-content button {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.level-up-content button:hover {
  transform: scale(1.05);
}

/* Popup Réalisation */
.achievement-popup {
  position: fixed;
  top: 100px;
  right: 20px;
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  color: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255,255,255,0.2);
  max-width: 300px;
}

.achievement-popup.show {
  transform: translateX(0);
}

.achievement-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.achievement-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.achievement-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.achievement-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.achievement-xp {
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Système de notifications */
.notification-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-left: 4px solid #4CAF50;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 280px;
}

.notification.show {
  transform: translateX(0);
}

.notification.hide {
  transform: translateX(400px);
}

.notification-mission_complete {
  border-left-color: #2196F3;
}

.notification-level_up {
  border-left-color: #FF9800;
}

.notification-reward {
  border-left-color: #9C27B0;
}

.notification-title {
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

.notification-message {
  color: #666;
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}

.success-effect {
  animation: glow 1s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .level-widget {
    top: 10px;
    right: 10px;
    padding: 8px;
  }
  
  .level-display {
    gap: 8px;
  }
  
  .level-icon {
    font-size: 1.5rem;
  }
  
  .xp-bar {
    width: 80px;
    height: 6px;
  }
  
  .achievement-popup,
  .notification {
    right: 10px;
    max-width: calc(100vw - 20px);
  }
  
  .level-up-content {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .level-up-icon {
    font-size: 3rem;
  }
  
  .level-up-content h2 {
    font-size: 2rem;
  }
  
  .level-up-rewards {
    flex-direction: column;
    gap: 10px;
  }
}

/* ====== STYLES PRESTIGE ET ÉVÉNEMENTS ====== */

/* Bannière d'événement */
.event-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  color: white;
  padding: 12px 20px;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.event-banner.show {
  transform: translateY(0);
}

.event-banner.hide {
  transform: translateY(-100%);
}

.event-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.event-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.event-text {
  display: flex;
  flex-direction: column;
}

.event-name {
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.event-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

.event-timer {
  text-align: center;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.3);
}

.timer-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.timer-value {
  font-weight: bold;
  font-size: 1.1rem;
}

.event-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.event-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Modal de prestige */
.prestige-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prestige-modal.show {
  opacity: 1;
}

.prestige-content {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  color: #333;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.4);
  border: 3px solid #fff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  max-width: 500px;
  margin: 20px;
}

.prestige-modal.show .prestige-content {
  transform: scale(1);
}

.prestige-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: float 2s ease-in-out infinite;
}

.prestige-content h2 {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.prestige-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 600;
  color: #8b4513;
}

.prestige-bonuses {
  background: rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid rgba(255,255,255,0.5);
}

.prestige-bonuses h3 {
  margin: 0 0 15px 0;
  color: #8b4513;
}

.bonus-item {
  background: rgba(255,255,255,0.6);
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(139, 69, 19, 0.3);
}

.prestige-rewards {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.prestige-rewards .reward-item {
  background: rgba(255,255,255,0.4);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prestige-content button {
  background: #8b4513;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 16px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.prestige-content button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

/* Particules saisonnières */
.seasonal-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-size: 1.5rem;
  animation: fall linear infinite;
  opacity: 0.7;
}

@keyframes fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Thèmes saisonniers améliorés */
.theme-autumn {
  --seasonal-primary: #d2691e;
  --seasonal-secondary: #cd853f;
  --seasonal-accent: #ff8c00;
}

.theme-autumn .level-widget {
  background: linear-gradient(135deg, var(--seasonal-primary), var(--seasonal-secondary));
}

.theme-winter {
  --seasonal-primary: #4682b4;
  --seasonal-secondary: #87ceeb;
  --seasonal-accent: #00bfff;
}

.theme-winter .level-widget {
  background: linear-gradient(135deg, var(--seasonal-primary), var(--seasonal-secondary));
}

.theme-spring {
  --seasonal-primary: #32cd32;
  --seasonal-secondary: #90ee90;
  --seasonal-accent: #00ff7f;
}

.theme-spring .level-widget {
  background: linear-gradient(135deg, var(--seasonal-primary), var(--seasonal-secondary));
}

.theme-summer {
  --seasonal-primary: #ffd700;
  --seasonal-secondary: #ffeb3b;
  --seasonal-accent: #ff9800;
}

.theme-summer .level-widget {
  background: linear-gradient(135deg, var(--seasonal-primary), var(--seasonal-secondary));
}

/* Effets spéciaux pour événements */
.event-glow {
  animation: eventGlow 2s ease-in-out infinite alternate;
}

@keyframes eventGlow {
  0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}

/* Notification événement */
.notification-event_start {
  border-left-color: #FF6B6B;
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  color: white;
}

.notification-prestige_available {
  border-left-color: #FFD700;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  font-weight: bold;
}

/* Mobile responsive pour prestige/événements */
@media (max-width: 480px) {
  .event-banner-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .event-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .event-timer {
    padding: 6px 12px;
  }
  
  .prestige-content {
    margin: 10px;
    padding: 30px 20px;
  }
  
  .prestige-icon {
    font-size: 3rem;
  }
  
  .prestige-content h2 {
    font-size: 2rem;
  }
  
  .prestige-rewards {
    flex-direction: column;
    gap: 10px;
  }
  
  .particle {
    font-size: 1rem;
  }
}

/* ====== STYLES FONCTIONNALITÉS SOCIALES ====== */

/* Bouton d'accès social */
.social-access-button {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
}

.social-btn {
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  border: 3px solid rgba(255,255,255,0.2);
}

.social-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
}

/* Modal social */
.social-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-modal.show {
  opacity: 1;
}

.social-modal-content {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.social-modal.show .social-modal-content {
  transform: scale(1);
}

.social-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 24px;
  border-radius: 24px 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.social-header .close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Onglets sociaux */
.social-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.social-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.social-tab.active,
.social-tab:hover {
  color: #667eea;
  background: white;
  border-bottom-color: #667eea;
}

.social-content {
  padding: 24px;
}

/* Carte de profil */
.profile-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.profile-header {
  color: white;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.profile-avatar {
  font-size: 3rem;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.3);
}

.profile-info {
  flex: 1;
}

.profile-name {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.profile-title {
  font-size: 1rem;
  opacity: 0.9;
}

.edit-profile-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.edit-profile-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Statistiques du profil */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #dee2e6;
  margin: 0;
}

.stat-item {
  background: white;
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
}

.profile-bio {
  padding: 20px 24px;
  background: rgba(102, 126, 234, 0.05);
  font-style: italic;
  color: #495057;
  border-left: 4px solid #667eea;
  margin: 0;
}

/* Réalisations du profil */
.profile-achievements {
  padding: 24px;
}

.profile-achievements h4 {
  margin: 0 0 16px 0;
  color: #495057;
}

.achievements-showcase {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.achievement-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  border: 2px solid rgba(255,255,255,0.5);
}

.achievement-icon {
  font-size: 1.2rem;
}

/* Éditeur de profil */
.profile-editor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-editor-modal.show {
  opacity: 1;
}

.profile-editor-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.editor-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px 24px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-form {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.avatar-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.avatar-option {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-option:hover,
.avatar-option.selected {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-actions button[type="submit"] {
  background: #667eea;
  color: white;
}

.form-actions button[type="button"] {
  background: #6c757d;
  color: white;
}

/* Classements */
.leaderboards-container {
  max-width: 600px;
  margin: 0 auto;
}

.leaderboards-header h2 {
  text-align: center;
  margin: 0 0 20px 0;
  color: #495057;
}

.leaderboard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.leaderboard-tab {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 120px;
}

.leaderboard-tab.active,
.leaderboard-tab:hover {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.leaderboard-description {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 20px;
  color: #6c757d;
  font-weight: 500;
}

.leaderboard-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.leaderboard-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-entry {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.leaderboard-entry:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.leaderboard-entry.current-user {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
}

.entry-rank {
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

.entry-avatar {
  font-size: 2rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-entry.current-user .entry-avatar {
  background: rgba(255,255,255,0.2);
}

.entry-info {
  flex: 1;
}

.entry-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.entry-title {
  font-size: 0.9rem;
  opacity: 0.8;
}

.entry-value {
  font-weight: bold;
  font-size: 1.1rem;
  color: #667eea;
}

.leaderboard-entry.current-user .entry-value {
  color: #ffd700;
}

/* Position du joueur */
.player-position {
  margin-top: 24px;
}

.player-position-card {
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  color: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.position-header {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.position-tip {
  font-style: italic;
  opacity: 0.9;
}

/* Galerie de réalisations */
.achievements-gallery {
  max-width: 800px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 24px;
}

.gallery-header h3 {
  margin: 0 0 8px 0;
  color: #495057;
}

.achievements-stats {
  color: #6c757d;
  font-weight: 600;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.achievement-item {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-item.unlocked {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff8, #e8f5e8);
}

.achievement-item.locked {
  opacity: 0.6;
  background: #f8f9fa;
}

.achievement-item .achievement-icon {
  font-size: 2rem;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.achievement-item.unlocked .achievement-icon {
  background: rgba(40, 167, 69, 0.2);
}

.achievement-info {
  flex: 1;
}

.achievement-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #495057;
}

.achievement-desc {
  color: #6c757d;
  margin-bottom: 8px;
  line-height: 1.4;
}

.achievement-xp {
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
}

.share-achievement-btn {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.share-achievement-btn:hover {
  background: #5a67d8;
}

.locked-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.3;
}

/* Mobile responsive pour social */
@media (max-width: 480px) {
  .social-access-button {
    bottom: 80px;
    right: 10px;
  }
  
  .social-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .social-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .social-header {
    padding: 16px;
  }
  
  .social-header h2 {
    font-size: 1.4rem;
  }
  
  .social-tabs {
    flex-direction: column;
  }
  
  .social-content {
    padding: 16px;
  }
  
  .profile-header {
    padding: 16px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .profile-avatar {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .leaderboard-tabs {
    flex-direction: column;
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .achievement-item {
    padding: 16px;
  }
  
  .avatar-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== EFFETS LUDIQUES INSPIRÉS DE CLASH ROYALE & ARCHERO ===== */

/* Particules flottantes dans le background */
.dashboard-full-width::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 45% 45%, rgba(255, 255, 255, 0.06) 0%, transparent 25%);
  animation: floatingParticles 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatingParticles {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
  33% { transform: translateY(-15px) rotate(2deg); opacity: 0.6; }
  66% { transform: translateY(10px) rotate(-1deg); opacity: 0.3; }
}

/* Effet de brillance sur les boutons */
.round-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.round-btn:hover::before {
  width: 120%;
  height: 120%;
  opacity: 0.4;
}

/* Hover sur les icônes des boutons avec rotation ludique */
.round-btn:hover .btn-icon {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Effet de succès pour les notifications */
.notification-badge {
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(5deg); }
}

/* Style de cartes ludique avec bordure animée */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.2), transparent, rgba(255, 215, 0, 0.2), transparent);
  border-radius: 23px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
  animation: cardGlow 2s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(360deg); }
}

/* Style ludique mobile inspiré des jeux */
.round-btn {
  animation-delay: calc(var(--btn-index, 0) * 0.15s);
}

.round-button-wrapper:nth-child(1) .round-btn { --btn-index: 1; }
.round-button-wrapper:nth-child(2) .round-btn { --btn-index: 2; }
.round-button-wrapper:nth-child(3) .round-btn { --btn-index: 3; }
.round-button-wrapper:nth-child(4) .round-btn { --btn-index: 4; }
.round-button-wrapper:nth-child(5) .round-btn { --btn-index: 5; }
.round-button-wrapper:nth-child(6) .round-btn { --btn-index: 6; }

/* Animations d'entrée pour dashboard mobile */
@keyframes dashboardEntry {
  0% { 
    transform: translateY(-5%) scale(0.8);
    opacity: 0;
  }
  100% { 
    transform: translateY(-5%) scale(1);
    opacity: 1;
  }
}

@keyframes statusEntry {
  0% { 
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  100% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Améliorations mobile pour l'effet gaming */
@media (max-width: 480px) {
  /* Dashboard avec animations d'entrée */
  .dashboard-center {
    animation: dashboardEntry 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
  }
  
  .domain-status {
    animation: statusEntry 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
  }
  
  /* Boutons ronds avec effet d'apparition séquentielle */
  .round-button-wrapper {
    animation: buttonAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: calc(1s + var(--btn-index, 0) * 0.15s);
  }
  
  /* Bottom bar avec effet de glissement - pas d'animation initiale pour éviter le conflit */
  nav.bottom-bar {
    /* Animation contrôlée par JavaScript si nécessaire */
  }
  
  /* Header avec effet de slide down - pas d'animation initiale pour éviter le conflit */
  .header-modern {
    /* Animation contrôlée par JavaScript si nécessaire */
  }
  
  /* Correction des hover effects sur mobile */
  .round-btn:hover {
    transform: translateY(-4px) scale(1.05);
  }
  
  .bottom-btn:hover {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes buttonAppear {
  0% { 
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
  100% { 
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes slideUpBar {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes slideDownHeader {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

/* Effet de pulsation pour l'avatar du domaine */
.domain-avatar-large {
  animation: domainPulse 4s ease-in-out infinite, pulse 3s infinite;
}

@keyframes domainPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.6);
  }
  50% { 
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.7);
  }
}

/* Amélioration des monnaies dans le header avec effet de compteur */
.currency-value {
  transition: all 0.3s ease;
  position: relative;
}

.currency-value:hover {
  transform: scale(1.05);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Effet de shake pour les interactions importantes */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.currency-add-btn:active {
  animation: shake 0.3s ease-in-out;
}

/* Style gaming pour les barres XP */
.xp-fill {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 100%;
  animation: xpGlow 3s ease-in-out infinite;
}

.xp-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: xpShine 2.5s ease-in-out infinite;
}

@keyframes xpGlow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

@keyframes xpShine {
  0% { left: -100%; }
  100% { left: 100%; }
}
