/**
 * Opentech - Modern CSS
 * Version 2.0 - Refonte complète moderne
 */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-900: #0c4a6e;
  
  --secondary-50: #f0fdf4;
  --secondary-500: #22c55e;
  --secondary-600: #16a34a;
  
  --accent-500: #e53e3e;
  --accent-600: #c53030;
  
  /* Typography */
  --font-inter: 'Inter', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-inter);
  line-height: 1.6;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

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

.animate-pulse-slow {
  animation: pulse 3s infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* ===== NAVIGATION STYLES ===== */
.navbar-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--transition-base);
}

/* Navigation active states - Desktop */
nav a[class*="text-primary-600"][class*="border-b-2"] {
  color: #0284c7 !important;
  border-bottom: 2px solid #0284c7 !important;
  font-weight: 600;
}

/* Navigation hover states - Desktop */
nav a:hover:not([class*="bg-primary"]) {
  color: #0284c7 !important;
  transition: color 0.2s ease;
}

/* Navigation active states - Mobile */
nav a[class*="bg-primary-50"] {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
  font-weight: 600;
}

/* Ensure active state visibility */
nav a.text-primary-600 {
  color: #0284c7 !important;
}

nav a.border-primary-600 {
  border-color: #0284c7 !important;
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ===== CARD STYLES ===== */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: 1px solid #e2e8f0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ===== FORM STYLES ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-poppins);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

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

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== TESTIMONIALS ===== */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.testimonial-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin: 0 1rem;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #374151;
}

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

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

.testimonial-name {
  font-weight: 600;
  color: #1f2937;
}

.testimonial-title {
  color: #6b7280;
  font-size: 0.875rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

#testimonials-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

#testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-dot {
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-dot:hover {
  transform: scale(1.2);
}

.testimonial-dot.active {
  transform: scale(1.3);
}

/* Carousel navigation buttons */
#testimonials-prev,
#testimonials-next {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#testimonials-prev:hover,
#testimonials-next:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
  position: relative;
}

.partner-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Stats animation */
.stats-container .stat-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.stats-container .stat-item:nth-child(1) { animation-delay: 0.1s; }
.stats-container .stat-item:nth-child(2) { animation-delay: 0.2s; }
.stats-container .stat-item:nth-child(3) { animation-delay: 0.3s; }
.stats-container .stat-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== CERTIFICATIONS SECTION ===== */
.certification-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.certification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transition: left 0.5s;
}

.certification-card:hover::before {
  left: 100%;
}

.certification-card:hover {
  transform: translateY(-5px);
}

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

/* Mobile First: Base styles (320px+) */
.container {
  padding: 0 1rem;
}

.section {
  padding: 2rem 0;
}

.grid {
  gap: 1rem;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.2;
}

.section-title {
  font-size: 1.75rem;
  line-height: 1.3;
}

/* Small devices (sm: 640px+) */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .grid {
    gap: 1.5rem;
  }
}

/* Medium devices (md: 768px+) */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .grid {
    gap: 2rem;
  }
}

/* Large devices (lg: 1024px+) */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Extra large devices (xl: 1280px+) */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
}

