/* ====================================
   KONVIX - CSS UNIFIÉ BOOTSTRAP 5
   Fichier CSS principal pour tout le site
   Modernisé avec Bootstrap 5.3 et design system
   ==================================== */

/* ====================================
   1. RESET ET BASE MODERNE
   ==================================== */
:root {
  /* Palette de couleurs moderne */
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #6c757d;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;

    
  /* Gradients modernes */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  /* Ombres modernes */
  --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
  --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
  --shadow-xl: 0 1.5rem 4rem rgba(0,0,0,.2);
  
  /* Espacement moderne */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  
  /* Typographie moderne */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'Poppins', 'Inter', sans-serif;
}
* {
  /* margin: 0; */
  /* padding: 0; */
  box-sizing: border-box;
}
body {
  font-family: var(--font-family-sans);
}
/* Classes utilitaires Bootstrap personnalisées */
.bg-gradient-primary {
  background: var(--gradient-primary) !important;
  color: white;
}
.bg-gradient-success {
  background: var(--gradient-success) !important;
  color: white;
}
.bg-gradient-warning {
  background: var(--gradient-warning) !important;
  color: white;
}
/* ====================================
   2. LAYOUT ET STRUCTURE - BODY
   ==================================== */

body {
  min-height: 100vh;
  /* display: flex; */
  /* flex-direction: column; */
  background: #f8f9fa !important;
  color: #212529;
}
/* Structure pour footer sticky */
.main-content {
  flex: 1;
}
/* Footer aligné avec header */
footer.text-light {
  margin-top: auto;
}
footer .hover-link:hover {
  color: #60a5fa !important;
  transform: translateX(2px);
  transition: all 0.3s ease;

  line-height: 1.6;
  color: var(--dark);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Typographie moderne */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }
