/* Coque du logiciel (app.html, activite.html) : barre latérale fixe à gauche sur ordinateur,
   tiroir + barre du haut sur téléphone et tablette (≤ 950 px), profil en bas à gauche, accueil.
   Chargé après app-ui.css ; les « !important » ne font que reprendre la main sur ceux de refresh-v6.css et style.css. */

/* ---------- Ordinateur : barre latérale fixe ---------- */
body.app-ui .nv-mobilebar, body.app-ui .nv-backdrop, body.app-ui .nv-drawer-close { display: none; }
body.app-ui .app-shell > .sidebar { display: flex !important; flex-direction: column; gap: 0; }
body.app-ui .app-shell > .sidebar > .brand { order: 0; margin: 0 8px; }
body.app-ui .app-shell > .sidebar > .workspace-label { order: 1; display: block !important; margin: 24px 12px 8px; }
body.app-ui .app-shell > .sidebar > .app-nav { order: 2; }
body.app-ui .app-shell > .sidebar > .sidebar-ai { order: 3; margin-top: auto; margin-bottom: 14px; }
body.app-ui .app-shell > .sidebar > .back-to-site { order: 4; display: inline-flex !important; align-self: flex-start; margin: 0 12px 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
body.app-ui .app-shell > .sidebar > .back-to-site:hover { color: var(--ink); text-decoration: underline; }
body.app-ui .app-shell > .sidebar > .prototype { order: 5; display: block !important; margin: 0 12px 10px; font-size: 12px; }
body.app-ui .app-shell > .sidebar > .nv-feedback-button { order: 6; }
body.app-ui .app-shell > .sidebar > .nv-profile { order: 7; }
/* BUG-19 : dans une fenêtre peu haute, les éléments de la colonne ne se compressent plus les uns sur les autres
   (« Site de présentation » et « Mode invité sur cet appareil » se chevauchaient) : ils gardent leur hauteur, la colonne défile. */
body.app-ui .app-shell > .sidebar > * { flex-shrink: 0; }
body.app-ui .app-shell > .sidebar > .back-to-site { margin-bottom: 8px; line-height: 1.35; }
body.app-ui .app-shell > .sidebar > .prototype { margin-bottom: 14px; line-height: 1.5; }

@media (min-width: 951px) {
  body.app-ui .app-shell { display: grid !important; grid-template-columns: 264px minmax(0, 1fr) !important; min-height: 100vh; }
  body.app-ui .app-shell > .sidebar { position: sticky !important; top: 0; height: 100vh !important; height: 100dvh !important; overflow-y: auto; padding: 22px 14px 12px !important; }
}

/* Onglets : icône + libellé, un fond lime qui glisse sous l'onglet actif */
body.app-ui .app-shell > .sidebar .app-nav { position: relative; display: flex !important; flex-direction: column !important; grid-template-columns: none !important; gap: 2px; margin: 0 !important; padding: 0 !important; background: none !important; border-radius: 0; overflow: visible; }
body.app-ui .app-shell > .sidebar .app-nav .nav-item { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start !important; gap: 12px; min-height: 44px; margin: 0 !important; padding: 0 12px !important; border: 1.5px solid transparent; border-radius: 11px; background: transparent; color: var(--ink-2); font-size: 15px !important; font-weight: 650; white-space: nowrap; text-decoration: none; }
body.app-ui .app-shell > .sidebar .app-nav .nav-item:hover { background: rgba(16, 45, 36, .06); color: var(--ink); }
body.app-ui .app-shell > .sidebar .app-nav .nv-indicator ~ .nav-item.active { background: transparent; border-color: transparent; color: var(--ink); font-weight: 750; }
body.app-ui .app-shell > .sidebar .app-nav .nav-item > .nv-icon-wrap { display: grid !important; place-items: center; flex: none; width: 22px; height: 22px; font-size: 0; color: var(--ink-3); }
body.app-ui .app-shell > .sidebar .app-nav .nav-item.active > .nv-icon-wrap, body.app-ui .app-shell > .sidebar .app-nav .nav-item:hover > .nv-icon-wrap { color: var(--ink); }
body.app-ui .app-shell > .sidebar .app-nav .nv-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.app-ui .app-shell > .sidebar .app-nav .count { display: inline-block; margin-left: auto; }
body.app-ui.ops-app .app-shell > .sidebar .app-nav .count { display: none !important; }
body.app-ui .nv-indicator { position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 44px; border: 1.5px solid var(--ink); border-radius: 11px; background: var(--lime); box-shadow: 0 10px 20px -16px rgba(16, 45, 36, .7); pointer-events: none; will-change: transform; }

/* ---------- Profil (bas à gauche) ---------- */
body.app-ui .nv-profile { position: relative; min-height: 58px; padding-top: 10px; border-top: 1.5px solid var(--line); }
body.app-ui .nv-profile-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 8px 8px 8px; border: 1.5px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .86); color: var(--ink); text-align: left; cursor: pointer; font: inherit; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.app-ui .nv-profile-button:hover, body.app-ui .nv-profile-button[aria-expanded="true"] { border-color: var(--ink); background: #FFF; }
body.app-ui .nv-profile-button > .nv-icon { flex: none; color: var(--ink-3); }
body.app-ui .nv-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; overflow: hidden; border-radius: 10px; background: var(--ink); color: var(--lime); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
body.app-ui .nv-avatar.has-logo { background: #FFF; border: 1px solid var(--line); }
body.app-ui .nv-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
body.app-ui .nv-profile-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
body.app-ui .nv-profile-text strong, body.app-ui .nv-profile-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.app-ui .nv-profile-text strong { font-size: 14px; font-weight: 750; }
body.app-ui .nv-profile-text small { font-size: 12px; color: var(--ink-3); }
body.app-ui .nv-profile-menu { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(100% + 6px); display: grid; gap: 2px; padding: 6px; border: 1.5px solid var(--ink); border-radius: 14px; background: #FFF; box-shadow: 0 22px 40px -22px rgba(16, 45, 36, .55); opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transform-origin: bottom center; }
body.app-ui .nv-profile.is-open .nv-profile-menu { opacity: 1; visibility: visible; transform: none; }
body.app-ui .nv-profile-menu a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
body.app-ui .nv-profile-menu a:hover { background: var(--lime-wash); }
body.app-ui .nv-profile-menu .nv-signout { margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0 0 9px 9px; padding-top: 2px; color: var(--warn); }
body.app-ui .nv-profile-menu .nv-signout:hover { background: var(--warn-wash); }
body.app-ui .nv-profile.is-guest { display: grid; gap: 8px; }
body.app-ui .nv-profile.is-guest a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 11px; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
body.app-ui .nv-guest-primary { background: var(--ink); color: #F4F2E9; }
body.app-ui .nv-guest-primary:hover { background: #1B4336; }
body.app-ui .nv-guest-secondary { background: #FFF; color: var(--ink); }
body.app-ui .nv-guest-secondary:hover { background: var(--lime-wash); }
body.app-ui .nv-profile.is-loading::after { content: ""; display: block; height: 56px; border-radius: 13px; background: rgba(255, 255, 255, .55); }

/* ---------- « Une idée ? Un problème ? » : bouton au-dessus du profil, puis fenêtre ---------- */
body.app-ui .nv-feedback-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0 0 10px; padding: 0 12px; border: 1.5px dashed rgba(16, 45, 36, .35); border-radius: 11px; background: rgba(255, 255, 255, .55); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
body.app-ui .nv-feedback-button[hidden] { display: none; }
body.app-ui .nv-feedback-button:hover { border-style: solid; border-color: var(--ink); background: var(--lime-wash); }
body.app-ui .nv-feedback-button svg { flex: none; color: var(--ink-2); }
body.app-ui .nv-feedback-button span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

dialog.nv-fb { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1.5px solid #102D24; border-radius: 20px; background: #FFF; color: #102D24; box-shadow: 0 40px 90px -30px rgba(16, 45, 36, .6); font-family: "Archivo", Arial, sans-serif; }
dialog.nv-fb::backdrop { background: rgba(16, 45, 36, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html.nv-fb-open { overflow: hidden; }
.nv-fb-panel { display: flex; flex-direction: column; max-height: calc(100dvh - 35px); outline: none; }
.nv-fb-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px 20px; border-bottom: 1.5px solid #E4E0D1; background: #F4F2E9; }
.nv-fb-badge { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1.5px solid #102D24; border-radius: 12px; background: #CFF57F; color: #102D24; }
.nv-fb-heading { flex: 1; min-width: 0; }
.nv-fb-head h2 { margin: 1px 0 4px; font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.nv-fb-head p { margin: 0; color: #33493F; font-size: 14px; line-height: 1.45; }
.nv-fb-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: -4px -4px 0 0; border: 1.5px solid #D6D2C1; border-radius: 11px; background: #FFF; color: #102D24; cursor: pointer; }
.nv-fb-close:hover { border-color: #102D24; }
.nv-fb-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 20px; }
.nv-fb-step { display: grid; gap: 14px; }
.nv-fb-form { display: grid; gap: 8px; margin: 0; }
.nv-fb-label { font-size: 13.5px; font-weight: 750; color: #102D24; }
.nv-fb textarea, .nv-fb input:not([type]) { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1.5px solid #D6D2C1; border-radius: 11px; background: #FBFAF5; color: #102D24; font: inherit; font-size: 15px; line-height: 1.5; }
.nv-fb textarea { resize: vertical; min-height: 92px; }
.nv-fb textarea:focus, .nv-fb input:not([type]):focus { border-color: #102D24; background: #FFF; }
.nv-fb :focus-visible { outline: 3px solid #102D24; outline-offset: 2px; }
.nv-fb-meta { display: flex; justify-content: space-between; gap: 12px; color: #56675E; font-size: 12.5px; }
.nv-fb-count { flex: none; font-variant-numeric: tabular-nums; }
.nv-fb-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.nv-fb-primary, .nv-fb-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1.5px solid #102D24; border-radius: 11px; font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; }
.nv-fb-primary { background: #102D24; color: #CFF57F; }
.nv-fb-primary:hover { background: #1B4336; }
.nv-fb-primary:disabled { opacity: .6; cursor: progress; }
.nv-fb-secondary { background: #FFF; color: #102D24; }
.nv-fb-secondary:hover { background: #EDF7D0; }
.nv-fb-link { margin-right: auto; padding: 8px 2px; border: 0; background: none; color: #33493F; font: inherit; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nv-fb-error { margin: 0; padding: 9px 12px; border-radius: 10px; background: #FAE7DE; color: #A9401D; font-size: 13.5px; font-weight: 650; }
.nv-fb-error[hidden] { display: none; }
.nv-fb-thread { display: grid; gap: 10px; }
.nv-fb-bubble { display: flex; gap: 8px; max-width: 88%; padding: 10px 13px; border-radius: 15px; font-size: 14.5px; line-height: 1.5; }
.nv-fb-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.nv-fb-bubble.is-user { justify-self: end; border-bottom-right-radius: 5px; background: #102D24; color: #F4F2E9; }
.nv-fb-bubble.is-ai { justify-self: start; border: 1.5px solid #102D24; border-bottom-left-radius: 5px; background: #EDF7D0; color: #102D24; }
.nv-fb-ai-mark { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1px solid #102D24; border-radius: 7px; background: #CFF57F; }
.nv-fb-dots { display: inline-flex; align-items: center; gap: 5px; height: 22px; }
.nv-fb-dots i { width: 7px; height: 7px; border-radius: 50%; background: #102D24; opacity: .35; }
.nv-fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nv-fb-lead { margin: 0; color: #33493F; font-size: 14.5px; }
.nv-fb-note { margin: 0; padding: 9px 12px; border-radius: 10px; background: #FFF4D6; color: #4A3200; font-size: 13.5px; }
.nv-fb-card { display: grid; gap: 8px; padding: 16px; border: 1.5px solid #102D24; border-radius: 16px; background: #FFF; box-shadow: 0 22px 40px -32px rgba(16, 45, 36, .6); }
.nv-fb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.nv-fb-chips legend { width: 100%; margin: 0 0 6px; padding: 0; font-size: 13.5px; font-weight: 750; }
.nv-fb-chip { position: relative; }
.nv-fb-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nv-fb-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid #D6D2C1; border-radius: 999px; background: #FBFAF5; color: #33493F; font-size: 14px; font-weight: 700; }
.nv-fb-chip input:checked + span { border-color: #102D24; background: #CFF57F; color: #102D24; }
.nv-fb-chip input:focus-visible + span { outline: 3px solid #102D24; outline-offset: 2px; }
.nv-fb-chip:hover span { border-color: #102D24; }
.nv-fb-thanks { display: grid; justify-items: center; gap: 8px; padding: 12px 4px 4px; text-align: center; }
.nv-fb-thanks h3 { margin: 6px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.nv-fb-thanks p { margin: 0; color: #33493F; font-size: 14.5px; }
.nv-fb-thanks .nv-fb-actions { justify-content: center; }
.nv-fb-check { display: grid; place-items: center; width: 60px; height: 60px; border: 1.5px solid #102D24; border-radius: 50%; background: #CFF57F; color: #102D24; }
@media (max-width: 600px) {
  dialog.nv-fb { width: 100%; max-height: calc(100dvh - 12px); margin: auto 0 0; border-width: 1.5px 0 0; border-radius: 22px 22px 0 0; }
  .nv-fb-panel { max-height: calc(100dvh - 14px); }
  .nv-fb-head { padding: 16px 14px 12px 16px; }
  .nv-fb-body { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
  .nv-fb-actions { flex-direction: column-reverse; align-items: stretch; }
  .nv-fb-link { margin: 0; text-align: center; }
  .nv-fb-meta { flex-direction: column; gap: 2px; }
  .nv-fb-meta .nv-fb-count { align-self: flex-end; }
}
@keyframes nv-fb-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nv-fb-sheet { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes nv-fb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nv-fb-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes nv-fb-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .nv-fb[open] { animation: nv-fb-in 240ms cubic-bezier(.2, .8, .2, 1) both; }
  .nv-fb[open]::backdrop { animation: nv-fb-fade 200ms ease both; }
  .nv-fb-step { animation: nv-enter 220ms cubic-bezier(.2, .7, .2, 1) both; }
  .nv-fb-dots i { animation: nv-fb-dot 1.1s infinite ease-in-out; }
  .nv-fb-dots i:nth-child(2) { animation-delay: .15s; }
  .nv-fb-dots i:nth-child(3) { animation-delay: .3s; }
  .nv-fb-check { animation: nv-fb-pop 420ms cubic-bezier(.2, .8, .2, 1) both; }
  .nv-fb-chip span, .nv-fb-primary, .nv-fb-secondary, body.app-ui .nv-feedback-button { transition: background-color .16s, border-color .16s, color .16s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
  .nv-fb[open] { animation: nv-fb-sheet 300ms cubic-bezier(.2, .85, .25, 1) both; }
}

/* ---------- Téléphone et tablette : barre du haut + tiroir ---------- */
@media (max-width: 950px) {
  body.app-ui .app-shell { display: block !important; }
  body.app-ui .nv-mobilebar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 14px 0 8px; background: rgba(244, 242, 233, .94); border-bottom: 1.5px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  body.app-ui .nv-burger { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); cursor: pointer; }
  body.app-ui .nv-burger:hover { background: rgba(16, 45, 36, .07); }
  body.app-ui .nv-mobilebar-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 19px; font-weight: 800; font-stretch: 110%; letter-spacing: -.03em; text-decoration: none; }
  body.app-ui .nv-mobilebar-brand img { display: block; width: auto; height: 30px; }
  body.app-ui .nv-mobilebar-current { min-width: 0; margin-left: auto; overflow: hidden; color: var(--ink-3); font-size: 13px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }

  body.app-ui .app-shell > .sidebar { position: fixed !important; z-index: 60; top: 0; left: 0; bottom: 0; width: min(304px, 86vw) !important; height: 100% !important; min-height: 0 !important; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 14px !important; align-items: stretch; border-right: 1.5px solid var(--ink) !important; border-bottom: 0 !important; background-color: var(--paper-2); box-shadow: 28px 0 50px -28px rgba(16, 45, 36, .55); transform: translateX(-104%); visibility: hidden; }
  html.nv-drawer-open body.app-ui .app-shell > .sidebar { transform: none; visibility: visible; }
  html.nv-drawer-open { overflow: hidden; }
  body.app-ui .app-shell > .sidebar > .brand { margin: 0 52px 0 6px; font-size: 21px !important; }
  body.app-ui .app-shell > .sidebar .brand-mark img { height: 34px; }
  body.app-ui .app-shell > .sidebar > .workspace-label { margin-top: 20px; }
  body.app-ui .app-shell > .sidebar > .sidebar-ai { display: grid !important; }
  body.app-ui .app-shell > .sidebar .app-nav .nav-item { min-height: 46px; }
  body.app-ui .nv-drawer-close { position: absolute; z-index: 2; top: 14px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 11px; background: #FFF; color: var(--ink); cursor: pointer; }
  body.app-ui .nv-backdrop { position: fixed; z-index: 55; inset: 0; display: block; background: rgba(16, 45, 36, .45); opacity: 0; visibility: hidden; }
  html.nv-drawer-open body.app-ui .nv-backdrop { opacity: 1; visibility: visible; }
  /* L'ancien fil d'Ariane fait doublon avec la barre du haut */
  body.app-ui .app-shell > main > .topbar { display: none !important; }
}

/* ---------- Accueil ---------- */
body.app-ui .home-view { padding-top: 18px; }
body.app-ui .home-view > .premiers-pas { margin: 0 0 22px; }
body.app-ui .home-hello { padding: 28px 30px; border: 1.5px solid var(--ink); border-radius: 22px; background: linear-gradient(90deg, rgba(244,242,233,.98) 0%, rgba(244,242,233,.94) 50%, rgba(244,242,233,.25) 82%, rgba(244,242,233,0) 100%), url("./assets/photos/bureau.webp") right center / cover; }
body.app-ui .home-hello > * { max-width: min(560px, 62%); }
body.app-ui .home-hello .eyebrow { margin: 0 0 8px; }
body.app-ui .home-hello h1 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
body.app-ui .home-hello p:last-child { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
body.app-ui .home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
body.app-ui .home-stat { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #FFF; color: var(--ink); text-decoration: none; }
body.app-ui .home-stat:hover { border-color: var(--ink); }
body.app-ui .home-stat strong { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
body.app-ui .home-stat span { font-size: 13.5px; color: var(--ink-2); }
body.app-ui .home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
body.app-ui .home-actions .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
@media (max-width: 760px) {
  body.app-ui .home-hello { padding: 22px 18px; background: var(--bg); }
  body.app-ui .home-hello > * { max-width: none; }
  body.app-ui .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.app-ui .home-actions .button { flex: 1 1 100%; }
}

/* ---------- Mouvements (aucun si l'utilisateur les a désactivés) ---------- */
/* Changement de page entre app.html et activite.html (View Transitions ; ignoré par les navigateurs qui ne le gèrent pas). */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@keyframes nv-enter { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes nv-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  body.app-ui .app-shell > main { animation: nv-enter 260ms cubic-bezier(.2, .7, .2, 1) both; }
  body.app-ui .nv-enter { animation: nv-enter 240ms cubic-bezier(.2, .7, .2, 1) both; }
  body.app-ui .app-nav.nv-ready .nv-indicator { transition: transform 280ms cubic-bezier(.3, .8, .25, 1), height 280ms cubic-bezier(.3, .8, .25, 1), opacity 160ms ease; }
  body.app-ui .app-shell > .sidebar .app-nav .nav-item { transition: background-color .16s, color .16s; }
  body.app-ui .nv-profile-menu { transition: opacity 160ms ease, transform 200ms cubic-bezier(.2, .8, .2, 1), visibility 0s linear 200ms; }
  body.app-ui .nv-profile.is-open .nv-profile-menu { transition: opacity 160ms ease, transform 200ms cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  @media (max-width: 950px) {
    body.app-ui .app-shell > .sidebar { transition: transform 280ms cubic-bezier(.3, .8, .25, 1), visibility 0s linear 280ms; }
    html.nv-drawer-open body.app-ui .app-shell > .sidebar { transition: transform 300ms cubic-bezier(.2, .85, .25, 1), visibility 0s; }
    body.app-ui .nv-backdrop { transition: opacity 240ms ease, visibility 0s linear 240ms; }
    html.nv-drawer-open body.app-ui .nv-backdrop { transition: opacity 240ms ease, visibility 0s; }
  }
  /* Changement de page (Chrome, Edge, Safari récents ; ignoré ailleurs) : fondu court, le contenu glisse ensuite. */
  ::view-transition-old(root) { animation: nv-fade-out 160ms ease both; }
  ::view-transition-new(root) { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.app-ui .app-shell > main, body.app-ui .nv-enter { animation: none !important; }
}

/* Logo Neatvaro (18/10/2026) : le nom complet remplace le symbole suivi du texte. */
body.app-ui .brand-lockup { display: block; height: 26px; width: auto; }
@media (max-width: 860px) { body.app-ui .nv-mobilebar-brand img.nv-lockup { height: 24px; width: auto; } }

/* Lot 5 (CLS) : la barre du haut (téléphone) est ajoutée par app-nav.mjs une fois le script chargé, ce qui faisait descendre toute la page de 58 px.
   Sa place est réservée jusque-là ; dès que la barre existe, le remplissage disparaît : rien ne bouge. */
@media (max-width: 950px) {
  body.app-ui:has(> .app-shell > .sidebar):not(:has(> .nv-mobilebar)) { padding-top: 58px; }
}
