/* 05/11 — Bouton Entrer : effet « Shiny Button » (21st, hyperiux) aux couleurs HFX.
   Bordure en dégradé conique qui tourne, trame de points masquée, reflet intérieur ; au survol l'arc
   s'élargit et une lueur dorée respire à l'intérieur. Les couches sont à part pour ne pas toucher à
   l'apparition du bouton (aoApparait) ni à son rappel (est-appel). */
@property --sh-a{syntax:"<angle>";initial-value:0deg;inherits:false}
@property --sh-o{syntax:"<angle>";initial-value:0deg;inherits:false}
@property --sh-p{syntax:"<percentage>";initial-value:5%;inherits:false}
@property --sh-s{syntax:"<color>";initial-value:#fff6e2;inherits:false}
@keyframes shAng{to{--sh-a:360deg}}
@keyframes shTour{to{rotate:360deg}}
@keyframes shSouffle{0%,100%{scale:1}50%{scale:1.2}}

.a-ouv a.av-ouv__cta.av-shiny{
  --sh-fond:#0B0E0D;--sh-or:#C2A16D;--sh-or-doux:#F0DCB2;--sh-t:.8s cubic-bezier(.25,1,.5,1);
  background:var(--sh-fond)!important;border:1px solid transparent!important;
  box-shadow:inset 0 0 0 1px #1c1a17,0 14px 34px -18px rgba(0,0,0,.85)!important;
  color:#F3E6CB!important;overflow:hidden;isolation:isolate}
.a-ouv a.av-ouv__cta.av-shiny:active{translate:0 1px}

/* Bordure : un anneau de 1 px découpé dans un dégradé conique qui tourne */
.av-shiny .sh-bord{position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:2;
  background:conic-gradient(from calc(var(--sh-a) - var(--sh-o)),transparent,var(--sh-or) var(--sh-p),var(--sh-s) calc(var(--sh-p)*2),var(--sh-or) calc(var(--sh-p)*3),transparent calc(var(--sh-p)*4));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  transition:var(--sh-t);transition-property:--sh-o,--sh-p,--sh-s}

/* Trame de points qui suit l'arc lumineux */
.a-ouv a.av-ouv__cta.av-shiny::before{content:""!important;position:absolute!important;inset:3px!important;z-index:-1;border-radius:inherit;pointer-events:none;
  background:radial-gradient(circle at 2px 2px,#fff .5px,transparent 0)!important;background-size:4px 4px!important;background-repeat:space!important;background-position:0 0!important;
  -webkit-mask-image:conic-gradient(from calc(var(--sh-a) + 45deg),#000,transparent 10% 90%,#000)!important;mask-image:conic-gradient(from calc(var(--sh-a) + 45deg),#000,transparent 10% 90%,#000)!important;
  opacity:.4!important;transform:none!important}

/* Reflet intérieur qui tourne lentement */
.a-ouv a.av-ouv__cta.av-shiny::after{content:"";position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:-1;pointer-events:none;
  width:100%;aspect-ratio:1;background:linear-gradient(-50deg,transparent,var(--sh-or),transparent);
  -webkit-mask-image:radial-gradient(circle at bottom,transparent 40%,#000);mask-image:radial-gradient(circle at bottom,transparent 40%,#000);opacity:.45}

/* Lueur dorée qui respire au survol */
.av-shiny .sh-lueur{position:absolute;left:50%;top:50%;translate:-50% -50%;width:calc(100% + 1rem);height:calc(100% + 1rem);z-index:-1;pointer-events:none;
  border-radius:inherit;box-shadow:inset 0 -1ex 2rem 4px var(--sh-or);opacity:0;transition:opacity var(--sh-t)}
.av-shiny span{position:relative;z-index:1}

@media (prefers-reduced-motion:no-preference){
  .av-shiny .sh-bord,.a-ouv a.av-ouv__cta.av-shiny::before{animation:shAng 3s linear infinite,shAng 7.5s linear infinite reverse paused!important;animation-composition:add!important}
  .a-ouv a.av-ouv__cta.av-shiny::after{animation:shTour 3s linear infinite}
  .av-shiny .sh-lueur{animation:shSouffle 4.5s linear infinite}
  .a-ouv a.av-ouv__cta.av-shiny:is(:hover,:focus-visible) .sh-bord,
  .a-ouv a.av-ouv__cta.av-shiny:is(:hover,:focus-visible)::before{animation-play-state:running!important}
  /* 06/11 : hors écran (.av-pause posé par accueil-ouverture.js), la bordure s'arrête aussi —
     le « paused/running !important » ci-dessus, plus précis, l'emportait sur la pause générale. */
  .a-ouv.av-pause a.av-ouv__cta.av-shiny::before,.av-pause .av-shiny .sh-bord{animation-play-state:paused!important}
}
.a-ouv a.av-ouv__cta.av-shiny:is(:hover,:focus-visible) .sh-bord{--sh-p:20%;--sh-o:95deg;--sh-s:var(--sh-or-doux)}
.a-ouv a.av-ouv__cta.av-shiny:is(:hover,:focus-visible) .sh-lueur{opacity:1}
@media (prefers-reduced-motion:reduce){.av-shiny .sh-bord,.av-shiny .sh-lueur{transition:none}}

/* Halo de lumière au clic, comme sur les autres boutons du site (av-halo), fixé à l'écran : la page
   saute dessous pendant la transition, le halo reste là où on a cliqué. */
.av-halo-entrer{position:fixed;z-index:2147482000;pointer-events:none;border:2px solid #FFF3DA;
  box-shadow:0 0 18px 3px rgba(255,236,200,.95),0 0 46px 12px rgba(226,198,145,.75),0 0 110px 30px rgba(194,161,109,.45),inset 0 0 22px 2px rgba(240,220,178,.6)}

/* Fond « Silk » (shader daa) : sous la trame, le reflet et la lueur ; un voile sombre au centre garde le mot lisible. */
.av-shiny .sh-soie{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;z-index:-2;pointer-events:none;display:block;opacity:.9}
.a-ouv a.av-ouv__cta.av-shiny span{text-shadow:0 1px 8px rgba(8,6,4,.85),0 0 2px rgba(8,6,4,.6)}
