/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --primary: #0a5ac2;
  --secondary: #0359dbcb;
  --accent: #007bff;
  --white: #ffffff;
  --light: #f9fafb;
  --dark: #1f2937;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --spacing-unit: 1rem;
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ==========================================
   SECTION MISSION - AVEC BACKGROUND
   ========================================== */

.mission {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #fce7f3 100%);
}

.mission::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41, 64, 196, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.mission::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.1), rgba(236, 72, 153, 0.1));
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.mission-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.mission-card:hover::before {
  transform: scaleX(1);
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(41, 64, 196, 0.15);
}

.mission-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.mission-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px rgba(41, 64, 196, 0.3);
  transition: all 0.3s ease;
}

.mission-card:hover .mission-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(41, 64, 196, 0.4);
}

.mission-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(41, 64, 196, 0.08);
  line-height: 1;
}

.mission-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.mission-card > p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.mission-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.mission-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--dark);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-features li:last-child {
  border-bottom: none;
}

.mission-features li i {
  color: var(--primary);
  font-size: 0.875rem;
  width: 20px;
  height: 20px;
  background: rgba(41, 64, 196, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.05), rgba(236, 72, 153, 0.05));
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mission-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-color: var(--primary);
  transform: translateX(5px);
}

.mission-btn i {
  transition: transform 0.3s ease;
}

.mission-btn:hover i {
  transform: translateX(5px);
}

.mission-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mission-impact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.impact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.impact-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.impact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.impact-content h4 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.25rem 0;
  line-height: 1;
}

.impact-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================
   SECTION OBJECTIFS - HORIZONTAL SCROLL
   ========================================== */

.objectives {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
}

.objectives::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41, 64, 196, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.objectives::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

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

.objectives .container {
  position: relative;
  z-index: 1;
}

.objectives h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.objectives .text-gradient {
  background: linear-gradient(135deg, #60a5fa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.objectives .section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
}

.objectives-scroll-container {
  position: relative;
  padding: 2rem 0;
}

.objectives-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.objectives-scroll::-webkit-scrollbar {
  height: 8px;
}

.objectives-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.objectives-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.objectives-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.objective-card {
  min-width: 350px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: grab;
}

.objective-card:active {
  cursor: grabbing;
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.1), rgba(236, 72, 153, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.objective-card:hover::before {
  opacity: 1;
}

.objective-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(41, 64, 196, 0.3);
}

.number-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(41, 64, 196, 0.4);
  position: relative;
  z-index: 1;
}

.objective-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.objective-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Navigation Arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
  left: -25px;
}

.scroll-arrow.right {
  right: -25px;
}

/* Responsive */
@media (max-width: 768px) {
  .mission {
    padding: 4rem 0;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .mission-card {
    padding: 2rem;
  }
  
  .mission-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .mission-number {
    font-size: 2.5rem;
  }
  
  .mission-impact {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .impact-card {
    padding: 1rem;
  }
  
  .impact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .impact-content h4 {
    font-size: 1.75rem;
  }
  
  .objectives {
    padding: 4rem 0;
  }
  
  .objectives h2 {
    font-size: 2rem;
  }
  
  .objective-card {
    min-width: 280px;
    padding: 2rem;
  }
  
  .number-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .objective-card h3 {
    font-size: 1.25rem;
  }
  
  .scroll-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-label {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
  
  .mission-card h3 {
    font-size: 1.25rem;
  }
  
  .mission-features li {
    font-size: 0.85rem;
  }
  
  .objective-card {
    min-width: 260px;
    padding: 1.5rem;
  }
}

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

.mission-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.mission-card:nth-child(1) {
  animation-delay: 0.1s;
}

.mission-card:nth-child(2) {
  animation-delay: 0.2s;
}

.mission-card:nth-child(3) {
  animation-delay: 0.3s;
}

.impact-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.impact-card:nth-child(1) {
  animation-delay: 0.4s;
}

.impact-card:nth-child(2) {
  animation-delay: 0.5s;
}

.impact-card:nth-child(3) {
  animation-delay: 0.6s;
}

.impact-card:nth-child(4) {
  animation-delay: 0.7s;
}




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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #ebf8ff 0%, #f5f3ff 50%, #fce7f3 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}
/* ==========================================
   SECTION MEMBERSHIP - MODERN DESIGN WITH ANIMATIONS
   ========================================== */

.membership {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    #0064c9 0%,
    #005288 30%,
    #005186 50%,
    #004da5 70%,
    #0051a1 100%
  );
}

.membership::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41, 64, 196, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatMembership 20s ease-in-out infinite;
}
/* Pour la section Devenir Membre */
.membership {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  
  /* Dégradé bleu identique au Hero */
  background: linear-gradient(135deg, 
    #005eff 0%,
    #1e4a8a 25%,
    #00b3fa 50%,
    #0058db 75%,
    #136dff 100%
  );
  
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.membership .container {
  position: relative;
  z-index: 2;
}

.membership h2 {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.membership .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a8d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.3));
}

