/* PPF Prestige — couche UX (chargée sans bloquer l'affichage). Le strict nécessaire au 1er affichage est dans ux-critique.css, inséré dans chaque page par tools/ux_global.py */
/* ── Barre d'action mobile ───────────────────────── */
.ux-bar{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;gap:1px;background:rgba(255,255,255,.08);border-top:1px solid rgba(201,168,76,.35);padding-bottom:env(safe-area-inset-bottom);transform:translateY(110%);transition:transform .3s cubic-bezier(.4,0,.2,1)}
.ux-bar.show{transform:none}
.ux-bar a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;font-family:'Montserrat',sans-serif;font-weight:800;font-size:12px;letter-spacing:.12em;text-transform:uppercase;text-decoration:none}
.ux-bar .ux-call{background:#0b0b0b;color:#fff}
.ux-bar .ux-quote{background:#CC0000;color:#fff}
.ux-bar svg{width:16px;height:16px;flex-shrink:0}
body.ux-has-bar{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
@media(min-width:768px){.ux-bar{display:none}body.ux-has-bar{padding-bottom:0}}

/* ── Bannière Loi 25 (s'affiche seulement si une mesure d'audience est configurée) ── */
.ux-consent{position:fixed;left:12px;right:12px;bottom:12px;z-index:99999;max-width:560px;margin:0 auto;background:#0d0d0d;border:1px solid rgba(201,168,76,.35);padding:18px;font-family:'DM Sans',sans-serif;font-size:14px;line-height:1.6;color:rgba(255,255,255,.85);box-shadow:0 20px 60px rgba(0,0,0,.6)}
.ux-consent a{color:#C9A84C}
.ux-consent-btns{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.ux-consent button{flex:1;min-height:44px;padding:0 16px;font-family:'Montserrat',sans-serif;font-weight:800;font-size:11px;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff}
.ux-consent button.yes{background:#C9A84C;border-color:#C9A84C;color:#060606}

/* ══ MOUVEMENT DES BLOCS (révélation au défilement) ══
   Les classes sont ajoutées par ux.js seulement : sans JS, tout reste visible. */
.ux-rv{opacity:0;transform:translate3d(0,12px,0);transition:opacity 1.2s cubic-bezier(.25,.8,.3,1),transform 1.3s cubic-bezier(.25,.8,.3,1),filter 1.2s ease;transition-delay:var(--uxd,0ms);will-change:opacity,transform}
.ux-rv.ux-in{opacity:1;transform:none}
.ux-rv-l{transform:translate3d(-14px,0,0)}
.ux-rv-r{transform:translate3d(14px,0,0)}
.ux-rv-z{transform:scale(.985)}
.ux-rv-z.ux-in{filter:none}
/* Titres : montent derrière un masque */
.ux-rv-h{opacity:1;transform:none;clip-path:inset(0 0 100% 0);transition:clip-path 1.4s cubic-bezier(.45,0,.2,1);transition-delay:var(--uxd,0ms)}
.ux-rv-h > *,.ux-rv-h{will-change:clip-path}
.ux-rv-h.ux-in{clip-path:inset(-20% -5% -25% -5%)}
/* Images : volet qui s'ouvre + léger zoom arrière */
.ux-rv-img{opacity:1;transform:none;clip-path:inset(0 0 0 100%);transition:clip-path 1.5s cubic-bezier(.45,0,.2,1);transition-delay:var(--uxd,0ms)}
.ux-rv-img.ux-in{clip-path:inset(0 0 0 0)}
.ux-rv-img img,img.ux-rv-img{transform:scale(1.04);transition:transform 2.2s cubic-bezier(.2,.7,.2,1)}
.ux-rv-img.ux-in img,img.ux-rv-img.ux-in{transform:scale(1)}
/* Cartes : soulèvement au survol */
.ux-lift{transition:transform .5s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .35s}
@media (hover:hover){
  .ux-lift.ux-in:hover{box-shadow:0 18px 40px rgba(0,0,0,.55),0 0 0 1px rgba(201,168,76,.35);border-color:rgba(201,168,76,.45)}
  .ux-lift:hover img{transform:scale(1.02)}
  .ux-lift img{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
}
/* Reflet doré qui balaie les boutons rouges principaux */
.btn-p,.ppf-nav-cta,.ppfc-cta,.ppf-fcta,.uxq-next,.ux-quote,.ux-cmp-mcta{position:relative;overflow:hidden}
.btn-p::after,.ppf-nav-cta::after,.ppfc-cta::after,.ppf-fcta::after,.uxq-next::after,.ux-quote::after,.ux-cmp-mcta::after{content:'';position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.14),transparent);transform:translateX(-160%) skewX(-20deg);animation:uxShine 7s ease-in-out 3;pointer-events:none}
@keyframes uxShine{0%,70%{transform:translateX(-160%) skewX(-20deg)}100%{transform:translateX(330%) skewX(-20deg)}}
/* Image du hero : lente respiration */
.hero-video{animation:uxBreath 22s ease-in-out 2.5s infinite alternate}
@keyframes uxBreath{from{transform:scale(1)}to{transform:scale(1.025)}}
/* Barre de progression de lecture (fine ligne or sous le menu) */
.ux-prog{position:fixed;top:0;left:0;height:2px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#C9A84C,#CC0000);z-index:10001;pointer-events:none}
@media (prefers-reduced-motion:reduce){
  .ux-rv,.ux-rv-h,.ux-rv-img{opacity:1!important;transform:none!important;clip-path:none!important;filter:none!important}
  .ux-rv-img img{transform:none!important}
  .hero-video,.btn-p::after,.ppf-nav-cta::after,.ppfc-cta::after,.ppf-fcta::after,.uxq-next::after,.ux-quote::after,.ux-cmp-mcta::after{animation:none!important}
  .ux-prog{display:none}
}

/* ══ HERO VIVANT ══ */
/* Lettres de « PPF Prestige » : elles tombent et rebondissent, puis un reflet de pellicule les balaie en vague */
.ux-hero-fun .hero-h1{perspective:600px}
.ux-ch{display:inline-block;transform-origin:50% 100%;animation:uxDrop 1.2s cubic-bezier(.25,.8,.3,1) both;animation-delay:calc(.35s + var(--i) * 45ms)}
@keyframes uxDrop{0%{opacity:0;transform:translate3d(0,-22%,0) rotateX(25deg) scale(.96)}60%{opacity:1}100%{opacity:1;transform:none}}
.ux-hero-fun .h1-l2 .ux-ch,.ux-split em .ux-w,.ux-split .ux-gold .ux-w{background:linear-gradient(100deg,#C9A84C 0%,#C9A84C 40%,#fff6d6 50%,#C9A84C 60%,#C9A84C 100%);background-size:300% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.ux-hero-fun .h1-l2 .ux-ch{animation:uxDrop 1.2s cubic-bezier(.25,.8,.3,1) both,uxSheen 6s ease-in-out 1;animation-delay:calc(.35s + var(--i) * 45ms),calc(2.4s + var(--i) * 70ms)}
@keyframes uxSheen{0%,55%{background-position:100% 0}85%,100%{background-position:0 0}}
/* La photo : parallaxe au défilement + suit la souris */
.ux-hero-fun .hero-video{translate:calc(var(--mx,0) * -7px) calc(var(--sy,0) * .2px + var(--my,0) * -5px)}
.ux-hero-fun .hero-content{translate:calc(var(--mx,0) * 5px) calc(var(--sy,0) * -.06px + var(--my,0) * 3px);opacity:calc(1 - var(--sy,0) / 900)}
.ux-hero-fun .hero-video,.ux-hero-fun .hero-content{transition:translate .8s ease-out}
/* Les lignes du séparateur se dessinent */
.ux-hero-fun .hd-l,.ux-hero-fun .hd-l2{transform-origin:0 50%;animation:uxLine 1.3s cubic-bezier(.45,0,.2,1) both .9s}
.ux-hero-fun .hd-d{animation:uxPop .8s cubic-bezier(.25,.8,.3,1) both 1.4s}
@keyframes uxLine{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* Boutons du hero : le rouge respire */
.ux-hero-fun .btn-p{box-shadow:0 10px 30px rgba(204,0,0,.28)}

.ux-hero-fun .btn-p,.ux-hero-fun .btn-s{transition:transform .4s cubic-bezier(.25,.8,.3,1),background .3s,border-color .3s}
.ux-hero-fun .btn-p:hover,.ux-hero-fun .btn-s:hover{transform:translate3d(0,-2px,0)}
.ux-hero-fun .btn-s:hover{border-color:#C9A84C;color:#fff!important}
/* Barre 5★ / 500+ / 100 % : les cases flottent chacune à son rythme, s'inclinent en 3D au survol */
.ux-hero-fun .trust-bar{perspective:700px}
.ux-hero-fun .trust-item{animation:uxFloat 7s ease-in-out infinite;animation-delay:calc(1.8s + var(--i,0) * .8s);transform-style:preserve-3d;transition:transform .6s ease-out,background .3s}
.ux-hero-fun .trust-item:hover{animation:none;transform:rotateX(var(--rx,0)) rotateY(var(--ry,0)) scale(1.015);background:rgba(201,168,76,.08)}
@keyframes uxFloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-3px,0)}}
.ux-hero-fun .trust-num{display:inline-block;transition:transform .6s cubic-bezier(.25,.8,.3,1)}
.ux-hero-fun .trust-item:hover .trust-num{transform:translateZ(10px) scale(1.04)}
/* Point « en direct » du sur-titre : onde */
.ux-hero-fun .kpulse{position:relative;animation:none}
.ux-hero-fun .kpulse::after{content:'';position:absolute;inset:-4px;border-radius:50%;border:1px solid #C9A84C;animation:uxRing 3.2s ease-out infinite}
@keyframes uxRing{from{transform:scale(.7);opacity:.6}to{transform:scale(1.8);opacity:0}}

/* ══ ÉTOILES ══ (toutes les ★ du site) : éclosion en cascade, puis vague de scintillement */
.ux-star,.ux-star-i{display:inline-block;color:inherit;animation-play-state:paused}
.ux-star{animation:uxStarIn 1s cubic-bezier(.25,.8,.3,1) both;animation-delay:calc(1.2s + var(--i) * 110ms);animation-play-state:paused}
.ux-star-i{animation:uxTwinkle 5s ease-in-out 2;animation-delay:calc(2.4s + var(--i) * 140ms);animation-play-state:paused}
.ux-star-late .ux-star{animation-delay:calc(.15s + var(--i) * 110ms)}
.ux-star-late .ux-star .ux-star-i{animation-delay:calc(1.3s + var(--i) * 140ms)}
.ux-star-go .ux-star,.ux-star-go .ux-star-i{animation-play-state:running}
@keyframes uxStarIn{0%{transform:scale(.7);opacity:0}100%{transform:none;opacity:1}}
@keyframes uxTwinkle{0%,70%,100%{transform:none;opacity:1}80%{transform:scale(1.12);opacity:1}86%{opacity:.85}92%{transform:none;opacity:1}}

/* ══ TITRES ══ les mots basculent vers l'avant un à un, le doré reçoit le reflet de pellicule */
.ux-split{perspective:700px;opacity:1!important;transform:none!important}
.ux-split .ux-w{display:inline-block;transform-origin:50% 100%;opacity:0;transform:translate3d(0,.25em,0) rotateX(-20deg);transition:opacity 1s ease,transform 1.2s cubic-bezier(.25,.8,.3,1);transition-delay:calc(var(--i) * 60ms)}
.ux-split.ux-in .ux-w{opacity:1;transform:none}
.ux-split.ux-in em .ux-w{animation:uxSheen 6s ease-in-out 1;animation-delay:calc(1.2s + var(--i) * 90ms)}

@media (prefers-reduced-motion:reduce){
  .ux-ch,.ux-star,.ux-star-i,.ux-hero-fun .trust-item,.ux-hero-fun .btn-p,.ux-hero-fun .hd-l,.ux-hero-fun .hd-l2,.ux-hero-fun .hd-d,.ux-hero-fun .kpulse::after,.ux-split.ux-in em .ux-w{animation:none!important}
  .ux-split .ux-w{opacity:1!important;transform:none!important}
  .ux-hero-fun .hero-video,.ux-hero-fun .hero-content{translate:none!important;opacity:1!important}
}

/* ══ BLOC MARIO ══ au passage du curseur, le bloc est « frappé » par en dessous :
   il saute, retombe en s'écrasant un peu, puis rebondit. Rejoue à chaque nouveau passage. */
.ux-bump{transform-origin:50% 100%}
.ux-bump.ux-hit{animation:uxBump .7s cubic-bezier(.25,.8,.3,1) both!important}
@keyframes uxBump{
  0%{transform:translate3d(0,0,0) scale(1,1)}
  25%{transform:translate3d(0,-6px,0) scale(.995,1.01)}
  50%{transform:translate3d(0,0,0) scale(1.008,.99)}
  68%{transform:translate3d(0,-1.5px,0) scale(1,1)}
  84%{transform:translate3d(0,0,0) scale(1,1)}
  100%{transform:translate3d(0,0,0) scale(1,1)}
}
@media (prefers-reduced-motion:reduce){.ux-bump.ux-hit{animation:none!important}}

/* Contraste (pied de page et badge Google des avis) : texte pâle remonté au seuil lisible */
.ppf-footer-bar,.ppf-footer-bar span{color:rgba(255,255,255,.62)!important}
.ppf-footer-contact-label{color:rgba(255,255,255,.62)!important}
.avis-google-badge a{color:#C9A84C!important}
/* Case à cocher du formulaire de service : cible de 24 px */
input[type="checkbox"][name="voiture_courtoisie"]{width:22px!important;height:22px!important}

/* blocs hors écran : animations en pause (voir uxOffscreen) */
.ux-off,.ux-off *,.ux-off::before,.ux-off::after,.ux-off *::before,.ux-off *::after{animation-play-state:paused!important}
