/*
 * BASE STYLES — MC-EDEN
 * Industrial Gold theme (obsidian + gold, Big Shoulders Display + Inter)
 */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain : texture granuleuse subtile sur le fond noir */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); margin-bottom: var(--space-6); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: var(--space-5); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p { margin-bottom: var(--space-4); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--gold); }

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* === FORMS === */
input, textarea, select, button { font-family: inherit; font-size: inherit; }

button {
  cursor: pointer;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ash);
  border-radius: var(--radius-md);
  background-color: var(--carbon);
  color: var(--color-text);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--ash); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* === HELPERS (repris du template) === */
.gold { color: var(--gold); }

.eyebrow {
  display: block;
  font-family: var(--font-family);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.section { padding: 6rem 0; }

.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 0.5rem;
}

.link-arrow {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: letter-spacing var(--transition-normal);
  margin-top: 1.2rem;
}
.link-arrow:hover { letter-spacing: 0.15em; color: var(--gold); }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(229, 184, 11, 0.5);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* === REVEAL ON SCROLL === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* === UTILITIES === */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
