/* ===== BASE CSS - Variables & Reset communs ===== */

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

/* Variables communes (harmonisées) */
:root {
  /* Couleurs de base */
  --bg: #0a0010;
  --surface: #12001f;
  --white: #f3eaf9;
  --muted: rgba(243, 234, 249, 0.45);
  
  /* Accents violets */
  --purple: #9c27b0;
  --purple-light: #ce93d8;
  --purple-dark: #6a0080;
  --purple-accent: #7b2fff;
  --purple-gradient-start: #7b2fff;
  --purple-gradient-end: #c040ff;
  
  /* Accents secondaires */
  --pink: #ff40a0;
  --green: #4caf50;
  --green-light: #40ffb0;
  --red: #ff4060;
  
  /* Utilitaires */
  --glow: rgba(156, 39, 176, 0.35);
  --border-purple: rgba(123, 47, 255, 0.3);
  --surface-purple: rgba(123, 47, 255, 0.15);
  
  /* Typographie */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base HTML */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Éléments communs */
a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Animations communes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Scroll reveal (commun aux deux pages) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* Utilitaires */
.text-gradient {
  background: linear-gradient(135deg, var(--purple-light), var(--purple), var(--purple-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(90deg, var(--purple-gradient-start), var(--purple-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}
