/* Décor de Noël ADEPT — saisonnier, sans effet sur les données ni sur les clics. */
#noel-guirlande,#noel-neige,#noel-traineau{pointer-events:none!important}
#noel-guirlande{position:fixed;top:0;left:0;right:0;height:30px;z-index:1190;overflow:hidden;white-space:nowrap;line-height:0}
#noel-guirlande .s{display:inline-block;position:relative;width:42px;height:12px;border-bottom:2px solid #1f4d2b;border-radius:0 0 50% 50%/0 0 100% 100%;vertical-align:top}
#noel-guirlande .s i{position:absolute;left:50%;top:11px;width:9px;height:13px;margin-left:-4.5px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;background:var(--c);box-shadow:0 0 6px 2px var(--c);animation:noel-brille 1.6s ease-in-out infinite alternate}
#noel-guirlande .s i:before{content:"";position:absolute;left:2px;top:-3px;width:5px;height:4px;border-radius:1px;background:#4b5563}
#noel-guirlande .s:nth-child(4n+1) i{--c:#e11d48}
#noel-guirlande .s:nth-child(4n+2) i{--c:#facc15;animation-delay:.4s}
#noel-guirlande .s:nth-child(4n+3) i{--c:#22c55e;animation-delay:.8s}
#noel-guirlande .s:nth-child(4n) i{--c:#38bdf8;animation-delay:1.2s}
@keyframes noel-brille{from{opacity:.45;box-shadow:0 0 2px 0 var(--c)}to{opacity:1;box-shadow:0 0 9px 3px var(--c)}}

#noel-neige{position:fixed;inset:0;width:100%;height:100%;z-index:1180}

#noel-traineau{position:fixed;top:46px;left:0;z-index:1185;width:230px;height:64px;transform:translateX(110vw);animation:noel-vol 14s linear forwards}
#noel-traineau svg{width:100%;height:100%;overflow:visible;animation:noel-houle 1.4s ease-in-out infinite alternate}
@keyframes noel-vol{from{transform:translateX(110vw)}to{transform:translateX(-280px)}}
@keyframes noel-houle{from{transform:translateY(-5px) rotate(-2deg)}to{transform:translateY(6px) rotate(2deg)}}

#noel-pere{position:fixed;right:-18px;bottom:34%;z-index:1195;width:74px;height:88px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;transform:translateX(22px) rotate(-12deg);transition:transform .35s cubic-bezier(.3,1.6,.5,1);-webkit-tap-highlight-color:transparent}
#noel-pere:hover,#noel-pere:focus-visible,#noel-pere.coucou{transform:translateX(0) rotate(-4deg)}
#noel-pere:focus-visible{outline:3px solid #facc15;outline-offset:2px;border-radius:12px}
#noel-pere svg{width:100%;height:100%;filter:drop-shadow(0 4px 8px #0003)}
#noel-pere .bonnet{transform-origin:50px 40px;animation:noel-pompon 3s ease-in-out infinite}
@keyframes noel-pompon{0%,100%{transform:rotate(0)}50%{transform:rotate(5deg)}}

#noel-bulle{position:fixed;right:76px;bottom:calc(34% + 6px);z-index:10001;width:min(290px,calc(100vw - 100px));background:#fff;color:#1f2937;border:2px solid #b91c1c;border-radius:16px;padding:14px 14px 12px;font:500 14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 12px 30px #0003}
#noel-bulle:after{content:"";position:absolute;right:-11px;bottom:22px;border:10px solid transparent;border-left-color:#b91c1c;border-right:0}
#noel-bulle b{display:block;color:#b91c1c;font-size:16px;margin-bottom:4px}
#noel-bulle p{margin:0 0 10px}
#noel-bulle .actions{display:flex;flex-wrap:wrap;gap:6px}
#noel-bulle button{min-height:36px;border:0;border-radius:9px;padding:7px 11px;background:#166534;color:#fff;font:600 13px system-ui;cursor:pointer}
#noel-bulle button.doux{background:#f1f5f9;color:#334155}
#noel-bulle .x{position:absolute;top:4px;right:6px;min-height:0;padding:2px 7px;background:transparent;color:#64748b;font-size:18px}

#noel-retour{position:fixed;right:0;bottom:34%;z-index:1195;width:34px;height:38px;border:0;border-radius:10px 0 0 10px;background:#b91c1c;color:#fff;font-size:18px;cursor:pointer;box-shadow:0 4px 12px #0003;padding:0}

.noel-coiffe{position:relative;display:inline-block;width:fit-content;line-height:0}
.noel-chapeau{position:absolute;pointer-events:none;z-index:2;width:34px;height:30px;top:-15px;right:-12px;transform:rotate(18deg)}
.app-brand .mark{position:relative}
.app-brand .mark .noel-chapeau{width:26px;height:23px;top:-13px;right:-9px}
.noel-coiffe .noel-chapeau{width:30%;height:auto;aspect-ratio:34/30;top:-12%;right:-6%}

.noel-neige-toit{position:absolute;left:14px;right:14px;top:0;height:13px;pointer-events:none;z-index:1;border-radius:0 0 10px 10px;background:radial-gradient(ellipse 13px 9px at 50% 0,#fff 98%,transparent) 0 4px/26px 9px repeat-x,radial-gradient(ellipse 9px 6px at 50% 0,#fff 98%,transparent) 13px 4px/26px 9px repeat-x,linear-gradient(#fff,#fff) 0 0/100% 5px no-repeat;filter:drop-shadow(0 2px 1px #0f172a33)}
.noel-voeux{position:relative;z-index:2;display:inline-flex;align-items:center;gap:6px;margin:8px 8px 0 0;padding:5px 12px;border-radius:999px;background:#b91c1c;color:#fff!important;font:700 13px system-ui;box-shadow:0 3px 10px #b91c1c44}

@media(max-width:760px){
  #noel-guirlande{height:20px}
  #noel-guirlande .s{width:34px;height:7px}
  #noel-guirlande .s i{top:6px;width:7px;height:10px;margin-left:-3.5px}
  #noel-traineau{top:58px;width:170px;height:48px}
  #noel-pere{width:54px;height:66px;bottom:58%;transform:translateX(6px) rotate(-12deg)}
  #noel-bulle{right:58px;bottom:calc(58% - 40px)}
  #noel-retour{bottom:58%}
}
@media(prefers-reduced-motion:reduce){
  #noel-guirlande .s i,#noel-pere .bonnet,#noel-traineau svg{animation:none}
  #noel-traineau{display:none}
  #noel-pere{transition:none}
}
body.noel-calme #noel-guirlande .s i,body.noel-calme #noel-pere .bonnet{animation:none}
body.noel-calme #noel-traineau,body.noel-calme #noel-neige{display:none}
@media print{#noel-guirlande,#noel-neige,#noel-traineau,#noel-pere,#noel-bulle,#noel-retour,.noel-chapeau,.noel-neige-toit,.noel-voeux{display:none!important}}
