/* ============================================================
   INDEX CSS — Martin Mulumba Tshitoko
   Styles spécifiques à la page d'accueil
   ============================================================ */

/* ── HERO — DÉCORATIONS DE FOND */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-decor::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 0, 0.12) 0%, transparent 65%);
}
.hero-decor::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 128, 217, 0.15) 0%, transparent 65%);
}

/* ── HERO — GRILLE DE FOND */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── NAVBAR */
#navbar {
  transition: all 0.35s ease;
}
#navbar .nav-link {
  color: #FFFFFF;
}
#navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #F5C400;
}
#navbar.scrolled .nav-link {
  color: #1A1A2E;
}
#navbar.scrolled .nav-link:hover {
  background: rgba(0, 87, 168, 0.08);
  color: #0057A8;
}

/* ── SCROLL INDICATOR — animation du point */
@keyframes scrollDotBounce {
  0%, 100% { transform: translateY(0);  opacity: 0.5; }
  50%       { transform: translateY(10px); opacity: 0; }
}
.scroll-dot {
  animation: scrollDotBounce 1.2s ease-in-out infinite;
  animation-delay: 2.5s;
  animation-fill-mode: both;
}

/* ── AOS — durée par défaut */
[data-aos] {
  transition-duration: 700ms !important;
}

/* ─────────────────────────────────────────────────────── */
/* HERO CARD PILE                                         */
/* ─────────────────────────────────────────────────────── */

/* Conteneur — overflow visible pour que les côtés débordent */
.hero-card-pile {
  position: relative;
  width: 440px;
  height: 460px;
  overflow: visible;
}

/* Carte commune */
.pile-card {
  position: absolute;
  width: 270px;
  height: 390px;
  top: 20px;
  left: 50%;
  margin-left: -135px;     /* centre les 270px */

  border-radius: 18px;
  overflow: hidden;

  /* Bordure épaisse façon cadre photo */
  border: 6px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(245, 196, 0, 0.40);
  outline-offset: 3px;

  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 8px  24px rgba(0, 0, 0, 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);

  transition:
    transform 0.68s cubic-bezier(0.34, 1.20, 0.64, 1),
    opacity   0.55s ease,
    z-index   0s;
  will-change: transform, opacity;
  cursor: pointer;
}

.pile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* Caption glassmorphism en bas de chaque carte */
.pile-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px 12px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0, 15, 50, 0.80) 0%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── ÉTATS DE LA PILE ──────────────────────────────────── */

/* Carte active — centrée, au premier plan */
.pile-card[data-state="0"] {
  transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  z-index: 4;
  opacity: 1;
}

/* Déborde à droite */
.pile-card[data-state="1"] {
  transform: translateX(110px) translateY(22px) rotate(16deg) scale(0.92);
  z-index: 3;
  opacity: 1;
}

/* Déborde à gauche */
.pile-card[data-state="2"] {
  transform: translateX(-100px) translateY(18px) rotate(-14deg) scale(0.90);
  z-index: 2;
  opacity: 1;
}

/* Carte du fond — cachée derrière */
.pile-card[data-state="3"] {
  transform: translateX(8px) translateY(42px) rotate(5deg) scale(0.86);
  z-index: 1;
  opacity: 0.75;
}

/* ── ANIMATIONS DE SORTIE ──────────────────────────────── */
.pile-card[data-state="exit-right"] {
  transform: translateX(165%) translateY(-10px) rotate(32deg);
  opacity: 0;
  z-index: 5;
}
.pile-card[data-state="exit-left"] {
  transform: translateX(-165%) translateY(-10px) rotate(-32deg);
  opacity: 0;
  z-index: 5;
}
