/* =========================================================================
   PRINTÉA v1.4 — Aide à la navigation (ergonomie uniquement)
   Esprit horloger : filets d'un pixel, petits repères, aucune capsule.
   La couleur s'adapte au fond (sombre sur clair, clair sur sombre).
   ========================================================================= */
:root { --na-ease: cubic-bezier(.22, 1, .36, 1); }
.na-rail, .na-arrows, .na-menu { --na-c: 59, 59, 58; color: rgb(var(--na-c)); transition: color .5s var(--na-ease), opacity .6s var(--na-ease); }
.na-on-dark .na-rail, .na-on-dark .na-arrows, .na-on-dark .na-menu { --na-c: 255, 255, 255; }

/* ---------- Repères de section (droite) ---------- */
.na-rail {
  position: fixed; z-index: 60; right: clamp(16px, 2vw, 34px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end;
  opacity: 0; pointer-events: none;
}
.na-ready .na-rail { opacity: 1; pointer-events: auto; }
.na-rail__item {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  height: 22px; width: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
}
/* repère : un trait horizontal fin, qui s'allonge pour la section en cours */
.na-rail__dot { display: block; height: 1px; width: 10px; background: rgba(var(--na-c), .38); transition: width .5s var(--na-ease), background .5s var(--na-ease); }
.na-rail__item:hover .na-rail__dot { width: 18px; background: rgba(var(--na-c), .75); }
.na-rail__item.is-active .na-rail__dot { width: 28px; background: rgb(var(--na-c)); }
.na-rail__label {
  position: absolute; right: 40px; white-space: nowrap;
  font: 500 10.5px/1 "Instrument Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .4s var(--na-ease), transform .4s var(--na-ease);
}
.na-rail__item:hover .na-rail__label, .na-rail__item:focus-visible .na-rail__label { opacity: .85; transform: none; }
/* le nom de la section en cours s'affiche brièvement pendant le défilement */
.na-moving .na-rail__item.is-active .na-rail__label { opacity: .7; transform: none; }
.na-rail__item:focus-visible { outline: none; }
.na-rail__item:focus-visible .na-rail__dot { background: rgb(var(--na-c)); width: 28px; box-shadow: 0 0 0 3px rgba(3, 180, 206, .45); }

/* ---------- Précédent / suivant (bas droite) ---------- */
.na-arrows {
  position: fixed; z-index: 60; right: clamp(10px, 2vw, 28px); bottom: clamp(14px, 3vh, 28px);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: 0; pointer-events: none;
}
.na-ready .na-arrows { opacity: 1; pointer-events: auto; }
.na-arrow {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; padding: 0;
  background: none; color: inherit; cursor: pointer; border-radius: 50%; opacity: .7; transition: opacity .3s, background .3s;
}
.na-arrow::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(var(--na-c), .28); transition: border-color .3s, transform .45s var(--na-ease); }
.na-arrow svg { position: relative; width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--na-ease); }
.na-arrow:hover { opacity: 1; }
.na-arrow:hover::before { border-color: rgba(var(--na-c), .7); transform: scale(1.06); }
.na-arrow--prev:hover svg { transform: translateY(-2px); }
.na-arrow--next:hover svg { transform: translateY(2px); }
.na-arrow:disabled { opacity: .18; cursor: default; }
.na-arrow:disabled::before { transform: none; }
.na-arrow:focus-visible { outline: none; opacity: 1; }
.na-arrow:focus-visible::before { border-color: rgb(var(--na-c)); box-shadow: 0 0 0 3px rgba(3, 180, 206, .4); }
.na-arrows__sep, .na-count { display: none; }
/* invitation : le chevron « suivant » descend doucement tant qu'on n'a pas avancé */
.na-invite .na-arrow--next { opacity: 1; }
.na-invite .na-arrow--next svg { animation: na-bob 2.2s var(--na-ease) infinite; }
@keyframes na-bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }

/* ---------- Bouton « Menu » (quand la barre de navigation est masquée) ---------- */
.na-menu {
  position: fixed; z-index: 61; top: 18px; right: clamp(10px, 2vw, 28px);
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 2px 0 10px; border: 0; background: none; cursor: pointer;
  font: 500 10.5px/1 "Instrument Sans", system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .45s var(--na-ease), transform .45s var(--na-ease), color .5s;
}
.na-menu.is-on { opacity: .85; transform: none; pointer-events: auto; }
.na-menu:hover { opacity: 1; }
.na-menu i { order: 2; display: block; width: 18px; height: 6px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.na-menu:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* L'indicateur « Faites défiler » de l'accueil devient cliquable */
.na-ready .hero__hint:not(.hero__hint--drag) { pointer-events: auto; cursor: pointer; }

.na-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-open .na-rail, .menu-open .na-arrows, .menu-open .na-menu { opacity: 0 !important; pointer-events: none !important; }

/* ---------- Tablettes ---------- */
@media (max-width: 1100px) { .na-rail__label { display: none; } }
/* ---------- Smartphones ---------- */
@media (max-width: 699px) {
  .na-rail { right: 4px; }
  .na-rail__item { width: 26px; height: 18px; }
  .na-rail__dot { width: 7px; }
  .na-rail__item.is-active .na-rail__dot { width: 16px; }
  .na-arrows { right: 6px; bottom: 12px; }
  .na-arrow { width: 44px; height: 44px; }
  .na-menu { top: 14px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .na-invite .na-arrow--next svg { animation: none; } }
@media print { .na-rail, .na-arrows, .na-menu { display: none; } }

/* v1.4 — Ouverture de l'accueil : l'écran de chargement ne bloque jamais la page,
   et n'apparaît plus lors d'un retour sur l'accueil pendant la visite */
.loader { pointer-events: none; }
.intro-vue .loader { display: none; }
