/* Sam'Relaxe — bandeau cookies habité par le hibou (v17.32.0, 2026-11-08), chargé sur toutes les pages Universe.
   Panneau en relief, le hibou perché sur le bord : il se réjouit au survol d'« Accepter », reste calme au survol de « Refuser »
   Les deux boutons ont la même forme et la même couleur (EDPB, CNIL). */
@font-face{font-family:"SR Cormorant";src:url(/wp-content/themes/samrelaxe-child/assets/universe/assets/cormorant-latin.woff2) format("woff2");font-weight:300 700;font-display:swap}
@font-face{font-family:"SR Cormorant";src:url(/wp-content/themes/samrelaxe-child/assets/universe/assets/cormorant-italic-latin.woff2) format("woff2");font-style:italic;font-weight:300 700;font-display:swap}

html body #srCookieBanner{--hb-l:13.5rem}
html body #srCookieBanner .sr-cookie-inner{position:relative;overflow:visible!important;max-width:min(92vw,31rem);
  padding:1.25rem 1.3rem 1.2rem!important;border-radius:26px!important;border:0!important;
  background:linear-gradient(160deg,color-mix(in srgb,#09212d 90%,#f5db9e),color-mix(in srgb,#09212d 84%,#03131e))!important;
  box-shadow:22px 28px 60px #000b,-10px -10px 30px color-mix(in srgb,#f5db9e 6%,transparent),inset 0 1px 0 color-mix(in srgb,#f5db9e 24%,transparent),0 0 0 1px color-mix(in srgb,#d8b571 20%,transparent)!important;
  transform:perspective(1200px) rotateX(var(--hb-rx,0deg)) rotateY(var(--hb-ry,0deg));transition:transform .25s cubic-bezier(.23,1,.32,1)}
html body #srCookieBanner.hb-entre .sr-cookie-inner{animation:hb-panneau .6s cubic-bezier(.23,1,.32,1) both}
@keyframes hb-panneau{from{opacity:0;transform:translateY(26px) scale(.97)}}
/* Le texte laisse la place au hibou en haut à droite */
html body #srCookieBanner .sr-cookie-text strong{display:inline-flex!important;align-items:center;padding:.38rem .85rem;margin:0 0 .75rem;border:1px solid transparent;border-radius:999px;
  font:600 .7rem/1 DM,"DM Sans",system-ui,sans-serif!important;letter-spacing:.14em;text-transform:uppercase;color:#f5db9e!important;
  background:linear-gradient(180deg,color-mix(in srgb,#03131e 82%,transparent),color-mix(in srgb,#09212d 92%,transparent)) padding-box,linear-gradient(160deg,#f5db9e,#926727 38%,#d8b571 62%,#926727) border-box;
  box-shadow:inset 0 2px 6px #000a,0 3px 8px #0007}
html body #srCookieBanner .sr-cookie-text p{font-size:.86rem!important;line-height:1.55!important;color:color-mix(in srgb,#f3ead8 82%,transparent)!important}
html body #srCookieBanner .sr-cookie-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:.75rem!important;margin-top:1rem!important}
html body #srCookieBanner .sr-cookie-btn{min-height:2.9rem;border-radius:999px!important;font-weight:600;border:0!important;color:#f5db9e!important;
  background:linear-gradient(160deg,color-mix(in srgb,#09212d 90%,#f5db9e),#071b26)!important;box-shadow:7px 9px 18px #000a,-4px -4px 12px color-mix(in srgb,#f5db9e 6%,transparent),inset 0 1px 0 color-mix(in srgb,#f5db9e 22%,transparent),0 0 0 1px color-mix(in srgb,#d8b571 18%,transparent)!important;
  transition:transform .15s cubic-bezier(.23,1,.32,1),box-shadow .25s,color .25s}
html body #srCookieBanner .sr-cookie-btn:hover{transform:translateY(-1px)}
html body #srCookieBanner .sr-cookie-btn:active{transform:none;box-shadow:inset 6px 7px 14px #000a,0 0 0 1px color-mix(in srgb,#d8b571 18%,transparent)!important}
html body #srCookieBanner[data-humeur=joie] .sr-cookie-accept{color:#fff3cf!important;box-shadow:7px 9px 18px #000a,0 0 22px color-mix(in srgb,#d8b571 38%,transparent),inset 0 1px 0 color-mix(in srgb,#f5db9e 30%,transparent),0 0 0 1px color-mix(in srgb,#d8b571 45%,transparent)!important}
/* Le hibou et sa bulle */
.hb-hibou{position:absolute;right:-.4rem;bottom:calc(100% - .6rem);width:var(--hb-l);aspect-ratio:480/439;pointer-events:none;z-index:2;transform-origin:50% 100%}
.hb-hibou img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;filter:drop-shadow(0 10px 14px #000b);
  transform-origin:50% 100%;transform:translateX(var(--hb-tx,0px)) rotate(var(--hb-rot,0deg));transition:opacity .18s ease,transform .6s cubic-bezier(.23,1,.32,1)}
.hb-hibou img.vu{opacity:1}
.hb-hibou::before{content:"";position:absolute;inset:10% 15% 0;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,#f5db9e 34%,transparent),transparent);opacity:0;transition:opacity .3s;z-index:-1}
#srCookieBanner.hb-entre .hb-hibou{animation:hb-pose .7s .25s cubic-bezier(.23,1,.32,1) both}
@keyframes hb-pose{from{opacity:0;transform:translate(30px,-46px) rotate(8deg) scale(.86)}}
.hb-hibou.respire{animation:hb-respire 4.6s ease-in-out infinite}
@keyframes hb-respire{50%{transform:translateY(-2px) scaleY(1.015)}}
[data-humeur=joie] .hb-hibou{animation:hb-saut .55s cubic-bezier(.23,1,.32,1)}
[data-humeur=joie] .hb-hibou::before{opacity:1}
@keyframes hb-saut{40%{transform:translateY(-10px)}}
[data-humeur=calme] .hb-hibou{animation:hb-hoche .9s ease-in-out}
@keyframes hb-hoche{30%{transform:rotate(-3deg)}65%{transform:rotate(2deg)}}
.hb-bulle{position:absolute;right:calc(var(--hb-l) - 2.2rem);bottom:calc(100% + 5.2rem);max-width:15.5rem;padding:.75rem .95rem;border-radius:18px 18px 4px 18px;pointer-events:none;z-index:3;
  font:italic 400 1.02rem/1.32 "SR Cormorant",Cormorant,"Cormorant Garamond",Georgia,serif;color:#f5db9e;background:linear-gradient(160deg,color-mix(in srgb,#09212d 88%,#f5db9e),#071b26);
  box-shadow:8px 10px 24px #000a,inset 0 1px 0 color-mix(in srgb,#f5db9e 22%,transparent),0 0 0 1px color-mix(in srgb,#d8b571 18%,transparent);
  opacity:0;transform:translateY(6px) scale(.97);transition:opacity .25s,transform .35s cubic-bezier(.23,1,.32,1)}
.hb-bulle.vu{opacity:1;transform:none}
/* Étincelles de joie */
.hb-etincelle{position:absolute;width:6px;height:6px;border-radius:50%;background:#f5db9e;box-shadow:0 0 8px #d8b571;pointer-events:none;z-index:3;
  animation:hb-etincelle .8s cubic-bezier(.23,1,.32,1) forwards}
@keyframes hb-etincelle{from{opacity:1;transform:translate(0,0) scale(1)}to{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.3)}}
/* Le hibou qui s'envole (clone posé sur la page quand le bandeau se ferme) */
.hb-envol{position:fixed;z-index:120;pointer-events:none;transition:transform 1s cubic-bezier(.55,0,.25,1),opacity 1s ease}
.hb-envol img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 14px #000b)}
.hb-envol .hb-bulle{opacity:1;transform:none}
@media (max-width:760px){
  html body #srCookieBanner{--hb-l:9.5rem}
  html body #srCookieBanner .sr-cookie-inner{max-width:none;padding:1rem 1rem 1rem!important;border-radius:22px!important}
  html body #srCookieBanner .sr-cookie-text p{font-size:.78rem!important}
  .hb-bulle{right:calc(var(--hb-l) - 1.4rem);bottom:calc(100% + 3.4rem)}
  html body #srCookieBanner .sr-cookie-text strong{display:inline-flex!important}
  .hb-bulle{max-width:12rem;font-size:.92rem}
}
@media (prefers-reduced-motion:reduce){
  #srCookieBanner .sr-cookie-inner,#srCookieBanner .hb-hibou,.hb-hibou.respire{animation:none!important;transform:none!important}
  .hb-etincelle{display:none}.hb-envol{transition:opacity .3s}
}
html body #srCookieBanner .hb-bulle{font-family:"SR Cormorant",Cormorant,Georgia,serif!important;font-size:1.08rem!important;line-height:1.3!important;margin:0!important;color:#f5db9e!important}
/* v17.38.8 : le hibou ne cache plus la page. Il est plus petit et dépasse peu du bandeau ; sa phrase est une ligne du bandeau
   (plus de bulle au-dessus). Sur téléphone, la phrase disparaît (pas de survol au doigt, donc pas d'humeurs) et le hibou se fait discret. */
html body #srCookieBanner{--hb-l:8.5rem}
html body #srCookieBanner .sr-cookie-text{padding-right:calc(var(--hb-l) * .55)}
html body #srCookieBanner .hb-hibou{bottom:calc(100% - 3.4rem);right:-1.9rem}
html body #srCookieBanner .sr-cookie-text p.hb-bulle{font-size:1.06rem!important;line-height:1.3!important}
html body #srCookieBanner .hb-bulle{position:static!important;max-width:none;padding:0;margin:0 0 .5rem!important;border-radius:0;background:none;box-shadow:none;
  font-size:1.04rem!important;opacity:1;transform:none;transition:opacity .2s}
html body #srCookieBanner .hb-bulle:not(.vu){opacity:0}
@media (max-width:760px){
  html body #srCookieBanner{--hb-l:4.2rem}
  html body #srCookieBanner .sr-cookie-text{padding-right:0}
  html body #srCookieBanner .hb-hibou{bottom:calc(100% - 2.9rem);right:.6rem}
  html body #srCookieBanner .hb-bulle{display:none!important}
}
