/* =====================================================================
   CALENDRIER 3D : rendu photoreel (assets/3d/calendar.webp) + date dessinee dans un <canvas> 2D
   (aucune transformation CSS imbriquee : rendu identique sur Safari, Chrome, Firefox)
   ===================================================================== */
.pop--cal{left:calc(-1 * var(--u));bottom:calc(-4.2 * var(--u));width:calc(44.5 * var(--u))}
.cal3d{--rx:0deg;--ry:0deg;transform:perspective(calc(60 * var(--u))) rotateX(var(--rx)) rotateY(var(--ry));transition:transform .9s var(--ease)}
/* levitation lente : montee et descente de 1 cqw, tres legere inclinaison, ombre au sol synchronisee */
.cal3d__float{animation:calFloat 8.5s ease-in-out infinite;will-change:transform;filter:drop-shadow(0 calc(2.2 * var(--u)) calc(2.4 * var(--u)) rgba(0,0,0,.5)) drop-shadow(0 calc(.5 * var(--u)) calc(.8 * var(--u)) rgba(0,0,0,.45))}
@keyframes calFloat{0%,100%{transform:translate3d(0,0,0) rotate(-.25deg)}50%{transform:translate3d(0,calc(-1.1 * var(--u)),0) rotate(.3deg)}}
.cal3d__ground{position:absolute;left:12%;right:14%;bottom:calc(-1.2 * var(--u));height:calc(3.4 * var(--u));border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(0,0,0,.62),rgba(0,0,0,.28) 55%,transparent);filter:blur(1px);animation:calGround 8.5s ease-in-out infinite}
@keyframes calGround{0%,100%{transform:scale(1);opacity:.95}50%{transform:scale(.9);opacity:.7}}
.cal3d__img{display:block;width:100%;height:auto}
.cal3d__cv{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity .5s var(--ease)}
.cal3d.is-ready .cal3d__cv{opacity:1}
.cal3d.is-ready .cal3d__img{visibility:hidden}
@media (prefers-reduced-motion:reduce){.cal3d__float,.cal3d__ground{animation:none}}
