/* Masquer l'en-tête global sur la page catalogue */
.header { display: none; }

/* ========== MODAL V2 - Design NÉON BLEU SOMBRE ========== */
.modal-overlay-v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-backdrop-v2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.modal-card-v2 {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1), neonGlow 2s ease-in-out infinite;
}

.modal-header-v2 {
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
}

.modal-title-v2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 40px rgba(59, 130, 246, 0.4);
}

.modal-subtitle-v2 {
  font-size: 15px;
  color: #60a5fa;
  margin: 0;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Mode selector - Style néon */
.mode-selector-v2 {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mode-option-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.mode-option-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.mode-option-v2:hover::before {
  left: 100%;
}

.mode-option-v2:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 8px 16px rgba(0, 0, 0, 0.3);
}

.mode-option-v2.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.2);
}

.mode-icon-v2 {
  font-size: 40px;
  flex-shrink: 0;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.mode-option-v2.is-active .mode-icon-v2 {
  filter: grayscale(0) drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
  animation: bounce 0.5s ease, neonPulse 2s ease-in-out infinite;
}

.mode-content-v2 {
  flex: 1;
  text-align: left;
}

.mode-title-v2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.mode-desc-v2 {
  font-size: 14px;
  color: #60a5fa;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.mode-checkmark-v2 {
  font-size: 28px;
  color: #3b82f6;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

.mode-option-v2.is-active .mode-checkmark-v2 {
  opacity: 1;
  transform: scale(1);
}

/* Delivery container - Néon */
.delivery-container-v2 {
  padding: 0 32px 24px;
  animation: slideDown 0.3s ease;
}

.address-input-wrapper-v2 {
  margin-bottom: 16px;
}

.address-label-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.5);
}

.label-icon-v2 {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.input-with-autocomplete-v2 {
  position: relative;
}

.address-input-v2 {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background: rgba(30, 41, 59, 0.6);
  color: #fff;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(10px);
}

.address-input-v2::placeholder {
  color: #64748b;
}

.address-input-v2:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
  background: rgba(30, 41, 59, 0.8);
}

.address-suggestions-v2 {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.3);
  z-index: 10;
  display: none;
  backdrop-filter: blur(10px);
}

.address-suggestions-v2.has-suggestions {
  display: block;
}

.address-suggestion-item {
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.2s ease;
}

.address-suggestion-item:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.3);
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-text {
  font-size: 15px;
  color: #e2e8f0;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(226, 232, 240, 0.3);
}

.suggestion-context {
  font-size: 13px;
  color: #94a3b8;
  text-shadow: 0 0 6px rgba(148, 163, 184, 0.3);
}

.address-hint-v2 {
  font-size: 13px;
  color: #94a3b8;
  margin: 8px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  text-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}

/* Info boxes */
.info-box-v2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  animation: slideDown 0.3s ease;
}

.info-distance-v2 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
}

.info-minimum-v2 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
}

/* Info box large pour le minimum de commande - Néon */
.info-box-v2-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 16px;
  animation: slideDown 0.3s ease, neonPulse 2s ease-in-out infinite;
  text-align: center;
}

.info-minimum-v2-large {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
  border: 3px solid #3b82f6;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
}

.minimum-icon-large {
  font-size: 56px;
  margin-bottom: 12px;
  animation: bounce 0.6s ease, neonPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
}

.minimum-content-large {
  width: 100%;
}

.minimum-title-large {
  font-size: 15px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 0 15px rgba(147, 197, 253, 0.8);
}

.minimum-amount-large {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(59, 130, 246, 1), 0 0 60px rgba(59, 130, 246, 0.6);
  animation: neonFlicker 3s ease-in-out infinite;
}

.minimum-instruction-large {
  font-size: 14px;
  font-weight: 600;
  color: #dbeafe;
  line-height: 1.6;
  padding: 14px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.2);
  text-shadow: 0 0 10px rgba(219, 234, 254, 0.5);
}

.info-error-v2 {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
  border: 2px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.info-calculating-v2 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
  border: 2px solid #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.info-calculating-v2 .info-icon-v2 {
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

.info-icon-v2 {
  font-size: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px currentColor);
}

