/* ================================================
   hero.css — Section hero et à propos — Cyberpunk
   ================================================ */

/* HERO */
.hero {
  padding: var(--espace-24) 0 var(--espace-20);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Grille cyberpunk en fond */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Lueur centrale */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0, 255, 65, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__contenu {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* Badge / label au-dessus du titre */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--espace-2);
  font-family: var(--font-mono);
  font-size: var(--taille-xs);
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--espace-6);
  padding: var(--espace-2) var(--espace-4);
  border: 1px solid var(--neon-border);
  border-radius: var(--rayon-full);
  background: var(--neon-pale);
}

.hero__badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: var(--neon-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__titre {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: var(--graisse-bold);
  color: var(--blanc);
  margin-bottom: var(--espace-6);
  line-height: 1.1;
}

.hero__titre-accent {
  color: var(--neon);
  text-shadow: var(--neon-glow);
  display: block;
}

.hero__sous-titre {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--texte-dim);
  margin-bottom: var(--espace-10);
  line-height: 1.8;
  max-width: 600px;
}

.hero__sous-titre strong {
  color: var(--texte);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-4);
}

/* Compteur / stats rapides */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-8);
  margin-top: var(--espace-16);
  padding-top: var(--espace-8);
  border-top: 1px solid var(--bordure);
}

.hero__stat-nombre {
  display: block;
  font-family: var(--font-titres);
  font-size: var(--taille-3xl);
  font-weight: var(--graisse-bold);
  color: var(--neon);
  text-shadow: var(--neon-glow);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--taille-sm);
  color: var(--texte-sombre);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--espace-1);
}

/* À PROPOS */
.apropos {
  padding: var(--espace-20) 0;
  position: relative;
}

.apropos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fond-section);
  z-index: -1;
}

.apropos__contenu {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--espace-12);
  align-items: center;
}

.apropos__titre {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--espace-6);
}

.apropos__texte p {
  color: var(--texte-dim);
  margin-bottom: var(--espace-5);
  font-size: var(--taille-lg);
  line-height: 1.8;
}

.apropos__texte p:last-child { margin-bottom: 0; }

.apropos__texte strong {
  color: var(--texte);
}

.apropos__image-img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--bordure-carte);
  border-radius: var(--rayon);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.08);
  display: block;
  margin: 0 auto;
}

/* CARROUSEL À PROPOS */
.apropos__carousel {
  width: 100%;
}

.apropos__carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-4);
  margin-bottom: var(--espace-6);
}

.apropos__carousel-titre {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--blanc);
  font-weight: var(--graisse-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
  margin: 0;
}

.apropos__carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--espace-3) var(--espace-5);
  border-radius: var(--rayon);
  font-size: var(--taille-lg);
  font-weight: var(--graisse-semi);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  transition: all var(--transition-normale);
  cursor: pointer;
  position: relative;
  background-color: var(--neon);
  color: #000000;
  border: 2px solid var(--neon);
  box-shadow: var(--neon-glow);
}

.apropos__carousel-btn:hover {
  background-color: transparent;
  color: var(--neon);
  box-shadow: var(--neon-glow-fort);
  transform: translateY(-2px);
}

.apropos__carousel-btn:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.apropos__carousel-contenu {
  position: relative;
  min-height: 400px;
}

.apropos__carousel-slide {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  position: absolute;
  width: 100%;
}

.apropos__carousel-slide.active {
  display: block;
  position: relative;
  animation: carouselSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Animation des items de liste au changement de slide */
.apropos__carousel-slide.active .apropos__liste-item,
.apropos__carousel-slide.active .apropos__etape-item {
  animation: listItemIn 0.5s ease-out forwards;
}

.apropos__carousel-slide.active .apropos__liste-item:nth-child(1),
.apropos__carousel-slide.active .apropos__etape-item:nth-child(1) {
  animation-delay: 0.1s;
}

.apropos__carousel-slide.active .apropos__liste-item:nth-child(2),
.apropos__carousel-slide.active .apropos__etape-item:nth-child(2) {
  animation-delay: 0.2s;
}

.apropos__carousel-slide.active .apropos__liste-item:nth-child(3),
.apropos__carousel-slide.active .apropos__etape-item:nth-child(3) {
  animation-delay: 0.3s;
}

.apropos__carousel-slide.active .apropos__liste-item:nth-child(4),
.apropos__carousel-slide.active .apropos__etape-item:nth-child(4) {
  animation-delay: 0.4s;
}

.apropos__carousel-slide.active .apropos__liste-item:nth-child(5),
.apropos__carousel-slide.active .apropos__etape-item:nth-child(5) {
  animation-delay: 0.5s;
}

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

/* Animation du bouton au clic */
.apropos__carousel-btn:active {
  animation: btnClick 0.3s ease;
}

@keyframes btnClick {
  0% { transform: scale(1); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Listes dans le texte à propos */
.apropos__liste {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
  margin-top: var(--espace-4);
}

.apropos__liste-item {
  margin-bottom: var(--espace-5);
  color: var(--texte-dim);
  padding-left: var(--espace-6);
  text-indent: -var(--espace-5);
}

.apropos__liste-item::before {
  content: '• ';
  color: var(--neon);
  font-weight: var(--graisse-bold);
}

.apropos__liste-item strong {
  color: var(--texte);
}

/* Étapes dans le carrousel */
.apropos__etapes {
  list-style: none;
  padding-left: 0;
  margin-top: var(--espace-4);
  counter-reset: etapes;
}

.apropos__etape-item {
  margin-bottom: var(--espace-5);
  color: var(--texte-dim);
  padding-left: var(--espace-10);
  position: relative;
  counter-increment: etapes;
  line-height: 1.7;
}

.apropos__etape-item::before {
  content: counter(etapes);
  position: absolute;
  left: 0;
  color: var(--neon);
  font-weight: var(--graisse-bold);
  font-size: var(--taille-xs);
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--neon-border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apropos__etape-item strong {
  color: var(--texte);
}

@media (min-width: 768px) {
  .apropos__contenu {
    grid-template-columns: 1.3fr 0.7fr;
  }
}
