/* ===================================
   VARIABLES CSS - Palette 1 (Violet & Rose)
   =================================== */

:root {
  /* Couleurs principales */
  --color-primary: #6C63FF;
  --color-secondary: #FF6584;
  --color-dark: #0F0F1A;
  --color-light: #F8F9FF;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-white: #FFFFFF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6C63FF, #8B7FFF);
  --gradient-secondary: linear-gradient(135deg, #FF6584, #FF8FA3);
  --gradient-hero: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 101, 132, 0.1));

  /* Typographie */
  --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-hero: clamp(2.5rem, 6vw, 5rem);
  --font-size-h2: clamp(1.8rem, 4vw, 3rem);
  --font-size-h3: clamp(1.2rem, 2.5vw, 1.4rem);
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --line-height-heading: 1.2;
  --line-height-body: 1.7;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border radius */
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 10px 40px rgba(108, 99, 255, 0.1);
  --shadow-hover: 0 20px 60px rgba(108, 99, 255, 0.2);
  --shadow-elevated: 0 30px 80px rgba(108, 99, 255, 0.25);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-cursor: 9999;
  --z-mobile-menu: 1000;
  --z-navbar: 100;
  --z-overlay: 50;
}


/* ===================================
   RESET & BASE STYLES
   =================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  font-weight: 700;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-hero);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

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

/* Lists */
ul, ol {
  list-style: none;
}

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

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

/* Focus states */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* ===================================
   LAYOUT
   =================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
}


/* ===================================
   TYPOGRAPHY
   =================================== */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--color-text-muted);
}


/* ===================================
   SECTIONS
   =================================== */

section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-2xl) 0;
  }
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-2xl);
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ===================================
   PAGE LOADER
   =================================== */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  margin-bottom: var(--spacing-lg);
  animation: fadeIn 0.6s ease-out;
}

.loader-letter {
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-progress {
  width: 200px;
  height: 4px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto var(--spacing-md);
}

.loader-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  animation: loadProgress 2s ease-out forwards;
}

.loader-text {
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 0.8s ease-out 0.3s backwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}


/* ===================================
   UTILITIES
   =================================== */

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }

  .hide-desktop {
    display: none;
  }
}

/* Scroll reveal (sera géré par JS) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ===================================
   CUSTOM CURSOR SVG
   =================================== */

.cursor {
  width: 32px;
  height: 32px;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  background-image: url('../assets/images/cursor.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.15s ease, opacity 0.2s ease;
  opacity: 1;
}

.cursor-follower {
  display: none;
}

/* États interactifs */
.cursor.hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Cache le curseur custom sur mobile */
@media (max-width: 1024px) {
  .cursor,
  .cursor-follower {
    display: none;
  }
}

/* Hide default cursor only on desktop with custom cursor */
@media (min-width: 1025px) {
  body.custom-cursor,
  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor [data-tilt] {
    cursor: none;
  }
}


/* ===================================
   RESPONSIVE
   =================================== */

/* Mobile: 320px → 768px */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
  }
}

/* Tablet: 768px → 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3.5rem;
    --spacing-3xl: 5rem;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
  }
}