.membership .section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.membership::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  animation: floatingLight 25s ease-in-out infinite;
  pointer-events: none;
}

/* Cards Grid with Modern Design */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.membership-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  animation: fadeInUp 0.6s ease-out backwards;
}

.membership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.membership-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(41, 64, 196, 0.03) 0%,
    rgba(236, 72, 153, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.membership-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(41, 64, 196, 0.15),
    0 0 0 1px rgba(255, 255, 255, 1);
  border-color: rgba(41, 64, 196, 0.2);
}

.membership-card:hover::before {
  transform: scaleX(1);
}

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

.membership-card:nth-child(1) { animation-delay: 0.1s; }
.membership-card:nth-child(2) { animation-delay: 0.2s; }
.membership-card:nth-child(3) { animation-delay: 0.3s; }

/* Card Header with Icon */
.membership-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.membership-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.membership-card:hover .membership-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.membership-card:hover .membership-icon::before {
  transform: rotate(405deg);
}

/* Icon colors for different membership types */
.membership-card:nth-child(1) .membership-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.membership-card:nth-child(2) .membership-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.membership-card:nth-child(3) .membership-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.membership-title h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.membership-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.membership-period {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

/* Membership Features List */
.membership-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.membership-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.membership-features li:last-child {
  border-bottom: none;
}

.membership-features li i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.membership-card:hover .membership-features li i {
  transform: scale(1.2);
}

.membership-features li:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* CTA Button */
.membership-cta {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.4s ease;
}

.membership-cta .btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.membership-cta .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

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

.membership-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Badge for Popular Plan */
.membership-popular {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
  }
}

/* Floating Elements Animation */
.floating-element {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 5%;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.1), rgba(236, 72, 153, 0.1));
  border-radius: 50%;
  animation: floatElement 15s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  bottom: 15%;
  right: 8%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.08), rgba(236, 72, 153, 0.08));
  border-radius: 20px;
  animation: floatElement 20s ease-in-out infinite reverse;
}

.floating-element:nth-child(3) {
  top: 40%;
  right: 15%;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.15), rgba(236, 72, 153, 0.15));
  border-radius: 50%;
  animation: floatElement 18s ease-in-out infinite;
}

@keyframes floatElement {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .membership-grid {
    gap: 2rem;
  }
  
  .membership-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .membership {
    padding: 4rem 0;
  }
  
  .membership h2 {
    font-size: 2rem;
  }
  
  .membership-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .membership-header {
    gap: 1rem;
  }
  
  .membership-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .membership-title h3 {
    font-size: 1.35rem;
  }
  
  .membership-price {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .membership-card {
    padding: 1.75rem;
  }
  
  .membership-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .membership-features li {
    font-size: 0.9rem;
    padding: 0.6rem 0;
  }
  
  .floating-element {
    display: none;
  }
}
/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.bg-white {
  background-color: var(--white);
}
/* Styles pour les métadonnées PDF */
.pdf-info {
  margin-bottom: 1rem;
}

.pdf-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gray);
}

.pdf-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-meta i {
  color: var(--primary);
}

/* Style pour les erreurs PDF */
.pdf-error {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

.pdf-error h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Contrôles PDF */
.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--light-gray);
}

.pdf-control-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
/* ===========================
   BOUTON WHATSAPP FLOTTANT
   =========================== */
.whatsapp-float {
  position: fixed;
  top: 85%;
  right: 65px;
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.whatsapp-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.whatsapp-link:hover::before {
  transform: scale(1);
}

.whatsapp-link i {
  font-size: 28px;
  color: white;
  z-index: 2;
  position: relative;
  transition: transform 0.3s ease;
}

.whatsapp-link:hover i {
  transform: scale(1.1);
}

/* Effet de vibration */
@keyframes vibrate {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0); }
  10% { transform: translateX(-1px) translateY(-1px) rotate(-1deg); }
  20% { transform: translateX(1px) translateY(1px) rotate(1deg); }
  30% { transform: translateX(-1px) translateY(1px) rotate(0); }
  40% { transform: translateX(1px) translateY(-1px) rotate(1deg); }
  50% { transform: translateX(-1px) translateY(-1px) rotate(-1deg); }
  60% { transform: translateX(1px) translateY(1px) rotate(0); }
  70% { transform: translateX(-1px) translateY(1px) rotate(-1deg); }
  80% { transform: translateX(1px) translateY(-1px) rotate(1deg); }
  90% { transform: translateX(-1px) translateY(-1px) rotate(0); }
}

