/* Hallmark · component: site navigation · genre: modern-minimal · theme: KronoApp brand · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · separate surfaces clarify the brand, the menu and the actions. */
:root {
  --kn-paper: #fff;
  --kn-surface: #eef6fa;
  --kn-blue: var(--k-blue);
  --kn-ink: var(--k-ink);
  --kn-muted: var(--k-muted);
  --kn-line: var(--k-line);
  --kn-shadow: 0 18px 50px #0f172a24;
  --kn-dock-shadow: 0 2px 12px #0f172a14;
  --kn-scroll-shadow: 0 7px 24px #0f172a22;
  --kn-font: "Plus Jakarta Sans", sans-serif;
  --kn-duration: 170ms;
  --kn-logo-duration: 280ms;
  --kn-ease: cubic-bezier(.2, .7, .25, 1);
}

html, body { overflow-x: clip; }

/* La déclaration en ligne des pages cite la police avec des guillemets en trop : sans cette règle, le texte retombe sur Arial. */
html body { font-family: var(--kn-font); }

/* Lien d'évitement pour le clavier. */
.k-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--kn-ink);
  color: var(--kn-paper);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
}
.k-skip:focus { transform: none; }

.k-nav-refresh {
  background: transparent;
  border-bottom: 0;
  color: var(--kn-ink);
  font-family: var(--kn-font);
  backdrop-filter: none;
  pointer-events: none;
}
.k-nav-refresh .k-nav-inner {
  position: relative;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  transition: transform var(--kn-logo-duration) ease;
}
.k-nav-refresh[data-scrolled] .k-nav-inner { transform: translateY(-6px); }
.k-nav-brand, .k-nav-choices, .k-nav-actions, .k-nav-mobile { pointer-events: auto; }
.k-nav-choices, .k-nav-login > a, .k-nav-mobile > summary {
  background: var(--kn-paper);
  box-shadow: var(--kn-dock-shadow);
}
.k-nav-refresh[data-scrolled] :is(.k-nav-choices, .k-nav-login > a, .k-nav-mobile > summary, .k-demo) {
  box-shadow: var(--kn-scroll-shadow);
}
.k-nav-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  padding-inline: 8px;
  border-radius: 16px;
}
.k-nav-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--kn-paper);
  box-shadow: var(--kn-scroll-shadow);
  opacity: 0;
  transition: opacity 120ms ease-out var(--kn-frame-delay, 0ms);
}
.k-nav-refresh[data-scrolled] .k-nav-brand::before {
  --kn-frame-delay: 140ms;
  opacity: 1;
}
.k-nav-refresh .k-nav-brand img {
  --kn-logo-width: 124px;
  width: var(--kn-logo-width);
  min-width: 0;
  max-width: 100%;
  height: auto;
  aspect-ratio: 124 / 52;
  transition: width var(--kn-logo-duration) ease;
}
.k-nav-refresh:not([data-scrolled]) .k-nav-brand img { width: calc(2 * var(--kn-logo-width)); }
.k-nav-choices {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, 116px);
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
}
.k-nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.k-nav-refresh a:focus-visible, .k-nav-refresh summary:focus-visible {
  outline: 2px solid var(--kn-blue);
  outline-offset: 2px;
}
.k-nav-control, .k-nav-refresh .k-demo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}
.k-nav-control { gap: 8px; list-style: none; cursor: pointer; }
.k-nav-control::-webkit-details-marker { display: none; }
.k-nav-choices .k-nav-control { width: 100%; border-radius: 999px; padding-inline: 12px; }
.k-nav-login > a, .k-nav-refresh .k-demo, .k-nav-mobile > summary { border-radius: 999px; }
.k-nav-login > a, .k-nav-refresh .k-demo { min-height: 52px; }
.k-nav-control:hover, .k-nav-control[aria-current], .k-nav-group[open] > summary,
.k-nav-group[data-current] > summary, .k-nav-mobile[open] > summary {
  color: var(--kn-blue);
  background: var(--kn-surface);
}
.k-nav-control::before {
  content: "";
  position: absolute;
  inset: auto 14px 5px;
  height: 2px;
  background: var(--kn-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--kn-duration) var(--kn-ease);
}
.k-nav-control:hover::before, .k-nav-control:focus-visible::before,
.k-nav-control[aria-current]::before, .k-nav-group[open] > summary::before,
.k-nav-group[data-current] > summary::before, .k-nav-mobile[open] > summary::before {
  transform: scaleX(1);
}
.k-nav-refresh .k-demo {
  margin-left: 0;
  background: var(--kn-blue);
  color: var(--kn-paper);
  padding-inline: 16px;
  border-radius: 999px;
  box-shadow: var(--kn-dock-shadow);
}
.k-nav-refresh .k-demo:hover, .k-nav-refresh .k-demo[aria-current] { background: #084c6a; color: var(--kn-paper); }
.k-nav-refresh .k-demo:active { transform: translateY(1px); }
.k-nav-caret {
  display: block;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--kn-duration) var(--kn-ease);
}
details[open] > summary .k-nav-caret { transform: translateY(2px) rotate(225deg); }

