/* Algérie Prestige · couche d'animations d'interface (sobre, sans dépendance)
   Tout état « masqué » n'existe que sous .ap-js : sans JavaScript, la page reste lisible. */
:root{--ap-ease:cubic-bezier(.2,.7,.1,1);--ap-gold:#B8903A;--ap-gold-l:#DEC07A}

/* entrée / sortie de page */
.ap-js body{animation:ap-enter .7s var(--ap-ease) backwards}
.ap-js.ap-leave body{opacity:0;transform:translateY(-6px);transition:opacity .28s ease,transform .28s ease}
@keyframes ap-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* titres : apparition mot par mot sous un masque */
.ap-js .ap-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.14em;margin-bottom:-.14em}
.ap-js .ap-wi{display:inline-block;transform:translateY(108%);transition:transform 1s var(--ap-ease) calc(var(--i,0) * 60ms)}
.ap-js .ap-title.ap-in .ap-wi{transform:none}

/* textes, cartes, médias : apparition douce */
.ap-js .ap-up{opacity:0;transform:translateY(22px);transition:opacity .9s var(--ap-ease) calc(var(--d,0) * 90ms),transform .9s var(--ap-ease) calc(var(--d,0) * 90ms)}
.ap-js .ap-up.ap-in{opacity:1;transform:none}
.ap-js .ap-rule{transform:scaleX(0);transform-origin:left;transition:transform 1.2s var(--ap-ease) .2s}
.ap-js .ap-rule.ap-in{transform:none}

/* état initial posé dès le premier affichage, avant l'exécution du script (évite tout clignotement) */
.ap-js [data-ap-up]:not(.ap-in){opacity:0;transform:translateY(22px)}
.ap-js [data-ap-rule]:not(.ap-in){transform:scaleX(0);transform-origin:left}
.ap-js [data-ap-title]:not(.ap-title){visibility:hidden}

/* boutons : balayage doré au survol, flèche qui avance */
.ap-btn{position:relative;overflow:hidden;isolation:isolate;transition:color .35s ease,border-color .35s ease,background-color .35s ease,transform .35s var(--ap-ease)}
.ap-btn::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,transparent 20%,rgba(222,192,122,.28) 50%,transparent 80%);transform:translateX(-120%);transition:transform .8s var(--ap-ease)}
.ap-btn:hover::after,.ap-btn:focus-visible::after{transform:translateX(120%)}
.ap-btn:hover{transform:translateY(-1px)}
.ap-btn:active{transform:translateY(0)}
.ap-btn .ap-arrow{display:inline-block;transition:transform .35s var(--ap-ease)}
.ap-btn:hover .ap-arrow{transform:translateX(4px)}

/* cartes d'offre */
.ap-card{transition:transform .6s var(--ap-ease),border-color .4s ease,box-shadow .6s ease}
.ap-card:hover{transform:translateY(-4px);border-color:rgba(184,144,58,.6);box-shadow:0 18px 40px -22px rgba(184,144,58,.35)}

/* parallaxe : le cadre masque, l'image intérieure se déplace */
.ap-par{overflow:hidden}
.ap-par>.ap-par-in{will-change:transform;transform:translate3d(0,var(--py,0),0) scale(1.08)}

/* vidéos intégrées au design : pas de contrôles, fondu depuis l'affiche */
.ap-video{position:relative;overflow:hidden;background:#0a0806 center/cover no-repeat;aspect-ratio:9/16}
.ap-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.1s ease}
.ap-video.ap-playing video{opacity:1}
.ap-video::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,rgba(6,5,4,.35),rgba(6,5,4,0) 30%),linear-gradient(to bottom,rgba(6,5,4,.25),rgba(6,5,4,0) 18%)}

/* menu : ouverture fluide (appliqué par l'intégration sur le menu existant) */
.ap-menu{transition:opacity .35s ease,transform .5s var(--ap-ease),visibility 0s linear .5s}
.ap-menu.ap-open{transition-delay:0s}

@media (prefers-reduced-motion:reduce){
  .ap-js body{animation:none}
  .ap-js .ap-wi,.ap-js .ap-up,.ap-js .ap-rule,.ap-js [data-ap-up],.ap-js [data-ap-rule]{transform:none!important;opacity:1!important;transition:none!important}
  .ap-js [data-ap-title]:not(.ap-title){visibility:visible}
  .ap-btn::after{display:none}
  .ap-card:hover,.ap-btn:hover{transform:none}
  .ap-par>.ap-par-in{transform:none}
  .ap-menu,.ap-menu a,.nav-burger span{transition:none!important}
}
