/* ===== SYSTÈME DE COULEURS FLEXIBLE ===== */
:root {
  /* Couleurs principales */
  --primary: #f59e0b;
  --primary-light: #fbbf24;
  --primary-dark: #d97706;
  
  /* Surfaces */
  --surface-primary: #0f172a;
  --surface-secondary: #1e293b;
  --surface-tertiary: #334155;
  --surface-elevated: #475569;
  
  /* Textes - Indépendants du blanc */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-accent: var(--primary);
  
  /* Borders */
  --border-color: rgba(148, 163, 184, 0.2);
  --border-hover: var(--primary);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Thème clair */
.light-theme {
  --surface-primary: #ffffff;
  --surface-secondary: #f8fafc;
  --surface-tertiary: #f1f5f9;
  --surface-elevated: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  
  --border-color: rgba(15, 23, 42, 0.1);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--surface-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ===== TYPOGRAPHY ===== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 0 30px rgba(245, 158, 11, 0.4); }
}

@keyframes text-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
  50% { text-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 30px rgba(245, 158, 11, 0.6); }
}

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

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.text-glow {
  animation: text-glow 2s ease-in-out infinite;
}

/* ===== COMPONENTS ===== */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--surface-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-slow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--surface-primary);
  transform: translateY(-2px);
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #f56040, #f093fb);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 96, 64, 0.3);
}

/* Cards */
.card-default {
  background: var(--surface-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.card-elevated {
  background: var(--surface-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.card-hover {
  background: var(--surface-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.music-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.music-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.music-card-header {
  height: 10rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.donation-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.donation-icon {
  background: rgba(245, 158, 11, 0.1);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: pulse-glow 3s ease-in-out infinite;
}

.donation-info {
  background: var(--surface-secondary);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  max-width: 28rem;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

/* Icons */
.icon-container {
  background: rgba(245, 158, 11, 0.1);
  padding: 1rem;
  border-radius: 50%;
  margin-right: 1rem;
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Badges */
.badge-primary {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Forms */
.form-input {
  width: 100%;
  padding: 1rem;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.contact-form {
  background: var(--surface-secondary);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.contact-form .space-y-6 > * + * {
  margin-top: 1.5rem;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
}

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

/* Sections */
.section-default {
  padding: 5rem 0;
}

.section-light {
  padding: 5rem 0;
  background: var(--surface-secondary);
}

/* Header */
.header {
  background: var(--surface-secondary);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-normal);
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 16rem;
  height: 100vh;
  background: var(--surface-secondary);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--surface-primary) 0%, var(--surface-secondary) 100%), 
              url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}

.floating-1 {
  top: 5rem;
  left: 2.5rem;
  width: 4rem;
  height: 4rem;
  animation-delay: 0.2s;
}

.floating-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 6rem;
  height: 6rem;
  animation-delay: 0.5s;
}

.floating-3 {
  top: 50%;
  left: 25%;
  width: 3rem;
  height: 3rem;
  animation-delay: 0.7s;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--surface-primary), var(--surface-secondary));
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--primary);
  color: var(--surface-primary);
  transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  border: 2px solid var(--primary);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--primary);
}

.theme-toggle:hover .sun-icon,
.theme-toggle:hover .moon-icon {
  color: var(--surface-primary);
}

.sun-icon, .moon-icon {
  position: absolute;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.theme-toggle.dark .sun-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.theme-toggle.dark .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle.light .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle.light .moon-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

.theme-toggle.auto {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Music Player */
.music-player {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 18rem;
  background: var(--surface-secondary);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  transform: translateX(20rem);
  transition: transform var(--transition-normal);
  z-index: 40;
  border: 1px solid var(--border-color);
}

.music-player.active {
  transform: translateX(0);
}

.player-toggle {
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 5rem;
  background: var(--surface-secondary);
  border-radius: 0.75rem 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-right: none;
}

.progress-bar {
  height: 0.375rem;
  background: var(--surface-tertiary);
  border-radius: 0.375rem;
  overflow: hidden;
  margin: 0.75rem 0;
}

.progress {
  height: 100%;
  background: var(--primary);
  width: 30%;
  border-radius: 0.375rem;
  transition: width var(--transition-normal);
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-circle {
  width: 3.75rem;
  height: 3.75rem;
  border: 0.375rem solid rgba(245, 158, 11, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Particles */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Notification */
.notification {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--surface-secondary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(25rem);
  transition: transform var(--transition-normal);
  max-width: 18rem;
  border: 1px solid var(--border-color);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #10b981;
}

.notification.info {
  border-left: 4px solid #3b82f6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-default,
  .section-light {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .music-player {
    width: 16rem;
    right: 1rem;
  }
  
  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===== UTILITIES ===== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Spacing utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
  .container { max-width: 1536px; }
}