/* Modern CSS for IA_Evolution */

/* Base Styles */
:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --dark: #1F2937;
  --light: #F9FAFB;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.6;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Ultra-Modern Navbar */
.ultra-modern-navbar {
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.85) 100%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ultra-modern-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(79, 70, 229, 0.3) 50%, 
    transparent 100%);
}

/* Logo avec effets */
.nav-brand-ultra {
  position: relative;
  font-weight: 700;
  transition: all 0.3s ease;
}

.logo-container {
  position: relative;
  display: inline-block;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.nav-brand-ultra:hover .logo-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.nav-brand-ultra:hover .logo-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Menu principal */
.nav-menu-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 0 4px;
  border-radius: 25px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(79, 70, 229, 0.1) 0%, 
    rgba(129, 140, 248, 0.1) 100%);
  border-radius: 25px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-icon {
  margin-right: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.nav-text {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.nav-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
  opacity: 1;
  transform: scale(1);
}

.nav-item:hover .nav-glow,
.nav-item.active .nav-glow {
  width: 100px;
  height: 100px;
}

.nav-item:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.nav-item:hover .nav-icon {
  transform: scale(1.2) rotate(5deg);
}

.nav-item.active {
  color: var(--primary);
  background: linear-gradient(135deg, 
    rgba(79, 70, 229, 0.15) 0%, 
    rgba(129, 140, 248, 0.1) 100%);
  box-shadow: 
    0 4px 15px rgba(79, 70, 229, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
}



/* Menu mobile moderne */
.mobile-menu-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--primary);
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn:hover {
  background: rgba(79, 70, 229, 0.1);
  transform: scale(1.05);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 80px;
  right: 20px;
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.show .mobile-menu-content {
  transform: translateY(0) scale(1);
}

.mobile-nav-items {
  margin-bottom: 20px;
}

.mobile-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin: 8px 0;
  border-radius: 15px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-nav-item i {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-nav-ripple {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(79, 70, 229, 0.1) 0%, 
    rgba(129, 140, 248, 0.05) 100%);
  border-radius: 15px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item:hover .mobile-nav-ripple,
.mobile-nav-item.active .mobile-nav-ripple {
  opacity: 1;
  transform: scale(1);
}

.mobile-nav-item:hover {
  color: var(--primary);
  transform: translateX(8px);
}

.mobile-nav-item:hover i {
  transform: scale(1.2);
}

.mobile-nav-item.active {
  color: var(--primary);
  background: linear-gradient(135deg, 
    rgba(79, 70, 229, 0.15) 0%, 
    rgba(129, 140, 248, 0.1) 100%);
}

.mobile-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 600;
  box-shadow: 
    0 8px 20px rgba(79, 70, 229, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta-button i {
  margin-left: 8px;
  transition: all 0.3s ease;
}

.mobile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 30px rgba(79, 70, 229, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.mobile-cta-button:hover i {
  transform: translateX(4px) rotate(15deg);
}

/* Hero Section */
.modern-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  position: relative;
  overflow: hidden;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234f46e5' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-title {
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--gray);
  font-weight: 400;
  max-width: 700px;
  margin: 1.5rem auto;
}

.hero-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.6);
}

/* Modern Cards */
.modern-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  position: relative;
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

.card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certification-badge {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
}

.session-badge {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: white;
  top: 60px;
}

.modern-price-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
  z-index: 10;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.card-meta {
  display: flex;
  align-items: center;
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

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

.feature-list {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.feature-icon {
  color: var(--success);
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-text {
  color: var(--gray);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

.card-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Modern Footer */
.modern-footer {
  background: linear-gradient(135deg, var(--dark) 0%, #111827 100%);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
}

.footer-tagline {
  color: var(--gray-light);
  margin-bottom: 2rem;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-copyright {
  color: var(--gray-light);
  font-size: 0.875rem;
}

.footer-contact {
  color: var(--gray-light);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .modern-card {
    margin-bottom: 2rem;
  }
  
  .card-badge, .modern-price-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
  
  .session-badge {
    top: 55px;
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Utilities */
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

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

.pulse-animation {
  animation: pulse 2s infinite;
}