﻿/* ========== VARIABLES ========= */
:root {
    --primary: #000000;        /* Noir pur */
    --primary-light: #333333;  /* Gris trÃ¨s foncÃ© */
    --bg-soft: #f9fafb;        /* Gris trÃ¨s clair */
    --accent: #ffffff;         /* Blanc pour contrastes */
    --text-dark: #000000;
    --text-light: #ffffff;
    --font-main: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  }
  
  /* ========== RESET ========== */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  /* Pour tous les Ã©lÃ©ments de formulaire */
input:focus, 
textarea:focus, 
select:focus,
[contenteditable="true"]:focus {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px;
    border-color: transparent !important;
    box-shadow: 0 0 0 1px var(--primary-light);
}

/* Pour supprimer le bleu sur les inputs sur mobile */
input, 
textarea {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: text;
}
  
  body {
    font-family: var(--font-main);
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 0;
    margin: 0 auto;
  }
  
  /* ========== HEADERS & TITRES ========== */
  h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  p {
    color: var(--text-dark);
    opacity: 0.9;
  }
  
  /* ========== NAVBAR / HEADER VISUEL ========== */
  .main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
  }
  .logo {
    height: clamp(80px, 15vh, 120px);
    max-width: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  .logo:hover {
    transform: scale(1.05);
  }
  
  /* ========== BUTTONS ========== */
  button, a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
 
  button {
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
 
  button:hover {
    transform: translateY(-2px);
  }
  
  /* ========== STICKY FILTERS BAR ========== */
  .sticky-filters-bar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .sticky-filters-bar:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  button:hover {
    background-color: var(--accent);
  }
  .btn-accent {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
  }
  .btn-accent:hover {
    background-color: #000000;
    color: #ffffff;
  }
  
  /* ========== FORM STYLES ========== */
  .form-container {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
  }
  
  /* Animation pour les erreurs de validation */
  @keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
  }
  
  .error-field {
    animation: errorShake 0.5s ease-in-out;
    border: 2px solid #ef4444 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
  }
  
  .error-field input,
  .error-field select {
    border-color: #ef4444 !important;
  }
  .form-group {
    margin-bottom: 20px;
  }
  input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
  }
  select:invalid { color: #a9afba; }
  select option { color: var(--text-dark); }
  
  /* Tailles & Couleurs produits */
  .size-options, .color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .color-options button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
  }
  
  /* ========== CARROUSEL ========== */
/* Ø§Ù„Ù‡ÙŠÙƒÙ„ Ø§Ù„Ø£Ø³Ø§Ø³ÙŠ */
.swiper-container {
  width: 90vw;
  max-width: 400px;
  height: 90vw;
  max-height: 400px;
  position: relative;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.swiper-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ØªÙ†Ø³ÙŠÙ‚ ØªØ±Ù‚ÙŠÙ… Ø§Ù„ØµÙØ­Ø§Øª */
.custom-pagination {
  position: absolute;
  bottom: 10px !important;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 10;
}

.custom-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  background: var(--text-light);
  opacity: 0.6;
  transition: all 0.3s;
}

.custom-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
  width: 20px;
  border-radius: 4px;
}

/* ØªÙ†Ø³ÙŠÙ‚ Ø£Ø²Ø±Ø§Ø± Ø§Ù„ØªÙ†Ù‚Ù„ */

.custom-nav {
  content: '' !important; /* Ø¥Ø²Ø§Ù„Ø© Ù…Ø­ØªÙˆÙ‰ Ø§Ù„Ø³Ù‡Ù… Ø§Ù„Ø§ÙØªØ±Ø§Ø¶ÙŠ */
}
.custom-nav {
  width: 36px !important; /* ØªÙ‚Ù„ÙŠÙ„ Ø§Ù„Ø­Ø¬Ù… */
  height: 36px !important;
  background: rgba(255, 255, 255, 0.9); /* Ø®Ù„ÙÙŠØ© Ø£ÙƒØ«Ø± ØµÙ„Ø§Ø¨Ø© */
  border: 2px solid var(--primary); /* Ø¥Ø·Ø§Ø± Ø¨Ù„ÙˆÙ† Ø§Ù„Ø£Ø³Ø§Ø³ÙŠ */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary) !important;
  transition: all 0.3s ease;
}