/* Fix pour éviter le débordement du fond blanc */
.main {
  background: transparent !important;
  min-height: auto !important;
  height: auto !important;
  /* padding: 0 !important; */
  /* margin: 0 !important; */
  position: relative;
  z-index: 1;
}
/* Container principal */
.container, .container-fluid {
  background: transparent !important;
  box-shadow: none !important;
  /* padding-left: 0 !important; */
  /* padding-right: 0 !important; */
}
/* Fix pour le body et html */
html, body {
  background: #f8f9fa;
  min-height: 100vh;
  /* margin: 0; */
  /* padding: 0; */
  overflow-x: hidden;
}
/* Header fixe et z-index */
.navbar {
  position: relative;
  z-index: 1030;
}
/* Carousel moderne - Fix pour éviter superposition */
.carousel {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  /* margin: 0; */
  /* padding: 0; */
}
.carousel-item img {
  height: 400px;
  object-fit: cover;
  width: 100%;
  display: block;
}
.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
}
.carousel-indicators {
  bottom: 1rem;
}
.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}
/* Fix pour le contenu après carousel */
.carousel + .container,
.carousel + .container-fluid {
  margin-top: 2rem;
}
/* Empêcher débordement images */
img {
  max-width: 100%;
  height: auto;
}
/* Section produits */
.products-section {
  background: white;
  padding: 3rem 0 1rem 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.product-grid {
  margin-top: 2rem;
}
/* ====================================
   FOOTER MODERNE
   ==================================== */
footer {
  background: linear-gradient(270deg, #0f1729 0%, #1e3a8a 25%, #2563eb 50%, #3b82f6 75%, #60a5fa 100%) !important;
  clear: both;
  width: 100%;
  margin-top: auto;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0 -15px;
}
footer [class*="col-"] {
  padding: 0 15px;
  box-sizing: border-box;
}
footer .footer-section {
  padding: 1rem;
  height: 100%;
}
@media (min-width: 992px) {
  footer .col-lg-4 {
    width: 33.33333%;
    flex: 0 0 33.33333%;
  }
  footer .col-lg-2 {
    width: 16.66667%;
    flex: 0 0 16.66667%;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  footer .col-md-6 {
    width: 50%;
    flex: 0 0 50%;
  }
}
@media (max-width: 767.98px) {
  footer [class*="col-"] {
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 2rem;
  }
}
footer .hover-link {
  transition: all 0.3s ease;
  display: inline-block;
}
footer .hover-link:hover {
  color: #60a5fa !important;
  transform: translateX(5px);
}
footer .social-link {
  transition: all 0.3s ease;
  display: inline-block;
}
footer .social-link:hover {
  color: #60a5fa !important;
  transform: translateY(-3px) scale(1.1);
}
footer hr {
  opacity: 0.3;
  margin: 2rem 0;
  border-color: #495057;
  width: 100%;
}
footer h6 {
  color: #ffffff !important;
  font-weight: 600;
  margin-bottom: 1rem;
}
footer p {
  line-height: 1.6;
  color: #adb5bd;
}
footer ul {
  padding-left: 0;
  list-style: none;
}
footer li {
  list-style: none;
  margin-bottom: 0.5rem;
}
footer img {
  max-width: 100%;
  height: auto;
}
/* Fix pour le main content */
.main-content {
  min-height: calc(100vh - 220px);
  padding-bottom: 2rem;
  background: transparent;
}
/* ====================================
   2. COMPOSANTS BOOTSTRAP 5 MODERNES
   ==================================== */

/* Boutons modernes */
.btn {
  font-family: var(--font-family-sans);
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-success {
  background: var(--gradient-success);
}
.btn-warning {
  background: var(--gradient-warning);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--border-radius-lg);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
/* Cards modernes */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  -webkit-transform: translateY(-8px);
  -moz-transform: translateY(-8px);
  -ms-transform: translateY(-8px);
  -o-transform: translateY(-8px);
}
.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-weight: 600;
}
/* Formulaires modernes */
.form-control {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-family-sans);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  transform: translateY(-1px);
}
.form-label {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
/* Alerts modernes */
.alert {
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.5rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
}
/* Navbar moderne - Structure en deux parties */
.navbar {
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  border: none;
}
/* Partie haute du header */
.navbar:first-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
}
/* Partie basse du header */
.navbar:nth-of-type(2) {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0;
}
.navbar-brand {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}
.navbar-brand:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}
.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  margin: 0 0.2rem;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}
/* Section compte utilisateur dans la partie haute */
.cart-indicator a,
.user-actions a {
  transition: all 0.3s ease;
}
.cart-indicator:hover,
.user-actions a:hover {
  transform: scale(1.05);
}
/* SVG cart icon styling */
.cart-indicator svg {
  transition: all 0.3s ease;
}
.cart-indicator:hover svg {
  stroke: #60a5fa;
}
/* Responsive pour mobile - garder la structure */
@media (max-width: 991.98px) {
  .navbar:first-of-type .col-lg-4:nth-child(2) {
    display: block !important;
    text-align: center;
    margin: 1rem 0;
  }
    .navbar-collapse {
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}
/* Dropdown moderne */
.dropdown-menu {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}
.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}
.dropdown-item:hover {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
}
.dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(0, 0, 0, 0.1);
}
/* Cart indicator */
.cart-indicator {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.cart-indicator:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
/* User actions */
.user-actions .btn-group .btn {
  border-radius: var(--border-radius);
}
.user-actions .btn-group .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.user-actions .btn-group .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
/* Mobile navbar */
.navbar-toggler {
  border: none;
  padding: 0.4rem 0.6rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-collapse {
  margin-top: 1rem;
}
@media (max-width: 991.98px) {
  .navbar-nav {
    margin-top: 1rem;
  }
}
  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
    .dropdown-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
  }
    .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
  }
    .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
  }
  .nav-link:hover {
  transform: translateY(-1px);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 80%;
}
/* Badges modernes */
.badge {
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
}
/* Pagination moderne */
.pagination .page-link {
  border-radius: var(--border-radius);
  margin: 0 0.2rem;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.pagination .page-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
/* ====================================
   4. COMPOSANTS SPÉCIALISÉS MODERNES
   ==================================== */

/* Breadcrumb moderne */
.breadcrumb {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.breadcrumb-item a {
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
}
.breadcrumb-item a:hover {
  color: var(--primary-dark);
  transform: translateX(2px);
}
/* Cards produit améliorées */
.product-card, .card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}
.product-card:hover, .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}
.card-body {
  padding: 1.5rem;
}
.card-title {
  font-family: var(--font-family-display);
  font-weight: 600;
  margin-bottom: 1rem;
}
/* Images produit - Fix pour dimensions cohérentes */
.product-image {
  width: 100%;
  /* height: 250px !important; */
  /* object-fit: cover !important; */
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}
.product-image:hover {
  transform: scale(1.05);
}
/* Cards produit - Fix pour layout cohérent */
.product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
.product-card .card-body {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
.product-card .card-text {
  flex-grow: 1 !important;
  margin-bottom: 1rem !important;
}
/* Grille produits responsive */
.row.g-4 {
  margin: 0 -0.75rem !important;
  align-items: stretch !important;
}
.row.g-4 > * {
  padding: 0 0.75rem !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
}
.product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
.product-card .card-body {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
.product-card .card-text {
  flex-grow: 1 !important;
  margin-bottom: 1rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  /* -webkit-line-clamp: 3 !important; */
  -webkit-box-orient: vertical !important;
  min-height: 60px !important;
  max-height: 60px !important;
}
/* Container fix pour éviter débordement */
.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}
/* Section produits spacing */
.products-section {
  padding: 3rem 0 !important;
  background: white !important;
}
.section-title {
  margin-bottom: 3rem !important;
  text-align: center !important;
}
/* Galerie d'images améliorée */
#theBigImageHolder {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  background: var(--light);
}
#bigImage {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
#bigImage:hover {
  transform: scale(1.02);
}
/* Vignettes améliorées */
#thumbnailsHolder img {
  border: 3px solid transparent;
  opacity: 0.7;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
}
#thumbnailsHolder img:hover {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(var(--primary), 0.4);
}
#thumbnailsHolder img.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(var(--primary), 0.4);
}
/* Prix moderne */
.price-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-family-display);
}
/* Stock indicators */
.stock-indicator {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.stock-available {
  background: rgba(25, 135, 84, 0.1);
  color: var(--success);
  border: 1px solid rgba(25, 135, 84, 0.2);
}
.stock-unavailable {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 53, 69, 0.2);
}
/* Sections spacing moderne */
.section-modern {
  padding: 4rem 0;
}
.section-title {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.errorMessage {
  text-align: center;
  color: #c72333;
  padding: 10px 15px;
  font-style: italic;
  margin: 20px auto;
  border: 1px solid #c72333;
  border-radius: 5px;
  background-color: #f9c5ca;
}
.error {
  color: red;
  font-size: 0.9em;
  font-style: italic;
}
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}
/* ====================================
   3. NAVIGATION
   ==================================== */
