/* ============================================
   APPSM - SECTION HERO PREMIUM
   Fichier: css/hero.css
   Description: Slider d'accueil avec animations
============================================ */

/* ============================================
   1. CONTENEUR HERO
============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* ============================================
   2. SLIDER (Slides d'arrière-plan)
============================================ */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1);
}

.hero-slide.active {
  opacity: 1;
  animation: kenBurns 12s ease-out forwards;
}

/* Effet Ken Burns (zoom lent) */
@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay dégradé sur chaque slide (ATTÉNUÉ + horizontal) */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-slide:nth-child(1)::before {
  background: linear-gradient(
    90deg,
    rgba(74, 30, 92, 0.75) 0%,
    rgba(91, 45, 142, 0.35) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero-slide:nth-child(2)::before {
  background: linear-gradient(
    90deg,
    rgba(27, 42, 74, 0.75) 0%,
    rgba(74, 30, 92, 0.35) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero-slide:nth-child(3)::before {
  background: linear-gradient(
    90deg,
    rgba(74, 30, 92, 0.7) 0%,
    rgba(232, 103, 42, 0.3) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* Motif décoratif (adouci) */
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(232, 103, 42, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(91, 45, 142, 0.1) 0%,
      transparent 40%
    );
  z-index: 3;
  pointer-events: none;
}

/* ============================================
   3. CONTENU HERO
============================================ */
.hero-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  max-width: 780px;
  padding: 60px 0;
}

/* Badge en haut */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 25px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge i {
  color: var(--orange);
  font-size: 14px;
  animation: heartbeat 1.5s infinite;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Titre principal */
.hero h1 {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
  font-family: "Poppins", sans-serif;
  color: var(--white);
}

/* ✅ CORRECTION : Mots colorés bien lisibles */
.hero h1 span {
  color: #FFB84D;
  position: relative;
  display: inline-block;
  text-shadow:
    0 3px 15px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.8);
  font-weight: 900;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
  z-index: 1;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(232, 103, 42, 0.6);
}

/* Description */
.hero p {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 650px;
  animation: fadeInUp 1s ease-out 0.4s both;
  font-weight: 300;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   4. BOUTONS HERO
============================================ */
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-light) 100%
  );
  color: var(--white);
  box-shadow: 0 8px 25px rgba(232, 103, 42, 0.5);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(232, 103, 42, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* ============================================
   5. CONTRÔLES DU SLIDER
============================================ */
.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-dot {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--orange);
  width: 60px;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Flèches de navigation */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.hero-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(232, 103, 42, 0.5);
}

.hero-arrow-prev {
  left: 30px;
}

.hero-arrow-next {
  right: 30px;
}

/* ============================================
   6. INDICATEUR DE SCROLL
============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  text-decoration: none;
}

.scroll-indicator .scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator .scroll-mouse::before {
  content: "";
  width: 3px;
  height: 8px;
  background: var(--orange);
  border-radius: 3px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* ============================================
   7. FORMES DÉCORATIVES
============================================ */
.hero-shape {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.hero-shape-1 {
  top: 15%;
  right: 10%;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
  bottom: 20%;
  right: 20%;
  width: 60px;
  height: 60px;
  background: rgba(232, 103, 42, 0.3);
  border-radius: 15px;
  animation: float 5s ease-in-out infinite 1s;
  transform: rotate(45deg);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* ============================================
   8. RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .hero-arrow-prev {
    left: 15px;
  }

  .hero-arrow-next {
    right: 15px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
  }

  .hero-content {
    padding: 40px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 8px 16px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 12px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-arrow {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-shape {
    display: none;
  }

  .hero-controls {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }
}