.custom-nav::after {
  font-size: 16px !important; /* ØªÙ‚Ù„ÙŠÙ„ Ø­Ø¬Ù… Ø§Ù„Ø³Ù‡Ù… */
  font-weight: bold;
}



.custom-nav.swiper-button-next {
  right: 10px;
  left: auto;
}

.custom-nav.swiper-button-prev {
  left: 10px;
  right: auto;
}

/* ØªØ£Ø«ÙŠØ±Ø§Øª Ø§Ù„hover */
.custom-nav:hover {
  background: var(--primary);
  color: white !important;
}
@media (max-width: 768px) {
  .custom-nav {
    width: 30px !important;
    height: 30px !important;
  }
  .custom-pagination {
    bottom: 5px !important;
  }
}
  
  
  /* ========== HERO BANNER ========== */
  .hero {
    text-align: center;
    margin-bottom: 40px;
  }
  .hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* ========== LOADER ========== */
  #loading {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary);
    z-index: 9999;
  }
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* ========== UTILITAIRES ========== */
  [v-cloak] {
    display: none;
  }
  .bg-primary {
    background-color: var(--primary) !important;
  }
  .text-light {
    color: var(--text-light);
  }
  .shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  .rounded-lg {
    border-radius: 12px;
  }
  
  /* ========== RESPONSIVE ========== */
  @media (max-width: 600px) {
    body {
      padding: 10px;
    }
    .form-container {
      padding: 15px;
    }
    button {
      font-size: 14px;
      padding: 10px 20px;
    }
    .main-header {
      flex-direction: column;
    }
  }
  .bg-primary {
    background-color: var(--primary) !important;
  }
  .bg-primary:hover {
    background-color: var(--accent) !important;
  }


  [v-cloak] {
    display: none;
  }

  .container {
    max-width: 1000px;
    margin: auto;

    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  .container.\!mx-0.px-4.md\:px-8.lg\:px-16.\!py-0.pt-10.pb-0{
    margin:30px
  }
  h1 {
    color: var(--primary);
  }
  .fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
  }
  .fade-enter-from, .fade-leave-to {
    opacity: 0;
  }
  .fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
  }
  .fade-enter, .fade-leave-to {
    opacity: 0;
  }
  /* Animation pour le champ de recherche */
input[type="text"] {
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  box-shadow: 0 0 0 3px rgba(41, 131, 104, 0.2);
}

/* Style pour l'icÃ´ne de recherche */
.fa-search {
  transition: color 0.3s;
}

input:focus + .fa-search {
  color: #000;
}
/* Dans votre fichier CSS */
.sticky-search {
  top: 0;
  z-index: 40; /* En dessous du header mais au-dessus du contenu */
}

.fixed-filter-btn {
  bottom: 80px; /* Ajustez selon votre footer */
  z-index: 50;
}

@media (max-width: 768px) {
  .sticky-search {
    top: 60px; /* Ajustez selon la hauteur de votre header mobile */
  }
}
@keyframes spin-fast {
  to { transform: rotate(360deg); }
}
@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-spin-fast {
  animation: spin-fast 0.7s linear infinite;
}
  .animate-pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
  }
  .animate-fade-in {
    animation: fade-in 0.3s ease-out;
  }
  
  /* ========== TOAST NOTIFICATIONS ========== */
  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
  }
  
  .toast {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
  }
  
  .toast.success {
    border-left-color: #10b981;
    color: #065f46;
  }
  
  .toast.error {
    border-left-color: #ef4444;
    color: #991b1b;
  }
  
  .toast.warning {
    border-left-color: #f59e0b;
    color: #92400e;
  }
  
  .toast.info {
    border-left-color: #3b82f6;
    color: #1e40af;
  }
  
  .toast.hiding {
    animation: slideOutRight 0.3s ease-in;
    opacity: 0;
    transform: translateX(100%);
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideOutRight {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(100%);
    }
  }
  
  .toast button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  
  .toast button:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