.whatsapp-float:hover {
  animation: vibrate 0.5s ease infinite, float 3s ease-in-out infinite;
}

/* Effet de flottement */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Effet de pulsation */
.whatsapp-link::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #25D366;
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
  opacity: 0;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Notification badge (optionnel) */
.whatsapp-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #ff4444;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
  animation: ping 1.5s ease-in-out infinite;
}

@keyframes ping {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ===========================
   RESPONSIVE WHATSAPP BUTTON
   =========================== */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-link {
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-link i {
    font-size: 24px;
  }
  
  .whatsapp-tooltip {
    font-size: 0.75rem;
    padding: 6px 10px;
    bottom: 60px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-link {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-link i {
    font-size: 22px;
  }
  
  .whatsapp-tooltip {
    right: -10px;
    font-size: 0.7rem;
  }
  
  .whatsapp-tooltip::after {
    right: 15px;
  }
}

/* Pour les écrans très larges */
@media (min-width: 1400px) {
  .whatsapp-float {
    bottom: 30px;
    right: 30px;
  }
}

/* Accessibilité - Réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
  
  .whatsapp-link::after {
    animation: none;
  }
  
  .whatsapp-notification {
    animation: none;
  }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
  .whatsapp-tooltip {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
  }
  
  .whatsapp-tooltip::after {
    border-top-color: rgba(255, 255, 255, 0.9);
  }
}
.pdf-control-btn:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.pdf-page-info {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.9rem;
}
/* ===========================
   NAVIGATION
   =========================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.logo-img {
  height: clamp(50px, 8vw, 70px);
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1rem);
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-align: center;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: var(--white);
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* styles.css : Bloc .hero FINAL pour position basse et lisibilité blanche */
.hero {
  position: relative;
  min-height: 100vh; /* 100% hauteur sur desktop */
  display: flex;
  /* ASSURE que le conteneur est aligné TOUT en bas de la section */
  align-items: flex-end; 
  padding: 0; 
  overflow: hidden;
  text-align: center;
  
  /* Image de fond */
  background-image: url('image/277738734_4718784934900059_3469379986816280865_n.webp');
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
  background-color: #00112e;
}

/* Overlay dégradé (Zone foncée très étendue et solide en bas pour la lisibilité) */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Zone foncée plus large (jusqu'à 50%) */
  background: linear-gradient(
    to top, 
    #00112e 0%,    /* Zone 100% opaque en bas */
    #00112e 35%,    /* Zone solide de couleur étendue */
    rgba(0, 17, 46, 0.7) 60%, 
    transparent 90% /* Début du transparent plus haut */
  );
}

/* Conteneur de contenu */
.hero .container {
  position: relative;
  z-index: 2; 
  width: 100%;
  display: block; 
  /* Padding Bottom très élevé (7rem) pour positionner le texte plus haut dans la zone foncée */
  padding: 1rem 1rem 7rem 1rem; 
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content {
  /* Assure le centrage du texte et la couleur blanche */
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--white); 
}

.hero-content h1 {
    /* Titre en blanc */
    color: var(--white);
}

.hero-subtitle {
  /* Sous-titre en blanc pur */
  color: var(--white);
}

.hero-content h1 .text-gradient {
  /* Dégradé de blanc/bleu clair pour l'emphase */
  background: linear-gradient(135deg, #ffffff, #a8d5ff); 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Média queries pour mobile */
@media (max-width: 992px) {
  .hero {
    /* Hauteur réduite sur mobile (pour mieux voir le fond) */
    min-height: 80vh; 
  }
  .hero .container {
      /* Padding Bottom ajusté pour mobile (4rem) pour la position basse */
      padding: 1rem 1rem 4rem 1rem; 
  }
  .hero-content {
      text-align: center; 
  }
}

/* ===========================
   SECTION À PROPOS - MODERNE
   =========================== */
.about-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Image de fond avec overlay dégradé */
.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.about-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 17, 46, 0.95) 0%,
    rgba(0, 79, 250, 0.85) 50%,
    rgba(0, 88, 219, 0.90) 100%
  );
  z-index: 1;
}

.about-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
}

.about-section .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Contenu texte */
.about-content {
  animation: fadeInLeft 1s ease-out;
}

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

.about-content .section-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-content .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a8d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text {
  color: rgba(255, 255, 255, 0.95);
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Highlights */
.about-highlights {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fff, #a8d5ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0058db;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.highlight-content h4 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.25rem;
}

.highlight-content p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.95rem;
}

/* CTA Buttons */
.about-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Image à droite */
.about-image {
  animation: fadeInRight 1s ease-out 0.2s both;
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.about-image:hover .image-wrapper img {
  transform: scale(1.05);
}

.image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.image-badge i {
  font-size: 1.5rem;
  color: #0058db;
}

.image-badge span {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 968px) {
  .about-section .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image {
    order: -1;
  }
  
  .about-content {
    text-align: center;
  }
  
  .about-highlights {
    max-width: 500px;
    margin-inline: auto;
  }
  
  .about-cta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .about-section {
    padding: 4rem 0;
  }
  
  .highlight-item {
    padding: 1.25rem;
  }
  
  .highlight-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}
/* ===========================
   CARDS
   =========================== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  animation: float 3s ease-in-out infinite;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.card-link:hover {
  gap: 0.75rem;
}

/* ===========================
   MODAL GALLERY (IMPROVED)
   =========================== */
.modal-gallery {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 20px;
  max-width: min(95%, 1000px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--dark);
  position: relative;
  padding-bottom: 1rem;
}

.modal-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.modal-content p {
  text-align: center;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.modal-stats {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 600px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.modal-stats li {
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.05), rgba(236, 72, 153, 0.05));
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: var(--transition);
}

.modal-stats li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

/* ===========================
   LIGHTBOX
   =========================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-lightbox:hover {
  background: var(--white);
  color: var(--dark);
  transform: rotate(90deg);
}

/* ===========================
   FORMS
   =========================== */
.contact-form, 
#form-inscription {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select,
#form-inscription input,
#form-inscription select {
  width: 100%;
  padding: clamp(0.875rem, 2vw, 1rem);
  border-radius: var(--border-radius);
  border: 2px solid var(--light-gray);
  background: var(--white);
  font-family: inherit;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
#form-inscription input:focus,
#form-inscription select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 64, 196, 0.1);
}

#form-inscription label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #f9fafb;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ===========================
   ACCORDION
   =========================== */
.programme-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-header {
  padding: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  transition: var(--transition);
}

.accordion-header:hover {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.accordion-header h3 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--white);
}

