/* Psynapse – Bannière du calendrier de l'Avent (1140 × 340) */
.psy-ban {
  --navy: #182844; --gold: #F0AF37; --gold-2: #ffd015; --mx: 0; --my: 0;
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  width: 100%; max-width: 1140px; aspect-ratio: 1140 / 340; margin: 0 auto;
  box-sizing: border-box; padding: 0 0 0 clamp(20px, 4.5vw, 52px);
  border-radius: 22px; overflow: hidden; isolation: isolate;
  color: #fff !important; text-decoration: none !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 78% 50%, rgba(240,175,55,.28), transparent 38%),
    radial-gradient(circle at 5% 110%, rgba(51,137,215,.3), transparent 45%),
    var(--navy);
  box-shadow: 0 14px 40px rgba(24,40,68,.28);
  opacity: 1 !important;
  animation: psy-ban-in .4s ease-out both !important;
  transition: transform .25s, box-shadow .25s;
}
.psy-ban *, .psy-ban *::before, .psy-ban *::after { box-sizing: border-box; }
.psy-ban [hidden] { display: none !important; }
.psy-ban:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(24,40,68,.38); }
.psy-ban:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 4px; }
@keyframes psy-ban-in { from { opacity: 0; transform: translateY(8px); } }

/* Neige */
.psy-ban::before {
  content: ""; position: absolute; inset: -200px 0 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 120px 80px, #fff, transparent),
    radial-gradient(2px 2px at 220px 160px, rgba(255,208,21,.9), transparent),
    radial-gradient(1px 1px at 310px 40px, #fff, transparent);
  background-size: 360px 200px;
  animation: psy-ban-snow 18s linear infinite;
}
@keyframes psy-ban-snow { to { transform: translateY(200px); } }

/* Texte */
.psy-ban__txt { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(6px, 1.1vw, 12px); padding: clamp(16px, 3vw, 34px) 0; position: relative; z-index: 2; }
.psy-ban__logo { height: clamp(22px, 2.8vw, 32px); width: auto; display: block; margin-bottom: 2px; }
.psy-ban__kicker { font-size: clamp(10px, 1.1vw, 13px); font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-2); }
.psy-ban__title { margin: 0 !important; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(22px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.5px; color: #fff; }
.psy-ban__title em { color: var(--gold-2); font-style: italic; }
.psy-ban__sub { margin: 0 !important; max-width: 520px; font-size: clamp(12px, 1.35vw, 16px); line-height: 1.45; color: rgba(255,255,255,.8); }
.psy-ban__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: clamp(2px, .6vw, 6px); }
.psy-ban__cta {
  display: inline-flex; align-items: center; padding: clamp(9px, 1.1vw, 13px) clamp(16px, 2vw, 24px); border-radius: 999px;
  background: var(--gold-2); color: var(--navy); font-weight: 800; font-size: clamp(13px, 1.5vw, 17px);
  box-shadow: 0 6px 20px rgba(255,208,21,.35); transition: transform .2s, box-shadow .2s;
}
.psy-ban:hover .psy-ban__cta { transform: translateX(4px); box-shadow: 0 10px 26px rgba(255,208,21,.5); }
.psy-ban__cd { font-size: clamp(11px, 1.2vw, 14px); color: rgba(255,255,255,.75); }
.psy-ban__cd b { color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* Scène des cadeaux */
.psy-ban__gifts { position: relative; height: 100%; transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -10px)); transition: transform .3s ease-out; }
.pb-gift { position: absolute; display: block; }
.pb-box {
  position: absolute; inset: 22% 0 0 0; border-radius: 10px;
  background:
    linear-gradient(90deg, transparent calc(50% - 7%), rgba(251,243,228,.95) calc(50% - 7%) calc(50% + 7%), transparent calc(50% + 7%)),
    var(--c);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), 0 12px 24px rgba(0,0,0,.35);
}
.pb-lid {
  position: absolute; left: -6%; right: -6%; top: 10%; height: 18%; border-radius: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 6.5%), rgba(251,243,228,.95) calc(50% - 6.5%) calc(50% + 6.5%), transparent calc(50% + 6.5%)),
    var(--c);
  filter: brightness(1.08);
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
  transform-origin: 15% 100%;
  transition: transform .45s cubic-bezier(.3,1.6,.5,1);
}
.pb-lid svg { position: absolute; left: 50%; bottom: 70%; width: 46%; transform: translateX(-50%); }
.pb-tag {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%);
  min-width: 42%; padding: 4% 8%; border-radius: 10px; background: #fff; color: var(--navy);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-family: Georgia, serif; font-size: var(--fs, 20px); line-height: 1; box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.pb-tag svg { width: .7em; height: .7em; }

