@import url("./mobile-site-navigation.css?v=20260928-direct-1");

.site-header nav:has(.applications-menu) { overflow: visible; }
/* Let the open menu blur the page instead of the header's isolated backdrop. */
.site-header:has(.applications-menu.is-open) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.applications-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.applications-menu.is-open::after {
  content: "";
  position: absolute;
  z-index: 69;
  top: 100%;
  right: -0.5rem;
  left: -0.5rem;
  height: 1.1rem;
}
.applications-menu-link { padding-right: 0.1rem; }
.applications-menu-toggle {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.applications-menu-toggle:hover,
.applications-menu.is-open .applications-menu-toggle { color: var(--primary); }
.applications-menu.is-open .applications-menu-toggle svg { transform: rotate(180deg); }
.applications-menu-toggle svg { transition: transform 180ms ease; }
.applications-popover {
  --application-card-line: rgb(148 210 255 / 27%);
  position: fixed;
  z-index: 70;
  top: var(--applications-menu-top, 4.25rem);
  left: 50%;
  width: min(47.5rem, calc(100vw - 2rem));
  overflow: visible;
  padding: 0.75rem;
  color: var(--foreground);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateX(-50%);
  transform-origin: var(--applications-origin-x, 50%) 0;
}
.applications-popover::before { display: none; }
.applications-popover-title {
  display: block;
  padding: 0.35rem 0.5rem 0.7rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.applications-popover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem 0.55rem;
}
.applications-popover-group { min-width: 0; }
.applications-popover-group[data-application-group="vente"] { grid-column: span 2; }
.applications-popover-group[data-application-group="vente"] ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.applications-group-title {
  margin: 0;
  padding: 0.25rem 0.45rem 0.45rem;
  color: #f5f9ff;
  font-size: 0.76rem;
  line-height: 1.45;
  font-weight: 700;
}
.applications-popover-group ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav .applications-popover a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.4rem;
  color: var(--foreground);
  background: var(--surface-soft);
  border: 1px solid var(--application-card-line);
  border-radius: 0.7rem;
  box-shadow: inset 0 1px 0 rgb(218 246 255 / 8%);
}
:root[data-theme="light"] .applications-popover {
  --application-card-line: rgb(34 78 127 / 24%);
  box-shadow: 0 20px 60px rgb(16 45 75 / 20%);
}
:root[data-theme="light"] .applications-group-title { color: var(--foreground); }
.site-header nav .applications-popover a:focus-visible {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  transform: translateY(-1px);
}
.applications-popover-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-radius: 0.75rem;
}
.applications-popover-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.applications-popover a span:nth-child(2) { min-width: 0; }
.applications-popover strong,
.applications-popover small { display: block; }
.applications-popover strong {
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}
.applications-popover a > svg { width: 16px; height: 16px; }
.applications-popover small {
  position: absolute;
  z-index: 4;
  top: calc(100% - 0.2rem);
  right: 1rem;
  left: 3.75rem;
  overflow: visible;
  padding: 0.55rem 0.65rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  box-shadow: 0 14px 34px rgb(0 0 0 / 24%);
  font-size: 0.68rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.3rem);
  transition: opacity 150ms ease, transform 150ms ease;
}
.applications-popover a:focus-visible { z-index: 5; }
.applications-popover a:focus-visible small {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .site-header nav .applications-popover a:hover {
    color: var(--foreground);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
    transform: translateY(-1px);
  }
  .applications-popover a:hover { z-index: 5; }
  .applications-popover a:hover small {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-height: 640px) and (min-width: 1200px) {
  .applications-popover { max-height: calc(100dvh - var(--applications-menu-top) - 12px); overflow-y: auto; }
}
