/* Calendrier de l'Avent — Brainrot Fortnite
 * Portee : tout est sous .noel / .noel-* (aucune regle globale, topbar et menu intacts).
 * .content-grid : on ne touche QUE max-width (sidebar.js gere marges et transform).
 */
.content-grid.noel-grid { max-width: min(1480px, calc(100% - 200px)); }
@media (max-width: 1365px) { .content-grid.noel-grid { max-width: calc(100% - 140px); } }
@media (max-width: 680px) { .content-grid.noel-grid { max-width: 100%; } }

.noel {
  --noel-night: #0b1430;
  --noel-night-2: #111d44;
  --noel-panel: rgba(17, 27, 60, .92);
  --noel-line: rgba(148, 178, 255, .16);
  --noel-gold: #ffcc4d;
  --noel-gold-2: #f59e0b;
  --noel-red: #c81d3a;
  --noel-red-2: #7f1022;
  --noel-green: #1f8a4c;
  --noel-green-2: #0d4a2a;
  --noel-wood: #6b3416;
  --noel-wood-2: #3d1a08;
  --noel-snow: #f4f8ff;
  --noel-text: #f3f6ff;
  --noel-muted: #a9b6d8;
  color: var(--noel-text);
  font-family: Rajdhani, "Titillium Web", system-ui, sans-serif;
  padding-bottom: 40px;
  overflow-x: clip;
  margin-top: -84px; /* .content-grid reserve 112px pour .section-banner, absente ici */
}
.noel *, .noel *::before, .noel *::after { box-sizing: border-box; }
.noel-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= BANNIERE ================= */
.noel-hero {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 320px;
  display: grid; place-items: center; padding: 34px 24px 54px;
  background: radial-gradient(120% 90% at 50% 0%, #1d3a86 0%, #13235a 45%, #0a1230 100%);
  box-shadow: 0 18px 50px rgba(3, 8, 28, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  isolation: isolate;
}
.noel-hero-sky { position: absolute; inset: 0; z-index: -1; }
.noel-aurora { position: absolute; inset: -30% 0 35% 35%; background: radial-gradient(closest-side, rgba(74, 222, 128, .35), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(56, 189, 248, .28), transparent 70%); filter: blur(30px); animation: noel-aurora 14s ease-in-out infinite alternate; }
.noel-moon { position: absolute; top: 26px; left: 46%; width: 34px; height: 34px; border-radius: 50%; background: #fff7d6; box-shadow: 0 0 40px 12px rgba(255, 243, 190, .35); }
.noel-snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.noel-hero-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; z-index: -1; }
.noel-hero-trees { position: absolute; left: 18%; bottom: 28px; width: 180px; z-index: -1; opacity: .9; }
.noel-hero-firs { position: absolute; right: 13%; bottom: 14px; width: clamp(160px, 22vw, 300px); z-index: 0; }
.noel-hero-gifts { position: absolute; left: clamp(170px, 24vw, 330px); bottom: 10px; z-index: 2; display: flex; align-items: flex-end; gap: 2px; }
.noel-hero-gifts img { width: clamp(38px, 4.4vw, 64px); height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.noel-hero-gifts img + img { width: clamp(30px, 3.4vw, 50px); }
.noel-hero-garland { position: absolute; left: 0; right: 0; top: -2px; height: 36px; display: flex; justify-content: space-between; padding: 0 2%; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 34px at 50% -8px, transparent 96%, rgba(0, 0, 0, 0)), linear-gradient(transparent, transparent); }
.noel-hero-garland::before { content: ""; position: absolute; inset: 0 0 auto; height: 22px; border-bottom: 3px solid rgba(20, 83, 45, .9); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.noel-hero-garland i { position: relative; width: 8px; height: 11px; margin-top: calc(10px + sin(var(--i) * 0.285rad) * 10px); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: hsl(calc(var(--i) * 53), 95%, 64%); box-shadow: 0 0 9px 3px hsla(calc(var(--i) * 53), 95%, 64%, .65); animation: noel-twinkle 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.31s); }
.noel-chalet { position: absolute; right: 0; bottom: 0; width: clamp(210px, 23vw, 390px); height: auto; z-index: 0; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .5)); }
.noel-hero-logo { display: block; width: clamp(120px, 14vw, 200px); height: auto; margin: -8px auto 4px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.noel-chalet-lights circle { animation: noel-twinkle 1.6s ease-in-out infinite; }
.noel-chalet-lights circle:nth-child(2n) { animation-delay: .5s; }
.noel-chalet-lights circle:nth-child(3n) { animation-delay: 1s; }
.noel-hero-cast { position: absolute; left: 1.5%; bottom: 8px; width: clamp(170px, 21vw, 360px); height: 100%; pointer-events: none; }
.noel-cast { position: absolute; bottom: 0; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); }
.noel-cast--a { left: 18%; width: 62%; height: auto; max-height: 92%; z-index: 2; animation: noel-bob 5s ease-in-out infinite; }
.noel-cast--b { left: 0; width: 38%; height: auto; z-index: 1; opacity: .95; }
.noel-cast--c { right: 0; width: 34%; height: auto; z-index: 1; opacity: .95; }
.noel-hero-text { position: relative; z-index: 3; text-align: center; max-width: min(660px, 56%); }
.noel-hero-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.noel-hero-ornament span { width: 70px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--noel-gold)); }
.noel-hero-ornament span:last-child { transform: scaleX(-1); }
.noel-title {
  margin: 0; white-space: nowrap; font-size: clamp(26px, 3.3vw, 56px); line-height: 1.02; font-weight: 900; letter-spacing: -.5px; color: #fff;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 0 #c93a55, 0 4px 0 #7f1022, 0 5px 0 #5a0b18, 0 10px 24px rgba(0, 0, 0, .6);
}
.noel-title-accent { position: relative; display: inline-block; color: #ffd34d; text-shadow: 0 2px 0 #d97706, 0 4px 0 #9a4a00, 0 5px 0 #5c2b00, 0 10px 24px rgba(0, 0, 0, .6); }
.noel-title-accent::after { /* bonnet de Noel pose sur le dernier mot */
  content: ""; position: absolute; right: -.42em; top: -.62em; width: .95em; height: .8em; transform: rotate(18deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 84'%3E%3Cpath d='M8 70C14 34 40 6 70 10c14 2 22 14 18 30-6-8-14-10-18-6l4 36z' fill='%23d61f3c' stroke='%237f1022' stroke-width='4'/%3E%3Crect x='2' y='62' width='80' height='18' rx='9' fill='%23f4f8ff'/%3E%3Ccircle cx='88' cy='44' r='10' fill='%23f4f8ff'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45));
}
.noel-subtitle { margin: 12px auto 0; font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; color: #e7edff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }

/* ================= STATS ================= */
.noel-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; margin: 18px 0; }
.noel-stat {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 41, 88, .95), rgba(16, 25, 58, .95)); border: 1px solid var(--noel-line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.noel-stat-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px; border-radius: 12px; background: rgba(255, 204, 77, .12); border: 1px solid rgba(255, 204, 77, .25); }
.noel-stat-body { min-width: 0; flex: 1; }
.noel-stat-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--noel-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.noel-stat-value { margin: 4px 0 0; font-size: 19px; font-weight: 800; color: #fff; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.noel-stat-value small { font-size: 13px; color: var(--noel-muted); font-weight: 700; }
.noel-stat-value--small { font-size: 16px; }
.noel-stat-value--gold { color: var(--noel-gold); }
.noel-bar { margin-top: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.noel-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #86efac); transition: width .8s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 12px rgba(34, 197, 94, .6); }
.noel-pill { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; }
.noel-pill--running { background: rgba(34, 197, 94, .18); color: #86efac; box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .4); }
.noel-pill--running::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-right: 5px; vertical-align: 1px; }
.noel-pill--upcoming { background: rgba(96, 165, 250, .18); color: #93c5fd; }
.noel-pill--finished { background: rgba(148, 163, 184, .2); color: #cbd5e1; }

/* ================= LAYOUT ================= */
.noel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }

/* ================= PLANCHE / CHALET ================= */
.noel-board {
  position: relative; padding: 70px 26px 26px; border-radius: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .0) 0 60px, rgba(0, 0, 0, .12) 60px 62px),
    linear-gradient(180deg, #13214d, #0c1636);
  border: 10px solid transparent;
  border-image: linear-gradient(180deg, #8a4b24, #4a230d) 1;
  border-image: none;
  box-shadow: 0 0 0 10px var(--noel-wood), 0 0 0 13px var(--noel-wood-2), 0 26px 60px rgba(0, 0, 0, .55), inset 0 0 60px rgba(0, 0, 0, .45);
  margin: 13px;
}
.noel-board::before { /* neige sur le cadre */
  content: ""; position: absolute; left: -16px; right: -16px; top: -22px; height: 26px; border-radius: 20px 20px 14px 14px;
  background: radial-gradient(14px 12px at 10% 100%, var(--noel-snow) 98%, transparent) , linear-gradient(var(--noel-snow), #dfe9fb);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .15);
  -webkit-mask: radial-gradient(12px 10px at 12px 100%, transparent 98%, #000) 0 0 / 34px 100% repeat-x;
}
.noel-board-garland { position: absolute; left: 0; right: 0; top: -6px; height: 70px; pointer-events: none; }
.noel-board-garland svg { position: absolute; inset: 0 0 auto 0; width: 100%; height: 56px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4)); }
.noel-lights { position: absolute; left: 2%; right: 2%; top: 4px; display: flex; justify-content: space-between; }
.noel-lights i {
  width: 11px; height: 15px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translateY(calc(sin(var(--i) * 0.9rad) * 14px + 18px));
  background: hsl(calc(var(--i) * 67), 95%, 62%);
  box-shadow: 0 0 10px 3px hsla(calc(var(--i) * 67), 95%, 62%, .7);
  animation: noel-twinkle 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.27s);
}
.noel-bow { position: absolute; left: 50%; top: -14px; width: 92px; height: 56px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 56'%3E%3Cpath d='M46 24C30 2 4 0 6 18c2 12 22 12 40 6zM46 24C62 2 88 0 86 18c-2 12-22 12-40 6z' fill='%23d61f3c' stroke='%237f1022' stroke-width='3'/%3E%3Cpath d='M40 28 26 56l10-4 6 4 4-26zM52 28l14 28-10-4-6 4-4-26z' fill='%23b0172f' stroke='%237f1022' stroke-width='3'/%3E%3Ccircle cx='46' cy='24' r='8' fill='%23ef4458' stroke='%237f1022' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }

.noel-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.noel-empty { grid-column: 1 / -1; text-align: center; color: var(--noel-muted); padding: 40px 10px; font-size: 16px; }

/* ----- case : niche interieure (le bouton) + porte 3D a charniere (span.noel-door) ----- */
.noel-cells { perspective: 1400px; }
.noel-cell {
  --c1: #2a3f7a; --c2: #14204a; --edge: rgba(170, 196, 255, .28); --rx: 0deg; --ry: 0deg; --lift: 0px; --open: 0deg;
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.02; border-radius: 16px; border: 0; padding: 0; cursor: pointer;
  color: #fff; font: inherit; text-align: center;
  /* l interieur : creux sombre, eclaire en dore quand la case est ouvrable */
  background: radial-gradient(80% 70% at 50% 55%, var(--glow, rgba(255, 196, 92, .0)), transparent 70%), linear-gradient(180deg, #07102a, #0d1838);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .85), inset 0 0 0 2px rgba(0, 0, 0, .55), 0 10px 18px rgba(0, 0, 0, .45);
  transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  will-change: transform;
}
.noel-cell:hover { --lift: -4px; }
.noel-cell:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.noel-cell-inside { position: absolute; inset: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; }
.noel-door {
  position: absolute; inset: 0; border-radius: 16px; transform-origin: 0 50%; transform-style: preserve-3d;
  transform: rotateY(var(--open)); transition: transform 1.1s cubic-bezier(.25, 1.2, .35, 1);
  z-index: 2;
}
.noel-door-face, .noel-door-back { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.noel-door-face {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 22px 6px 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cg fill='%23c9d8ff' fill-opacity='.22'%3E%3Cpath d='M0 40 12 14 24 40ZM16 40 32 6 48 40ZM70 40 86 10 102 40ZM96 40 108 20 120 40Z'/%3E%3C/g%3E%3Cpath d='M0 40C30 30 60 34 120 30V40Z' fill='%23e8f0ff' fill-opacity='.35'/%3E%3C/svg%3E") bottom / 100% 40% no-repeat,
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 -10px 18px rgba(0, 0, 0, .3), inset -5px 0 0 rgba(0, 0, 0, .18), 0 8px 16px rgba(0, 0, 0, .4);
}
/* poignee doree */
.noel-door-face::after { content: ""; position: absolute; right: 8px; top: 58%; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4b8, #e0a21a 55%, #8a5a06); box-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.noel-door-back { transform: rotateY(180deg); background: repeating-linear-gradient(90deg, #6b3416 0 14px, #5a2b11 14px 16px), #6b3416; box-shadow: inset 0 0 0 3px #3d1a08, inset 0 0 14px rgba(0, 0, 0, .5); }
.noel-cell-snow { position: absolute; left: -3px; right: -3px; top: -6px; height: 16px; border-radius: 12px 12px 10px 10px; background: linear-gradient(var(--noel-snow), #d9e5fa); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); z-index: 3; pointer-events: none;
  -webkit-mask: radial-gradient(6px 5px at 6px 100%, transparent 98%, #000) 0 0 / 15px 100% repeat-x; transform: translateZ(2px); }
.noel-cell-num { font-size: clamp(18px, 2vw, 26px); font-weight: 900; line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.noel-door-face > .noel-cell-lock:not(.noel-cell-lock--mini) { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); margin: 0; }
.noel-cell-lock { margin-top: auto; margin-bottom: auto; color: #e2e8f8; opacity: .9; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); font-size: 22px; font-weight: 900; }
.noel-cell-lock--mini { position: absolute; bottom: 8px; right: 18px; margin: 0; font-size: 14px; }
.noel-cell-img { width: 62%; max-width: 80px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.noel-door-face .noel-cell-img { margin: auto 0; width: 50%; }
.noel-cell-tag { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; font-weight: 800; padding: 4px; border-radius: 0 0 12px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0, 0, 0, .35); }
.noel-cell-tag--muted { color: #cbd5e1; }
.noel-cell-check { position: absolute; top: -8px; right: -8px; z-index: 4; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff; background: radial-gradient(circle at 30% 30%, #4ade80, #15803d); box-shadow: 0 0 0 3px #0c1636, 0 3px 8px rgba(0, 0, 0, .5); transform: translateZ(30px); }

/* verrouillee : porte close, petit tremblement du cadenas au survol */
.noel-cell--locked { cursor: default; }
.noel-cell--locked:hover .noel-door { animation: noel-rattle .5s ease-in-out; }
.noel-cell--locked:hover .noel-cell-lock { animation: noel-lock .5s ease-in-out; }
.noel-cell--disabled { opacity: .45; cursor: not-allowed; }

/* ouverte : porte grande ouverte, cadeau visible dans la niche */
.noel-cell--claimed { --open: -104deg; --glow: rgba(255, 204, 92, .35); }
.noel-cell--claimed .noel-cell-inside .noel-cell-tag { background: linear-gradient(180deg, #e2334f, #8c1023); color: #fff; bottom: -8px; left: -8px; right: -8px; border-radius: 0 0 14px 14px; }
.noel-cell--claimed .noel-cell-inside .noel-cell-num { position: absolute; top: 4px; left: 8px; font-size: 14px; opacity: .85; }
.noel-cell--claimed:hover { --open: -112deg; }

/* manquee : porte givree */
.noel-cell--missed { --c1: #2a3350; --c2: #171d33; --edge: rgba(148, 163, 184, .25); }
.noel-cell--missed .noel-door-face { filter: grayscale(.6) brightness(.85); }
.noel-cell--missed .noel-door-face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25), transparent 40%), radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .18), transparent 45%); }

/* case du jour : porte entrouverte, lumiere doree qui s echappe */
.noel-cell--today, .noel-cell--catchup {
  --open: -24deg; --glow: rgba(255, 196, 92, .95); --lift: -6px;
  --c1: #c62a42; --c2: #6d0f20; --edge: var(--noel-gold);
  z-index: 3;
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .6), 0 0 0 3px var(--noel-gold), 0 0 34px 8px rgba(255, 204, 77, .6), 0 14px 26px rgba(0, 0, 0, .5);
  animation: noel-glow 2.4s ease-in-out infinite;
}
.noel-cell--today .noel-door, .noel-cell--catchup .noel-door { animation: noel-ajar 3.2s ease-in-out infinite; }
.noel-cell--today:hover, .noel-cell--catchup:hover { --open: -48deg; --lift: -9px; }
.noel-cell--today:hover .noel-door, .noel-cell--catchup:hover .noel-door { animation: none; }
.noel-cell--today .noel-cell-inside::before, .noel-cell--catchup .noel-cell-inside::before { /* rayons de lumiere */
  content: ""; position: absolute; inset: -30%; background: conic-gradient(from 0deg, transparent 0 8%, rgba(255, 220, 130, .45) 10%, transparent 14% 30%, rgba(255, 220, 130, .35) 33%, transparent 38% 55%, rgba(255, 220, 130, .45) 58%, transparent 62% 80%, rgba(255, 220, 130, .35) 83%, transparent 88%);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); animation: noel-spin 10s linear infinite; }
.noel-cell--catchup { --c1: #7c3aed; --c2: #3b0d8c; }
.noel-cell-today { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) translateZ(40px); z-index: 5; font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 8px; color: #3b1d00; background: linear-gradient(180deg, #ffe08a, #f5b422); box-shadow: 0 3px 8px rgba(0, 0, 0, .4); white-space: nowrap; }
.noel-cell--today .noel-cell-snow { display: none; }
.noel-cell-tag--cta { background: linear-gradient(180deg, #ffe08a, #f5b422); color: #3b1d00; }
.noel-cell-img--gift { animation: noel-wiggle 2.6s ease-in-out infinite; }

/* case 24 */
.noel-cell--final { --c1: #d4243f; --c2: #7a0f22; --edge: var(--noel-gold); box-shadow: inset 0 6px 14px rgba(0, 0, 0, .8), 0 0 26px 5px rgba(255, 204, 77, .4), 0 10px 18px rgba(0, 0, 0, .45); }
.noel-cell--final .noel-door-face { background:
  radial-gradient(circle at 20% 30%, rgba(255, 230, 128, .6) 0 2px, transparent 3px), radial-gradient(circle at 80% 60%, rgba(255, 230, 128, .6) 0 2px, transparent 3px), radial-gradient(circle at 60% 20%, rgba(255, 230, 128, .5) 0 1.5px, transparent 2.5px), radial-gradient(circle at 30% 75%, rgba(255, 230, 128, .5) 0 1.5px, transparent 2.5px),
  linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 3px var(--noel-gold), inset -5px 0 0 rgba(0, 0, 0, .18); }
.noel-cell--final .noel-door-face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat; animation: noel-shine 3.5s ease-in-out infinite; pointer-events: none; }
.noel-cell-crown { position: absolute; top: -20px; right: -8px; z-index: 5; font-size: 26px; transform: translateZ(40px) rotate(18deg); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); animation: noel-crown 3s ease-in-out infinite; }

.noel-cell.is-selected { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 4px; }
.noel-cell.is-opening { --open: -40deg; }
.noel-cell.is-opening .noel-door { animation: noel-rattle .35s ease-in-out infinite; }
.noel-cell.is-just-opened .noel-cell-inside { animation: noel-pop .8s .4s cubic-bezier(.2, 1.4, .4, 1) both; }

@keyframes noel-ajar { 0%, 100% { transform: rotateY(var(--open)); } 50% { transform: rotateY(calc(var(--open) - 10deg)); } }
@keyframes noel-rattle { 0%, 100% { transform: rotateY(var(--open)); } 25% { transform: rotateY(calc(var(--open) - 5deg)); } 60% { transform: rotateY(calc(var(--open) - 2deg)); } }
@keyframes noel-lock { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
@keyframes noel-crown { 0%, 100% { transform: translateZ(40px) rotate(18deg) translateY(0); } 50% { transform: translateZ(40px) rotate(22deg) translateY(-3px); } }

/* bouton principal */
.noel-board-footer { margin-top: 26px; text-align: center; }
.noel-main-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 38px; border: 0; border-radius: 99px; cursor: pointer;
  font: 900 18px/1 inherit; font-family: inherit; letter-spacing: .6px; text-transform: uppercase; color: #3b1d00;
  background: linear-gradient(180deg, #fff0b3 0%, #ffd34d 45%, #f59e0b 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 6px 0 #a35f00, 0 12px 30px rgba(245, 158, 11, .5);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.noel-main-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 8px 0 #a35f00, 0 16px 40px rgba(245, 158, 11, .65); }
.noel-main-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 2px 0 #a35f00; }
.noel-main-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.noel-main-btn:disabled { cursor: default; filter: grayscale(.4) brightness(.85); }
.noel-main-btn.is-done { background: linear-gradient(180deg, #86efac, #16a34a); color: #052e16; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2), 0 6px 0 #14532d; filter: none; }
.noel-main-btn.is-loading { pointer-events: none; }
.noel-main-btn.is-loading .noel-main-btn-icon { animation: noel-spin 1s linear infinite; }
.noel-main-btn-icon { font-size: 22px; }
.noel-main-btn--small { min-height: 48px; font-size: 15px; padding: 0 30px; }
.noel-main-hint { margin: 12px 0 0; color: var(--noel-muted); font-size: 14px; min-height: 1em; }
.noel-noscript { text-align: center; color: #fecaca; }

/* ================= PANNEAU ================= */
.noel-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.noel-panel {
  position: relative; padding: 54px 22px 24px; border-radius: 22px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #5a1020 0%, #2c0912 60%, #1a050b 100%);
  box-shadow: 0 0 0 3px rgba(255, 204, 77, .35), 0 0 0 8px rgba(107, 52, 22, .9), 0 24px 50px rgba(0, 0, 0, .55);
  margin: 8px;
}
.noel-panel::before { content: ""; position: absolute; left: -12px; right: -12px; top: -14px; height: 22px; border-radius: 16px; background: linear-gradient(var(--noel-snow), #d9e5fa); -webkit-mask: radial-gradient(10px 8px at 10px 100%, transparent 98%, #000) 0 0 / 26px 100% repeat-x; }
.noel-panel-ribbon {
  position: absolute; left: -18px; right: -18px; top: 12px; padding: 9px 12px; font-size: 20px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #d61f3c, #8c1023); box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.noel-panel-case { display: inline-block; margin: 12px 0 0; padding: 4px 16px; border-radius: 99px; font-weight: 800; font-size: 15px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 204, 77, .4); }
.noel-panel-status { margin: 10px 0 0; font-size: 18px; font-weight: 900; text-transform: uppercase; color: var(--noel-gold); min-height: 1em; letter-spacing: .5px; }
.noel-panel--claimed .noel-panel-status { color: #86efac; }
.noel-panel--missed .noel-panel-status { color: #cbd5e1; }
.noel-panel-art { position: relative; width: min(220px, 70%); aspect-ratio: 1; margin: 12px auto 6px; display: grid; place-items: center; }
.noel-panel-art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); animation: noel-float 4s ease-in-out infinite; }
.noel-panel-glow { position: absolute; inset: -16%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 8%, rgba(255, 214, 102, .35) 10%, transparent 14% 30%, rgba(255, 214, 102, .3) 33%, transparent 38% 55%, rgba(255, 214, 102, .35) 58%, transparent 62% 80%, rgba(255, 214, 102, .3) 83%, transparent 88%); -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); animation: noel-spin 18s linear infinite; }
.noel-panel--missed .noel-panel-glow, .noel-panel--locked .noel-panel-glow { opacity: .25; }
.noel-panel-name { margin: 8px 0 0; font-size: 24px; font-weight: 900; line-height: 1.15; color: #fff; }
.noel-panel-amount { margin: 6px 0 0; font-size: 17px; font-weight: 800; color: var(--noel-gold); min-height: 1em; }
.noel-panel-desc { margin: 10px 0 0; color: #f1d9de; font-size: 15px; line-height: 1.5; }
.noel-panel-date { margin: 10px 0 0; color: var(--noel-muted); font-size: 13px; }
.noel-panel-btn { margin-top: 18px; width: 100%; min-height: 52px; border: 0; border-radius: 14px; cursor: pointer; font: 900 18px/1 inherit; font-family: inherit; color: #062e14; background: linear-gradient(180deg, #86efac, #22c55e 55%, #15803d); box-shadow: 0 5px 0 #14532d, 0 12px 26px rgba(34, 197, 94, .35); }
.noel-panel-btn:hover { filter: brightness(1.07); }
.noel-panel-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.noel-panel-btn:disabled { filter: grayscale(.5); cursor: default; }
.noel-rarity--legendary .noel-panel-amount, .noel-rarity--mythic .noel-panel-amount { color: #fde047; text-shadow: 0 0 12px rgba(253, 224, 71, .6); }
.noel-rarity--epic .noel-panel-amount { color: #d8b4fe; }
.noel-rarity--rare .noel-panel-amount { color: #93c5fd; }

.noel-next, .noel-goal { padding: 16px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(27, 41, 88, .95), rgba(16, 25, 58, .95)); border: 1px solid var(--noel-line); }
.noel-next-title { margin: 0 0 10px; font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--noel-gold); }
.noel-next-row { display: flex; align-items: center; gap: 14px; }
.noel-next-row img { width: 56px; height: 56px; }
.noel-next-when { margin: 0; font-weight: 800; font-size: 16px; }
.noel-next-name { margin: 2px 0 0; color: var(--noel-muted); font-size: 14px; }
.noel-goal { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #3b1374, #1e0b4b); border-color: rgba(168, 85, 247, .4); }
.noel-goal-icon { font-size: 30px; }
.noel-goal-title { margin: 0; font-weight: 900; color: var(--noel-gold); font-size: 16px; }
.noel-goal-text { margin: 4px 0 0; font-size: 13px; color: #e9ddff; line-height: 1.45; }

/* ================= TOASTS ================= */
.noel-toasts { position: fixed; z-index: 100002; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.noel-toast { padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; color: #fff; background: #1e2a55; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); border-left: 4px solid #60a5fa; animation: noel-toast-in .3s ease; transition: opacity .5s, transform .5s; }
.noel-toast--error { border-left-color: #f43f5e; }
.noel-toast.is-out { opacity: 0; transform: translateY(8px); }

/* ================= ANIMATION D OUVERTURE ================= */
.noel-reveal { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; font-family: Rajdhani, "Titillium Web", system-ui, sans-serif; color: #fff; }
.noel-reveal[hidden] { display: none; }
.noel-reveal-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(40, 20, 70, .85), rgba(3, 6, 20, .94)); backdrop-filter: blur(4px); }
.noel-reveal-stage { position: relative; width: min(92vw, 440px); aspect-ratio: 1 / 1.15; display: grid; place-items: center; }
.noel-reveal-skip { position: absolute; top: -8px; right: 0; left: auto; width: auto; min-width: 0; height: auto; line-height: 1; z-index: 5; border: 0; border-radius: 99px; padding: 8px 16px; font: 800 14px/1 inherit; font-family: inherit; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
.noel-reveal-skip:focus-visible { outline: 3px solid #fff; }
.noel-reveal.is-revealed .noel-reveal-skip { display: none; }
.noel-reveal-door { position: absolute; width: 62%; aspect-ratio: 1; perspective: 900px; display: grid; place-items: center; }
.noel-reveal-door b { position: relative; z-index: 2; font-size: 72px; font-weight: 900; text-shadow: 0 4px 0 #7f1022; }
.noel-door-left, .noel-door-right { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(180deg, #c62a42, #6d0f20); box-shadow: inset 0 0 0 4px var(--noel-gold, #ffcc4d); transform-style: preserve-3d; }
.noel-door-left { left: 0; border-radius: 18px 0 0 18px; transform-origin: left center; }
.noel-door-right { right: 0; border-radius: 0 18px 18px 0; transform-origin: right center; }
.noel-reveal.is-playing .noel-door-left { animation: noel-door-l .9s .25s cubic-bezier(.6, 0, .3, 1) forwards; }
.noel-reveal.is-playing .noel-door-right { animation: noel-door-r .9s .25s cubic-bezier(.6, 0, .3, 1) forwards; }
.noel-reveal.is-playing .noel-reveal-door b { animation: noel-fade-out .4s .6s forwards; }
.noel-reveal-burst { position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; opacity: 0; background: conic-gradient(from 0deg, transparent 0 6%, rgba(255, 214, 102, .55) 8%, transparent 11% 23%, rgba(255, 214, 102, .45) 26%, transparent 30% 45%, rgba(255, 214, 102, .55) 48%, transparent 52% 70%, rgba(255, 214, 102, .45) 73%, transparent 77% 92%, rgba(255, 214, 102, .55) 95%, transparent); -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 75%); mask: radial-gradient(closest-side, #000 25%, transparent 75%); }
.noel-reveal.is-playing .noel-reveal-burst { animation: noel-burst 1.2s .8s ease-out forwards, noel-spin 16s linear infinite; }
.noel-reveal-particles { position: absolute; inset: 50% auto auto 50%; }
.noel-reveal-particles i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffd34d; box-shadow: 0 0 10px #ffd34d; opacity: 0; }
.noel-reveal.is-playing .noel-reveal-particles i { animation: noel-particle 1.1s calc(.9s + var(--d)) cubic-bezier(.1, .7, .3, 1) forwards; }
.noel-reveal-gift { position: relative; z-index: 3; text-align: center; opacity: 0; transform: scale(.4); }
.noel-reveal.is-revealed .noel-reveal-gift, .noel-reveal.is-playing .noel-reveal-gift { animation: noel-gift-in .7s 1.05s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.noel-reveal.is-revealed .noel-reveal-gift { animation: none; opacity: 1; transform: none; }
.noel-reveal.is-revealed .noel-reveal-door { visibility: hidden; }
.noel-reveal.is-revealed .noel-reveal-burst { opacity: .9; }
.noel-reveal-kicker { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: #86efac; }
.noel-reveal-gift img { width: min(220px, 52vw); height: auto; aspect-ratio: 1; object-fit: contain; margin: 8px auto; display: block; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .6)); }
.noel-reveal-gift h2 { margin: 0; font-size: 30px; font-weight: 900; color: #fff; }
.noel-reveal-amount { margin: 6px 0 18px; font-size: 18px; font-weight: 800; color: #ffd34d; }
.noel-reveal.noel-rarity--legendary .noel-reveal-burst, .noel-reveal.noel-rarity--mythic .noel-reveal-burst { filter: saturate(1.6) brightness(1.2); }
.noel-reveal.is-reduced .noel-reveal-door, .noel-reveal.is-reduced .noel-reveal-burst { display: none; }

/* ================= MODALE CONNEXION ================= */
.noel-modal { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 16px; font-family: Rajdhani, "Titillium Web", system-ui, sans-serif; }
.noel-modal[hidden] { display: none; }
.noel-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 20, .78); backdrop-filter: blur(3px); }
.noel-modal-card { position: relative; width: min(100%, 440px); padding: 30px 26px 26px; border-radius: 22px; text-align: center; color: #fff; background: radial-gradient(120% 80% at 50% 0%, #1d3a86, #0b1430); box-shadow: 0 0 0 3px rgba(255, 204, 77, .35), 0 30px 70px rgba(0, 0, 0, .6); }
.noel-modal-card h2 { margin: 10px 0 8px; font-size: 24px; font-weight: 900; color: #fff; }
.noel-modal-card p { color: #c9d4f2; line-height: 1.55; font-size: 15px; }
.noel-modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.noel-modal-actions .button { min-width: 150px; }
.noel-modal-x { padding: 0; line-height: 1; position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; color: #fff; background: rgba(255, 255, 255, .12); font-size: 22px; cursor: pointer; }

/* ================= ANIMATIONS ================= */
@keyframes noel-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes noel-aurora { from { transform: translateX(-6%) skewX(-6deg); } to { transform: translateX(6%) skewX(6deg); } }
@keyframes noel-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes noel-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes noel-glow { 0%, 100% { box-shadow: inset 0 0 0 3px var(--noel-gold), 0 0 0 3px rgba(255, 204, 77, .35), 0 0 22px 4px rgba(255, 204, 77, .45), 0 12px 24px rgba(0, 0, 0, .5); } 50% { box-shadow: inset 0 0 0 3px #fff3c4, 0 0 0 4px rgba(255, 204, 77, .5), 0 0 38px 10px rgba(255, 204, 77, .7), 0 12px 24px rgba(0, 0, 0, .5); } }
@keyframes noel-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@keyframes noel-shine { 0%, 60% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes noel-shake { 0%, 100% { transform: scale(1.06) rotate(0); } 25% { transform: scale(1.06) rotate(-2deg); } 75% { transform: scale(1.06) rotate(2deg); } }
@keyframes noel-pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
@keyframes noel-spin { to { transform: rotate(360deg); } }
@keyframes noel-toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes noel-door-l { to { transform: rotateY(-105deg); opacity: .0; } }
@keyframes noel-door-r { to { transform: rotateY(105deg); opacity: .0; } }
@keyframes noel-fade-out { to { opacity: 0; } }
@keyframes noel-burst { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; } 100% { opacity: .9; transform: scale(1); } }
@keyframes noel-particle { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }
@keyframes noel-gift-in { to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .noel *, .noel-reveal *, .noel-modal * { animation: none !important; transition: none !important; }
  .noel-cell, .noel-door { transition: none !important; } .noel-cell--today, .noel-cell--catchup { --lift: 0px; }
  .noel-reveal-gift { opacity: 1; transform: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px) {
  .noel-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .noel-cells { gap: 12px; }
}
@media (max-width: 1100px) {
  .noel-layout { grid-template-columns: 1fr; }
  .noel-side { position: static; grid-template-columns: 1fr 1fr; }
  .noel-panel { grid-row: span 2; }
  .noel-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .noel-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .noel-hero { min-height: 230px; padding-top: 24px; }
  .noel-hero-cast { width: 170px; opacity: .55; }
  .noel-chalet { width: 140px; opacity: .6; }
  .noel-hero-trees { display: none; }
}
@media (max-width: 680px) {
  .noel-side { grid-template-columns: 1fr; }
  .noel-board { padding: 58px 12px 18px; margin: 10px 8px; box-shadow: 0 0 0 6px var(--noel-wood), 0 0 0 8px var(--noel-wood-2), 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 40px rgba(0, 0, 0, .45); }
  .noel-board::before { left: -10px; right: -10px; }
  .noel-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .noel-door-face { padding-top: 20px; }
  .noel-cell-tag { font-size: 10px; }
  .noel-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .noel-stat { padding: 12px; gap: 10px; }
  .noel-stat--progress { grid-column: 1 / -1; }
  .noel-stat-icon { width: 38px; height: 38px; font-size: 19px; }
  .noel-stat-value { font-size: 16px; }
  .noel-hero { border-radius: 16px; min-height: 210px; padding: 22px 14px 60px; }
  .noel-hero-cast { left: -10px; width: 130px; opacity: .45; }
  .noel-chalet { right: -10px; width: 110px; opacity: .45; }
  .noel-main-btn { width: 100%; padding: 0 18px; font-size: 16px; }
  .noel-panel-ribbon { font-size: 18px; }
}
@media (max-width: 380px) {
  .noel-stats { grid-template-columns: 1fr; }
  .noel-cells { gap: 12px 8px; }
}

/* ================= DECORS (sucres d orge, cadeaux, lanterne) ================= */
.noel-layout { position: relative; }
.noel-deco { position: absolute; pointer-events: none; z-index: 4; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.noel-deco--cane-l { left: -26px; bottom: 90px; width: 54px; transform: rotate(-8deg); }
.noel-deco--gifts-l { left: -22px; bottom: -34px; width: 170px; }
.noel-deco--lantern { left: 150px; bottom: -30px; width: 42px; }
.noel-deco--cane-r { right: -6px; bottom: -10px; width: 54px; transform: rotate(10deg); z-index: 5; }
.noel-deco--gifts-r { right: 30px; bottom: -40px; width: 96px; z-index: 5; }
.noel-side { position: sticky; }

@media (max-width: 1100px) { .noel-deco--cane-r, .noel-deco--gifts-r { display: none; } .noel-side { position: relative; } }
@media (max-width: 680px) {
  .noel { margin-top: -60px; }
  .noel-deco--cane-l, .noel-deco--lantern, .noel-hero-firs, .noel-hero-gifts, .noel-hero-garland { display: none; }
  .noel-deco--gifts-l { width: 110px; left: -8px; bottom: -26px; }
  .noel-title-accent::after { right: -.3em; }
}
@media (max-width: 860px) { .noel-hero-text { max-width: 100%; } }
@media (max-width: 860px) { .noel-chalet { width: 210px; opacity: .55; } }
@media (max-width: 680px) { .noel-chalet { width: 150px; right: -14px; opacity: .45; } .noel-hero-logo { width: 120px; } }
@media (max-width: 860px) { .noel-title { white-space: normal; font-size: clamp(28px, 7vw, 40px); } }
@media (min-width: 861px) and (max-width: 1100px) { .noel-chalet { width: 185px; } .noel-hero-cast { width: 160px; } }

/* ================= 3D & ANIMATIONS ================= */
.noel-snowfall { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9; opacity: .7; }
.noel-hero { perspective: 900px; transform-style: preserve-3d; }
.noel-hero [data-depth] { will-change: translate; }
.noel-hero::after { /* reflet qui suit le pointeur */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: radial-gradient(40% 60% at calc(50% + var(--hx, 0) * 100%) calc(30% + var(--hy, 0) * 100%), rgba(255, 255, 255, .10), transparent 70%); }
.noel-hero-logo { animation: noel-logo 6s ease-in-out infinite; transform-origin: 50% 80%; }
.noel-title { animation: noel-title-in .9s .15s cubic-bezier(.2, 1.3, .4, 1) both; }
.noel-shooting-star { position: absolute; top: 14%; left: 20%; width: 120px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); transform: rotate(-18deg); filter: drop-shadow(0 0 6px #fff); animation: noel-shoot 9s 2s ease-in infinite; }

/* compte a rebours */
.noel-countdown { margin-top: 12px; }
.noel-countdown[hidden] { display: none; }
.noel-countdown-label { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #ffe8a3; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.noel-countdown-tiles { display: inline-flex; gap: 8px; perspective: 400px; }
.noel-cd-tile { position: relative; display: grid; place-items: center; min-width: 58px; padding: 6px 6px 4px; border-radius: 12px;
  background: linear-gradient(180deg, #c62a42 0 50%, #a3192f 50% 100%); box-shadow: inset 0 0 0 2px rgba(255, 204, 77, .7), 0 6px 14px rgba(0, 0, 0, .5), 0 0 18px rgba(255, 204, 77, .25); transform-style: preserve-3d; }
.noel-cd-tile::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: rgba(0, 0, 0, .35); }
.noel-cd-tile b { font-size: 26px; line-height: 1; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #5a0b18; }
.noel-cd-tile small { font-size: 11px; font-weight: 800; color: #ffd34d; text-transform: uppercase; }
  .noel-cd-tile.is-flip b { display: inline-block; animation: noel-flip .28s cubic-bezier(.3, 1.4, .5, 1); }

/* cadeau du panneau : rotation 3D douce */
.noel-panel-art { perspective: 700px; }
.noel-panel-art img { animation: noel-float3d 6s ease-in-out infinite; transform-style: preserve-3d; }

/* plateau : legere profondeur */
.noel-board { transform-style: preserve-3d; }
.noel-cells > div { transform-style: preserve-3d; }

@keyframes noel-logo { 0%, 100% { transform: translateY(0) rotate(-1.5deg) scale(1); } 50% { transform: translateY(-6px) rotate(1.5deg) scale(1.03); } }
@keyframes noel-title-in { from { opacity: 0; transform: translateY(18px) scale(.9) rotateX(40deg); } to { opacity: 1; transform: none; } }
@keyframes noel-shoot { 0%, 86% { opacity: 0; translate: 0 0; } 88% { opacity: 1; } 96% { opacity: 0; translate: 380px 120px; } 100% { opacity: 0; translate: 380px 120px; } }
@keyframes noel-flip { 0% { transform: rotateX(-70deg); opacity: .7; } 100% { transform: rotateX(0); opacity: 1; } }
@keyframes noel-float3d { 0%, 100% { transform: translateY(0) rotateY(-14deg) rotateX(4deg); } 50% { transform: translateY(-10px) rotateY(14deg) rotateX(-4deg); } }

@media (max-width: 680px) {
  .noel-cd-tile { min-width: 48px; } .noel-cd-tile b { font-size: 21px; }
  .noel-snowfall { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  .noel-snowfall, .noel-shooting-star { display: none; }
  .noel-title, .noel-hero-logo, .noel-panel-art img { animation: none !important; }
}

/* Lots a stock : note de reveal, compteur du jour, formulaire de livraison */
.noel-reveal-note { margin: 6px 0 0; color: #ffe9a8; font-weight: 700; font-size: 15px; max-width: 360px; }
.noel-reveal-note[hidden], .noel-panel-gifts[hidden] { display: none; }
.noel-panel-gifts { margin: 8px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 204, 77, .18); color: #ffd25a; font-weight: 800; font-size: 14px; text-align: center; }
.noel-cell-lots { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; background: #ffcc4d; color: #3a2600; font-size: 10px; font-weight: 900; white-space: nowrap; z-index: 3; }
.noel-ship-card { text-align: left; width: min(100%, 480px); max-height: 92vh; overflow: auto; }
.noel-ship-card h2, .noel-ship-card > p { text-align: center; }
.noel-ship-form { display: grid; gap: 10px; margin-top: 12px; }
.noel-ship-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #c9d4f2; }
.noel-ship-form input { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; }
.noel-ship-form input.is-invalid { border-color: #ff6b6b; }
.noel-ship-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
@media (max-width: 520px) { .noel-ship-row { grid-template-columns: 1fr; } }
.noel-ship-msg { min-height: 18px; margin: 0; font-size: 13px; color: #ff9b9b; text-align: center; }
.noel-ship-msg.is-ok { color: #8be8a2; }

/* Survol des cases (corrige l affichage qui bougeait) : plus d inclinaison 3D qui suit la souris,
   plus de porte qui pivote au passage du curseur ; seulement un leger relief et une lueur. */
.noel-cell { transform: translateY(var(--lift)); transform-style: flat; }
.noel-cell:hover { --lift: -4px; }
.noel-cell--claimed:hover { --open: -104deg; }
.noel-cell--today:hover, .noel-cell--catchup:hover { --open: 0deg; --lift: -6px; }
.noel-cell--today:hover .noel-door, .noel-cell--catchup:hover .noel-door { animation: noel-ajar 3.2s ease-in-out infinite; }
.noel-cell:hover .noel-cell-inside { filter: brightness(1.12); }
.noel-cell--locked:hover { --lift: -2px; }
@media (prefers-reduced-motion: reduce) { .noel-cell { transition: none; } }

/* Cadenas des cases verrouillees : l animation au survol gardait le centrage (translate) ; elle le conserve
   maintenant, sinon le cadenas sautait dans un coin. */
.noel-cell--locked:hover .noel-door-face > .noel-cell-lock:not(.noel-cell-lock--mini) { animation: noel-lock-c .5s ease-in-out; }
@keyframes noel-lock-c {
  0%, 100% { transform: translate(-50%, -50%) rotate(0); }
  25% { transform: translate(-50%, -50%) rotate(-12deg); }
  75% { transform: translate(-50%, -50%) rotate(10deg); }
}

/* Avant l ouverture : la grille des cases est masquee ; restent le compte a rebours et le texte d attente. */
#advent.is-upcoming .noel-cells { display: none; }
