/* === ADDITIONAL UX/UI ENHANCEMENTS === */

/* Smooth scroll global */
html {
  scroll-behavior: smooth;
}

/* Page content fade-in on load */
body {
  animation: pageFadeIn 0.4s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Navbar link hover underline effect */
.glass-navbar .nav-link {
  position: relative;
  padding-bottom: 4px !important;
}
.glass-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}
.glass-navbar .nav-link:hover::after,
.glass-navbar .nav-link.active::after {
  width: 80%;
  left: 10%;
}
.glass-navbar .navbar-brand img {
  transition: transform 0.3s ease;
}
.glass-navbar .navbar-brand:hover img {
  transform: scale(1.08) rotate(-2deg);
}

/* Hero gradient animated subtle float */
.hero-gradient {
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glass panel focus glow on hover */
.glass-panel:hover {
  box-shadow: 0 20px 50px rgba(0, 123, 255, 0.08);
}

/* Premium card image hover zoom  */
.premium-card { overflow: hidden; }
.premium-card .card-img-top {
  transition: transform 0.55s cubic-bezier(.25,.46,.45,.94);
}

/* Section label pill */
.section-pill {
  display: inline-block;
  background: rgba(0,123,255,0.08);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  padding: 6px 18px;
  margin-bottom: 14px;
}

/* Stats section number glow */
#stats-section [data-counter],
#stats-section [style*="font-size: 3rem"] {
  text-shadow: 0 0 30px rgba(114,202,214,0.3);
}

/* Back to top button pulse ring */
#backToTop::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(0,123,255,0.4);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  from { transform: scale(1); opacity: 0.8; }
  to   { transform: scale(1.8); opacity: 0; }
}

/* Footer link transition */
footer a { transition: color 0.2s ease !important; }

/* Annuaire cards hover lift */
.premium-card.mb-4:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,123,255,0.12);
}

/* Timeline enhanced */
.timeline-box { position: relative; }
.timeline-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: linear-gradient(to bottom, var(--primary-blue), var(--accent-teal));
  border-radius: 4px 0 0 4px;
  transition: height 0.4s ease;
}
.timeline-box:hover::before { height: 100%; }

/* Inscription page steps icon */
.bi-1-circle-fill, .bi-2-circle-fill {
  margin-top: 3px;
  color: var(--primary-blue);
}

/* Info box teal accent */
[style*="border-left: 4px solid var(--accent-teal)"] {
  transition: border-left-width 0.3s;
}
[style*="border-left: 4px solid var(--accent-teal)"]:hover {
  border-left-width: 6px;
}

/* Responsive touch targets */
@media (max-width: 767px) {
  .btn-custom-primary { width: 100%; text-align: center; display: block; }
  .glass-panel { padding: 24px; }
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.6rem !important; }
}
