@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

/* Variables CSS */
:root {
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #047857;
  --secondary: #3b82f6;
  --secondary-light: #60a5fa;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --text: #0f172a;
  --text-light: #475569;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 16px 40px -16px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --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);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
  --gradient-hero: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(59, 130, 246, 0.8));
  --gradient-mesh: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-aurora: linear-gradient(135deg, var(--primary), var(--secondary));
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(15, 23, 42, 0.08);
  --neon-glow: none;
  --text-shadow-glow: none;
}

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

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05), transparent);
  pointer-events: none;
  border-radius: inherit;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--dark);
  font-size: 1.25rem;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.brand:hover {
  color: var(--primary-dark);
}

.brand img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  position: relative;
  transition: var(--transition);
  color: var(--text);
  border-radius: 50px;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: white;
  text-decoration: none;
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 80%;
}

.don-btn {
  background: var(--gradient-accent) !important;
  color: white !important;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 800;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.don-btn:hover {
  box-shadow: var(--shadow-soft);
  text-decoration: none !important;
  color: white !important;
  filter: brightness(1.05);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05)), 
              url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 3;
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.6s ease-out both;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0 0 1rem 0;
  color: white;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.98);
  margin: 1.5rem 0;
  line-height: 1.6;
  max-width: 62ch;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-image {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero img {
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.hero img:hover {
  transform: scale(1.02);
}
/* Buttons et CTA */
.cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #047857, #065f46);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: white;
  filter: brightness(1.05);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #047857;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: white;
  color: #047857;
}

.btn.donation {
  background: linear-gradient(135deg, #b45309, #c2410c);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn.donation:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  color: white;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.section h2 {
  color: var(--dark);
  margin: 0 0 3rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  position: relative;
  color: var(--dark);
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-intro {
  font-size: 1.3rem;
  color: var(--gray-700);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
  line-height: 1.7;
  font-weight: 500;
  position: relative;
}

.section-intro::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: serif;
}

/* Grilles */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cartes */
.card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--primary);
  background: #ffffff;
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  color: var(--dark);
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.card p {
  color: var(--gray-700);
  margin: 0 0 1.5rem 0;
  line-height: 1.7;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.card .icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.5rem 0;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card .icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: var(--transition);
}

.card:hover .icon {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Forms */
form {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.help {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.success {
  color: var(--primary);
}

.error {
  color: #dc2626;
}

/* Key Metrics */
.metrics {
  background: var(--gradient-primary);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.metrics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.metrics .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.metric {
  text-align: center;
}

.metric-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.metric-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Impact Box */
.impact-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.impact-box h3 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.impact-box p {
  color: var(--gray-700);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

.impact-box h3 {
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.impact-box p {
  color: var(--text);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Testimonials */
.testimonial {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  position: relative;
  transition: var(--transition);
}

.testimonial p {
  color: var(--gray-700);
  font-style: italic;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.testimonial-author h4 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-author-info p {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  margin: 0 0 1.5rem 0;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin: 0;
  color: var(--dark);
  font-weight: 700;
}

.testimonial-author-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-style: normal;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  color: #e2e8f0;
  padding: 3rem 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.footer a {
  color: #f1f5f9;
  transition: var(--transition);
  font-weight: 500;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

/* Utilities */
.spacer {
  height: 3rem;
}

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 3rem 0;
  position: relative;
}

hr::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

/* Scroll behavior and smooth animations */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Selection styling */
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: var(--dark);
}

::-moz-selection {
  background: rgba(16, 185, 129, 0.2);
  color: var(--dark);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .header {
    border-radius: 0;
  }
  
  .nav {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .don-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero p {
    font-size: 1.1rem;
    max-width: 100%;
  }
  
  .hero img {
    transform: none;
    border-radius: 16px;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .section-intro {
    font-size: 1.1rem;
    max-width: 100%;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 2rem;
    animation: none;
  }
  
  .card:hover {
    transform: translateY(-8px) scale(1.02);
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
  
  .cta {
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .impact-box {
    padding: 2rem;
    margin: 2rem 0;
  }
  
  .metrics {
    padding: 3rem 0;
  }
  
  .footer {
    padding: 2rem 0;
    margin-top: 3rem;
  }
  
  .footer .cols {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .nav a {
    margin: 0 0.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer .cols {
    grid-template-columns: 1fr;
  }
  
  .metrics .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn.donation {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
  
  .hero img {
    margin-top: 2rem;
  }
}
@media (max-width: 600px) {
  .metrics .grid {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .nav {
    text-align: center;
  }
  
  .nav a {
    margin: 0.25rem;
  }
  
  .hero h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .cta {
    gap: 0.75rem;
  }
}
