/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #070b23;
  color: white;
  font-family: "Inter", sans-serif;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* ===== BACKGROUND ANIMATIONS ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #070b23;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.stars {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ===== HEADER RESPONSIVE ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: rgba(7, 11, 35, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
}

.logo {
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.nav-links a:hover,
.nav-links a.active {
  color: #c084fc;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a4feb, #9d48e6);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 110;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #c084fc;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== PRESENTATION CONTAINER ===== */
.presentation-container {
  padding-top: clamp(80px, 12vh, 140px);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ===== SLIDE SYSTEM ===== */
.slide {
  display: none;
  min-height: calc(100vh - clamp(80px, 12vh, 140px));
  padding: clamp(1rem, 3vw, 6rem) clamp(1rem, 3vw, 8%);
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100px);
}

/* ===== HERO SLIDE ===== */
.hero-slide {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(1rem, 3vw, 3rem);
  background: linear-gradient(45deg, #4a4feb, #9d48e6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease 0.5s forwards, glow 2s ease-in-out 1.5s infinite alternate;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 2rem);
  opacity: 0;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  animation: slideInUp 1s ease 1s forwards;
  max-width: 800px;
  line-height: 1.4;
}

.start-button {
  background: linear-gradient(90deg, #4a4feb, #9d48e6);
  color: white;
  padding: clamp(0.8rem, 2vw, 1.5rem) clamp(2rem, 4vw, 4rem);
  border: none;
  border-radius: 50px;
  font-size: clamp(1rem, 2vw, 1.8rem);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1s ease 1.5s forwards;
  position: relative;
  overflow: hidden;
}

.start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(124, 119, 198, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(255, 119, 198, 0.8);
  }
}

/* ===== STAT SLIDES ===== */
.stat-slide {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
  height: 100%;
  justify-content: center;
}

.stat-content {
  opacity: 0;
  transform: translateY(-30px);
  animation: slideInUp 0.8s ease 0.3s forwards;
  text-align: center;
  flex-shrink: 0;
}

.stat-chart {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease 0.6s forwards;
  flex: 1;
  width: 100%;
  max-width: clamp(400px, 50vw, 700px);
}

.stat-title {
  font-size: clamp(1.4rem, 3.5vw, 3.5rem);
  margin-bottom: clamp(0.5rem, 2vw, 2rem);
  background: linear-gradient(45deg, #4a4feb, #9d48e6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-description {
  font-size: clamp(0.9rem, 1.8vw, 1.4rem);
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
  opacity: 0.9;
  line-height: 1.4;
  max-width: clamp(400px, 60vw, 700px);
  margin-left: auto;
  margin-right: auto;
}

.stat-highlight {
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: bold;
  color: #c084fc;
  margin-bottom: clamp(0.3rem, 1vw, 1rem);
  display: block;
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.chart-container {
  background: #18192b;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #3a3867;
  border-radius: 20px;
  padding: clamp(1rem, 2.5vw, 3rem);
  height: clamp(200px, 35vh, 400px);
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* ===== BENEFITS SLIDE ===== */
.benefits-slide {
  flex-direction: column;
  justify-content: center;
  max-width: 1800px;
  margin: 0 auto;
  height: 100%;
  overflow: hidden;
  padding-bottom: clamp(80px, 12vh, 140px);
}

.benefits-title {
  font-size: clamp(1.4rem, 3.5vw, 3.5rem);
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(45deg, #4a4feb, #9d48e6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: slideInUp 0.8s ease 0.2s forwards;
  line-height: 1.2;
  flex-shrink: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 20vw, 320px), 1fr));
  gap: clamp(0.8rem, 2vw, 2rem);
  flex: 1;
  align-content: start;
  max-height: calc(100vh - clamp(200px, 25vh, 300px));
  overflow: hidden;
}

.benefit-card {
  background: linear-gradient(
    135deg,
    rgba(40, 30, 80, 0.95) 60%,
    rgba(72, 60, 148, 0.8) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #312e81;
  border-radius: clamp(12px, 1.5vw, 20px);
  padding: clamp(1rem, 2vw, 2.5rem);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  max-height: clamp(140px, 25vh, 220px);
}

.benefit-card:nth-child(1) { animation: slideInUp 0.8s ease 0.4s forwards; }
.benefit-card:nth-child(2) { animation: slideInUp 0.8s ease 0.6s forwards; }
.benefit-card:nth-child(3) { animation: slideInUp 0.8s ease 0.8s forwards; }
.benefit-card:nth-child(4) { animation: slideInUp 0.8s ease 1s forwards; }
.benefit-card:nth-child(5) { animation: slideInUp 0.8s ease 1.2s forwards; }
.benefit-card:nth-child(6) { animation: slideInUp 0.8s ease 1.4s forwards; }

.benefit-card:hover {
  transform: scale(1.05) translateY(0);
  border-color: #7f5af0;
}

.benefit-icon {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(0.3rem, 1vw, 0.8rem);
  display: block;
}

.benefit-title {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  margin-bottom: clamp(0.3rem, 1vw, 0.6rem);
  color: #38bdf8;
  line-height: 1.2;
}

.benefit-description {
  font-size: clamp(0.8rem, 1.4vw, 1.1rem);
  line-height: 1.3;
  opacity: 0.9;
}

/* ===== TESTIMONIALS SLIDE ===== */
.testimonials-slide {
  flex-direction: column;
  justify-content: center;
  max-width: 1800px;
  margin: 0 auto;
  height: 100%;
  overflow: hidden;
  padding-bottom: clamp(80px, 12vh, 140px);
}

.testimonials-title {
  font-size: clamp(1.4rem, 3.5vw, 3.5rem);
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(45deg, #4a4feb, #9d48e6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: slideInUp 0.8s ease 0.2s forwards;
  line-height: 1.2;
  flex-shrink: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2vw, 2rem);
  flex: 1;
  align-content: start;
  max-height: calc(100vh - clamp(200px, 25vh, 300px));
  overflow: hidden;
}

.testimonial-card {
  background: linear-gradient(
    135deg,
    rgba(40, 30, 80, 0.95) 60%,
    rgba(72, 60, 148, 0.8) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #312e81;
  border-radius: clamp(12px, 1.5vw, 20px);
  padding: clamp(1rem, 2vw, 2.5rem);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  max-height: clamp(160px, 28vh, 250px);
}

.testimonial-card:nth-child(1) { animation: slideInUp 0.8s ease 0.4s forwards; }
.testimonial-card:nth-child(2) { animation: slideInUp 0.8s ease 0.6s forwards; }
.testimonial-card:nth-child(3) { animation: slideInUp 0.8s ease 0.8s forwards; }
.testimonial-card:nth-child(4) { animation: slideInUp 0.8s ease 1s forwards; }
.testimonial-card:nth-child(5) { animation: slideInUp 0.8s ease 1.2s forwards; }
.testimonial-card:nth-child(6) { animation: slideInUp 0.8s ease 1.4s forwards; }

.testimonial-text {
  margin-bottom: clamp(0.6rem, 1.5vw, 1.2rem);
  font-style: italic;
  opacity: 0.9;
  font-size: clamp(0.8rem, 1.4vw, 1.1rem);
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.testimonial-author {
  font-weight: bold;
  color: #c084fc;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  margin-top: auto;
}

.stars-rating {
  color: #38bdf8;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  margin-bottom: clamp(0.3rem, 1vw, 0.6rem);
}

/* ===== NAVIGATION CONTROLS ===== */
.slide-controls {
  position: fixed;
  bottom: clamp(20px, 5vh, 30px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  z-index: 1000;
}

.nav-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #3a3867;
  color: white;
  width: clamp(45px, 8vw, 60px);
  height: clamp(45px, 8vw, 60px);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-button:hover {
  background: rgba(124, 58, 237, 0.3);
  transform: scale(1.1);
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.progress-bar {
  position: fixed;
  bottom: clamp(80px, 12vh, 110px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(8px, 1.5vw, 15px);
  z-index: 1000;
}

.progress-dot {
  width: clamp(10px, 2vw, 16px);
  height: clamp(10px, 2vw, 16px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: linear-gradient(45deg, #4a4feb, #9d48e6);
  transform: scale(1.3);
}

.slide-counter {
  position: fixed;
  top: clamp(120px, 18vh, 160px);
  right: clamp(20px, 4vw, 40px);
  background: rgba(10, 12, 24, 0.7);
  padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  z-index: 999;
  border: 1px solid #3a3867;
}

.auto-play-indicator {
  position: fixed;
  bottom: clamp(20px, 5vh, 30px);
  right: clamp(20px, 4vw, 40px);
  background: rgba(10, 12, 24, 0.7);
  padding: clamp(0.4rem, 1.2vw, 0.8rem) clamp(0.8rem, 2vw, 1.2rem);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.8vw, 0.5rem);
  border: 1px solid #3a3867;
}

/* .auto-play-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.2rem);
} */

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Ultra Large Desktop - 4K */
@media (min-width: 1600px) {
  .stat-slide {
    flex-direction: row;
    text-align: left;
    gap: 6rem;
  }
  
  .stat-content {
    flex: 1;
    text-align: left;
    max-width: 700px;
  }
  
  .stat-chart {
    flex: 1;
    max-width: 900px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1200px) and (max-width: 1599px) {
  .stat-slide {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }
  
  .stat-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
  }
  
  .stat-chart {
    flex: 1;
    max-width: 700px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait & Mobile Landscape */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: rgba(7, 11, 35, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 100px;
  }

  .nav-links.active {
    right: 0;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Portrait - iPhone 12 et similaires */
@media (max-width: 480px) {
  .slide {
    padding: clamp(0.5rem, 3vw, 1rem);
    padding-bottom: clamp(100px, 20vh, 140px);
  }
  
  .benefits-slide,
  .testimonials-slide {
    padding-bottom: clamp(100px, 20vh, 140px);
  }
  
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    max-height: calc(100vh - 200px);
    align-content: start;
  }
  
  .benefit-card {
    max-height: clamp(115px, 20vh, 145px);
    padding: 0.4rem;
  }
  
  .benefit-card .benefit-icon {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
  }
  
  .benefit-card .benefit-title {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
    line-height: 1.0;
    font-weight: 600;
  }
  
  .benefit-card .benefit-description {
    font-size: 0.6rem;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .testimonial-card {
    max-height: clamp(120px, 18vh, 150px);
    padding: 0.6rem;
  }
  
  .benefit-card,
  .testimonial-card {
    overflow: hidden;
  }
  
  .slide-counter {
    display: none;
  }
  
  .auto-play-indicator {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    gap: 0.2rem;
  }
}

/* Very Small Screens */
@media (max-width: 320px) {
  .nav-links {
    width: 200px;
  }
  
  .slide-controls {
    gap: 0.5rem;
  }
  
  .progress-bar {
    gap: 8px;
  }
  
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}