/* Navigation commune AlyaField — bureau et mobile */
.alya-nav {
  position: sticky;
  top: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  margin: 0 0 22px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 34px rgba(38, 63, 87, 0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.alya-nav a {
  text-decoration: none;
}

.alya-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #263f57;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.alya-nav__mark {
  position: relative;
  display: inline-block;
  width: 27px;
  height: 34px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(135deg, #d99aa5, #e5c66b);
  box-shadow: 0 9px 22px rgba(38, 63, 87, 0.14);
}

.alya-nav__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 1px;
  height: 18px;
  background: rgba(38, 63, 87, 0.32);
}

.alya-nav__desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.alya-nav__desktop a,
.alya-nav__menu > summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(38, 63, 87, 0.72);
  font-size: 0.91rem;
  font-weight: 760;
  line-height: 1.1;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.alya-nav__desktop a:hover,
.alya-nav__desktop a:focus-visible,
.alya-nav__menu > summary:hover,
.alya-nav__menu > summary:focus-visible {
  color: #263f57;
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

.alya-nav__desktop a[aria-current="page"] {
  color: #263f57;
  background: rgba(255, 255, 255, 0.58);
}

.alya-nav__test {
  border: 1px solid rgba(229, 198, 107, 0.5);
  background: rgba(239, 215, 131, 0.36);
}

.alya-nav__menu {
  position: relative;
  flex: 0 0 auto;
}

.alya-nav__menu > summary {
  gap: 7px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.alya-nav__menu > summary::-webkit-details-marker {
  display: none;
}

.alya-nav__chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease, margin 160ms ease;
}

.alya-nav__menu[open] .alya-nav__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.alya-nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(350px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 24px 60px rgba(38, 63, 87, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: alya-menu-in 150ms ease-out;
}

@keyframes alya-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.alya-nav__mobile-primary {
  display: none;
}

.alya-nav__section-title {
  margin: 3px 8px 7px;
  color: rgba(38, 63, 87, 0.5);
  font-size: 0.73rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alya-nav__panel-links {
  display: grid;
  gap: 3px;
}

.alya-nav__panel a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(38, 63, 87, 0.8);
  font-size: 0.94rem;
  font-weight: 710;
}

.alya-nav__panel a:hover,
.alya-nav__panel a:focus-visible,
.alya-nav__panel a[aria-current="page"] {
  color: #263f57;
  background: rgba(183, 215, 238, 0.28);
  outline: none;
}

.alya-nav__divider {
  height: 1px;
  margin: 10px 5px;
  background: rgba(38, 63, 87, 0.1);
}

.alya-nav__mobile-label {
  display: none;
}

@media (max-width: 760px) {
  .alya-nav {
    top: 8px;
    min-height: 54px;
    padding: 7px 8px 7px 12px;
    gap: 10px;
    border-radius: 22px;
  }

  .alya-nav__brand {
    font-size: 0.98rem;
  }

  .alya-nav__mark {
    width: 24px;
    height: 30px;
  }

  .alya-nav__mark::after {
    top: 26px;
    height: 15px;
  }

  .alya-nav__desktop {
    display: none;
  }

  .alya-nav__menu {
    margin-left: auto;
  }

  .alya-nav__menu > summary {
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.48);
    color: #263f57;
  }

  .alya-nav__desktop-label {
    display: none;
  }

  .alya-nav__mobile-label {
    display: inline;
  }

  .alya-nav__panel {
    position: fixed;
    top: 72px;
    left: 11px;
    right: 11px;
    width: auto;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    border-radius: 24px;
    transform-origin: top center;
  }

  .alya-nav__mobile-primary {
    display: grid;
    gap: 3px;
  }

  .alya-nav__mobile-primary a {
    min-height: 47px;
    font-size: 0.98rem;
  }

  .alya-nav__mobile-primary .alya-nav__test-mobile {
    margin-top: 3px;
    border: 1px solid rgba(229, 198, 107, 0.42);
    background: rgba(239, 215, 131, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alya-nav *,
  .alya-nav__panel {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .alya-nav { display: none !important; }
}


/* Pied de page commun AlyaField */
.alya-footer {
  margin-top: 24px;
  padding: 22px 10px 0;
  color: rgba(38, 63, 87, 0.64);
  font-size: 0.9rem;
  text-align: center;
}
.alya-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 13px;
}
.alya-footer__links a {
  color: rgba(38, 63, 87, 0.75);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(38, 63, 87, 0.28);
  text-underline-offset: 3px;
}
.alya-footer p { margin: 0; }
@media (max-width: 640px) {
  .alya-footer__links { display: grid; gap: 7px; }
}