.info-content-v2 {
  flex: 1;
}

.info-label-v2 {
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.info-value-v2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Calculate button */
.calculate-btn-v2 {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.calculate-btn-v2:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

.calculate-btn-v2:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-icon-v2 {
  font-size: 20px;
}

/* Modal actions - Néon */
.modal-actions-v2 {
  padding: 24px 32px 32px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
}

.btn-submit-v2 {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: 2px solid #60a5fa;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 8px 16px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-submit-v2::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;
}

.btn-submit-v2:hover::before {
  left: 100%;
}

.btn-submit-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.8), 0 0 100px rgba(59, 130, 246, 0.4), 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: #93c5fd;
}

.btn-arrow-v2 {
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.btn-submit-v2:hover .btn-arrow-v2 {
  transform: translateX(6px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes neonGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), 0 20px 60px rgba(0, 0, 0, 0.8); }
  50% { box-shadow: 0 0 80px rgba(59, 130, 246, 0.6), 0 20px 60px rgba(0, 0, 0, 0.8); }
}

@keyframes neonPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8)); }
  50% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 1)); }
}

@keyframes neonFlicker {
  0%, 100% { text-shadow: 0 0 30px rgba(59, 130, 246, 1), 0 0 60px rgba(59, 130, 246, 0.6); }
  50% { text-shadow: 0 0 40px rgba(59, 130, 246, 1), 0 0 80px rgba(59, 130, 246, 0.8), 0 0 120px rgba(59, 130, 246, 0.4); }
}

/* Responsive */
@media (max-width: 640px) {
  .modal-card-v2 {
    border-radius: 24px 24px 0 0;
    max-height: 95vh;
  }
  
  .modal-header-v2,
  .mode-selector-v2,
  .delivery-container-v2,
  .modal-actions-v2 {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .mode-title-v2 {
    font-size: 16px;
  }
  
  .mode-desc-v2 {
    font-size: 13px;
  }
}

:root {
  --catalog-bg: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
  --catalog-surface: #ffffff;
  --catalog-divider: #e5dfd4;
  --catalog-text: #1f1a14;
  --catalog-muted: #7a7268;
  --accent-primary: #f4b400;
  --accent-secondary: #ff6b35;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 48px rgba(0,0,0,.16);
}

html {
  scroll-behavior: smooth;
}

html, body {
  background-color: #1a1a1a;
  background-image: 
    linear-gradient(335deg, rgba(0,0,0,.4) 23px, transparent 23px),
    linear-gradient(155deg, rgba(0,0,0,.4) 23px, transparent 23px),
    linear-gradient(335deg, rgba(0,0,0,.3) 23px, transparent 23px),
    linear-gradient(155deg, rgba(0,0,0,.3) 23px, transparent 23px);
  background-size: 58px 58px;
  background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
  background-attachment: fixed;
  color: var(--catalog-text);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,.1) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0,0,0,.1) 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,.15) 0px,
      transparent 1px,
      transparent 58px,
      rgba(0,0,0,.15) 59px
    );
  pointer-events: none;
  z-index: -1;
}

/* Scrollbar personnalisé */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(244, 180, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  box-shadow: 0 0 15px rgba(244, 180, 0, 0.5);
}

main.container {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  max-width: none;
  background: transparent;
}

.client-header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

.client-header__inner {
  background: transparent;
}

.client-header__icon {
  color: #ffffff !important;
  transition: transform .2s ease, color .2s ease;
}

