/* ============================================================
   WEEDN DESIGN SYSTEM — Streetwear Chic Paris
   Direction Artistique validee 25/01/2026
   ============================================================ */

:root {
  /* Fonds — NOIR DOMINANT */
  --weedn-bg: #0a0a0a;
  --weedn-bg-card: #141414;
  --weedn-bg-hover: #1a1a1a;
  --weedn-bg-input: #1c1c1e;

  /* Texte */
  --weedn-text: #ffffff;
  --weedn-text-muted: #a1a1aa;
  --weedn-text-dim: #71717a;

  /* Accents */
  --weedn-green: #2F7759;
  --weedn-green-neon: #22c55e;
  --weedn-green-dark: #1a4a36;
  --weedn-purple: #9333ea;
  --weedn-red: #ef4444;
  --weedn-amber: #f59e0b;
  --weedn-blue: #3b82f6;

  /* Bordures */
  --weedn-border: #27272a;
  --weedn-border-hover: #3f3f46;

  /* Rayons — MAX 4px */
  --weedn-radius-sm: 2px;
  --weedn-radius: 4px;
  --weedn-radius-none: 0px;

  /* Typographie */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Tailles */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Espacement (base 8px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(34, 197, 94, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 960px;
  --header-height: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--weedn-text);
  background-color: var(--weedn-bg);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-4); color: var(--weedn-text-muted); }
a { color: var(--weedn-green-neon); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--weedn-text); }

.font-mono { font-family: var(--font-mono); }
.text-muted { color: var(--weedn-text-muted); }
.text-dim { color: var(--weedn-text-dim); }
.text-neon { color: var(--weedn-green-neon); }

/* ============================================================
   LAYOUT
   ============================================================ */

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

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: var(--space-20) 0;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
  .section { padding: var(--space-12) 0; }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-8);
  border: none;
  border-radius: var(--weedn-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
}

.btn--primary {
  background: var(--weedn-green-neon);
  color: var(--weedn-bg);
}
.btn--primary:hover {
  background: var(--weedn-text);
  color: var(--weedn-bg);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--weedn-text);
  border: 1px solid var(--weedn-border);
}
.btn--secondary:hover {
  border-color: var(--weedn-green-neon);
  color: var(--weedn-green-neon);
}

.btn--ghost {
  background: transparent;
  color: var(--weedn-text-muted);
  padding: var(--space-2) var(--space-4);
}
.btn--ghost:hover { color: var(--weedn-text); }

.btn--sm { font-size: var(--text-sm); padding: var(--space-2) var(--space-4); }
.btn--lg { font-size: var(--text-xl); padding: var(--space-4) var(--space-12); }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--weedn-bg-card);
  border: 1px solid var(--weedn-border);
  border-radius: var(--weedn-radius);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: var(--weedn-border-hover);
  box-shadow: var(--shadow-md);
}

.card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--weedn-bg);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img { transform: scale(1.05); }

.card__body { padding: var(--space-4); }

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--weedn-radius-sm);
  text-transform: uppercase;
}

.badge--green { background: var(--weedn-green-neon); color: var(--weedn-bg); }
.badge--purple { background: var(--weedn-purple); color: var(--weedn-text); }
.badge--red { background: var(--weedn-red); color: var(--weedn-text); }
.badge--amber { background: var(--weedn-amber); color: var(--weedn-bg); }
.badge--outline { background: transparent; border: 1px solid var(--weedn-border); color: var(--weedn-text-muted); }

/* ============================================================
   FORMS
   ============================================================ */

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--weedn-text);
  background: var(--weedn-bg-input);
  border: 1px solid var(--weedn-border);
  border-radius: var(--weedn-radius);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-fast);
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--weedn-green-neon);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.form-input::placeholder { color: var(--weedn-text-dim); }

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--weedn-text-muted);
  margin-bottom: var(--space-2);
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--weedn-border);
  border-bottom: 1px solid var(--weedn-border);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--weedn-text-muted);
  font-size: var(--text-sm);
}

.trust-bar__icon {
  width: 24px;
  height: 24px;
  color: var(--weedn-green-neon);
}

@media (max-width: 768px) {
  .trust-bar {
    flex-wrap: wrap;
    gap: var(--space-6);
    justify-content: space-around;
  }
}

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

.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 { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--weedn-green-neon);
  outline-offset: 2px;
}

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

/* Selection */
::selection {
  background: var(--weedn-green);
  color: var(--weedn-text);
}

/* Scrollbar (dark) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--weedn-bg); }
::-webkit-scrollbar-thumb { background: var(--weedn-border); border-radius: var(--weedn-radius); }
::-webkit-scrollbar-thumb:hover { background: var(--weedn-border-hover); }
