/* ==========================================================
   OCI – Menu d'ancres (sommaire collant)
   ========================================================== */

.oci-anchor-wrap {
  position: relative;
  z-index: 90;
}

.oci-anchor-nav {
  display: flex;
  justify-content: center;
}
.oci-anchor--left .oci-anchor-nav {
  justify-content: flex-start;
}

.oci-anchor-list {
  display: flex;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: #fff;
  border-radius: 99px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: box-shadow 0.25s ease;
}
.oci-anchor-list::-webkit-scrollbar { display: none; }
.oci-anchor-list li { margin: 0; padding: 0; }
.oci-anchor-list li::before { display: none; }

.oci-anchor-link {
  --oci-anchor-color: var(--e-global-color-primary, #213ba8);
  display: block;
  padding: 9px 20px;
  border-radius: 99px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--oci-anchor-color) !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.oci-anchor-link--rouge {
  --oci-anchor-color: #FF4B6B;
}
.oci-anchor-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.oci-anchor-link.is-active,
.oci-anchor-link.is-active:hover {
  background-color: var(--oci-anchor-color);
  color: #fff !important;
}
.oci-anchor-link:focus-visible {
  outline: 2px solid var(--oci-anchor-color);
  outline-offset: 2px;
}

/* État collé en haut de l'écran */
.oci-anchor-wrap.is-fixed .oci-anchor-nav {
  position: fixed;
  top: var(--oci-anchor-top, 110px);
  left: 0;
  right: 0;
  padding: 0 16px;
  animation: ociAnchorIn 0.25s ease;
}
.oci-anchor--left.is-fixed .oci-anchor-nav {
  justify-content: center;
}
.oci-anchor-wrap.is-fixed .oci-anchor-list {
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.14);
}

@keyframes ociAnchorIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .oci-anchor-link { padding: 8px 16px; font-size: 15px; }
  .oci-anchor-wrap.is-fixed .oci-anchor-nav { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .oci-anchor-wrap.is-fixed .oci-anchor-nav { animation: none; }
}
