/* styleseliasshoes.css - Version consolidée */

/* ===== VARIABLES & RESET ===== */
:root {
  --primary: #2c3e50;
  --primary-dark: #1a252f;
  --secondary: #e74c3c;
  --secondary-dark: #c0392b;
  --accent: #f39c12;
  --accent-dark: #e67e22;
  --success: #27ae60;
  --success-dark: #219653;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --gray: #95a5a6;
  --border: 1px solid #ddd;
  --shadow: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-hover: 0 12px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f9f9f9;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: var(--primary);
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-btn {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.nav-btn:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ===== DROPDOWN MENU ===== */
.dropdown { 
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.admin-badge {
  background-color: #e74c3c;
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ===== CART & BADGES ===== */
.cart-icon { 
  position: relative;
}

.cart-badge, .cart-count {
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
}

.reservation-count {
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  margin-left: 5px;
}

/* ===== PRODUCTS GRID - IMAGES ET BOUTONS UNIFORMES ===== */
.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.produit-card {
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.produit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* CONTENEUR IMAGE FIXE */
.produit-image-container {
  width: 100%;
  height: 220px; /* HAUTEUR FIXE POUR TOUTES LES IMAGES */
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.produit-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recadre l'image sans déformation */
  transition: transform 0.3s ease;
}

.produit-card:hover .produit-image {
  transform: scale(1.05);
}

/* CONTENU PRODUIT */
.produit-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.produit-nom {
  font-size: 1.3em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

.produit-description {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.produit-prix {
  font-size: 1.5em;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 15px;
}

/* BOUTONS DE MÊME TAILLE */
.produit-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-details, .btn-reserver {
  flex: 1;
  text-align: center;
  padding: 12px 5px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-details {
  background: #3498db;
  color: white;
}

.btn-details:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-reserver {
  background: #e74c3c;
  color: white;
}

.btn-reserver:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* BOUTONS GÉNÉRAUX */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: var(--success-dark);
}

.btn-danger {
  background-color: var(--secondary);
  color: white;
}

.btn-danger:hover {
  background-color: var(--secondary-dark);
}

/* ===== PRODUCT STATUS ===== */
.produit-statut {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  z-index: 2;
}

.statut-disponible {
  background: var(--success);
  color: white;
}

.statut-reserve {
  background: var(--accent);
  color: white;
}

.statut-vendu {
  background: #7f8c8d;
  color: white;
}

/* ===== MESSAGES & ALERTS ===== */
.flash-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.flash-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  margin: 20px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  background-color: #f8d7da;
  color: #721c24;
}

/* ===== SEARCH & FILTERS ===== */
.search-results-info {
  margin-bottom: 20px;
  padding: 10px;
  background: #e2e3e5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.no-products {
  text-align: center;
  padding: 40px;
  font-size: 1.2em;
  color: #6c757d;
}

/* ===== PANIER ===== */
.panier-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin: 2rem auto;
  max-width: 1200px;
}

.panier-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.panier-table th {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
}

.panier-table td {
  padding: 1.5rem;
  border-bottom: var(--border);
  vertical-align: middle;
}

.produit-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.produit-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.quantite-input {
  width: 60px;
  padding: 0.5rem;
  text-align: center;
  border: var(--border);
  border-radius: 4px;
}

.panier-total {
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1.5rem;
}

.panier-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 15px;
}

.panier-actions-right {
  display: flex;
  gap: 15px;
}

/* ===== BOUTONS SPÉCIFIQUES ===== */
.btn-supprimer {
  background-color: var(--secondary);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
}

.btn-supprimer:hover {
  background-color: var(--secondary-dark);
}

.btn-commander {
  background-color: var(--success);
  color: white;
  padding: 10px 20px;
}

.btn-commander:hover {
  background-color: var(--success-dark);
}

.btn-continuer {
  background-color: var(--gray);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
}

.btn-maj {
  background-color: #17a2b8;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-maj:hover {
  background-color: #138496;
}

/* ===== RÉSERVATIONS ===== */
.reservations-btn {
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-weight: bold;
  transition: var(--transition);
}

.reservations-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: white;
}

.cart-info {
  background: #e8f4fd;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #b8daff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== GESTION DES QUANTITÉS ===== */
.quantite-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1.5rem;
}

.quantite-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.btn-quantite {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  cursor: pointer;
  border-radius: 4px;
}

.btn-quantite:hover {
  background: #e9ecef;
}

/* ===== DETAILS PRODUIT ===== */
.produit-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.produit-detail-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.produit-detail-info {
  padding: 1rem;
}

.produit-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.produit-detail-info .prix {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.description h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.ajout-panier-form {
  margin-top: 2rem;
}

.btn-ajouter-panier {
  background-color: var(--success);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ajouter-panier:hover {
  background-color: var(--success-dark);
}

/* ===== ZOOM IMAGE DÉTAILS ===== */
.image-section {
  flex: 1;
  max-width: 600px;
  margin-right: 40px;
}

.image-container {
  width: 100%;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.produit-image-main {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Image complète sans rognage */
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.no-image {
  text-align: center;
  color: #7f8c8d;
  padding: 40px;
}

/* CONTRÔLES ZOOM */
.zoom-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-zoom {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-zoom:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-zoom:active {
  transform: translateY(0);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 30px 0;
}

.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a {
  background-color: var(--light);
  color: var(--dark);
}

.pagination a:hover {
  background-color: var(--primary);
  color: white;
}

.pagination .active {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
}

/* ===== LIGHTBOX ===== */
.lb-dataContainer {
  padding-top: 0;
}

.lb-nav {
  width: 30%;
}

.lb-image {
  transition: transform 0.25s ease;
  cursor: zoom-in;
  max-width: none !important;
}

.lb-outerContainer {
  overflow: visible !important;
}

.zoomable-image {
  display: block;
  overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .produits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .produit-detail-container {
    grid-template-columns: 1fr;
  }
  
  .produit-detail-image img {
    max-height: 350px;
  }
  
  .image-section {
    margin-right: 0;
    margin-bottom: 30px;
    max-width: 100%;
  }
  
  .image-container {
    height: 300px;
  }
  
  .panier-table td {
    padding: 1rem;
  }
  
  .panier-actions {
    flex-direction: column;
  }
  
  .panier-actions-right {
    flex-direction: column;
  }
  
  .detail-section {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .produits-grid {
    grid-template-columns: 1fr;
  }
  
  .produit-actions {
    flex-direction: column;
  }
  
  .btn-details, .btn-reserver {
    width: 100%;
  }
  
  .panier-table thead {
    display: none;
  }
  
  .panier-table tr {
    display: block;
    margin-bottom: 1.5rem;
    border: var(--border);
    border-radius: 8px;
    padding: 1rem;
  }
  
  .panier-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border: none;
  }
  
  .panier-table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 1rem;
  }
  
  .produit-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .btn-maj, .btn-continuer, .btn-commander {
    width: 100%;
    text-align: center;
  }
  
  .zoom-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-zoom {
    width: 200px;
  }
}
/* ===== PAGES JURIDIQUES ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.legal-content section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.legal-content h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.legal-content h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.legal-content p, .legal-content li {
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content ol {
    padding-left: 1.5rem;
}

.last-update {
    font-style: italic;
    color: var(--gray);
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}