/* Royal Auto — mise en avant du bouton « Voitures en stock » dans le menu (v30).
   Variante « Éclat » choisie par Michel le 27/10/2026 : une onde part du bouton toutes les
   2 secondes, une fois jaune, une fois rouge, une fois verte (cycle complet : 6 secondes).
   Utilisé par toutes les pages qui ont le menu : accueil, Qui sommes-nous, Contact,
   catalogue, page pro. Le lien du menu porte la classe « nav-stock ».
   Pour changer la vitesse : modifier « 6s » ci-dessous (3 ondes par cycle). */

nav.main-nav a.nav-stock{
  position:relative;
  background:#fff;
  color:oklch(0.32 0.1 260);
  font-weight:600;
  box-shadow:0 0 0 1.5px oklch(0 0 0 / 0.12);
}
nav.main-nav a.nav-stock::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  animation:nav-stock-eclat 6s ease-out infinite;
}
@keyframes nav-stock-eclat{
  0%    {box-shadow:0 0 0 0    rgb(244 180 0 / .75);}
  28%   {box-shadow:0 0 0 12px rgb(244 180 0 / 0);}
  31%   {box-shadow:0 0 0 0    rgb(217 68 58 / 0);}
  33.3% {box-shadow:0 0 0 0    rgb(217 68 58 / .7);}
  61%   {box-shadow:0 0 0 12px rgb(217 68 58 / 0);}
  64%   {box-shadow:0 0 0 0    rgb(46 163 90 / 0);}
  66.6% {box-shadow:0 0 0 0    rgb(46 163 90 / .7);}
  94%   {box-shadow:0 0 0 12px rgb(46 163 90 / 0);}
  100%  {box-shadow:0 0 0 0    rgb(244 180 0 / 0);}
}

/* Système réglé sur « réduire les animations » : halo fixe, sans mouvement */
@media (prefers-reduced-motion: reduce){
  nav.main-nav a.nav-stock::after{animation:none;box-shadow:0 0 0 3px rgb(244 180 0 / .55);}
}
