/* ============================================================
   BASE — Reset, typo de base, utilitaires
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Texture subtile globale */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.04), transparent 50%),
    radial-gradient(1px 1px at 70% 80%, rgba(0,229,255,0.04), transparent 50%),
    radial-gradient(1px 1px at 50% 50%, rgba(198,255,61,0.03), transparent 50%);
  background-size: 800px 800px, 600px 600px, 1000px 1000px;
  opacity: 0.6;
}

img, svg, video { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: var(--leading-tight); font-weight: 600; }
p { margin: 0; }

::selection { background: var(--neon-lime); color: var(--bg-0); }

/* Scrollbar custom */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-4); }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-8); } }

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---------- TITRES ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  letter-spacing: var(--tracking-tight);
  line-height: 0.95;
}

.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--neon-lime);
}
.h-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--neon-lime);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--space-24) 0;
  position: relative;
  z-index: var(--z-base);
}
@media (max-width: 767px) {
  .section { padding: var(--space-16) 0; }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  max-width: 720px;
}
.section-header.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
}
.section-header p {
  color: var(--text-2);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

/* ---------- UTILS ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden { display: none !important; }

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--neon-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .announce, .cart-drawer, .search-overlay,
  .backdrop, .toast-container, .featured__nav, .pagination,
  .shop-sidebar, .mobile-menu { display: none !important; }
  body { background: white; color: black; }
}