.accordion-header i {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  transition: transform 0.3s ease;
}

.accordion-content {
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  background: var(--white);
}

.accordion-item.active .accordion-content {
  padding: clamp(1rem, 3vw, 1.5rem);
  max-height: 600px;
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.accordion-content ul {
  margin: 1rem 0;
  padding-left: 0;
}

.accordion-content li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
}

.accordion-content i.fa-check-circle {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ===========================
   EVENTS - AVEC FOND BLEU IDENTIQUE À MEMBERSHIP
   =========================== */
.events {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  
  /* Dégradé bleu identique au Hero et Membership */
  background: linear-gradient(135deg, 
    #00112e 0%,      /* Bleu marine profond */
    #012255 25%,     /* Bleu royal */
    #004ffa 50%,     /* Bleu primaire ASPCO */
    #003077 75%,     /* Bleu clair */
    #001c49 100%     /* Bleu ciel doux */

  );
  
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.events::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  animation: floatingLight 25s ease-in-out infinite;
  pointer-events: none;
}

.events .container {
  position: relative;
  z-index: 2;
}

.events h2 {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.events .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a8d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.3));
}

.events .section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.events-list {
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(41, 64, 196, 0.15),
    0 0 0 1px rgba(255, 255, 255, 1);
  border-color: rgba(41, 64, 196, 0.2);
}

.event-card:hover::before {
  transform: scaleX(1);
}

.event-date {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(80px, 15vw, 120px);
  text-align: center;
  position: relative;
}

.event-date::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.event-card:hover .event-date::before {
  transform: rotate(405deg);
}

.event-date .day {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: bold;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.event-date .month {
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.event-info {
  padding: clamp(1rem, 3vw, 1.5rem);
  flex: 1;
}

.event-info h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--dark);
}