.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: white !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #f8f9fa !important;
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
}
/* ====================================
   4. PAGES PRODUITS
   ==================================== */

/* Galerie d'images produit */
#gHolder {
  margin-bottom: 30px;
}

#bigImage {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

#bigImage:hover {
  transform: scale(1.02);
}

#thumbnailsHolder {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  justify-content: flex-start;
}

#thumbnailsHolder img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#thumbnailsHolder img:hover {
  border-color: #007bff;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}
/* Section informations produit */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.lead {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: #666;
}

/* Prix */
.text-primary {
  color: #007bff !important;
}

.fw-bold {
  font-weight: bold !important;
}

/* Boutons */
.btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
}
/* Stock et quantité */
input[type="text"], input[type="number"] {
  border: 2px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
/* ====================================
   6. RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  #thumbnailsHolder {
    justify-content: center;
  }
  
  #thumbnailsHolder img {
    width: 60px !important;
    height: 60px !important;
  }
  
  .featurette-heading {
    font-size: 1.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  #bigImage {
    max-height: 300px;
    object-fit: cover;
  }
}
/* ====================================
   7. ANIMATIONS ET EFFETS
   ==================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* ====================================
   8. FOOTER
   ==================================== */
footer {
  background: #343a40;
  color: white;
  padding: 30px 0;
  margin-top: 50px;
}

/* ====================================
   9. UTILITAIRES
   ==================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Ombres */
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175); }
/* ====================================
   11. PANIER MODERNE
   ==================================== */