/* Specific mobile optimizations */
@media (max-width: 768px) {
  /* Hero sections mobile optimization */
  .hero-section {
    min-height: 70vh;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  
  /* Navigation spacing on mobile */
  .pt-16 {
    padding-top: 4rem !important;
  }
  
  /* Typography mobile optimizations */
  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
  
  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  /* Button mobile optimizations */
  .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
  }
  
  /* Card mobile optimizations */
  .card {
    padding: 1.5rem !important;
  }
  
  /* Grid mobile optimizations */
  .grid-cols-1 {
    grid-template-columns: 1fr !important;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
  /* Spacing mobile optimizations */
  .space-y-8 > * + * {
    margin-top: 2rem !important;
  }
  
  .space-y-12 > * + * {
    margin-top: 3rem !important;
  }
  
  /* Carousel mobile optimization */
  #testimonials-track {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  
  .testimonial-card {
    scroll-snap-align: start;
    min-width: 85vw;
  }
  
  /* Partner cards mobile */
  .partner-card {
    min-height: 100px;
    padding: 1rem !important;
  }
  
  .partner-card:hover {
    transform: translateY(-2px);
  }
  
  /* Text alignment mobile */
  .text-center-mobile {
    text-align: center !important;
  }
  
  /* Hide/show elements on mobile */
  .hidden-mobile {
    display: none !important;
  }
  
  .show-mobile {
    display: block !important;
  }
}

/* Tablet specific optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .grid-cols-2-tablet {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grid-cols-3-tablet {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

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

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

/* Smooth scroll behavior for carousel */
@media (prefers-reduced-motion: no-preference) {
  #testimonials-track {
    scroll-behavior: smooth;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .testimonial-dot {
    border: 2px solid currentColor;
  }
  
  .partner-card,
  .certification-card {
    border: 2px solid currentColor;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

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

/* ===== PRINT STYLES ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== DARK MODE SUPPORT (Future) ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f8fafc;
    --bg-primary: #0f172a;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* GPU acceleration for animations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-600);
}

/* ===== MOBILE-SPECIFIC ENHANCEMENTS ===== */

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap targets for touch devices */
  .btn, button, .mobile-nav-link, .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .hover\:scale-105:hover {
    transform: none;
  }
  
  .hover\:shadow-xl:hover {
    box-shadow: var(--shadow-lg);
  }
}

/* Prevent zoom on form inputs on iOS */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Safe area support for devices with notches */
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
  
  .mobile-menu-content {
    top: calc(4rem + env(safe-area-inset-top));
  }
  
  .hero-section {
    padding-top: calc(5rem + env(safe-area-inset-top));
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .mobile-menu-content {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper images and icons */
  .partner-card img,
  .certification-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-content {
    transition: none !important;
  }
  
  .mobile-menu-overlay {
    transition: none !important;
  }
  
  .hamburger-icon,
  .close-icon {
    transition: none !important;
  }
}

/* Dark mode support for navigation */
@media (prefers-color-scheme: dark) {
  .navbar {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
  }
  
  /* Force white background for mobile menu regardless of system theme */
  .mobile-menu-content {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
  }
  
  .mobile-nav-link {
    color: #374151;
  }
  
  .mobile-nav-link:hover {
    background-color: #f3f4f6;
  }
}

/* Print optimizations */
@media print {
  .navbar,
  .mobile-menu,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    padding-top: 0 !important;
  }
}

/* Utility classes for responsive design */
.overflow-hidden-mobile {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .overflow-hidden-mobile {
    overflow: visible;
  }
}

/* Focus improvements for keyboard navigation */
.nav-link:focus,
.mobile-nav-link:focus,
.mobile-menu-btn:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Better scroll behavior for mobile menu */
.mobile-menu:not(.hidden) {
  touch-action: manipulation;
}

.mobile-menu-content {
  overscroll-behavior: contain;
}

/* ===== PARRAINAGE STYLES ===== */

/* Parrainage Hero */
.parrainage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 80px 0 !important;
}

.hero-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
}

.stat-item {
    text-align: center !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
}

.stat-number {
    display: block !important;
    font-size: 2.5rem !important;
    font-weight: bold !important;
    color: #fff !important;
    margin-bottom: 0.5rem !important;
}