.event-info p {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

@media (max-width: 768px) {
  .events {
    padding: 4rem 0;
  }
  
  .events h2 {
    font-size: 2rem;
  }
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.footer-logo .logo-img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-newsletter h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h3::after,
.footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--light-gray);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
  color: var(--light-gray);
}

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

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

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(41, 64, 196, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(41, 64, 196, 0);
  }
}

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }
  
  .modal-gallery {
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .modal-stats {
    grid-template-columns: 1fr;
  }
  
  .close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 20px;
  }
  
  .close-lightbox {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

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

/* Improve text rendering */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animations */
.card,
.btn,
.modal-gallery,
.accordion-header,
.event-card {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}



/* ==========================================
   SECTION VISION - HORIZONTAL SCROLL (SAME STYLE AS OBJECTIVES)
   ========================================== */

.vision {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
}

.vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41, 64, 196, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.vision::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

.vision .container {
  position: relative;
  z-index: 1;
}

.vision h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.vision .section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
}

.vision-scroll-container {
  position: relative;
  padding: 2rem 0;
}

.vision-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.vision-scroll::-webkit-scrollbar {
  height: 8px;
}

.vision-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.vision-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.vision-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.vision-card {
  min-width: 350px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: grab;
}

.vision-card:active {
  cursor: grabbing;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.1), rgba(236, 72, 153, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vision-card:hover::before {
  opacity: 1;
}

.vision-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(41, 64, 196, 0.3);
}

.icon-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(41, 64, 196, 0.4);
  position: relative;
  z-index: 1;
}

.vision-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.vision-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Navigation Arrows */
.vision-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.vision-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.vision-arrow.left {
  left: -25px;
}

.vision-arrow.right {
  right: -25px;
}

/* Responsive */
@media (max-width: 768px) {
  .vision {
    padding: 4rem 0;
  }
  
  .vision h2 {
    font-size: 2rem;
  }
  
  .vision-card {
    min-width: 280px;
    padding: 2rem;
  }
  
  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .vision-card h3 {
    font-size: 1.25rem;
  }
  
  .vision-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .vision-card {
    min-width: 260px;
    padding: 1.5rem;
  }
  
  .vision h2 {
    font-size: 1.75rem;
  }
}
/* ===========================
   PROJETS EN COURS
   =========================== */
