/* OubaZ Digital — navigation : un peu de vie, sans excès */

/* Fondu discret entre les pages (navigateurs compatibles), l'en-tête reste en place */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: site-nav; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}

/* En-tête : se compacte et prend une ombre légère dès qu'on descend */
.nav { transition: box-shadow .25s ease, background-color .25s ease; }
.nav-in { transition: height .25s ease; }
.brand img { transition: height .25s ease; }
.nav.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 10px 24px -18px rgba(7,23,49,.45); }
.nav.is-scrolled .nav-in { height: 62px; }
.nav.is-scrolled .brand img { height: 32px; }

/* Liens : la couleur change en douceur */
.nav-links a { transition: color .2s ease; }

/* Bouton Contact : page active + léger relief au survol */
.nav .btn { transition: background .2s, border-color .2s, transform .15s ease, box-shadow .2s ease; }
.nav .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(2,87,252,.7); }
.nav .btn[aria-current="page"] { box-shadow: 0 0 0 3px rgba(2,87,252,.18); }

/* Mobile : le menu s'ouvre en glissant, plus d'apparition brutale */
.burger { min-width: 92px; text-align: center; }
@media (max-width: 900px) {
  .nav-links.open { top: 100%; box-shadow: 0 18px 30px -22px rgba(7,23,49,.45); }
}
@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 900px) {
    .nav-links.open { animation: nav-drop .2s ease-out; }
    .nav-links.open li { animation: nav-item .22s ease-out backwards; }
    .nav-links.open li:nth-child(2) { animation-delay: .03s; }
    .nav-links.open li:nth-child(3) { animation-delay: .06s; }
    .nav-links.open li:nth-child(4) { animation-delay: .09s; }
  }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes nav-item { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Installer l'application (PWA) : uniquement dans le menu mobile */
.nav-install { display: none; }
@media (max-width: 900px) {
  .nav-links.open .nav-install:not([hidden]) { display: block; border-bottom: 0; padding-top: 6px; }
  .install-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    margin-top: 12px; padding: 13px 18px; border-radius: 999px; cursor: pointer;
    border: 2px solid var(--blue); background: #fff; color: var(--blue);
    font: 700 15px/1 var(--sans); transition: background .2s, color .2s;
  }
  .install-btn:hover, .install-btn:active { background: var(--blue); color: #fff; }
  .install-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
  .install-hint { margin: 10px 4px 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
}
