/* Calendrier de l'Avent — animation du gain (voir assets/advent/js/advent-win.js) */
.nw { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; overflow: hidden; color: #fff; font-family: "Rajdhani", system-ui, sans-serif; --nw: #ffcf6b; }
.nw-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 42% at 50% 40%, rgba(255, 226, 150, .75), rgba(255, 190, 90, .25) 55%, transparent 75%), radial-gradient(ellipse 110% 90% at 50% 40%, #e0283c 0%, #c01a30 45%, #7d0f22 100%); }
.nw-bg::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -14vh; height: 34vh; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(ellipse at 50% 0, #ffffff, #eaf3ff 55%, #c9dcf5); box-shadow: 0 -10px 40px rgba(255, 255, 255, .35); }
.nw-bg::after { content: ""; position: absolute; left: -30%; width: 70%; bottom: -10vh; height: 24vh; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(ellipse at 50% 0, #fff, #dbe8fb 60%, #b9cff0); opacity: .95; }
.nw-rays { position: absolute; left: 50%; top: 42%; width: 190vmax; height: 190vmax; margin: -95vmax 0 0 -95vmax; pointer-events: none; opacity: .35; filter: blur(3px);
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 160, .30) 0 9deg, transparent 9deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 38%); mask-image: radial-gradient(circle, #000 0, transparent 38%); animation: nw-spin 60s linear infinite; }
.nw-rays--b { opacity: .0; display: none; }
@keyframes nw-spin { to { rotate: 360deg; } }
.nw-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.nw-fx { position: absolute; inset: 0; pointer-events: none; }
.nw-skip { position: absolute; top: 18px; right: 18px; z-index: 3; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; background: rgba(0, 0, 0, .35); color: #fff; font: 700 14px Rajdhani, sans-serif; cursor: pointer; }
.nw.is-done .nw-skip { display: none; }

.nw-stage { position: relative; z-index: 2; width: min(94vw, 680px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.nw-hero { position: relative; width: min(44vw, 27vh); aspect-ratio: 1; margin: 0 0 2vh; }
.nw-ring { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; border: 4px solid var(--nw); opacity: 0; pointer-events: none; box-shadow: 0 0 40px var(--nw), inset 0 0 40px var(--nw); }
.nw-card { position: absolute; inset: 0; display: grid; place-items: center; }
.nw-glow { position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--nw) 85%, #fff) 0, color-mix(in srgb, var(--nw) 40%, transparent) 38%, transparent 70%); filter: blur(10px); animation: nw-pulse 1.6s ease-in-out infinite; }
@keyframes nw-pulse { 50% { transform: scale(1.12); opacity: .8; } }
.nw-img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px var(--nw)); }
.nw-emoji { font-size: 120px; display: grid; place-items: center; }

.nw-day { margin: 0; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 14px; opacity: .8; }
.nw-title { margin: 2px 0 0; font-family: "Titan One", Rajdhani, sans-serif; font-weight: 400; font-size: clamp(22px, min(5.4vw, 6.4vh), 52px); line-height: 1.08; text-wrap: balance; color: #fff; text-shadow: 0 0 22px var(--nw), 0 4px 0 rgba(0, 0, 0, .35); }
.nw--physical .nw-title { text-shadow: none; }
.nw--physical .nw-l { background: linear-gradient(180deg, #fffbe0 0%, #ffd56b 55%, #ff9d2e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px rgba(120, 60, 0, .35); filter: drop-shadow(0 0 14px rgba(255, 190, 60, .75)) drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.nw-l { display: inline-block; }
.nw-sp { display: inline-block; width: .32em; }
.nw-name { margin: 4px 0 0; font-size: clamp(20px, min(4.4vw, 4.6vh), 34px); font-weight: 800; color: color-mix(in srgb, var(--nw) 70%, #fff); }
.nw-extra { margin: 0; font-weight: 700; font-size: 18px; opacity: .95; }
.nw-note { margin: 8px 0 0; font-size: 16px; max-width: 460px; opacity: .9; }
.nw-ok { margin-top: 14px; padding: 14px 34px; border: 0; border-radius: 99px; cursor: pointer; font: 800 18px Rajdhani, sans-serif; text-transform: uppercase; letter-spacing: .5px; color: #3b1d00; background: linear-gradient(180deg, #fff1b8, #ffd56b 45%, #e8a317); box-shadow: 0 5px 0 #9a5d00, 0 0 30px rgba(255, 207, 107, .55); }
.nw-ok:focus-visible, .nw-skip:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.nw--physical .nw-ok { font-size: 20px; padding: 16px 38px; }

/* cadeau physique : la boîte */
.nw-box { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; z-index: 1; }
.nw-base { position: absolute; left: 6px; right: 6px; bottom: 0; height: 100px; border-radius: 8px 8px 12px 12px; background: linear-gradient(90deg, #b3122d, #e8294a 45%, #b3122d); box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .15); }
.nw-base::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; margin-left: -13px; background: linear-gradient(90deg, #e8a317, #fff1b8 50%, #e8a317); }
.nw-lid { position: absolute; left: -4px; right: -4px; top: 14px; height: 50px; border-radius: 8px; background: linear-gradient(90deg, #8f0e24, #d11f40 45%, #8f0e24); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); z-index: 2; }
.nw-lid::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; margin-left: -13px; background: linear-gradient(90deg, #e8a317, #fff1b8 50%, #e8a317); }
.nw-bow { position: absolute; left: 50%; top: -34px; width: 70px; height: 40px; margin-left: -35px; z-index: 3; }
.nw-bow::before, .nw-bow::after { content: ""; position: absolute; top: 0; width: 34px; height: 34px; border: 9px solid #ffd56b; border-radius: 50% 50% 4px 50%; }
.nw-bow::before { left: 0; transform: rotate(-20deg); } .nw-bow::after { right: 0; transform: rotate(110deg); }
.nw-beam { position: absolute; left: 50%; bottom: 50%; width: 230px; height: 92vh; margin-left: -115px; transform-origin: 50% 100%; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(255, 240, 180, .95), rgba(255, 207, 107, .35) 55%, transparent); clip-path: polygon(38% 100%, 62% 100%, 100% 0, 0 0); filter: blur(4px); }

.nw.is-reduced .nw-rays, .nw.is-reduced .nw-glow { animation: none; opacity: .5; }
@media (max-width: 560px) { .nw-ok { padding: 13px 22px; font-size: 16px; } .nw--physical .nw-ok { font-size: 17px; } .nw-box { transform-origin: center; } }
html.nw-open { overflow: hidden; }

/* thème Noël : guirlande lumineuse, sapins, cadeau vert et rouge */
.nw-garland { position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 1; display: flex; justify-content: space-around; pointer-events: none;
  background: radial-gradient(60% 24px at 50% -12px, transparent 98%, transparent) , linear-gradient(#0000, #0000); }
.nw-garland::before { content: ""; position: absolute; left: -2%; right: -2%; top: 8px; height: 3px; background: #14301f; border-radius: 3px; transform: skewY(-.4deg); }
.nw-garland i { position: relative; width: 12px; height: 18px; margin-top: 10px; border-radius: 50% 50% 55% 55%; animation: nw-tw 1.4s ease-in-out infinite; }
.nw-garland i::before { content: ""; position: absolute; left: 3px; top: -6px; width: 6px; height: 7px; background: #333; border-radius: 2px; }
.nw-garland i:nth-child(4n+1) { background: #e63946; color: #e63946; } .nw-garland i:nth-child(4n+2) { background: #ffd56b; color: #ffd56b; }
.nw-garland i:nth-child(4n+3) { background: #2fb457; color: #2fb457; } .nw-garland i:nth-child(4n) { background: #7fb8ff; color: #7fb8ff; }
.nw-garland i { box-shadow: 0 0 14px 3px currentColor; } .nw-garland i:nth-child(odd) { animation-delay: .6s; } .nw-garland i:nth-child(3n) { animation-delay: .25s; }
@keyframes nw-tw { 50% { opacity: .35; transform: scale(.9); } }
.nw-deco { position: absolute; bottom: -10px; font-size: clamp(70px, 18vmin, 170px); z-index: 1; pointer-events: none; opacity: .9; filter: drop-shadow(0 0 24px rgba(255, 207, 107, .5)); animation: nw-sway 4s ease-in-out infinite; transform-origin: 50% 100%; }
.nw-deco--l { left: 1vw; } .nw-deco--r { right: 1vw; animation-delay: 1s; }
@keyframes nw-sway { 50% { rotate: 3deg; } }
.nw-base { background: linear-gradient(90deg, #146b32, #22a04c 45%, #146b32); }
.nw-name { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 0 16px rgba(255, 226, 150, .6); }
.nw-extra, .nw-note, .nw-day { text-shadow: 0 1px 6px rgba(80, 0, 10, .6); }
.nw-lid { background: linear-gradient(90deg, #0f5a29, #1c8f45 45%, #0f5a29); }
.nw-base::after, .nw-lid::after { background: linear-gradient(90deg, #b3122d, #ff4d5e 50%, #b3122d); }
.nw-bow::before, .nw-bow::after { border-color: #e63946; }
.nw-ok { color: #fff; background: linear-gradient(180deg, #3fcf6b, #1f9d4a 50%, #14702f); box-shadow: 0 5px 0 #0a4a1e, 0 0 26px rgba(255, 226, 150, .7); border: 2px solid #ffe08a; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.nw-skip { font-family: Rajdhani, sans-serif; }
@media (prefers-reduced-motion: reduce) { .nw-garland i, .nw-deco { animation: none; } }

/* petites lumières floues (bokeh) */
.nw-bokeh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.nw-bokeh i { position: absolute; border-radius: 50%; filter: blur(5px); mix-blend-mode: screen; opacity: .0; animation: nw-bk 7s ease-in-out infinite; }
.nw-bokeh i:nth-child(1) { left: 6%; top: 62%; width: 90px; height: 90px; background: #e63946; animation-delay: 0s; }
.nw-bokeh i:nth-child(2) { left: 18%; top: 30%; width: 60px; height: 60px; background: #ffd56b; animation-delay: 1.2s; }
.nw-bokeh i:nth-child(3) { left: 30%; top: 78%; width: 110px; height: 110px; background: #2fb457; animation-delay: 2.1s; }
.nw-bokeh i:nth-child(4) { left: 44%; top: 12%; width: 70px; height: 70px; background: #fff1b8; animation-delay: .6s; }
.nw-bokeh i:nth-child(5) { left: 58%; top: 70%; width: 80px; height: 80px; background: #ffd56b; animation-delay: 3s; }
.nw-bokeh i:nth-child(6) { left: 70%; top: 24%; width: 100px; height: 100px; background: #e63946; animation-delay: 1.8s; }
.nw-bokeh i:nth-child(7) { left: 82%; top: 58%; width: 70px; height: 70px; background: #7be0a0; animation-delay: 2.6s; }
.nw-bokeh i:nth-child(8) { left: 90%; top: 20%; width: 56px; height: 56px; background: #ffd56b; animation-delay: .3s; }
.nw-bokeh i:nth-child(9) { left: 12%; top: 46%; width: 44px; height: 44px; background: #fff; animation-delay: 3.6s; }
.nw-bokeh i:nth-child(10) { left: 36%; top: 50%; width: 50px; height: 50px; background: #e63946; animation-delay: 4.2s; }
.nw-bokeh i:nth-child(11) { left: 64%; top: 46%; width: 46px; height: 46px; background: #2fb457; animation-delay: 5s; }
.nw-bokeh i:nth-child(12) { left: 76%; top: 84%; width: 96px; height: 96px; background: #ffd56b; animation-delay: 1.5s; }
.nw-bokeh i:nth-child(13) { left: 50%; top: 88%; width: 64px; height: 64px; background: #fff1b8; animation-delay: 2.8s; }
.nw-bokeh i:nth-child(14) { left: 94%; top: 74%; width: 52px; height: 52px; background: #e63946; animation-delay: 4.6s; }
@keyframes nw-bk { 0%, 100% { opacity: 0; transform: translateY(14px) scale(.8); } 50% { opacity: .6; transform: translateY(-14px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .nw-bokeh i { animation: none; opacity: .25; } }