.current-projects {
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.02) 0%, rgba(236, 72, 153, 0.02) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(41, 64, 196, 0.1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(41, 64, 196, 0.3);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(41, 64, 196, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.project-content h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 0.75rem;
  color: var(--dark);
  line-height: 1.3;
}

.project-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-date i {
  font-size: 1rem;
}

.project-description {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 500;
}

.stat i {
  color: var(--primary);
  font-size: 1rem;
}

.project-progress {
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 1s ease-in-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-actions .btn {
  flex: 1;
  min-width: 140px;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

.download-btn {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  border: none !important;
}

.download-btn:hover {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  transform: translateY(-2px);
}

/* ===========================
   MODAL PROJETS DÉTAILLÉS
   =========================== */
.modal-project {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.modal-project.active {
  display: flex;
}

.modal-project-content {
  background: var(--white);
  border-radius: 20px;
  max-width: min(95%, 800px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-project-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 2rem;
  position: relative;
}

.modal-project-header h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.modal-project-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.modal-project-body {
  padding: 2rem;
}

.modal-project-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 2rem;
}

.modal-project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-card {
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.05), rgba(236, 72, 153, 0.05));
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.detail-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

.modal-project-gallery {
  margin: 2rem 0;
}

.modal-project-gallery h4 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.gallery-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.gallery-mini img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-mini img:hover {
  transform: scale(1.05);
}

.modal-project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

/* ===========================
   RESPONSIVE DESIGN PROJETS
   =========================== */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-actions {
    flex-direction: column;
  }
  
  .project-actions .btn {
    min-width: 100%;
    justify-content: center;
  }
  
  .project-stats {
    gap: 1rem;
  }
  
  .stat {
    font-size: 0.8rem;
  }
  
  .modal-project-content {
    margin: 1rem;
    max-height: 95vh;
  }
  
  .modal-project-header {
    padding: 1.5rem;
  }
  
  .modal-project-body {
    padding: 1.5rem;
  }
  
  .modal-project-meta {
    gap: 1rem;
    flex-direction: column;
  }
  
  .modal-project-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-project-actions {
    flex-direction: column;
  }
  
  .modal-project-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .project-image {
    height: 180px;
  }
  
  .project-content {
    padding: 1.25rem;
  }
  
  .project-badge {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
  
  .gallery-mini {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Animation d'entrée des cartes */
.project-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.vision-text {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  max-width: 800px;
  margin: 2rem auto;
  font-style: italic;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.vision-pillars {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.pilar {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--border-radius);
  width: clamp(150px, 25vw, 200px);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}

.pilar:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.pilar i {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.pilar h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white);
}

/* Gallery Item with Overlay */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.gallery-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border: none;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1rem);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.gallery-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* AfroBiz Awards Section */
.afrobiz-awards {
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.section-description {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--gray);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.7;
}

.awards-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  margin-top: 2rem;
}

.awards-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.awards-image img:hover {
  transform: scale(1.02);
}

.awards-text ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.awards-text ul li {
  padding: 0.75rem 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}



/* Partners Section */
.partners-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 3rem;
  padding: 2rem 0;
}

.partner-logo {
  width: clamp(120px, 20vw, 180px);
  height: clamp(60px, 10vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
 

}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Media Gallery */
.media-gallery {
  background: var(--light);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.tab-btn {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.gallery-video {
  width: 100%;
  height: 250px;
  border-radius: var(--border-radius);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Testimonials Section */
.testimonials-slider {
  margin-top: 3rem;
  max-width: 900px;
  margin-inline: auto;
}

.testimonial {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
  animation: fadeInUp 0.6s ease;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 80px;
  color: var(--primary);
  opacity: 0.1;
  font-family: Georgia, serif;
}

.quote {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--dark);
}

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

.author img {
  width: clamp(50px, 10vw, 70px);
  height: clamp(50px, 10vw, 70px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.author h4 {
  margin-bottom: 0.25rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.author p {
  color: var(--gray);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-info {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-info i {
  color: var(--primary);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  width: 24px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-md);
}

/* WhatsApp Button Specific Styles */
.whatsapp-button {
  background: linear-gradient(135deg, #25D366, #128C7E);
  position: relative;
  overflow: hidden;
}

.whatsapp-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.whatsapp-button:hover::after {
  width: 300px;
  height: 300px;
}

/* Rotation animation for vision section */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

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

/* Print styles */
@media print {
  nav,
  .menu-toggle,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .hero,
  section {
    page-break-inside: avoid;
  }
}


/* ============================================
   CSS SPÉCIAL POUR POP-UPS MOBILE RESPONSIVE
   Ajoutez ce CSS à votre styles.css existant
   ============================================ */

/* ===========================
   MODAL GALLERIES - MOBILE OPTIMIZED
   =========================== */
.modal-gallery {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: modalFadeIn 0.3s ease;
  overflow-y: auto;
  /* Prevent body scroll when modal is open */
  overscroll-behavior: contain;
}

.modal-gallery.active {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 20px;
  width: 100%;
  max-width: min(95%, 1000px);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* Smooth scrolling inside modal */
  -webkit-overflow-scrolling: touch;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: background 0.3s;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Modal Header */
.modal-content h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--dark);
  position: relative;
  padding-bottom: 1rem;
  line-height: 1.3;
}

.modal-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Modal Description */
.modal-content > p {
  text-align: center;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  padding: 0 1rem;
}

/* Close Button - Enhanced */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(41, 64, 196, 0.3);
}

.close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(41, 64, 196, 0.4);
}

.close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Modal Stats - Enhanced Grid */
.modal-stats {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}

.modal-stats li {
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.05), rgba(236, 72, 153, 0.05));
  padding: 1rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-stats li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.08), rgba(236, 72, 153, 0.08));
}

/* Gallery Grid Inside Modal */
.modal-content .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.modal-content .gallery-grid img {
  width: 100%;
  height: clamp(180px, 25vw, 250px);
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-content .gallery-grid img:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.modal-content .gallery-grid img:active {
  transform: scale(0.98);
}

/* Form Inside Modal */
.modal-content form {
  max-width: 500px;
  margin: 2rem auto;
}

.modal-content form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.modal-content form input,
.modal-content form select,
.modal-content form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--light-gray);
  background: var(--white);
  font-family: inherit;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
  margin-bottom: 1.25rem;
}

.modal-content form input:focus,
.modal-content form select:focus,
.modal-content form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(41, 64, 196, 0.1);
  transform: translateY(-2px);
}

/* Blockquote Inside Modal */
.modal-content blockquote {
  background: linear-gradient(135deg, rgba(41, 64, 196, 0.05), rgba(236, 72, 153, 0.05));
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-style: italic;
  margin: 2rem auto;
  max-width: 600px;
  position: relative;
}

.modal-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

/* ===========================
   MOBILE SPECIFIC ADJUSTMENTS
   =========================== */
@media (max-width: 767px) {
  .modal-gallery {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 3rem;
  }
  
  .modal-content {
    padding: 1.5rem 1rem;
    border-radius: 16px;
    max-height: 90vh;
    margin: 0;
  }
  
  .modal-content h3 {
    font-size: 1.35rem;
    padding-right: 40px; /* Space for close button */
  }
  
  .close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 20px;
  }
  
  .modal-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .modal-stats li {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
  
  .modal-content .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: 0.75rem;
  }
  
  .modal-content .gallery-grid img {
    height: 140px;
  }
  
  /* Stack buttons on mobile */
  .modal-content .cta-buttons,
  .modal-content div[style*="display: flex"] {
    flex-direction: column !important;
    width: 100%;
  }
  
  .modal-content .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile (320px - 375px) */
@media (max-width: 375px) {
  .modal-content {
    padding: 1.25rem 0.875rem;
  }
  
  .modal-content h3 {
    font-size: 1.2rem;
  }
  
  .modal-content .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr));
    gap: 0.5rem;
  }
  
  .modal-content .gallery-grid img {
    height: 120px;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) {
  .modal-content {
    max-width: 90%;
    padding: 2rem 1.5rem;
  }
  
  .modal-content .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  }
  
  .modal-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   LIGHTBOX ENHANCEMENTS
   =========================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  object-fit: contain;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.close-lightbox:hover {
  background: var(--white);
  color: var(--dark);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--white);
}

