/* Hero Intro Modern - Design UX/UI moderne et dynamique */

/* Variables CSS pour le design moderne */
:root {
  --hero-primary: #28a745;
  --hero-secondary: #20c997;
  --hero-accent: #FF6B6B;
  --hero-dark: #1a202c;
  --hero-light: #f8fafc;
  --hero-glass: rgba(255, 255, 255, 0.1);
  --hero-shadow-light: rgba(0, 0, 0, 0.05);
  --hero-shadow-medium: rgba(0, 0, 0, 0.1);
  --hero-shadow-heavy: rgba(0, 0, 0, 0.2);
  --hero-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --hero-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --hero-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Section principale moderne */
.hero-intro-modern {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  background: 
    radial-gradient(ellipse at top, rgba(40, 167, 69, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Éléments décoratifs de fond */
.hero-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.hero-gradient-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--hero-gradient-1);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.hero-gradient-orb-2 {
  width: 200px;
  height: 200px;
  background: var(--hero-gradient-2);
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

/* Formes flottantes */
.hero-floating-shapes {
  position: absolute;
  inset: 0;
}

.floating-shape {
  position: absolute;
  background: var(--hero-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: floatShapes 12s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: 60%;
  right: 20%;
  animation-delay: 4s;
}

.shape-3 {
  width: 100px;
  height: 40px;
  border-radius: 20px;
  bottom: 30%;
  left: 80%;
  animation-delay: 8s;
}

@keyframes floatShapes {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-30px) rotate(10deg); opacity: 0.6; }
}

/* Container principal */
.hero-main-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grille de contenu moderne */
.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  align-items: center;
  min-height: 70vh;
}

/* Colonne de gauche - Contenu */
.hero-content-left {
  opacity: 1;
  transform: translateX(0);
  animation: slideInLeft 1s ease-out;
}

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

/* Badge moderne */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--hero-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-radius: 50px;
  color: var(--hero-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 32px;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInDown 0.8s ease-out 0.3s both;
}

.hero-badge-icon {
  font-size: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Titre moderne avec hiérarchie claire */
.hero-title-modern {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--hero-dark);
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
  animation: slideInUp 0.8s ease-out both;
}

.hero-title-line-1 {
  animation-delay: 0.5s;
}

.hero-title-line-2 {
  animation-delay: 0.7s;
}

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

.hero-accent-word {
  position: relative;
  color: var(--hero-primary);
  font-weight: 900;
}

.hero-accent-gradient {
  background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-accent-gradient::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--hero-primary), var(--hero-secondary));
  border-radius: 2px;
  transform: scaleX(0);
  animation: expandLine 1s ease-out 1.5s forwards;
}

@keyframes expandLine {
  to { transform: scaleX(1); }
}

/* Sous-titre moderne */
.hero-subtitle-modern {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.hero-subtitle-highlight {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hero-primary);
  letter-spacing: -0.01em;
}

.hero-subtitle-location {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-subtitle-location::before {
  content: '📍';
  font-size: 1.1rem;
}

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

/* Description moderne avec contenu extensible */
.hero-description-modern {
  margin-bottom: 48px;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out 1.1s both;
}

.hero-main-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 16px;
  max-width: 600px;
}

.hero-expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-expandable-content.expanded {
  max-height: 200px;
  margin-bottom: 16px;
}

.hero-hidden-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #64748b;
  padding-top: 16px;
  border-top: 1px solid rgba(40, 167, 69, 0.1);
  max-width: 600px;
}

.hero-expand-btn {
  background: none;
  border: none;
  color: var(--hero-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.hero-expand-btn:hover {
  color: var(--hero-secondary);
  transform: translateX(4px);
}

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

.hero-expand-btn.expanded i {
  transform: rotate(180deg);
}

/* Boutons CTA modernes */
.hero-cta-modern {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out 1.3s both;
}

.hero-primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-secondary) 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-primary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hero-secondary) 0%, var(--hero-accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.hero-primary-btn:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 50px rgba(40, 167, 69, 0.4);
}

.hero-primary-btn:hover::before {
  opacity: 1;
}

.btn-text, .btn-icon {
  position: relative;
  z-index: 1;
}

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

.hero-primary-btn:hover .btn-icon {
  transform: translateX(6px);
}

.btn-ripple {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  border-radius: 50px;
  pointer-events: none;
}

.hero-primary-btn:active .btn-ripple {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.1s ease;
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--hero-glass);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(40, 167, 69, 0.2);
  color: var(--hero-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-secondary-btn:hover {
  background: rgba(40, 167, 69, 0.1);
  border-color: var(--hero-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
}

/* Colonne de droite - Carte visuelle */
.hero-content-right {
  opacity: 1;
  transform: translateX(0);
  animation: slideInRight 1s ease-out 0.5s both;
}

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

.hero-visual-card {
  background: var(--hero-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.5), transparent);
}

.hero-visual-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Grille de statistiques */
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.hero-stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(40, 167, 69, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
  transition: left 0.5s ease;
}

.hero-stat-item:hover::before {
  left: 100%;
}

.hero-stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hero-primary);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Liste des fonctionnalités */
.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(40, 167, 69, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
  color: #475569;
}

.hero-feature-item:hover {
  background: rgba(40, 167, 69, 0.05);
  border-color: rgba(40, 167, 69, 0.2);
  transform: translateX(8px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--hero-primary), var(--hero-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Indicateur de scroll moderne */
.hero-scroll-indicator-modern {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
  animation: bounceIndicator 2s ease-in-out infinite;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--hero-primary), transparent);
  border-radius: 1px;
  position: relative;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--hero-primary);
  border-radius: 1px;
  animation: scrollProgress 2s ease-in-out infinite;
}

@keyframes scrollProgress {
  0%, 100% { height: 0; }
  50% { height: 100%; }
}

.scroll-dot {
  width: 12px;
  height: 12px;
  background: var(--hero-primary);
  border-radius: 50%;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--hero-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: rippleOut 2s ease-in-out infinite;
}

@keyframes rippleOut {
  0% { transform: scale(0); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes bounceIndicator {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* Animations au scroll supprimées - section reste toujours visible */

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-visual-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-intro-modern {
    padding: 80px 0 60px;
    min-height: 90vh;
  }
  
  .hero-main-container {
    padding: 0 16px;
  }
  
  .hero-content-grid {
    gap: 40px;
  }
  
  .hero-title-modern {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero-subtitle-highlight {
    font-size: 1.25rem;
  }
  
  .hero-main-text {
    font-size: 1.125rem;
  }
  
  .hero-visual-card {
    padding: 24px;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-cta-modern {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .hero-primary-btn,
  .hero-secondary-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .hero-features-list {
    gap: 12px;
  }
  
  .hero-feature-item {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* Effets de parallax au mouvement de souris */
.hero-intro-modern[data-mouse-parallax="true"] .hero-content-left {
  transition: transform 0.1s ease-out;
}

.hero-intro-modern[data-mouse-parallax="true"] .hero-visual-card {
  transition: transform 0.1s ease-out;
}

/* Support pour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-intro-modern,
  .hero-intro-modern *,
  .hero-intro-modern::before,
  .hero-intro-modern::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Animations d'entrée séquentielles */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero-accent-word::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  animation-delay: 2s;
}