/* Ajoutez ce CSS */
@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.animate-gentle-pulse {
  animation: gentle-pulse 2s ease-in-out infinite;
}
.animate-ping-once {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) 1;
}
@keyframes ping {
  75%, 100% { transform: scale(1.5); opacity: 0; }
}
@keyframes gentle-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}
.animate-attention {
  animation: gentle-breathe 3s ease-in-out infinite;
}
@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2); }
  70% { box-shadow: 0 0 0 12px rgba(41, 131, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 131, 104, 0); }
}
.pulse-shadow {
  animation: pulse-shadow 2s infinite;
}

/* ========== BOUTONS DE FILTRAGE RAPIDE ========== */
.quick-filter-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: nowrap;
}

.quick-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: visible;
  min-width: 100px;
  justify-content: center;
}

.quick-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-filter-btn.active {
  background: black;
  color: white;
  border-color: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  font-weight: 600;
  position: relative;
}

.quick-filter-btn.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #000;
  border-radius: 27px;
  z-index: -1;
  opacity: 0.1;
}

.quick-filter-btn.active .count {
  z-index: 15;
}

.quick-filter-btn:not(.active) {
  background: #f3f4f6;
  color: #000;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-filter-btn:not(.active):hover {
  background: #e5e7eb;
  color: #000;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-filter-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.quick-filter-btn:hover i {
  transform: scale(1.1);
}

.quick-filter-btn.active i {
  transform: scale(1.15);
}

.quick-filter-btn .count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
  border: 2px solid white;
  z-index: 10;
  min-width: 20px;
  min-height: 20px;
  pointer-events: none;
}

.quick-filter-btn .count.count-zero {
  display: none;
}

/* Responsive pour les boutons de filtrage */
@media (max-width: 768px) {
  .quick-filter-buttons {
    gap: 8px;
    margin: 12px 0;
  }
  
  .quick-filter-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 80px;
    border-width: 1.5px;
  }
  
  .quick-filter-btn i {
    font-size: 14px;
  }
  
  .quick-filter-btn.active::before {
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    border-radius: 26.5px;
  }
  
  .quick-filter-btn .count {
    top: -5px;
    right: -5px;
  }
}

@media (max-width: 480px) {
  .quick-filter-buttons {
    gap: 6px;
    margin: 10px 0;
  }
  
  .quick-filter-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 70px;
    border-width: 1px;
  }
  
  .quick-filter-btn i {
    font-size: 12px;
  }
  
  .quick-filter-btn.active::before {
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 26px;
  }
  
  .quick-filter-btn .count {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }
}

/* Animation d'apparition pour les boutons de filtrage */
.quick-filter-btn {
  animation: slideInUp 0.5s ease-out;
}

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

/* Animation pour les compteurs */
.quick-filter-btn .count {
  animation: bounceIn 0.6s ease-out;
}

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

/* ========== FILTRES DE PRIX ET TRI ========== */
.price-filter-btn {
  padding: 6px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.price-filter-btn:hover {
  border-color: #000;
  color: #000;
  transform: translateY(-1px);
}

.price-filter-btn.active {
  background: linear-gradient(135deg, #000, #333);
  color: white;
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sort-select {
  padding: 6px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.sort-select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(41, 131, 104, 0.1);
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  padding: 8px 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ========== SUGGESTIONS DE RECHERCHE ========== */
.search-suggestions {
  animation: slideDown 0.3s ease-out;
}

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

/* Responsive pour les nouveaux Ã©lÃ©ments */
@media (max-width: 768px) {
  .price-filter-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .sort-select {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 120px;
  }
  
  .breadcrumbs {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .price-filter-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .sort-select {
    padding: 3px 6px;
    font-size: 10px;
    min-width: 100px;
  }
}

/* ========== NOTIFICATIONS TOAST ========== */
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  max-width: 350px;
  animation: slideInRight 0.3s ease-out;
  transition: all 0.3s ease;
}

.toast.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-left: 4px solid #047857;
}

.toast.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-left: 4px solid #b91c1c;
}

.toast.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-left: 4px solid #1d4ed8;
}

.toast.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-left: 4px solid #b45309;
}