.close-lightbox:active {
  transform: rotate(90deg) scale(0.95);
}

/* Mobile Lightbox */
@media (max-width: 767px) {
  .lightbox {
    padding: 0.5rem;
  }
  
  .lightbox img {
    max-width: 98%;
    max-height: 90%;
    border-radius: 8px;
  }
  
  .close-lightbox {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

/* ===========================
   LOADING STATE FOR MODALS
   =========================== */
.modal-gallery.loading .modal-content {
  opacity: 0.6;
  pointer-events: none;
}

.modal-gallery.loading .modal-content::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===========================
   MODAL BACKDROP BLUR EFFECT
   =========================== */
.modal-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(41, 64, 196, 0.1), transparent);
  pointer-events: none;
}

/* ===========================
   ACCESSIBILITY IMPROVEMENTS
   =========================== */
.modal-gallery:focus-within .close {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

.modal-content *:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to content for screen readers */
.modal-content .skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
}

.modal-content .skip-link:focus {
  top: 0;
}

/* ===========================
   TOUCH OPTIMIZATIONS
   =========================== */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets on touch devices */
  .close,
  .close-lightbox,
  .modal-content .btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .modal-content .gallery-grid img:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Add active state instead */
  .modal-content .gallery-grid img:active {
    transform: scale(0.95);
    opacity: 0.8;
  }
  
  .close:active,
  .close-lightbox:active {
    transform: scale(0.9);
  }
}

/* ===========================
   PROGRESSIVE ENHANCEMENT
   =========================== */
/* Fallback for older browsers without backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
  .modal-gallery {
    background: rgba(0, 0, 0, 0.95);
  }
  
  .close-lightbox {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* ===========================
   DARK MODE SUPPORT (Optional)
   =========================== */
@media (prefers-color-scheme: dark) {
  .modal-content {
    background: #1f2937;
    color: #f9fafb;
  }
  
  .modal-content h3,
  .modal-content form label {
    color: #f9fafb;
  }
  
  .modal-content > p {
    color: #d1d5db;
  }
  
  .modal-content form input,
  .modal-content form select,
  .modal-content form textarea {
    background: #374151;
    border-color: #4b5563;
    color: #000000;
  }
  
  .modal-stats li {
    background: linear-gradient(135deg, rgba(41, 64, 196, 0.15), rgba(236, 72, 153, 0.15));
  }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .modal-gallery,
  .lightbox,
  .close,
  .close-lightbox {
    display: none !important;
  }
}

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
  .modal-gallery,
  .modal-content,
  .lightbox,
  .lightbox img,
  .close,
  .close-lightbox {
    animation: none !important;
    transition: none !important;
  }
  
  .modal-content .gallery-grid img:hover {
    transform: none;
  }
}

