/**
 * dh-design-system.css — Phase 20D B1 Design system unifié
 *
 * Tokens couleurs/spacing/typography + utilities + animations + skeletons.
 * Chargé en complément du CSS V2 existant (sans le remplacer).
 *
 * Préfixe : dh- pour éviter collisions.
 */

:root {
  /* Couleurs marque */
  --dh-navy: #073649;
  --dh-navy-light: #0a4d68;
  --dh-gold: #e8a96a;
  --dh-gold-dark: #d4915a;
  --dh-cream: #f8f5ef;
  --dh-cream-warm: #ffeed5;
  --dh-green: #25d366; /* WhatsApp */
  --dh-red: #e63946;
  --dh-amber: #f57c00;

  /* Neutrals */
  --dh-text: #1a1a1a;
  --dh-text-muted: #666;
  --dh-text-light: #999;
  --dh-bg: #ffffff;
  --dh-bg-alt: #f9f9f9;
  --dh-border: #e0e0e0;
  --dh-border-light: #eeeeee;

  /* Spacing scale */
  --dh-s-1: 4px;
  --dh-s-2: 8px;
  --dh-s-3: 12px;
  --dh-s-4: 16px;
  --dh-s-5: 24px;
  --dh-s-6: 32px;
  --dh-s-7: 48px;
  --dh-s-8: 64px;

  /* Radius */
  --dh-r-sm: 6px;
  --dh-r-md: 10px;
  --dh-r-lg: 16px;
  --dh-r-xl: 24px;
  --dh-r-pill: 999px;

  /* Shadows */
  --dh-sh-1: 0 2px 8px rgba(0, 0, 0, 0.06);
  --dh-sh-2: 0 4px 14px rgba(0, 0, 0, 0.1);
  --dh-sh-3: 0 12px 32px rgba(0, 0, 0, 0.14);
  --dh-sh-4: 0 24px 64px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --dh-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dh-t-fast: 0.15s var(--dh-ease);
  --dh-t-base: 0.25s var(--dh-ease);
  --dh-t-slow: 0.4s var(--dh-ease);
}

/* ═══════════ Utilities ═══════════ */
.dh-u-stack-2 { display: flex; flex-direction: column; gap: var(--dh-s-2); }
.dh-u-stack-4 { display: flex; flex-direction: column; gap: var(--dh-s-4); }
.dh-u-row-2 { display: flex; align-items: center; gap: var(--dh-s-2); }
.dh-u-row-4 { display: flex; align-items: center; gap: var(--dh-s-4); }
.dh-u-center { display: flex; align-items: center; justify-content: center; }
.dh-u-card {
  background: white;
  border-radius: var(--dh-r-lg);
  padding: var(--dh-s-5);
  box-shadow: var(--dh-sh-1);
  border: 1px solid var(--dh-border-light);
}
.dh-u-card:hover { box-shadow: var(--dh-sh-2); }
.dh-u-btn-primary {
  background: var(--dh-navy);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--dh-r-md);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dh-t-fast);
}
.dh-u-btn-primary:hover { background: var(--dh-navy-light); }
.dh-u-btn-gold {
  background: var(--dh-gold);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--dh-r-md);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dh-t-fast);
}
.dh-u-btn-gold:hover { background: var(--dh-gold-dark); }

/* ═══════════ Skeletons (loading states) ═══════════ */
.dh-skeleton {
  background: linear-gradient(
    90deg,
    var(--dh-cream) 0%,
    #f0ecdf 50%,
    var(--dh-cream) 100%
  );
  background-size: 200% 100%;
  animation: dh-skeleton-shimmer 1.4s infinite;
  border-radius: var(--dh-r-sm);
}
@keyframes dh-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════ Hover micro-interactions ═══════════ */
.dh-hover-lift { transition: transform var(--dh-t-base), box-shadow var(--dh-t-base); }
.dh-hover-lift:hover { transform: translateY(-3px); box-shadow: var(--dh-sh-3); }

.dh-hover-zoom { overflow: hidden; }
.dh-hover-zoom img { transition: transform 0.6s var(--dh-ease); }
.dh-hover-zoom:hover img { transform: scale(1.07); }

/* ═══════════ Améliorations cards produits V2 (cibles génériques) ═══════════ */
.product-card, .activity-card, .card-product {
  transition: transform var(--dh-t-base), box-shadow var(--dh-t-base);
}
.product-card:hover, .activity-card:hover, .card-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--dh-sh-3);
}

/* Image zoom on hover dans cards */
.product-card img, .activity-card img, .card-product img {
  transition: transform 0.5s var(--dh-ease);
}
.product-card:hover img, .activity-card:hover img, .card-product:hover img {
  transform: scale(1.05);
}

/* ═══════════ Focus visible — accessibility ═══════════ */
:focus-visible {
  outline: 3px solid var(--dh-gold);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline-color: var(--dh-gold);
}

/* ═══════════ Reduced motion ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════ Print ═══════════ */
@media print {
  .bottom-nav,
  .dh-sticky-cta,
  .dh-cmp-bar,
  .dh-filters,
  .dh-trust-strip,
  .dh-lang-bar,
  .dh-cmp-pdp-btn,
  .dh-wish-btn { display: none !important; }
}
