/* ===== MODERN HOMEPAGE STYLES 2025 ===== */

/* Variables CSS pour la cohérence */
:root {
  /* Couleurs principales */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --secondary-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;
  
  /* Gradients modernes */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #f59e0b 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  
  /* Couleurs neutres */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  
  /* Ombres modernes */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Espacements */
  --container-max: 1280px;
  --section-padding: 5rem 0;
  --border-radius: 1rem;
}

/* Reset et suppression de l'écart avec navbar + défilement horizontal */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  width: 100%;
}

/* Empêcher tout débordement horizontal */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Images et médias responsifs */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Conteneurs spécifiques */
.hero-section, .features-section, .stats-section, .cta-section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  width: 100vw;
  max-width: 100%;
}

/* Suppression complète de l'écart et défilement */
.content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  width: 100%;
  max-width: 100vw;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -1px;
  padding-top: 0;
  width: 100%;
  max-width: 100vw;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  color: white;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: badgeFloat 3s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-align: left;
}

.gradient-text {
  background: linear-gradient(45deg, #ffffff, #fbbf24, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  position: relative;
  z-index: 15;
  display: block;
}

.hero-location {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  opacity: 0.95;
  margin-top: 0.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: locationGlow 2s ease-in-out infinite alternate;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 95%;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.text-highlight {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

/* ===== BOUTONS MODERNES ===== */
.btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0) scale(1);
}

.btn-modern:hover {
  transform: translateY(-4px) scale(1.05);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: var(--primary-blue);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
  color: var(--primary-blue-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn-modern:hover .btn-shine {
  left: 100%;
}

/* ===== HERO VISUAL avec logo ultra-visible ===== */
.hero-visual {
  position: relative;
  will-change: transform;
  width: 100%;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  animation: imageFloat 6s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-2xl);
  transition: transform 0.3s ease;
  /* Amélioration subtile de la visibilité */
  filter: brightness(1.05) contrast(1.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.hero-image:hover {
  transform: scale(1.02);
  filter: brightness(1.1) contrast(1.15);
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: cardFloat 8s ease-in-out infinite;
  z-index: 5;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.floating-card:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.floating-card i {
  font-size: 1.2rem;
}

.card-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 107, 107, 0.1));
}

.card-2 {
  bottom: 30%;
  left: -15%;
  animation-delay: 2s;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(74, 144, 226, 0.1));
}

.card-3 {
  top: 60%;
  right: -5%;
  animation-delay: 4s;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 158, 11, 0.1));
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
  cursor: pointer;
  transition: opacity 0.3s ease;
  animation: indicatorPulse 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  opacity: 0.7;
}

.scroll-mouse {
  width: 28px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.scroll-wheel {
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s infinite;
}

/* ===== FEATURES SECTION - Style original ===== */
.features-section {
  padding: var(--section-padding);
  background: var(--gray-50);
  width: 100%;
  max-width: 100vw;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

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

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-number {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  animation: numberPulse 3s ease-in-out infinite;
}

.section-description {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.features-grid {
  display: grid;
  gap: 3rem;
  width: 100%;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

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

.feature-reverse {
  grid-template-columns: auto 1fr auto;
}

.feature-reverse .feature-content {
  order: 2;
}

.feature-reverse .feature-image {
  order: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  animation: iconPulse 4s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
  transform: rotate(5deg) scale(1.1);
}

.feature-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.feature-content p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-list li {
  transform: translateX(5px);
}

.feature-list .bi-check-circle-fill {
  color: #10b981;
  font-size: 1.1rem;
}

.feature-image {
  width: 200px;
  height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

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

.feature-card:hover .feature-image img {
  transform: scale(1.1);
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 3rem 0;
  background: var(--gradient-primary);
  color: white;
  width: 100%;
  max-width: 100vw;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
}

.stat-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: numberCount 2s ease-out;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: var(--section-padding);
  background: var(--gray-900);
  color: white;
  text-align: center;
  width: 100%;
  max-width: 100vw;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

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

.btn-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-cta:hover {
  color: white;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

/* ===== ANIMATIONS AMÉLIORÉES ===== */
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes locationGlow {
  0% { text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); }
  100% { text-shadow: 1px 1px 8px rgba(255, 215, 0, 0.4), 1px 1px 3px rgba(0, 0, 0, 0.3); }
}

@keyframes imageFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(2deg); }
  66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes indicatorPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

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

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

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

@keyframes numberCount {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 1.5rem;
  }
  
  .feature-card,
  .feature-reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .feature-reverse .feature-content,
  .feature-reverse .feature-image {
    order: initial;
  }
  
  .feature-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  body {
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .hero-section {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    min-height: 100svh;
    width: 100vw;
    max-width: 100%;
  }
  
  .hero-container {
    padding: 1rem;
    gap: 2rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-modern {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 1rem 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .floating-card {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.75rem;
  }
  
  .card-1 {
    top: 5%;
    right: 2%;
    max-width: 200px;
  }
  
  .card-2 {
    bottom: 25%;
    left: 2%;
    max-width: 200px;
  }
  
  .card-3 {
    top: 55%;
    right: 2%;
    max-width: 200px;
  }
  
  .scroll-indicator {
    display: none;
  }
  
      .hero-description {
      max-width: 100%;
      font-size: 1rem;
      text-align: center;
    }
    
        .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
  .hero-section {
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .hero-container {
    padding: 0.75rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  
  body {
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  * {
    max-width: 100%;
  }
  
  .container {
    padding: 0 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  /* Cacher les cartes flottantes sur très petits écrans */
  .floating-card {
    display: none;
  }
  
  /* Grilles en une colonne sur très petits écrans */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-image {
    max-width: 90%;
    margin: 0 auto;
  }
  
  .hero-location {
    font-size: 1.2rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .btn-modern {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
      .floating-card {
      display: none;
    }
    
    .stats-grid {
      grid-template-columns: 1fr;
    }
  }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-card,
  .gradient-text,
  .hero-badge {
    animation: none;
  }
}