.toast.hiding {
  animation: slideOutRight 0.3s ease-in;
  opacity: 0;
  transform: translateX(100%);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ========== ANIMATIONS DE TRANSITION ========== */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
  transition: all 0.3s ease;
}

.slide-up-enter-from, .slide-up-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

.scale-enter-active, .scale-leave-active {
  transition: all 0.2s ease;
}

.scale-enter-from, .scale-leave-to {
  opacity: 0;
  transform: scale(0.9);
}

/* ========== ANIMATIONS POUR LES PRODUITS ========== */
.product-card {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========== INDICATEURS DE PROGRESSION ========== */
.progress-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: #000;
  border-radius: 2px;
  transition: width 0.3s ease;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* ========== MESSAGES D'ERREUR ========== */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInUp 0.3s ease-out;
}

/* ========== LAZY LOADING SOFT ========== */
.lazy-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.lazy-image-container.loaded {
  background: none;
  animation: none;
}

.lazy-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.3s ease-out, filter 0.3s ease-out;
  transform: scale(0.95);
  filter: blur(1px);
}

.lazy-image.loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.lazy-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
  font-size: 0.875rem;
  opacity: 1;
  transition: opacity 0.4s ease-out;
  border-radius: 8px;
}

.lazy-image-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

.lazy-image-placeholder i {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

/* Animation de shimmer amÃ©liorÃ©e */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation de pulse douce */
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Effet de hover pour les images chargÃ©es */
.product-card:hover .lazy-image {
  transform: scale(1.02);
}

/* Optimisation pour les Ã©crans tactiles */
@media (hover: none) {
  .product-card:hover .lazy-image {
    transform: none;
  }
}

/* Optimisations pour mobile */
@media (max-width: 768px) {
  .lazy-image-container {
    border-radius: 6px;
  }
  
  .lazy-image-placeholder {
    border-radius: 6px;
    font-size: 0.75rem;
  }
  
  .lazy-image-placeholder i {
    font-size: 1.25rem;
  }
  
  .lazy-image {
    transition: opacity 0.4s ease-in-out, transform 0.2s ease-out, filter 0.2s ease-out;
  }
}

/* Optimisations pour les Ã©crans trÃ¨s petits */
@media (max-width: 480px) {
  .lazy-image-placeholder {
    font-size: 0.7rem;
  }
  
  .lazy-image-placeholder i {
    font-size: 1rem;
  }
}

/* ========== TOAST NOTIFICATIONS ========== */
#toast-container {
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
  transition: all 0.3s ease;
}

.toast.success {
  border-left-color: #10b981;
  color: #065f46;
}

.toast.error {
  border-left-color: #ef4444;
  color: #991b1b;
}

.toast.warning {
  border-left-color: #f59e0b;
  color: #92400e;
}

.toast.info {
  border-left-color: #3b82f6;
  color: #1e40af;
}

.toast.hiding {
  animation: slideOutRight 0.3s ease-in;
  opacity: 0;
  transform: translateX(100%);
}

.toast i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast span {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.toast button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  width: auto;
  font-size: 0.875rem;
}

.toast button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ========== SPECIFIC OVERRIDES FOR STYLES BAR / PRODUCT SIZES ========== */
.flex.flex-wrap.gap-2.justify-center button { border: solid 1px #9ca3af !important; }
.flex.flex-wrap.gap-2.justify-center button.bg-black { border: solid 2px #000000 !important; }