.client-header__icon:hover {
  transform: scale(1.1);
  color: var(--accent-primary) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.client-header__pill {
  background: linear-gradient(135deg, #1f1a14 0%, #2d2620 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform .2s ease;
}

.client-header__pill:hover {
  transform: scale(1.02);
}

.client-header__chev {
  color: var(--accent-primary);
}

.catalog {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: transparent;
  min-height: 80vh;
}

/* Message vide élégant */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.empty-state__icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state__title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.empty-state__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* Grille de catégories */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 32px 20px;
  max-width: 1280px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cat-card {
  position: relative;
  width: 100%;
  cursor: pointer;
  text-align: center;
  animation: scaleIn 0.5s ease-out backwards;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
  display: block !important;
  gap: 0 !important;
  border-radius: 0 !important;
  text-decoration: none;
  color: inherit;
}

.cat-card:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.cat-card:nth-child(1) { animation-delay: 0.05s; }
.cat-card:nth-child(2) { animation-delay: 0.1s; }
.cat-card:nth-child(3) { animation-delay: 0.15s; }
.cat-card:nth-child(4) { animation-delay: 0.2s; }
.cat-card:nth-child(5) { animation-delay: 0.25s; }
.cat-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Étiquette rose (contenant l'image) */
.cat-card__etiquette {
  position: relative;
  background: #ff5cb4;
  padding: 15px 20px;
  border-radius: 10px;
  transform: skewX(-10deg);
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 350px;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(255, 92, 180, 0.5);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.cat-card:hover .cat-card__etiquette {
  transform: skewX(-10deg) translateY(-8px);
  box-shadow: 0 16px 40px rgba(255, 92, 180, 0.6);
}

/* Effets déchirés supprimés pour un look plus propre */

.cat-card__img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  background: transparent !important;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: skewX(10deg); /* Contre-balance le skew du parent */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.1) saturate(1.1) brightness(1.05);
  display: block;
}


.cat-card:hover .cat-card__img {
  transform: skewX(10deg) scale(1.05);
}

/* Badge de comptage en haut à droite */
.cat-card__count {
  position: absolute;
  top: 10px;
  right: 30px;
  background: #ff5cb4;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 14px;
  border-radius: 8px;
  transform: rotate(2deg);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all .3s ease;
}

.cat-card:hover .cat-card__count {
  transform: rotate(2deg) scale(1.1);
}

/* Bande bleue (nom de la catégorie) */
.cat-card__body {
  margin-top: -10px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cat-card__name {
  background: #37c6f4;
  display: inline-block;
  padding: 12px 24px;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: #ffffff !important;
  border-radius: 8px;
  transform: skewX(-10deg);
  box-shadow: 
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 0 15px rgba(55, 198, 244, 0.4),
    0 0 30px rgba(55, 198, 244, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.08);
  margin: 0;
  letter-spacing: 0.5px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(55, 198, 244, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.cat-card:hover .cat-card__name {
  transform: skewX(-10deg) translateY(-4px);
  box-shadow: 
    0 10px 0 rgba(0, 0, 0, 0.3),
    0 0 20px rgba(55, 198, 244, 0.5),
    0 0 40px rgba(55, 198, 244, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.12);
  text-shadow: 
    0 0 12px rgba(255, 255, 255, 0.8),
    0 0 25px rgba(55, 198, 244, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .cats-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 24px 16px;
  }
  .cat-card__img {
    height: 180px;
  }
  .cat-card__name {
    font-size: 18px;
    padding: 10px 20px;
  }
  .cat-card__count {
    font-size: 12px;
    padding: 6px 10px;
    right: 20px;
  }
  .cat-card__etiquette {
    padding: 12px 16px;
    max-width: 100%;
  }
}

/* Section de catégorie */
.cat-section {
  display: block;
  margin-bottom: 20px;
}

/* Titre de catégorie dans la vue produits */
.cat-section-title {
  position: sticky;
  top: 130px;
  z-index: 50;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 20px;
  margin: 0 12px 12px 12px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.7);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.03em;
  border: 2px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.cat-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  margin: 8px auto 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(244, 180, 0, 0.5);
}


/* Bouton retour aux catégories */
.back-to-cats {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  display: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.7);
  animation: slideDown 0.4s ease-out;
}

.back-to-cats__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #ffc737 100%);
  border: none;
  color: #1f1a14;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(244, 180, 0, 0.5);
  letter-spacing: -0.01em;
}

.back-to-cats__btn:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 24px rgba(244, 180, 0, 0.6);
  filter: brightness(1.1);
}

.back-to-cats__btn:active {
  transform: translateX(-2px) scale(0.98);
}

.back-to-cats__btn svg {
  width: 22px;
  height: 22px;
  transition: transform .3s ease;
}

.back-to-cats__btn:hover svg {
  transform: translateX(-3px);
}

.list {
  display: grid;
  background: transparent;
  gap: 0;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.item {
  position: relative;
  width: 100%;
  cursor: pointer;
  text-align: center;
  margin: 8px 12px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: block !important;
  animation: slideInLeft 0.4s ease-out backwards;
}

.item:nth-child(1) { animation-delay: 0.05s; }
.item:nth-child(2) { animation-delay: 0.1s; }
.item:nth-child(3) { animation-delay: 0.15s; }
.item:nth-child(4) { animation-delay: 0.2s; }
.item:nth-child(5) { animation-delay: 0.25s; }
.item:nth-child(6) { animation-delay: 0.3s; }
.item:nth-child(7) { animation-delay: 0.35s; }
.item:nth-child(8) { animation-delay: 0.4s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.item:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.item:active {
  transform: none !important;
}

.item:focus {
  outline: none;
}

.item:focus-visible {
  box-shadow: 0 0 0 3px rgba(244,180,0,.3), var(--shadow-lg);
  border-color: var(--accent-primary);
}

.item--pending {
  opacity: .6;
  pointer-events: none;
  filter: grayscale(0.3);
}

.item--added {
  animation: itemAdded .8s ease;
}

@keyframes itemAdded {
  0% {
    background: var(--catalog-surface);
    box-shadow: var(--shadow-sm);
  }
  50% {
    background: #fff9e6;
    box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.3), var(--shadow-lg);
  }
  100% {
    background: var(--catalog-surface);
    box-shadow: var(--shadow-sm);
  }
}

/* Étiquette rose pour les produits (comme cat-cards) */
.item__media {
  position: relative;
  background: #ff5cb4;
  padding: 15px 20px;
  border-radius: 10px;
  transform: skewX(-10deg);
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(255, 92, 180, 0.5);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.item:hover .item__media {
  transform: skewX(-10deg) translateY(-8px);
  box-shadow: 0 16px 40px rgba(255, 92, 180, 0.6);
}

.item__img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  background: transparent !important;
  display: block;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: skewX(10deg); /* Contre-balance le skew du parent */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.1) saturate(1.1) brightness(1.05);
}

.item:hover .item__img {
  transform: skewX(10deg) scale(1.05);
}

/* Bande bleue pour le nom du produit (comme cat-cards) */
.item__body {
  margin-top: -10px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.item__title {
  background: #37c6f4;
  display: inline-block;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: #ffffff !important;
  border-radius: 8px;
  transform: skewX(-10deg);
  box-shadow: 
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 0 15px rgba(55, 198, 244, 0.4),
    0 0 30px rgba(55, 198, 244, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.08);
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(55, 198, 244, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.item:hover .item__title {
  transform: skewX(-10deg) translateY(-4px);
  box-shadow: 
    0 10px 0 rgba(0, 0, 0, 0.3),
    0 0 20px rgba(55, 198, 244, 0.5),
    0 0 40px rgba(55, 198, 244, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.12);
  text-shadow: 
    0 0 12px rgba(255, 255, 255, 0.8),
    0 0 25px rgba(55, 198, 244, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.item__desc {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  max-width: 600px;
  text-align: center;
  padding: 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge prix (comme le badge de comptage des cat-cards) */
.item__side {
  position: absolute;
  top: 10px;
  right: 30px;
  background: #ff5cb4;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 16px;
  border-radius: 8px;
  transform: rotate(2deg);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all .3s ease;
  white-space: nowrap;
}

.item:hover .item__side {
  transform: rotate(2deg) scale(1.1);
}

/* Ajustements desktop pour les cartes de produits */
@media (min-width: 768px) {
  .item {
    margin: 12px 16px;
  }
  .item__img {
    height: 200px;
  }
  .item__title {
    font-size: 20px;
    padding: 12px 24px;
  }
  .item__side {
    font-size: 18px;
  }
  .item__desc {
    font-size: 14px;
  }
}

/* Ajustements mobile pour les cartes de produits */
@media (max-width: 767px) {
  .item {
    margin: 8px;
  }
  .item__media {
    padding: 12px 16px;
    max-width: 100%;
  }
  .item__img {
    height: 160px;
  }
  .item__title {
    font-size: 16px;
    padding: 8px 16px;
  }
  .item__side {
    font-size: 14px;
    padding: 6px 10px;
    right: 20px;
  }
  .item__desc {
    font-size: 12px;
  }
}

#menu-overlay {
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-sheet {
  background: #ffffff;
  color: #333;
  box-shadow: 0 -10px 50px rgba(0,0,0,.2);
  border-radius: 24px 24px 0 0;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.menu-sheet__head {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding: 20px 24px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #333 !important;
}

.menu-sheet__head span {
  color: #333 !important;
}

.menu-sheet__head * {
  color: #333 !important;
}

.menu-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
  transition: all .2s ease;
  color: #333;
}

.menu-close:hover {
  background: rgba(244, 180, 0, 0.3);
  transform: rotate(90deg);
}

.menu-item {
  color: #333 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 24px;
  transition: all .2s ease;
  border-left: 4px solid transparent;
}

.menu-item:hover {
  background: rgba(244, 180, 0, 0.15);
  border-left-color: var(--accent-primary);
  padding-left: 28px;
  color: #333 !important;
}

.menu-item span {
  color: #333 !important;
}

.menu-item * {
  color: #333 !important;
}

/* Forcer le texte des catégories dans le menu à rester noir */
.menu-item div[style*="color: rgba(0,0,0,0.5)"],
div[style*="margin: 16px 0; padding: 12px 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(0,0,0,0.5);"] {
  color: rgba(0,0,0,0.5) !important;
}

/* Forcer tous les éléments du menu overlay à rester noir */
#menu-overlay,
#menu-overlay *,
#menu-overlay div,
#menu-overlay span {
  color: #333 !important;
}

/* Exception pour le texte des catégories */
#menu-overlay div[style*="color: rgba(0,0,0,0.5)"] {
  color: rgba(0,0,0,0.5) !important;
}

/* Règles ultra-spécifiques pour écraser app.css et layout.html */
.catalog .menu-overlay .menu-sheet .menu-item,
.catalog .menu-overlay .menu-sheet .menu-item span,
.catalog .menu-overlay .menu-sheet .menu-item *,
.catalog .menu-overlay .menu-sheet .menu-list .menu-item,
.catalog .menu-overlay .menu-sheet .menu-list .menu-item span,
.catalog .menu-overlay .menu-sheet .menu-list .menu-item * {
  color: #333 !important;
}

.catalog .menu-overlay .menu-sheet .menu-sheet__head,
.catalog .menu-overlay .menu-sheet .menu-sheet__head span,
.catalog .menu-overlay .menu-sheet .menu-sheet__head * {
  color: #333 !important;
}

.catalog .menu-overlay .menu-sheet .menu-close {
  color: #333 !important;
}

/* Règles avec ID pour maximum de spécificité */
#menu-overlay .menu-sheet .menu-item,
#menu-overlay .menu-sheet .menu-item span,
#menu-overlay .menu-sheet .menu-item *,
#menu-overlay .menu-sheet .menu-list .menu-item,
#menu-overlay .menu-sheet .menu-list .menu-item span,
#menu-overlay .menu-sheet .menu-list .menu-item * {
  color: #333 !important;
}

#menu-overlay .menu-sheet .menu-sheet__head,
#menu-overlay .menu-sheet .menu-sheet__head span,
#menu-overlay .menu-sheet .menu-sheet__head * {
  color: #333 !important;
}

#menu-overlay .menu-sheet .menu-close {
  color: #333 !important;
}

.menu-item-img {
  background: linear-gradient(135deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.02) 100%);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: transform .2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-item:hover .menu-item-img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(244, 180, 0, 0.3);
}

.client-header__icon {
  position: relative;
}

.client-header__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-secondary) 0%, #ff8555 100%);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.8);
  animation: badgePulse 2s ease-in-out infinite;
  letter-spacing: -0.02em;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.client-header__badge[hidden] {
  display: none;
}

