/* Le menu du site dans les pages de la BD. Copie des styles de POI/fiches.css : la BD garde ses propres styles pour le reste. */
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url("../../POI/polices/chakra-petch-700-latin.woff2") format("woff2"); }
html { overflow-x: clip; }
iprij-menu { position: relative; display: block; margin-bottom: 46px; }
iprij-menu::after { content: ''; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); top: 100%; height: 14px; background: repeating-linear-gradient(-45deg, #A9C31A 0 4px, transparent 4px 8px); }
.nav-fiches, .nav-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-inline: calc(50% - 50vw); padding: 8px calc(50vw - 50%); background: var(--encre); }
.nav-pages { padding-block: 2px 4px; }
.nav-icone { display: block; width: 44px; height: 44px; margin-right: 10px; line-height: 0; }
.nav-icone img { width: 44px; height: 44px; }
iprij-menu :focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
iprij-menu .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 12px; color: #fff; font: 700 .95rem/1.2 'Chakra Petch', 'Arial Narrow', Arial, sans-serif; text-decoration: none; }
iprij-menu .btn:hover { color: var(--jaune-vert); }
.nav-fiches .btn[aria-current] { color: var(--encre); background: var(--jaune-vert); }
/* Les fenêtres au survol, comme sur le reste du site. */
.terme, .nom-personne { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; }
.terme:hover, .nom-personne:hover { color: var(--rose-fonce); }
.bulle {
  position: fixed;
  z-index: 50;
  display: grid;
  gap: 4px;
  width: min(320px, calc(100vw - 16px));
  padding: 12px 14px;
  color: #fff;
  background: var(--encre);
  font-size: .95rem;
  line-height: 1.45;
}
.bulle[hidden] { display: none; }
.bulle strong { font: 700 1.05rem/1.25 'Chakra Petch', 'Arial Narrow', Arial, sans-serif; color: var(--jaune-vert); }
.bulle small { font-size: .875rem; color: #fff; opacity: .85; }
@media (max-width: 760px) {
  iprij-menu { margin-bottom: 30px; }
  .nav-fiches, .nav-pages { flex-wrap: nowrap; overflow-x: auto; gap: 2px; }
  iprij-menu .btn { flex-shrink: 0; padding: 8px; white-space: nowrap; }
  .nav-icone { flex-shrink: 0; margin-right: 4px; }
}
