/* Novavision : animations et icônes. Tout est désactivé si l'utilisateur demande moins d'animations. */

/* Icônes */
.nv-ico { width: 1.5em; height: 1.5em; flex: none; display: inline-block; vertical-align: -.3em; }
.nv-ico .nv-i-a { transition: transform .45s var(--ease, cubic-bezier(.16, 1, .3, 1)); transform-origin: center; transform-box: fill-box; }
a:hover .nv-ico .nv-i-a, li:hover > .nv-ico .nv-i-a, .svc-row:hover .nv-ico .nv-i-a, a:focus-visible .nv-ico .nv-i-a { transform: translateY(-2px) scale(1.12); }
.nv-ico--arrow { transition: transform .35s var(--ease, ease); }
a:hover .nv-ico--arrow, a:focus-visible .nv-ico--arrow { transform: translateX(5px); }

/* Pastille d'icône (services, solutions) */
.nv-icobox { display: inline-grid; place-items: center; width: 52px; height: 52px; background: var(--yellow, #FFC629); color: var(--graphite, #1F2328); flex: none; transition: transform .4s var(--ease, ease), background-color .3s; }
.nv-icobox .nv-ico { width: 26px; height: 26px; }
.svc-row:hover .nv-icobox, a:hover > .nv-icobox { transform: rotate(-6deg) scale(1.06); }
.svc-row:hover .nv-icobox { background: var(--graphite, #1F2328); color: var(--yellow, #FFC629); }

@media (prefers-reduced-motion: no-preference) {
  /* Apparitions */
  .nv-motion .nv-rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease, ease) var(--nv-d, 0ms), transform .9s var(--ease, ease) var(--nv-d, 0ms); }
  .nv-motion .nv-rv.is-in { opacity: 1; transform: none; }
  /* Cartes avec image : l'image se dévoile du bas vers le haut */
  .nv-motion .nvr-card.nv-rv .nvr-card-media, .nv-motion .recent-list .nv-rv .proj-img { clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease, ease) var(--nv-d, 0ms); }
  .nv-motion .nvr-card.nv-rv.is-in .nvr-card-media, .nv-motion .recent-list .nv-rv.is-in .proj-img { clip-path: inset(0 0 0 0); }

  /* Titres mot par mot */
  .nv-split .nv-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
  .nv-split .nv-w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease, ease) calc(var(--i) * 55ms); }
  .nv-split.is-in .nv-w > span { transform: none; }

  /* Boutons : retour en douceur après l'effet magnétique */
  .nv-motion .btn { transition: background-color .2s, color .2s, transform .35s var(--ease, ease); will-change: transform; }

  /* Lignes de services : flèche et léger décalage */
  .svc-row, .routes a, .nvit-rel a, .more-list a { transition: background-color .3s, color .3s, padding-left .4s var(--ease, ease); }
  .routes a:hover, .nvit-rel a:hover { padding-left: 1.5rem; }
}

/* Barre de progression de lecture */
.nv-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--yellow, #FFC629); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nv-progress { display: none; } }

/* Placement des icônes */
.svc-row h3 { display: flex; align-items: center; gap: 1rem; }
.svc-row .nv-icobox { width: 48px; height: 48px; }
.ai-t-in { display: inline-flex; align-items: center; gap: .6rem; }
.ai-t-in .nv-ico { width: 22px; height: 22px; }
.route-d { display: inline-flex; align-items: center; gap: .5rem; }
.route-d .nv-ico { width: 1.2em; height: 1.2em; }
.foot-nap .nv-ico { width: 1.1em; height: 1.1em; color: var(--yellow, #FFC629); margin-right: .35rem; }
.nvit-rel-t, .nvit-goals h3 { display: inline-flex; align-items: center; gap: .75rem; }
.nvit-rel .nv-icobox { width: 44px; height: 44px; }
.nvit-goals .nv-icobox { width: 52px; height: 52px; }
