/* Sticky nav bar */
/* Applied to .nav via JS (class 'sticky' added after nav is detected in DOM) */

.nav.sticky {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.sticky.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  background: rgba(11, 15, 20, 0.95);
}

/* Ensure no parent breaks sticky */
/* If sticky fails due to an ancestor with overflow: hidden, uncomment fallback below.
.nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
*/

/* Offset for anchor scroll (compensate sticky nav height ~80px) */
#services, #processus, #process, #contact, #a-propos,
section[id], div[id][class] {
  scroll-margin-top: 80px;
}

html {
  scroll-behavior: smooth;
}
