/* ========================================
   BASE STYLES & RESET
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-cream);
  background-color: var(--color-black);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Effet grain statique sur le body avec SVG noise */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4; /* Opacité directe sans variable */
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)' opacity='0.6'/></svg>");
  background-repeat: repeat;
  background-size: 80px 80px;
}

/* Typographies */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  font-weight: normal;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

p {
  margin: 0;
  font-family: var(--font-body);
}

/* Liens */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-accent-electric);
}

/* Listes */
ul, ol {
  list-style: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Boutons */
button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-base);
}

/* SÃ©lection de texte */
::selection {
  background-color: var(--color-accent-electric);
  color: var(--color-black);
}

::-moz-selection {
  background-color: var(--color-accent-electric);
  color: var(--color-black);
}

/* Scrollbar personnalisÃ©e */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-grey-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-grey);
}

/* Utilitaires de base */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-cream);
  margin-bottom: var(--space-16);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-accent-primary);
}

/* Footer */
.footer {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-8) 0;
  text-align: center;
  border-top: 1px solid rgba(245, 243, 240, 0.1);
}

.footer p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-grey);
  letter-spacing: 0.05em;
}

/* Media queries pour responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  .section {
    padding: var(--section-padding-mobile) 0;
  }
  
  .section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-12);
  }
  
  body::before {
    background-size: 150px 150px;
  }
}

/* AmÃ©lioration du contraste pour l'accessibilitÃ© */
@media (prefers-contrast: high) {
  :root {
    --color-cream: #ffffff;
    --grain-opacity: 0.01;
  }
}

/* RÃ©duction des animations si prÃ©fÃ©rÃ© */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
