/* =============================================================
   APBS Groupe — demos.apbs-groupe.com
   xhr.css — Styles spécifiques à la page X-HR
   ============================================================= */

/* --- Hero X-HR — layout 2 colonnes (identique B-Hub) --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 60px;
}

/* hero-content : annulation animation conteneur + cascade enfants */
.hero-content {
  display: flex;
  flex-direction: column;
  animation: none;
}
.hero-content > * { animation: fadeInUp .6s ease both; }
.hero-content > *:nth-child(1) { animation-delay: .1s; }
.hero-content > *:nth-child(2) { animation-delay: .2s; }
.hero-content > *:nth-child(3) { animation-delay: .3s; }
.hero-content > *:nth-child(4) { animation-delay: .4s; }
.hero-content > *:nth-child(5) { animation-delay: .5s; }
.hero-content > *:nth-child(6) { animation-delay: .6s; }
.hero-content > *:nth-child(7) { animation-delay: .7s; }

/* Sur mobile : hero repasse en colonne, visuel en dessous */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
}

/* =============================================================
   STATS HERO — bande pleine largeur (X-HR)
   ============================================================= */
.hero .hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  padding-top: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.hero .stat {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero .stat:last-child { border-right: none; }

@media (max-width: 768px) {
  .hero .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero .stat:nth-child(2) { border-right: none; }
}

/* --- Screenshots dans les sections modules --- */
.demo-screenshot {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  cursor: pointer;
}
.demo-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.demo-screenshot:hover img { transform: scale(1.02); }

.demo-screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity .3s ease;
}
.demo-screenshot:hover .demo-screenshot-overlay { opacity: 1; }

.demo-screenshot-overlay--ready {
  background: rgba(0,0,0,.35);
  opacity: .25;
}
.demo-screenshot:hover .demo-screenshot-overlay--ready { opacity: 1; }

.demo-screenshot-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
}