.stat-label {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Organisations Grid */
.organisations-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.organisation-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.organisation-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.org-image {
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
}

.org-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.org-content {
    padding: 1.5rem !important;
}

.org-content h3 {
    color: #333 !important;
    margin-bottom: 0.5rem !important;
}

.org-location {
    color: #666 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
}

.org-description {
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.org-needs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

.need-tag {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

.org-progress {
    margin-bottom: 1.5rem !important;
}

.progress-bar {
    width: 100% !important;
    height: 8px !important;
    background: #f0f0f0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-bottom: 0.5rem !important;
}

.progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
    transition: width 0.3s ease !important;
}

.progress-text {
    font-size: 0.9rem !important;
    color: #666 !important;
}

/* Process Steps */
.process-steps {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.step {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1.5rem !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.step-number {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}

.step-content h3 {
    color: #333 !important;
    margin-bottom: 0.5rem !important;
}

.step-content p {
    color: #666 !important;
    line-height: 1.6 !important;
}

/* Form Styles */
.form-container {
    max-width: 600px !important;
    margin: 0 auto !important;
    background: white !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.form-group {
    margin-bottom: 1.5rem !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
}

.form-group textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

.form-group input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.5rem !important;
}

.form-actions {
    text-align: center !important;
    margin-top: 2rem !important;
}

.form-note {
    margin-top: 1rem !important;
    font-size: 0.9rem !important;
    color: #666 !important;
}

/* Testimonials */
.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.testimonial-card {
    background: white !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
}

.testimonial-quote {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    color: #667eea !important;
    font-size: 1.5rem !important;
}

.testimonial-content p {
    color: #555 !important;
    font-style: italic !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

.testimonial-author {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.author-info h4 {
    color: #333 !important;
    margin-bottom: 0.25rem !important;
}

.author-info span {
    color: #666 !important;
    font-size: 0.9rem !important;
}

.author-impact {
    text-align: right !important;
}

.impact-number {
    display: block !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #667eea !important;
}

.impact-label {
    font-size: 0.8rem !important;
    color: #666 !important;
}

/* Impact Stats */
.impact-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.stat-icon {
    font-size: 3rem !important;
    color: white !important;
    margin-bottom: 1rem !important;
}

.stat-content .stat-number {
    font-size: 3rem !important;
    font-weight: bold !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
}

.stat-content .stat-label {
    font-size: 1.1rem !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
}

.stat-content .stat-description {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* FAQ */
.faq-container {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.faq-item {
    margin-bottom: 1rem !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.faq-question {
    padding: 1.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f8f9fa !important;
    transition: background-color 0.3s ease !important;
}

.faq-question:hover {
    background: #e9ecef !important;
}

.faq-question h3 {
    color: #333 !important;
    margin: 0 !important;
}

.faq-answer {
    padding: 1.5rem !important;
    display: none !important;
    background: white !important;
}

.faq-answer p {
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Conditions */
.conditions-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.condition-item {
    background: white !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.condition-item h3 {
    color: #333 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.condition-item h3 i {
    color: #667eea !important;
}

.condition-item ul {
    list-style: none !important;
    padding: 0 !important;
}

.condition-item li {
    padding: 0.5rem 0 !important;
    color: #666 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.condition-item li:last-child {
    border-bottom: none !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-align: center !important;
    padding: 4rem 0 !important;
}

.cta-content h2 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.cta-content p {
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.9 !important;
}

.cta-buttons {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* Responsive Design for Parrainage */
@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr !important;
    }
    
    .organisations-grid {
        grid-template-columns: 1fr !important;
    }
    
    .process-steps {
        grid-template-columns: 1fr !important;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .conditions-content {
        grid-template-columns: 1fr !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .testimonial-author {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
}


/* ===== PARRAINAGE STYLES ===== */

/* Parrainage Hero */
.parrainage-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 80px 0 !important;
}

.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 2rem !important;
  margin: 2rem 0 !important;
}

.stat-item {
  text-align: center !important;
  padding: 1rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px) !important;
}

.stat-number {
  display: block !important;
  font-size: 2.5rem !important;
  font-weight: bold !important;
  color: #fff !important;
  margin-bottom: 0.5rem !important;
}

.stat-label {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Organisations Grid */
.organisations-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

.organisation-card {
  background: white !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.organisation-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.org-image {
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
}

.org-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.org-content {
  padding: 1.5rem !important;
}

.org-content h3 {
  color: #333 !important;
  margin-bottom: 0.5rem !important;
}

.org-location {
  color: #666 !important;
  font-size: 0.9rem !important;
  margin-bottom: 1rem !important;
}

.org-description {
  color: #555 !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
}

.org-needs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-bottom: 1.5rem !important;
}

.need-tag {
  background: #e3f2fd !important;
  color: #1976d2 !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
}

.org-progress {
  margin-bottom: 1.5rem !important;
}

.progress-bar {
  width: 100% !important;
  height: 8px !important;
  background: #f0f0f0 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  margin-bottom: 0.5rem !important;
}

.progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #667eea, #764ba2) !important;
  transition: width 0.3s ease !important;
}

.progress-text {
  font-size: 0.9rem !important;
  color: #666 !important;
}

/* Process Steps */
.process-steps {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

.step {
  display: flex !important;
  align-items: flex-start !important;
  gap: 1rem !important;
  padding: 1.5rem !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.step-number {
  width: 40px !important;
  height: 40px !important;
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  flex-shrink: 0 !important;
}

.step-content h3 {
  color: #333 !important;
  margin-bottom: 0.5rem !important;
}

.step-content p {
  color: #666 !important;
  line-height: 1.6 !important;
}

/* Form Styles */
.form-container {
  max-width: 600px !important;
  margin: 0 auto !important;
  background: white !important;
  padding: 2rem !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.form-group {
  margin-bottom: 1.5rem !important;
}

.form-group label {
  display: block !important;
  margin-bottom: 0.5rem !important;
  color: #333 !important;
  font-weight: 500 !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100% !important;
  padding: 0.75rem !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  transition: border-color 0.3s ease !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none !important;
  border-color: #667eea !important;
}

.form-group textarea {
  resize: vertical !important;
  min-height: 100px !important;
}

.form-group input[type="checkbox"] {
  width: auto !important;
  margin-right: 0.5rem !important;
}

.form-actions {
  text-align: center !important;
  margin-top: 2rem !important;
}

.form-note {
  margin-top: 1rem !important;
  font-size: 0.9rem !important;
  color: #666 !important;
}

/* Testimonials */
.testimonials-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

.testimonial-card {
  background: white !important;
  padding: 2rem !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
}

.testimonial-quote {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  color: #667eea !important;
  font-size: 1.5rem !important;
}

.testimonial-content p {
  color: #555 !important;
  font-style: italic !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5rem !important;
}

.testimonial-author {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.author-info h4 {
  color: #333 !important;
  margin-bottom: 0.25rem !important;
}

.author-info span {
  color: #666 !important;
  font-size: 0.9rem !important;
}

.author-impact {
  text-align: right !important;
}

.impact-number {
  display: block !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  color: #667eea !important;
}

.impact-label {
  font-size: 0.8rem !important;
  color: #666 !important;
}

/* Impact Stats */
.impact-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 2rem !important;
  border-radius: 16px !important;
  text-align: center !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.stat-icon {
  font-size: 3rem !important;
  color: white !important;
  margin-bottom: 1rem !important;
}

.stat-content .stat-number {
  font-size: 3rem !important;
  font-weight: bold !important;
  color: white !important;
  margin-bottom: 0.5rem !important;
}

.stat-content .stat-label {
  font-size: 1.1rem !important;
  color: white !important;
  margin-bottom: 0.5rem !important;
}

.stat-content .stat-description {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* FAQ */
.faq-container {
  max-width: 800px !important;
  margin: 0 auto !important;
}

.faq-item {
  margin-bottom: 1rem !important;
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.faq-question {
  padding: 1.5rem !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #f8f9fa !important;
  transition: background-color 0.3s ease !important;
}

.faq-question:hover {
  background: #e9ecef !important;
}

.faq-question h3 {
  color: #333 !important;
  margin: 0 !important;
}

.faq-answer {
  padding: 1.5rem !important;
  display: none !important;
  background: white !important;
}

.faq-answer p {
  color: #666 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Conditions */
.conditions-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

.condition-item {
  background: white !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.condition-item h3 {
  color: #333 !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.condition-item h3 i {
  color: #667eea !important;
}

.condition-item ul {
  list-style: none !important;
  padding: 0 !important;
}

.condition-item li {
  padding: 0.5rem 0 !important;
  color: #666 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.condition-item li:last-child {
  border-bottom: none !important;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  text-align: center !important;
  padding: 4rem 0 !important;
}

.cta-content h2 {
  font-size: 2.5rem !important;
  margin-bottom: 1rem !important;
}

.cta-content p {
  font-size: 1.2rem !important;
  margin-bottom: 2rem !important;
  opacity: 0.9 !important;
}

.cta-buttons {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* Responsive Design for Parrainage */
@media (max-width: 768px) {
  .hero-stats {
      grid-template-columns: 1fr !important;
  }
  
  .organisations-grid {
      grid-template-columns: 1fr !important;
  }
  
  .process-steps {
      grid-template-columns: 1fr !important;
  }
  
  .testimonials-grid {
      grid-template-columns: 1fr !important;
  }
  
  .impact-stats {
      grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .conditions-content {
      grid-template-columns: 1fr !important;
  }
  
  .cta-buttons {
      flex-direction: column !important;
      align-items: center !important;
  }
  
  .testimonial-author {
      flex-direction: column !important;
      text-align: center !important;
      gap: 1rem !important;
  }
} 