/**
 * CLASSES CSS RÉUTILISABLES
 * Remplace les 688 styles inline détectés dans l'audit
 *
 * UTILISATION:
 * 1. Inclure ce fichier dans getLayout(): <link rel="stylesheet" href="/audit-fixes/reusable-styles.css">
 * 2. Remplacer les attributs style="" par les classes correspondantes
 */

/* ============================================
   LAYOUT & SPACING
   ============================================ */

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

/* Margins */
.m-0 { margin: 0; }
.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* ============================================
   COLORS
   ============================================ */

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gold { color: var(--gold-500, #d4af37); }
.text-gray-light { color: rgba(255, 255, 255, 0.7); }
.text-gray-dark { color: rgba(0, 0, 0, 0.7); }

.bg-transparent { background-color: transparent; }
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gold { background-color: var(--gold-500, #d4af37); }

/* ============================================
   BORDERS
   ============================================ */

.border-0 { border: none; }
.border-1 { border: 1px solid currentColor; }
.border-gold { border-color: var(--gold-500, #d4af37); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ============================================
   POSITIONING
   ============================================ */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ============================================
   DISPLAY & VISIBILITY
   ============================================ */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.visible { visibility: visible; }
.invisible { visibility: hidden; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ============================================
   WIDTH & HEIGHT
   ============================================ */

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-screen { width: 100vw; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-screen { max-width: 100vw; }

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--gold-500, #d4af37);
  color: var(--gold-500, #d4af37);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--gold-500, #d4af37);
  color: #000;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.pagination-number:hover {
  border-color: var(--gold-500, #d4af37);
  color: var(--gold-500, #d4af37);
}

.pagination-number.active {
  background: var(--gold-500, #d4af37);
  color: #000;
  border-color: var(--gold-500, #d4af37);
}

.pagination-ellipsis {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.5rem;
}

.pagination-info {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ============================================
   PRODUCT CARD OPTIMIZATIONS
   ============================================ */

.product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.product-card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.05);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-cta {
  color: var(--gold-500, #d4af37);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold-500, #d4af37);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
}

.product-card-info {
  padding: 1.5rem;
}

.product-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.product-card-price {
  color: var(--gold-500, #d4af37);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

.product-card-wishlist {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.product-card-wishlist:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-500, #d4af37);
}

.product-card-wishlist svg {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.product-card-wishlist:hover svg {
  color: var(--gold-500, #d4af37);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .pagination-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .pagination-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
  }

  .pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.transition-all { transition: all 0.3s ease; }
.transition-fast { transition: all 0.15s ease; }
.transition-slow { transition: all 0.6s ease; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

.select-none { user-select: none; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }

/* ============================================
   SECTION HEADINGS (H2) - POUR HIÉRARCHIE
   ============================================ */

.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 3rem 0 2rem 0;
  text-align: center;
}

.section-heading-gold {
  color: var(--gold-500, #d4af37);
}

.section-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500, #d4af37) 0%, transparent 100%);
  margin: 1.5rem auto;
}
