/* CSS Custom Properties - Modern Purple Glass Theme */
:root {
  /* Primary Colors */
  --brand: #a855f7;
  --brand-light: #c084fc;
  --brand-dark: #9333ea;
  --brand-darker: #7c3aed;
  --brand-glow: rgba(168, 85, 247, 0.3);

  /* Background Colors - Enhanced Purple Gradient */
  --bg-primary: #0a0015;
  --bg-secondary: #1a0f2e;
  --bg-tertiary: #251a3a;
  --bg-gradient-start: #0f051d;
  --bg-gradient-end: #1a0f3a;
  --bg-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-hover: rgba(255, 255, 255, 0.12);
  --bg-card: rgba(168, 85, 247, 0.1);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-dimmed: #71717a;

  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-pink: #ec4899;

  /* Border & Outline Colors */
  --border-primary: rgba(255, 255, 255, 0.15);
  --border-secondary: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.25);
  --border-brand: rgba(168, 85, 247, 0.3);
  --outline-focus: rgba(168, 85, 247, 0.6);

  /* Typography */
  --font-primary: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --font-display: "Inter Display", "Inter", sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Shadows - Enhanced */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-brand: 0 4px 14px 0 rgba(168, 85, 247, 0.4);
  --shadow-brand-lg: 0 10px 25px -5px rgba(168, 85, 247, 0.4);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.5);
  --shadow-card: 0 8px 32px rgba(168, 85, 247, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;500;600&display=swap");

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

html,
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  font-size: 18px;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100vw; /* Forcer la largeur */
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 50%,
    var(--bg-secondary) 100%
  );
  min-height: 100vh;
  position: relative;
  width: 100vw; /* Forcer la largeur */
  overflow-x: hidden; /* Empêcher le scroll horizontal */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(192, 132, 252, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(147, 51, 234, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  width: 100%;
}

/* Mobile-first responsive */
@media (max-width: 768px) {
  /* Supprimer toutes les animations sur mobile */
  * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  main {
    padding: 0; /* Supprimer tout padding sur mobile */
    max-width: none; /* Supprimer la limite de largeur */
    width: 100%; /* Largeur complète */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  header {
    padding: var(--space-6) 0;
  }

  header h1 {
    font-size: 2rem;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
  margin: var(--space-6) 0;
}

h2 {
  font-size: 2.5rem;
  margin: var(--space-5) 0;
}

h3 {
  font-size: 2rem;
  margin: var(--space-4) 0;
}

p {
  margin: var(--space-3) 0;
  color: var(--text-secondary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--brand-light);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Glass Morphism Base */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-primary);
}

.glass-hover:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-brand);
}

/* Header Styles */
header {
  text-align: center;
  padding: var(--space-8) 0;
  margin-bottom: var(--space-6);
}

header h1 {
  font-size: 3rem;
  margin-bottom: var(--space-2);
}

header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styles */
section {
  margin: var(--space-8) 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 0 var(--space-2);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  header {
    padding: var(--space-6) 0;
  }

  header h1 {
    font-size: 2rem;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-light);
}
