/* ========================================
   CISTONE - MAIN STYLES
   ======================================== */

/* CSS Custom Properties */
:root {
  /* Colors - Noir et Blanc uniquement */
  --color-primary: #FFFFFF;
  --color-secondary: #000000;
  --color-accent: #FFFFFF;
  --color-background: #000000;
  --color-surface: rgba(255, 255, 255, 0.08);
  --color-surface-hover: rgba(255, 255, 255, 0.15);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-text-muted: rgba(255, 255, 255, 0.6);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 80px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 32px rgba(255, 215, 0, 0.3);
  
  /* Animations */
  --ease-natural: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Transitions */
  --transition-fast: 0.2s var(--ease-natural);
  --transition-normal: 0.4s var(--ease-natural);
  --transition-slow: 0.7s var(--ease-natural);
  --transition-spring: 0.5s var(--ease-spring);
  
  /* Z-Index */
  --z-navigation: 9999;
  --z-modal: 1000;
  --z-overlay: 100;
  --z-content: 10;
  --z-background: -1;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Limiter le rebond de scroll en haut/bas */
body {
  overscroll-behavior-y: contain;
}

/* Réduire l’espace entre CISTONES et la partie musique */
.hero-section {
  padding-bottom: 24px;
}

.player-section {
  margin-top: -8px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: var(--font-weight-black);
}

h2 {
  font-size: clamp(2rem, 6vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

/* Links */
a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* Buttons */
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sections */
section {
  position: relative;
  min-height: 100vh;
  padding: var(--spacing-4xl) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Glassmorphism Utility */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
  }
}

/* Utility Classes */
.fade-in {
  animation: fadeIn 0.8s var(--ease-natural) forwards;
}

.slide-in-up {
  animation: slideInUp 0.8s var(--ease-natural) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s var(--ease-natural) forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s var(--ease-natural) forwards;
}

.scale-in {
  animation: scaleIn 0.6s var(--ease-spring) forwards;
}

.rotate {
  animation: rotate 2s linear infinite;
}

.pulse {
  animation: pulse 2s var(--ease-natural) infinite;
}

.glow {
  animation: glow 2s var(--ease-natural) infinite;
}

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

@media (prefers-color-scheme: light) {
  :root {
    --color-background: #000000;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-text-muted: rgba(255, 255, 255, 0.6);
  }
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-surface-hover);
}
