/* ===========================================
   SPORATES - Page d'accueil (Carousel & Hero)
   =========================================== */

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 40px 20px 20px;
  background: radial-gradient(
    circle at top center,
    #e6f3f0 0%,
    transparent 70%
  );
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  border: 1px solid #e6f3f0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- CAROUSEL --- */
.carousel-container {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background: #ffffff;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 80px 20px;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  gap: 40px;
  height: 100%;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  max-width: 480px;
  z-index: 2;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: #e6f3f0;
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.feature-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Zone Téléphone */
.feature-phone {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

.feature-phone img {
  max-width: 260px;
  max-height: 560px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.feature-phone .logo-display {
  width: 260px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 36px;
}

.qr-box {
  margin-top: 20px;
  display: inline-block;
  padding: 15px;
  border: 2px dashed #e6f3f0;
  border-radius: 12px;
  background: var(--bg-light);
  color: #006b50;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- NAVIGATION CAROUSEL --- */
.carousel-nav {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

/* --- FINAL CTA --- */
.final-cta {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-light);
}

.final-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* --- OPTIMISATION GRANDS ECRANS (Ultrawidth) --- */
@media (min-width: 1600px) {
  .carousel-container {
    height: 800px;
  }

  .feature-phone img {
    max-height: 650px;
    max-width: 360px;
  }

  .feature-phone .logo-display {
    max-height: 650px;
    max-width: 360px;
  }

  .feature-text {
    max-width: 600px;
  }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .hero {
    padding-bottom: 10px;
  }

  .carousel-container {
    height: auto;
    min-height: 480px;
  }

  .carousel-nav {
    bottom: 20px;
  }

  .carousel-slide {
    padding: 10px 20px 80px 20px;
    align-items: flex-start;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .feature-text {
    max-width: 100%;
    flex: 0 0 auto;
  }

  .feature-text h3 {
    font-size: 1.6rem;
  }

  .feature-icon {
    margin: 0 auto 12px;
    width: 48px;
    height: 48px;
  }

  .feature-phone {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  .feature-phone img {
    max-height: 380px;
    max-width: 200px;
  }

  .feature-phone .logo-display {
    max-height: 380px;
    max-width: 200px;
    border-radius: 30px;
  }

  .nav-btn {
    display: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin: 24px auto 0;
  }
}