@supports selector(:has(*)) {
  .k-nav-choices::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 4px auto 4px 4px;
    width: calc((100% - 16px) / 3);
    border-radius: 999px;
    background: var(--kn-surface);
    pointer-events: none;
    opacity: var(--kn-marker-visible, 0);
    transform: translateX(var(--kn-marker-offset, 0px));
    transition: transform var(--kn-duration) var(--kn-ease), opacity var(--kn-duration) var(--kn-ease);
  }
  .k-nav-refresh .k-nav-choices .k-nav-control { background: transparent; }
  .k-nav-choices .k-nav-control::before { display: none; }
  .k-nav-choices:has(> :nth-child(1)[data-current]) { --kn-marker-offset: 0px; --kn-marker-visible: 1; }
  .k-nav-choices:has(> :nth-child(2)[data-current]) { --kn-marker-offset: calc(100% + 4px); --kn-marker-visible: 1; }
  .k-nav-choices:has(> :nth-child(3)[aria-current]) { --kn-marker-offset: calc(200% + 8px); --kn-marker-visible: 1; }
  .k-nav-choices:has(> :nth-child(1)[open]) { --kn-marker-offset: 0px; --kn-marker-visible: 1; }
  .k-nav-choices:has(> :nth-child(2)[open]) { --kn-marker-offset: calc(100% + 4px); --kn-marker-visible: 1; }
  .k-nav-choices:has(> :nth-child(1) > summary:is(:hover, :focus-visible)) { --kn-marker-offset: 0px; --kn-marker-visible: 1; }
  .k-nav-choices:has(> :nth-child(2) > summary:is(:hover, :focus-visible)) { --kn-marker-offset: calc(100% + 4px); --kn-marker-visible: 1; }
  .k-nav-choices:has(> :nth-child(3):is(:hover, :focus-visible)) { --kn-marker-offset: calc(200% + 8px); --kn-marker-visible: 1; }
}

.k-nav-panel {
  position: absolute;
  z-index: 1;
  inset: calc(100% + 8px) auto auto 50%;
  translate: -50% 0;
  width: min(730px, calc(100vw - 36px));
  width: min(730px, calc(100dvi - 36px));
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr);
  gap: 12px;
  padding: 12px;
  background: var(--kn-paper);
  border-radius: 20px;
  box-shadow: var(--kn-shadow);
}
.k-nav-panel::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
.k-nav-group[open] > .k-nav-panel, .k-nav-mobile[open] > .k-nav-mobile-panel {
  animation: k-nav-enter var(--kn-duration) var(--kn-ease) both;
}
@keyframes k-nav-enter {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.k-nav-intro { display: flex; flex-direction: column; gap: 4px; }
.k-nav-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex-grow: 1;
  padding: 20px;
  border-radius: 12px;
  background: var(--kn-surface);
  color: var(--kn-blue);
}
.k-nav-feature strong { font-size: 18px; line-height: 1.35; }
.k-nav-feature span { color: var(--kn-muted); font-size: 13px; line-height: 1.5; }
.k-nav-feature:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.k-nav-overview {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  color: var(--kn-blue);
  font-size: 13px;
  font-weight: 750;
}
.k-nav-overview:hover { text-decoration: underline; text-underline-offset: 3px; }
.k-nav-destinations {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.k-nav-destination {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  height: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--kn-ink);
}
.k-nav-destination strong { font-size: 13px; font-weight: 750; line-height: 1.4; }
.k-nav-destination span { color: var(--kn-muted); font-size: 12px; line-height: 1.45; }
.k-nav-destination:hover, .k-nav-destination[aria-current] { background: var(--kn-surface); }
.k-nav-mobile { display: none; }

@media (821px <= width <= 960px) {
  .k-nav-choices { grid-template-columns: repeat(3, 100px); }
  .k-nav-login > a, .k-nav-refresh .k-demo { padding-inline: 12px; }
}

@media (max-width: 820px) {
  /* Fond plein dès qu'on défile : les titres ne passent plus sous l'en-tête flottant. */
  .k-nav-refresh[data-scrolled] { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--kn-line); }
  .k-nav-refresh .k-nav-inner { grid-template-columns: 1fr auto auto; gap: 4px; }
  .k-nav-choices, .k-nav-login { display: none; }
  .k-nav-mobile { display: block; }
  .k-nav-refresh .k-demo { min-height: 44px; }
  .k-nav-mobile-panel {
    position: absolute;
    inset: 100% 12px auto;
    display: grid;
    gap: 4px;
    max-height: calc(100vh - 132px);
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border-radius: 16px;
    background: var(--kn-paper);
    box-shadow: var(--kn-shadow);
  }
  .k-nav-mobile-group > summary { display: flex; justify-content: space-between; }
  .k-nav-mobile-group .k-nav-destinations { grid-template-columns: 1fr; padding: 4px 0; }
  .k-nav-mobile-group .k-nav-feature { padding: 12px; }
  .k-nav-mobile-group .k-nav-feature strong { font-size: 14px; }
  .k-nav-mobile-group .k-nav-destination { min-height: 44px; }
  .k-nav-mobile-direct { display: flex; flex-wrap: wrap; gap: 2px; border-top: 1px solid var(--kn-line); }
}
@media (max-width: 640px) {
  .k-nav-refresh .k-nav-inner { padding-inline: 12px; }
  .k-nav-brand { padding-inline: 4px; }
  .k-nav-refresh .k-nav-brand img { --kn-logo-width: 100px; aspect-ratio: 100 / 48; }
  .k-nav-refresh .k-demo { font-size: 12px; padding-inline: 12px; }
  .k-nav-mobile > summary { font-size: 12px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-nav-refresh *, .k-nav-refresh *::before, .k-nav-refresh .k-nav-brand img {
    animation: none;
    transition: none;
  }
  .k-nav-refresh[data-scrolled] .k-nav-inner { transform: none; }
}