/* Correction de la lisibilité des textes sur fond sombre */
/* Tout texte en dehors des cartes blanches doit être clair */
body, p, h1, h2, h3, h4, h5, h6, span, div {
  color: inherit;
}

/* Titres principaux en dehors des cartes */
h1:not(.cat-card__name):not(.item__title):not(.product-detail__name),
h2:not(.cat-card__name):not(.item__title):not(.product-detail__name),
h3:not(.cat-card__name):not(.item__title):not(.product-detail__name) {
  color: #ffffff;
}

/* Messages et textes généraux */
.text-gray-900,
.text-gray-800,
.text-gray-700,
.text-slate-900,
.text-slate-800,
.text-slate-700 {
  color: rgba(255, 255, 255, 0.95) !important;
}

.text-gray-600,
.text-gray-500,
.text-slate-600,
.text-slate-500 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.text-gray-400,
.text-slate-400 {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Liens et boutons en dehors des cartes */
a:not(.cat-card):not(.menu-item) {
  color: var(--accent-primary);
}

/* S'assurer que les éléments dans les cartes blanches gardent leurs couleurs sombres */
.cat-card *, 
.item *, 
.card *, 
.product-detail *,
article * {
  color: inherit;
}

/* ========== PRODUITS INDISPONIBLES ========== */
/* Style grisé pour les produits indisponibles */
.item--unavailable {
  opacity: 0.6;
  filter: grayscale(70%);
  cursor: not-allowed;
  pointer-events: none;
}

.item--unavailable .item__media {
  background: #9ca3af !important;
  box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3) !important;
}

