/* ============================================================
   azazelcompany.fr — onglet « 🎅 Calendrier de l'avent » (v1.29.0)
   Décor animé (canvas), sapin et ses 24 boules, étoile d'Azaelia qui bouge, guirlandes qui scintillent,
   tuiles à droite, fenêtre du cadeau. Les masques de l'étoile et des guirlandes sont tirés de l'image du sapin (1086 × 1448).
   ============================================================ */
.av { position: relative; color: #eef2ff; --av-gold: #ffd54a; --av-red: #d32f2f; --av-ink: #0b1233; isolation: isolate; }
/* v1.29.1 : page réduite de 10 % sur ordinateur et tablette (les téléphones gardent la pleine largeur) */
@media (min-width: 761px) { .av { zoom: .9; } }
.av-preview { margin: 0 0 10px; padding: 8px 14px; border-radius: 12px; background: #3a2a10; color: #ffd28a; font-size: .9rem; }
.av-preview a { color: inherit; }

/* ---------- monde : décor + mise en page ---------- */
.av-world { position: relative; border-radius: 24px; overflow: hidden; min-height: 640px;
  background: linear-gradient(180deg, #0a1030 0%, #16245a 42%, #2c4486 64%, #c9d8f2 86%, #eef4ff 100%);
  box-shadow: 0 18px 50px rgba(8, 12, 40, .35); }
.av-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.av-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

.av-head { position: relative; z-index: 2; text-align: center; padding: 26px 70px 6px; }
.av-title { margin: 0; font-size: clamp(1.9rem, 2.6vw, 3.1rem); font-weight: 700; letter-spacing: .5px; color: #fff;
  text-shadow: 0 2px 0 #8e1010, 0 4px 0 #5c0a0a, 0 0 22px rgba(255, 213, 74, .55), 0 0 44px rgba(255, 90, 90, .35); }
.av-sub { margin: 6px auto 0; max-width: 760px; font-size: 1.02rem; color: #dfe6ff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.av-anim-btn { position: absolute; top: 16px; right: 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 12px;
  background: rgba(10, 16, 48, .55); color: #fff; font: inherit; font-size: .8rem; cursor: pointer; backdrop-filter: blur(6px); }
.av-anim-btn b { color: #8ef0a0; }
.av-anim-btn[aria-pressed="false"] b { color: #ff9b9b; }
.av-anim-btn:hover { background: rgba(10, 16, 48, .8); }

.av-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 24px; padding: 4px 24px 26px; align-items: start; }
.av-stage { display: flex; flex-direction: column; align-items: center; min-width: 0; }

/* ---------- sapin ---------- */
.av-tree { position: relative; width: min(100%, 780px); aspect-ratio: 1086 / 1448; container-type: inline-size; user-select: none; -webkit-user-select: none; }
.av-tree-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .32)); }
/* pointe du sapin cachée par l'étoile (visible seulement quand l'étoile bouge) */
.av-tip { position: absolute; left: 37.937%; top: 17.265%; width: 29.466%; height: 7.735%; pointer-events: none;
  background: linear-gradient(180deg, #0c2412 0%, #17411f 45%, #23592c 100%); clip-path: polygon(40.0% 0.0%, 47.8% 22.3%, 45.0% 24.1%, 58.8% 44.6%, 55.0% 46.4%, 74.4% 69.6%, 70.0% 71.4%, 96.2% 98.2%, -16.2% 98.2%, 10.0% 71.4%, 5.6% 69.6%, 25.0% 46.4%, 21.2% 44.6%, 35.0% 24.1%, 32.2% 22.3%); }
.av-star { position: absolute; left: 32.873%; top: 0; width: 34.53%; height: 25%; z-index: 3; pointer-events: none;
  background: var(--av-src) 50.211% 0 / 289.6% auto no-repeat; transform-origin: 50.133% 91.16%; will-change: transform; }
/* reflet des guirlandes : masque calculé par avent.js à partir de l'image (dorures) */
.av-tinsel { position: absolute; inset: 0; pointer-events: none; z-index: 1; mix-blend-mode: screen; opacity: .95; display: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(112deg, transparent 0 40%, rgba(255, 244, 190, 0) 43%, rgba(255, 250, 225, .95) 50%, rgba(255, 244, 190, 0) 57%, transparent 60% 100%) 0 0 / 260% 100% no-repeat;
  animation: av-shine 5.5s linear infinite; }
.av-tinsel::after { content: ""; position: absolute; inset: 0; background: rgba(255, 210, 90, .22); animation: av-glow 2.6s ease-in-out infinite alternate; }
.av-tinsel.is-ready { display: block; }
.av-lights { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.av-lights i { position: absolute; width: 2.1%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6); border-radius: 50%; mix-blend-mode: screen; opacity: .15;
  background: radial-gradient(circle, #fffef0 0 16%, rgba(255, 226, 120, .95) 30%, rgba(255, 170, 40, .35) 52%, rgba(255, 150, 30, 0) 72%);
  animation: av-tw var(--du, 1.8s) ease-in-out var(--de, 0s) infinite alternate; }
.av-lights i.c1 { background: radial-gradient(circle, #fff 0 16%, rgba(255, 110, 110, .95) 30%, rgba(255, 60, 60, .35) 52%, transparent 72%); }
.av-lights i.c2 { background: radial-gradient(circle, #fff 0 16%, rgba(120, 220, 255, .95) 30%, rgba(60, 170, 255, .35) 52%, transparent 72%); }
.av-lights i.c3 { background: radial-gradient(circle, #fff 0 16%, rgba(140, 255, 150, .95) 30%, rgba(60, 220, 90, .35) 52%, transparent 72%); }
.av-lights i.sp::before, .av-lights i.sp::after { content: ""; position: absolute; left: 50%; top: 50%; width: 260%; height: 9%; border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 240, .95), transparent); transform: translate(-50%, -50%); }
.av-lights i.sp::after { transform: translate(-50%, -50%) rotate(90deg); }
.av-spot { position: absolute; inset: -150% -250%; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), transparent 0, transparent var(--r0, 60px), rgba(4, 7, 26, .74) var(--r1, 200px)); }
.av-spot.on { opacity: 1; }
.av-noimg { position: absolute; inset: 30% 10% auto; z-index: 8; padding: 18px; border-radius: 16px; background: rgba(10, 16, 48, .85); text-align: center; }
.av-noimg a { color: var(--av-gold); }
.av-tree.is-noimg .av-ball, .av-tree.is-noimg .av-star, .av-tree.is-noimg .av-tip, .av-tree.is-noimg .av-tinsel, .av-tree.is-noimg .av-lights { display: none; }

/* ---------- boules ---------- */
.av-ball { position: absolute; left: var(--l); top: var(--t); width: calc(var(--d) * 1%); aspect-ratio: 1; padding: 0; margin: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; z-index: 5; -webkit-tap-highlight-color: transparent; font: inherit; color: inherit; }
.av-ball:focus-visible { outline: 3px solid var(--av-gold); outline-offset: 3px; }
.av-in, .av-half { position: absolute; inset: 0; border-radius: 50%; opacity: 0; pointer-events: none; }
.av-in { inset: -1.5%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 56%, #fffbe2 0%, #ffe07a 22%, #f29a2e 46%, #9a2b12 74%, #3c0b06 100%);
  box-shadow: inset 0 0 0 1.5px rgba(60, 10, 5, .8), 0 0 calc(var(--d) * .25cqw) rgba(255, 210, 90, .8); }
.av-in i { font-style: normal; font-size: calc(var(--d) * .36cqw); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); transform: translateY(8%); }
.av-half { background: var(--av-src) var(--bx) var(--by) / var(--bs) auto no-repeat; }
.av-top { clip-path: polygon(-5% -5%, 105% -5%, 105% 50%, 92% 43%, 81% 55%, 70% 44%, 59% 56%, 48% 45%, 37% 56%, 26% 44%, 15% 55%, 4% 45%, -5% 52%); }
.av-bot { clip-path: polygon(-5% 52%, 4% 45%, 15% 55%, 26% 44%, 37% 56%, 48% 45%, 59% 56%, 70% 44%, 81% 55%, 92% 43%, 105% 50%, 105% 105%, -5% 105%); }
.av-num { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-weight: 700; line-height: 1;
  font-size: calc(var(--d) * .43cqw); color: #fff; -webkit-text-stroke: .09em rgba(70, 12, 12, .9); paint-order: stroke fill;
  text-shadow: 0 .06em .12em rgba(0, 0, 0, .65); transition: transform .3s ease, opacity .3s ease; }
.av-ball.is-big .av-num { color: #ffe680; -webkit-text-stroke-color: rgba(90, 40, 0, .95); text-shadow: 0 0 .35em rgba(255, 220, 90, .9), 0 .06em .12em rgba(0, 0, 0, .6); }
.av-ball.is-ultimate .av-num { color: #fff3b0; font-size: calc(var(--d) * .5cqw); -webkit-text-stroke-color: rgba(110, 30, 0, .95);
  text-shadow: 0 0 .3em #fff, 0 0 .7em rgba(255, 200, 60, .95), 0 0 1.2em rgba(255, 120, 40, .7); }
.av-ball.is-big::after, .av-ball.is-ultimate::after { content: "★"; position: absolute; right: -14%; top: -12%; font-size: calc(var(--d) * .26cqw); color: var(--av-gold);
  text-shadow: 0 0 6px rgba(255, 215, 0, .9); pointer-events: none; animation: av-twinkle 1.6s ease-in-out infinite alternate; }
.av-ball.is-ultimate::after { content: "👑"; right: -18%; top: -22%; font-size: calc(var(--d) * .32cqw); }
.av-ball.is-avenir .av-num { opacity: .92; }
.av-ball.is-avenir:hover .av-num { transform: scale(1.15); }

/* boule du jour : halo doré qui respire + « Ouvre-moi ! » */
.av-ball.is-aujourdhui::before, .av-ball.is-a_recuperer::before { content: ""; position: absolute; inset: -16%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 calc(var(--d) * .05cqw) rgba(255, 230, 120, .95), 0 0 calc(var(--d) * .5cqw) calc(var(--d) * .12cqw) rgba(255, 205, 60, .75);
  animation: av-pulse 1.4s ease-in-out infinite; }
.av-ball.is-aujourdhui .av-num { animation: av-numbeat 1.4s ease-in-out infinite; }
.av-bubble { position: absolute; left: 50%; bottom: 112%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; z-index: 2;
  padding: .25em .7em; border-radius: 999px; background: #fff; color: #b71c1c; font-weight: 700; font-size: clamp(10px, calc(var(--d) * .2cqw), 15px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35); animation: av-bob 1.6s ease-in-out infinite; }
.av-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }

/* boule ratée : grisée, verrouillée */
.av-ball.is-ratee { cursor: not-allowed; }
.av-ball.is-ratee::before { content: ""; position: absolute; inset: -1%; border-radius: 50%; pointer-events: none;
  -webkit-backdrop-filter: grayscale(1) brightness(.55) contrast(.9); backdrop-filter: grayscale(1) brightness(.55) contrast(.9); background: rgba(20, 24, 40, .25); }
.av-ball.is-ratee .av-num { opacity: .55; -webkit-text-stroke-color: rgba(20, 20, 30, .9); }
.av-lock { position: absolute; right: -10%; bottom: -8%; font-size: calc(var(--d) * .26cqw); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); pointer-events: none; }

/* boule ouverte : couvercle soulevé, intérieur lumineux */
.av-ball.is-ouverte .av-in, .av-ball.is-a_recuperer .av-in, .av-ball.is-opening .av-in { opacity: 1; }
.av-ball.is-ouverte .av-half, .av-ball.is-a_recuperer .av-half, .av-ball.is-opening .av-half { opacity: 1; }
.av-ball.is-ouverte .av-top, .av-ball.is-a_recuperer .av-top { transform: translate(-14%, -42%) rotate(-32deg); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.av-ball.is-ouverte .av-num, .av-ball.is-a_recuperer .av-num { place-items: end center; transform: translateY(42%) scale(.62); }
.av-ball.is-ouverte .av-in { animation: av-inglow 3s ease-in-out infinite alternate; }
.av-ball.is-a_recuperer .av-in i { animation: av-numbeat 1s ease-in-out infinite; }
.av-ball.is-opening { z-index: 7; cursor: default; }
.av-ball.is-opening .av-num, .av-ball.is-opening .av-bubble, .av-ball.is-opening::before, .av-ball.is-opening::after { opacity: 0; }
.av-crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.av-crack path { fill: none; stroke: #fff8d0; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px #ffd54a); }
.av-burst { position: absolute; left: 50%; top: 50%; width: 600%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 240, 180, .85) 0 6deg, rgba(255, 240, 180, 0) 6deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0 20%, transparent 68%); mask: radial-gradient(circle, #000 0 20%, transparent 68%); }
.av-flash { position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, rgba(255, 236, 160, .9) 32%, rgba(255, 200, 80, 0) 70%); }

.av-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 0; padding: 8px 16px;
  border-radius: 999px; background: rgba(10, 16, 48, .55); backdrop-filter: blur(6px); font-size: .82rem; color: #e6ebff; }
.av-legend li { display: flex; align-items: center; gap: 7px; }
.lg { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.lg-today { background: radial-gradient(circle, #fff6c4, #ffc93c); box-shadow: 0 0 8px 2px rgba(255, 205, 60, .8); }
.lg-open { background: radial-gradient(circle at 50% 60%, #fffbe2, #f29a2e 55%, #9a2b12); }
.lg-missed { background: #6d6f7c; box-shadow: inset 0 0 0 2px #444655; }
.lg-soon { background: radial-gradient(circle at 35% 30%, #ff8a8a, #c62828 60%, #6b0d0d); }

/* ---------- tuiles de droite ---------- */
.av-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.av-tile { position: relative; padding: 22px 18px 16px; border-radius: 20px; color: #eef2ff;
  background: linear-gradient(180deg, rgba(14, 22, 60, .78), rgba(10, 16, 46, .72)); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 30px rgba(3, 6, 25, .35), inset 0 1px 0 rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.av-tile::before { content: ""; position: absolute; left: 10px; right: 10px; top: -7px; height: 17px; pointer-events: none; border-radius: 10px 10px 0 0;
  background: linear-gradient(#fff, #eef4ff) 0 0 / 100% 8px no-repeat, radial-gradient(circle at 13px 6px, #fff 0 8px, transparent 8.6px) 0 0 / 26px 17px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.av-tile h2 { margin: 0 0 10px; font-size: 1.12rem; color: #fff; }
.av-cd-label { margin: 0; font-size: .85rem; color: #b9c4ee; }
.av-cd { margin: 2px 0 12px; font-size: 1.7rem; font-weight: 700; color: var(--av-gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255, 213, 74, .45); }
.av-progress { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.av-progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; transition: width .8s ease;
  background: repeating-linear-gradient(-45deg, #e53935 0 9px, #fff 9px 18px); box-shadow: 0 0 10px rgba(255, 80, 80, .6); }
.av-prog-txt { margin: 8px 0 0; font-size: .88rem; color: #cfd8ff; }
.av-prog-txt b { color: #fff; font-size: 1.05rem; }
.av-note { margin: 12px 0 8px; font-size: .9rem; }
.av-warn { color: #ffd28a; }
.av-login { width: 100%; justify-content: center; }

.av-glist { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 10px; max-height: 470px; overflow: auto; scrollbar-width: thin; }
.av-gitem { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); }
.av-gitem.is-big { border-color: rgba(255, 213, 74, .45); background: linear-gradient(135deg, rgba(255, 213, 74, .14), rgba(255, 255, 255, .05)); }
.av-gitem.is-ultimate { border-color: rgba(255, 213, 74, .85); background: linear-gradient(135deg, rgba(255, 213, 74, .25), rgba(211, 47, 47, .2)); }
.av-gitem.is-pending { border-style: dashed; border-color: rgba(255, 213, 74, .7); }
.av-gitem.is-new { animation: av-newitem 1.2s ease; }
.av-ghead { display: flex; align-items: center; gap: 8px; }
.av-ghead small { margin-left: auto; color: #aab4de; font-size: .76rem; }
.av-gball { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff8a8a, #c62828 60%, #6b0d0d); box-shadow: 0 0 0 2px rgba(255, 213, 74, .6); }
.av-gchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.av-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .8rem; }
.av-chip img { width: 22px; height: 22px; object-fit: contain; }
.av-chip i { font-style: normal; width: 22px; text-align: center; }
.av-chip b { color: var(--av-gold); }
.av-chip-avoir { background: rgba(0, 161, 24, .25); }
.av-chip-points { background: rgba(120, 90, 255, .25); }
.av-gstate { font-size: .76rem; color: #b9c4ee; }
.av-empty { margin: 0; color: #c6cff5; font-size: .9rem; }
.av-rules p { margin: 0 0 8px; font-size: .88rem; color: #d7defa; line-height: 1.5; }
.av-rules-big { color: #ffe08a !important; }

/* ---------- fenêtre du cadeau ---------- */
.av-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(4, 7, 26, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font-family: var(--font, 'Poppins', system-ui, sans-serif); }
.av-modal canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.av-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 34px 26px 24px; border-radius: 26px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #e53935 0%, #b71c1c 45%, #6d0b0b 100%); border: 3px solid #ffd54a;
  box-shadow: 0 0 0 6px rgba(255, 213, 74, .25), 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 40px rgba(0, 0, 0, .25); }
.av-card::before { content: ""; position: absolute; left: -3px; right: -3px; top: -3px; height: 30px; border-radius: 24px 24px 0 0;
  background: radial-gradient(circle at 16px 26px, #fff 0 14px, transparent 15px) 0 0 / 34px 30px repeat-x, linear-gradient(#fff 0 12px, transparent 12px); }
.av-card.is-ultimate { background: radial-gradient(120% 90% at 50% 0%, #ffcf4a 0%, #e0901a 30%, #b71c1c 70%, #5c0909 100%); }
.av-card h3 { position: relative; margin: 6px 0 2px; font-size: clamp(1.4rem, 4vw, 1.9rem); text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.av-card .av-kicker { display: inline-block; margin-top: 6px; padding: 4px 14px; border-radius: 999px; background: #ffd54a; color: #7a1010; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 0 #b88a00; }
.av-card .av-giftlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 22px 0 18px; }
.av-gift { padding: 16px 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: #3a0c0c; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.av-gift .ico { width: 72px; height: 72px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; font-size: 2.3rem;
  background: radial-gradient(circle, #fff7d1 0 40%, #ffd54a 75%, #e9a800 100%); box-shadow: 0 0 0 4px #fff, 0 0 18px rgba(255, 190, 40, .9); }
.av-gift .ico img { width: 56px; height: 56px; object-fit: contain; }
.av-gift .lbl { font-weight: 700; font-size: .98rem; line-height: 1.25; }
.av-gift .qty { margin-top: 4px; font-size: 1.35rem; font-weight: 700; color: #c62828; }
.av-gift .det { margin-top: 2px; font-size: .74rem; color: #7a5a5a; }
.av-card .av-hint { margin: 0 0 16px; font-size: .86rem; color: #ffe9e9; }
.av-card .av-err { margin: 0 0 12px; color: #ffe08a; font-weight: 700; }
.av-thanks { position: relative; border: 0; border-radius: 999px; padding: 14px 30px; font: inherit; font-size: 1.08rem; font-weight: 700; cursor: pointer; color: #7a1010;
  background: linear-gradient(#fff6c8, #ffd54a 60%, #f0b400); box-shadow: 0 6px 0 #a87800, 0 10px 24px rgba(0, 0, 0, .35); transition: transform .12s ease, box-shadow .12s ease; }
.av-thanks:hover { transform: translateY(-2px); }
.av-thanks:active { transform: translateY(3px); box-shadow: 0 3px 0 #a87800, 0 6px 14px rgba(0, 0, 0, .35); }
.av-thanks[disabled] { opacity: .7; cursor: wait; }
.av-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .25); color: #fff; font-size: 1.2rem; cursor: pointer; }

.av-toast { position: fixed; left: 50%; bottom: 26px; z-index: 10000; transform: translate(-50%, 20px); opacity: 0; max-width: min(92vw, 560px);
  padding: 12px 18px; border-radius: 14px; background: #10183f; color: #fff; border: 1px solid rgba(255, 213, 74, .5); box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  transition: opacity .3s ease, transform .3s ease; font-size: .92rem; text-align: center; }
.av-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- animations ---------- */
@keyframes av-shine { from { background-position: 135% 0; } to { background-position: -35% 0; } }
@keyframes av-glow { from { opacity: .15; } to { opacity: .75; } }
@keyframes av-tw { 0% { opacity: .08; transform: translate(-50%, -50%) scale(.5); } 60% { opacity: .9; } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } }
@keyframes av-twinkle { from { opacity: .45; transform: scale(.85) rotate(-10deg); } to { opacity: 1; transform: scale(1.12) rotate(10deg); } }
@keyframes av-pulse { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes av-numbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes av-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -18%); } }
@keyframes av-inglow { from { filter: brightness(.95); } to { filter: brightness(1.2); } }
@keyframes av-newitem { 0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(255, 213, 74, .9); } 60% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 213, 74, 0); } 100% { transform: none; } }

/* animations coupées (bouton, ou « réduire les animations » de l'appareil) */
.av.av-still .av-tinsel, .av.av-still .av-tinsel::after, .av.av-still .av-lights i, .av.av-still .av-ball::before, .av.av-still .av-ball::after,
.av.av-still .av-num, .av.av-still .av-bubble, .av.av-still .av-in, .av.av-still .av-in i { animation: none !important; }
.av.av-still .av-lights i { opacity: .55; transform: translate(-50%, -50%) scale(.85); }
.av.av-still .av-front { display: none; }
@media (prefers-reduced-motion: reduce) {
  .av .av-tinsel, .av .av-tinsel::after, .av .av-lights i, .av .av-ball::before, .av .av-ball::after, .av .av-num, .av .av-bubble, .av .av-in, .av .av-in i { animation: none !important; }
  .av .av-lights i { opacity: .55; transform: translate(-50%, -50%) scale(.85); }
}

/* mode « Éditer le site » : l'image du sapin reste cliquable */
body.editing .av-tree > :not(.av-tree-img) { pointer-events: none !important; }

/* ---------- petits écrans ---------- */
@media (max-width: 1150px) {
  .av-layout { grid-template-columns: 1fr; }
  .av-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .av-world { background: linear-gradient(180deg, #0a1030 0, #24387e calc(var(--av-gh, 600px) * .7), #eef4ff var(--av-gh, 600px), #dde7f8 calc(var(--av-gh, 600px) + 400px), #c9d6f0 100%); }
}
@media (max-width: 640px) {
  .av-world { border-radius: 18px; }
  .av-head { padding: 52px 14px 4px; }
  .av-anim-btn { top: 12px; right: 12px; }
  .av-layout { padding: 4px 10px 16px; gap: 16px; }
  .av-side { grid-template-columns: 1fr; }
  .av-bubble { font-size: 10px; }
  .av-card { padding: 30px 14px 18px; }
  .av-gift .ico { width: 60px; height: 60px; font-size: 1.9rem; }
}