/* Animations pour le panier */
@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* Container panier */
.cart-item {
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
}

.cart-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
/* Contrôles de quantité */
.quantity-controls {
  gap: 0.5rem;
}

.quantity-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e9ecef;
  background: white;
  transition: all 0.3s ease;
}

.quantity-controls button:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.quantity-controls button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.quantity-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: var(--border-radius);
}

/* Images produit dans le panier */
.cart-item img {
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.cart-item:hover img {
  transform: scale(1.05);
  border-color: var(--primary);
}

/* Prix et totaux */
.price-display {
  font-family: var(--font-family-display);
  font-weight: 700;
}

.cart-total {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

/* Boutons d'action du panier */
.cart-actions .btn {
  transition: all 0.3s ease;
}

.cart-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
/* Badge du panier (pour header) */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: bounceIn 0.5s ease;
}

/* Panier vide */
.empty-cart {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.empty-cart i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* Récapitulatif collant */
.cart-summary {
  position: sticky;
  top: 100px;
}

.cart-summary .card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* Informations de livraison */
.shipping-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: var(--border-radius);
  padding: 1rem;
}

/* Indicateurs de statut */
.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.stock-available {
  background: rgba(25, 135, 84, 0.1);
  color: var(--success);
  border: 1px solid rgba(25, 135, 84, 0.2);
}

.stock-low {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning);
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.stock-out {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 53, 69, 0.2);
}
/* Responsive panier */
@media (max-width: 768px) {
  .cart-item {
    padding: 1rem !important;
  }
  
  .quantity-controls button {
    width: 32px;
    height: 32px;
  }
  
  .cart-summary {
    position: static;
    margin-top: 2rem;
  }
  
  .cart-item .row > div {
    margin-bottom: 1rem;
  }
  
  .cart-item .row > div:last-child {
    margin-bottom: 0;
  }
}

/* Transitions globales du panier */
.cart-transition {
  transition: all 0.3s ease;
}

.cart-scale:hover {
  transform: scale(1.02);
}
/* Messages de feedback */
.cart-feedback {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Améliorations de la galerie existante */
#gHolder {
  position: relative;
}

#theBigImageHolder {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

#bigImage {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

#bigImage:hover {
  transform: scale(1.02);
}
/* Amélioration des vignettes */
#thumbnailsHolder img {
  border: 3px solid transparent;
  opacity: 0.7;
  position: relative;
}

#thumbnailsHolder img:hover {
  opacity: 1;
  border-color: #007bff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

#thumbnailsHolder img.active {
  opacity: 1;
  border-color: #007bff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}
/* Lightbox moderne */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-image.zoomed {
  cursor: zoom-out;
  transform: scale(2);
}
/* Contrôles de navigation lightbox */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}
/* Bouton de fermeture */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
/* Indicateurs d'image */
.lightbox-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
/* Badge de zoom */
.zoom-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Instructions de zoom */
.zoom-instructions {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: center;
  animation: fadeInOut 4s ease-in-out infinite;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  to { 
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.lightbox-content {
  animation: zoomIn 0.3s ease;
}

/* Counter d'images */
.image-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  backdrop-filter: blur(10px);
}
/* Responsive pour la lightbox */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
  
  .zoom-instructions {
    bottom: 80px;
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .image-counter {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .zoom-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ====================================
   FOOTER HORIZONTAL MODERNE - PRIORITÉ
   ==================================== */
footer nav a {
  transition: all 0.3s ease !important;
  padding: 0.5rem 0 !important;
  color: white !important;
}

footer nav a:hover {
  color: #60a5fa !important;
  transform: translateY(-2px) !important;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5) !important;
  text-decoration: none !important;
}

/* Navigation horizontale responsive */
footer nav {
  gap: 1rem !important;
}

@media (max-width: 768px) {
  footer nav {
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center !important;
  }
  
  footer .col-md-3,
  footer .col-md-6 {
    text-align: center !important;
  }
}

/* Fix pour éviter la duplication */
footer + footer {
  display: none !important;
}