.item--unavailable:hover .item__media {
  transform: skewX(-10deg) translateY(0) !important;
  box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3) !important;
}

.item--unavailable .item__img {
  filter: grayscale(100%) brightness(0.9) contrast(0.8);
}

.item--unavailable:hover .item__img {
  transform: skewX(10deg) scale(1) !important;
}

.item--unavailable .item__title {
  background: #6b7280 !important;
  box-shadow: 
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 0 15px rgba(107, 114, 128, 0.4),
    0 0 30px rgba(107, 114, 128, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.08) !important;
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.item--unavailable:hover .item__title {
  transform: skewX(-10deg) translateY(0) !important;
  box-shadow: 
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 0 15px rgba(107, 114, 128, 0.4),
    0 0 30px rgba(107, 114, 128, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.08) !important;
}

.item--unavailable .item__side {
  background: #6b7280 !important;
  opacity: 0.7;
}

.item--unavailable:hover .item__side {
  transform: rotate(2deg) scale(1) !important;
}

.item--unavailable .item__desc {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Badge "Indisponible" superposé sur l'image */
.item__unavailable-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) skewX(10deg) rotate(-5deg);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 12px 24px;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: 
    0 8px 0 rgba(0, 0, 0, 0.4),
    0 0 30px rgba(239, 68, 68, 0.8),
    0 0 60px rgba(239, 68, 68, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.15);
  z-index: 20;
  letter-spacing: 1px;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(239, 68, 68, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.5);
  animation: unavailablePulse 2s ease-in-out infinite;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

@keyframes unavailablePulse {
  0%, 100% {
    box-shadow: 
      0 8px 0 rgba(0, 0, 0, 0.4),
      0 0 30px rgba(239, 68, 68, 0.8),
      0 0 60px rgba(239, 68, 68, 0.5),
      inset 0 0 20px rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow: 
      0 8px 0 rgba(0, 0, 0, 0.4),
      0 0 40px rgba(239, 68, 68, 1),
      0 0 80px rgba(239, 68, 68, 0.7),
      inset 0 0 25px rgba(255, 255, 255, 0.2);
  }
}

/* Ajustements responsive pour le badge indisponible */
@media (max-width: 767px) {
  .item__unavailable-badge {
    font-size: 14px;
    padding: 8px 16px;
  }
}

