/* ===== Variables CSS ===== */
:root {
  --font-size: 16px;
  --background: #f5efe3;
  --foreground: #1c0f06;
  --card: #ede5d4;
  --card-foreground: #1c0f06;
  --popover: #ede5d4;
  --popover-foreground: #1c0f06;
  --primary: #271208;
  --primary-foreground: #f5efe3;
  --secondary: #35512f;
  --secondary-foreground: #f5efe3;
  --muted: #e2d9c8;
  --muted-foreground: #7a6a50;
  --accent: #c4a035;
  --accent-foreground: #1c0f06;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(28, 15, 6, 0.13);
  --input: transparent;
  --input-background: #ede5d4;
  --switch-background: #c8bfae;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #c4a035;
  --radius: 0.125rem;
}

/* ===== Base ===== */
* {
  border-color: var(--border);
}
body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
  overflow-x: hidden;
}
html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}
::selection {
  background: rgba(196, 160, 53, 0.28);
  color: var(--foreground);
}
img {
  background: linear-gradient(135deg, rgba(39, 18, 8, 0.12), rgba(53, 81, 47, 0.16));
}
button {
  cursor: pointer;
}

/* ===== Classes utilitaires de couleurs (suppléments Tailwind) ===== */
.bg-background {
  background: var(--background);
}
.bg-primary {
  background: var(--primary);
}
.bg-accent {
  background: var(--accent);
}
.bg-card {
  background: var(--card);
}
.bg-muted {
  background: var(--muted);
}
.text-foreground {
  color: var(--foreground);
}
.text-primary-foreground {
  color: var(--primary-foreground);
}
.text-accent-foreground {
  color: var(--accent-foreground);
}
.text-muted-foreground {
  color: var(--muted-foreground);
}
.border-border {
  border-color: var(--border);
}
.border-accent {
  border-color: var(--accent);
}

/* ===== Animations ===== */
@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(200%);
    opacity: 0;
  }
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

/* ===== Fade-in au scroll ===== */
.fade-section {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===== Hero image ===== */
.hero-image {
  animation: heroZoom 18s ease-in-out infinite alternate;
}

/* ===== Scroll indicator ===== */
.scroll-bar {
  background: rgba(245, 239, 227, 0.15);
}
.scroll-fill {
  background: rgba(196, 160, 53, 0.7);
  animation: slideDown 1.6s ease-in-out infinite;
}

/* ===== Cartes produits ===== */
.product-card {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(196, 160, 53, 0.55);
  box-shadow: 0 20px 55px rgba(28, 15, 6, 0.13);
}

/* ===== Filtres ===== */
.filter-btn {
  transition: all 0.3s;
}

/* ===== Formulaire ===== */
input,
textarea {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
}
input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* ===== Réduction de mouvement ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .fade-section {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-image {
    animation: none !important;
  }
}