/* Case du jour : au centre, animée */
.pb-today { --fs: clamp(26px, 4.2vw, 50px); width: 34%; aspect-ratio: 1 / 1.05; left: 33%; top: 50%; transform: translateY(-46%); z-index: 3; animation: pb-wiggle 3.2s ease-in-out 1s infinite; }
.pb-today::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,208,21,.55), transparent);
  animation: pb-glow 1.8s ease-in-out infinite;
}
.pb-today .pb-lid { animation: pb-hop 3.2s ease-in-out 1s infinite; }
.psy-ban:hover .pb-today .pb-lid { animation: none; transform: translateY(-34%) rotate(-14deg); }
.psy-ban:hover .pb-today::before { animation-duration: .9s; }
.pb-done .pb-lid { transform: translateY(-34%) rotate(-14deg); animation: none !important; }
.pb-prize .pb-box, .pb-prize .pb-lid { background: linear-gradient(90deg, transparent calc(50% - 7%), rgba(24,40,68,.85) calc(50% - 7%) calc(50% + 7%), transparent calc(50% + 7%)), linear-gradient(135deg, #ffd015, #F0AF37); }

/* Cadeaux voisins */
.pb-side { --fs: clamp(14px, 2vw, 24px); width: 20%; aspect-ratio: 1 / 1.05; z-index: 2; }
.pb-side--l { left: 6%; top: 50%; transform: translateY(-20%) rotate(-8deg); }
.pb-side--r { right: 8%; top: 50%; transform: translateY(-38%) rotate(7deg); filter: saturate(.85) brightness(.9); }
.pb-past { opacity: .5; filter: grayscale(1); }

/* Mini case 24 */
.pb-mini {
  position: absolute; right: 6%; top: 9%; z-index: 1;
  width: 15%; aspect-ratio: 1; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: linear-gradient(135deg, #ffd015, #F0AF37); color: var(--navy);
  box-shadow: 0 0 0 3px rgba(255,208,21,.3), 0 8px 18px rgba(0,0,0,.3);
  transform: rotate(10deg); animation: pb-float 4s ease-in-out infinite;
}
.pb-mini svg { width: 40%; }
.pb-mini b { font-family: Georgia, serif; font-weight: 400; font-size: clamp(14px, 2vw, 24px); line-height: 1; }
.pb-mini small { font-size: clamp(6px, .75vw, 9px); font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }

/* Étincelles */
.pb-spark { position: absolute; width: 12px; height: 12px; z-index: 4; pointer-events: none; animation: pb-twinkle 1.8s ease-in-out infinite; }
.pb-spark::before, .pb-spark::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.pb-spark::before { width: 2px; height: 12px; }
.pb-spark::after { width: 12px; height: 2px; }
.pb-spark:nth-of-type(1) { left: 32%; top: 18%; }
.pb-spark:nth-of-type(2) { left: 68%; top: 30%; animation-delay: .6s; }
.pb-spark:nth-of-type(3) { left: 40%; bottom: 12%; animation-delay: 1.2s; }

@keyframes pb-wiggle {
  0%, 70%, 100% { transform: translateY(-46%); }
  74% { transform: translateY(-48%) rotate(-4deg) scale(1.04); }
  78% { transform: translateY(-48%) rotate(4deg) scale(1.04); }
  82% { transform: translateY(-47%) rotate(-2deg); }
}
@keyframes pb-hop { 0%, 70%, 100% { transform: none; } 76% { transform: translateY(-16%) rotate(-5deg); } 84% { transform: none; } }
@keyframes pb-glow { 50% { opacity: .45; transform: scale(.92); } }
@keyframes pb-float { 50% { transform: rotate(6deg) translateY(-6px); } }
@keyframes pb-twinkle { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* Mobile : texte au-dessus, cadeaux en dessous */
@media (max-width: 680px) {
  .psy-ban { grid-template-columns: 1fr; aspect-ratio: auto; padding: 0 20px; }
  .psy-ban__txt { padding: 22px 0 0; }
  .psy-ban__gifts { height: 170px; }
  .pb-today { --fs: 30px; width: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .psy-ban, .psy-ban *, .psy-ban::before { animation: none !important; transition: none !important; }
}