/* ===========================
   HIGH CONTRAST MODE
   =========================== */
@media (prefers-contrast: high) {
  .modal-content {
    border: 3px solid currentColor;
  }
  
  .close {
    border: 2px solid currentColor;
  }
  
  .modal-stats li {
    border: 2px solid currentColor;
  }
}

/* ===========================
   CUSTOM MODAL VARIANTS
   =========================== */
/* Success Modal */
.modal-gallery.modal-success .modal-content h3::after {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.modal-gallery.modal-success .close {
  background: linear-gradient(135deg, #10b981, #34d399);
}

/* Warning Modal */
.modal-gallery.modal-warning .modal-content h3::after {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.modal-gallery.modal-warning .close {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* Error Modal */
.modal-gallery.modal-error .modal-content h3::after {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.modal-gallery.modal-error .close {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

/* ===========================
   MODAL ENTRANCE VARIANTS
   =========================== */
/* Slide from Bottom */
.modal-gallery.slide-bottom .modal-content {
  animation: slideFromBottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFromBottom {
  from {
    opacity: 0;
    transform: translateY(100vh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Zoom In */
.modal-gallery.zoom-in .modal-content {
  animation: zoomInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInModal {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.modal-full-screen {
  max-width: 100% !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.modal-compact {
  max-width: 500px !important;
}

.modal-wide {
  max-width: 1200px !important;
}

/* ===========================
   SAFE AREA INSETS (iOS)
   =========================== */
@supports (padding-top: env(safe-area-inset-top)) {
  .modal-gallery {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .close {
    top: max(15px, env(safe-area-inset-top) + 10px);
    right: max(15px, env(safe-area-inset-right) + 10px);
  }
}

/* ===========================
   PERFORMANCE OPTIMIZATIONS
   =========================== */
.modal-gallery,
.modal-content,
.lightbox {
  /* GPU acceleration */
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Contain layout shifts */
.modal-content img,
.modal-content video {
  content-visibility: auto;
}

/* ============================================
   FIN DES STYLES POP-UPS MOBILE
   ============================================ */


     * { box-sizing: border-box; }
  body { margin: 0; background: #f8f8fb; font-family: 'DM Sans', sans-serif; }
 
  /* ── Card hover effet ── */
  .article-card {
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s ease;
  }
  .article-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 32px 64px rgba(41,64,196,.13), 0 0 0 1px rgba(41,64,196,.08);
  }
 
  /* ── Image zoom ── */
  .article-card .card-img {
    transition: transform 0.6s cubic-bezier(.22,.68,0,1.2);
  }
  .article-card:hover .card-img {
    transform: scale(1.07);
  }
 
  /* ── Gradient overlay sur image ── */
  .img-overlay {
    background: linear-gradient(to top, rgba(15,15,26,.7) 0%, transparent 60%);
  }
 
  /* ── Badge catégorie ── */
  .cat-badge {
    background: rgba(41,64,196,.12);
    color: #2940c4;
    border: 1px solid rgba(41,64,196,.2);
    backdrop-filter: blur(8px);
  }
 
  /* ── Featured card ── */
  .featured-card {
    background: linear-gradient(135deg, #2940c4 0%, #1e3a8a 60%, #0f0f1a 100%);
  }
 
  /* ── Skeleton loader ── */
  .skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: 8px;
  }
 
  /* ── Filter pills ── */
  .filter-pill {
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .filter-pill:hover { background: rgba(41,64,196,.1); color: #2940c4; }
  .filter-pill.active {
    background: #2940c4;
    color: white;
    box-shadow: 0 4px 14px rgba(41,64,196,.35);
  }
 
  /* ── Stagger animation ── */
  .stagger-1 { animation-delay: 0.05s; }
  .stagger-2 { animation-delay: 0.12s; }
  .stagger-3 { animation-delay: 0.19s; }
  .stagger-4 { animation-delay: 0.26s; }
  .stagger-5 { animation-delay: 0.33s; }
  .stagger-6 { animation-delay: 0.40s; }
 
  /* ── Read more arrow ── */
  .read-more-arrow {
    transition: transform 0.25s ease;
    display: inline-block;
  }
  .article-card:hover .read-more-arrow { transform: translateX(5px); }
 
  /* ── Decorative line ── */
  .deco-line {
    background: linear-gradient(90deg, #2940c4, #ec4899, transparent);
    height: 3px;
    border-radius: 99px;
  }