/**
 * Thème « Noël enchanté » - pages Calendrier et Tirage.
 * Portée : uniquement .ds-app.avent-theme--noel (l'en-tête du design system n'est pas touché).
 */

.avent-theme--noel,
.noel-lightbox,
.noel-celebrate,
.noel-visual,
.noel-elf {
  --noel-night: #07122a;
  --noel-night-2: #0e2347;
  --noel-pine: #0d3a2b;
  --noel-pine-2: #17734e;
  --noel-red: #c4152c;
  --noel-red-2: #e3344a;
  --noel-red-deep: #6a0a18;
  --noel-gold: #f2c14e;
  --noel-gold-2: #c98b1e;
  --noel-gold-light: #fff1c1;
  --noel-cream: #fbf3e4;
  --noel-snow: #f4f8fc;
  --noel-serif: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
  --noel-gold-text: linear-gradient(180deg, #fff6d6 0%, #f7d47a 38%, #e0a63a 62%, #fff0b8 100%);
}

.avent-theme--noel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--noel-cream);
  background: var(--noel-night);
}

.avent-theme--noel > .ds-main {
  position: relative;
  z-index: 1;
}

.avent-theme--noel .ds-content {
  padding: 74px 32px 190px;
}

.avent-theme--noel a {
  color: var(--noel-gold);
}

.noel-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   DÉCOR
   ============================================================ */
.noel-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.noel-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% 108%, rgba(80, 150, 210, .45), transparent 70%),
    linear-gradient(180deg, #040a1a 0%, #081633 30%, #0e2752 65%, #1a3f72 100%);
}

.noel-aurora span {
  position: absolute;
  width: 55%;
  height: 38%;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .28;
  mix-blend-mode: screen;
  animation: noelAurora 22s ease-in-out infinite alternate;
}
.noel-aurora span:nth-child(1) { top: 2%; left: -8%; background: radial-gradient(#2ee59d, transparent 70%); }
.noel-aurora span:nth-child(2) { top: 8%; left: 30%; background: radial-gradient(#3fb8ff, transparent 70%); animation-duration: 28s; animation-delay: -6s; }
.noel-aurora span:nth-child(3) { top: 0; right: -10%; background: radial-gradient(#b56dff, transparent 70%); animation-duration: 25s; animation-delay: -12s; opacity: .2; }

.noel-stars i {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7);
  animation: noelTwinkle var(--t) ease-in-out var(--d) infinite alternate;
}

.noel-shooting i {
  position: absolute;
  top: 9%;
  left: 78%;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
  opacity: 0;
  animation: noelShoot 13s linear infinite;
}
.noel-shooting i:nth-child(2) { top: 22%; left: 42%; animation-delay: 7s; animation-duration: 17s; }

.noel-moon {
  position: absolute;
  top: 250px;
  right: 3.5%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 40%, rgba(190, 178, 140, .45) 0 7px, transparent 8px),
    radial-gradient(circle at 38% 66%, rgba(190, 178, 140, .35) 0 10px, transparent 11px),
    radial-gradient(circle at 30% 30%, rgba(190, 178, 140, .3) 0 5px, transparent 6px),
    radial-gradient(circle at 35% 35%, #fffef6, #f3eacb 60%, #ddd2ad);
  box-shadow: 0 0 40px 12px rgba(255, 246, 210, .28), 0 0 140px 50px rgba(255, 246, 210, .1);
}

.noel-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.noel-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
}
.noel-garland svg {
  display: block;
  width: 100%;
  height: 40px;
  overflow: visible;
}
.noel-garland path {
  fill: none;
  stroke: #1c2e22;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.noel-bulb {
  --c: #ff3b4e;
  position: absolute;
  width: 11px;
  height: 17px;
  margin: 1px 0 0 -5.5px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), var(--c) 45%);
  box-shadow: 0 0 10px 3px var(--c), 0 0 26px 6px color-mix(in srgb, var(--c) 45%, transparent);
  animation: noelBulb 1.8s ease-in-out var(--d) infinite alternate;
}
.noel-bulb::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 2.5px;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: linear-gradient(#4b5a50, #1c2e22);
}
.noel-bulb--red { --c: #ff3b4e; }
.noel-bulb--gold { --c: #ffd34d; }
.noel-bulb--green { --c: #3ddc84; }
.noel-bulb--blue { --c: #4db8ff; }

.noel-hills {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
}
.noel-trees-back { color: #24506a; opacity: .75; }
.noel-trees-front { color: #0b3125; }
.noel-window { animation: noelFlicker 3.2s ease-in-out infinite alternate; }
.noel-smoke circle {
  fill: rgba(235, 242, 250, .35);
  transform-box: fill-box;
  transform-origin: center;
  animation: noelSmoke 5s ease-out infinite;
}
.noel-smoke circle:nth-child(2) { animation-delay: 1.6s; }
.noel-smoke circle:nth-child(3) { animation-delay: 3.2s; }

/* ============================================================
   TITRE DE PAGE
   ============================================================ */
.avent-theme--noel .ds-page-head {
  justify-content: center;
  text-align: center;
  margin-bottom: 26px;
}
.avent-theme--noel .ds-page-head-text {
  flex: 1 1 100%;
}
.avent-theme--noel .ds-page-head-title {
  font-family: var(--noel-serif);
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: .01em;
  line-height: 1.1;
  background: var(--noel-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(60, 20, 0, .45)) drop-shadow(0 0 22px rgba(242, 193, 78, .35));
  animation: noelTitleIn .9s cubic-bezier(.2, .8, .2, 1) both;
}
.avent-theme--noel .ds-page-head-text::after {
  content: '';
  display: block;
  width: min(320px, 70%);
  height: 12px;
  margin: 12px auto 0;
  background:
    radial-gradient(circle, var(--noel-gold) 0 3px, transparent 3.5px) center / 12px 12px no-repeat,
    linear-gradient(90deg, transparent, var(--noel-gold) 30%, transparent 46%, transparent 54%, var(--noel-gold) 70%, transparent) center / 100% 1px no-repeat;
}
.avent-theme--noel .ds-page-head-sub {
  margin: 10px auto 0;
  color: rgba(251, 243, 228, .78);
  font-size: 15px;
}

/* ============================================================
   COMPOSANTS COMMUNS
   ============================================================ */
.noel-tag {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--noel-gold-light);
  background: rgba(242, 193, 78, .12);
  border: 1px solid rgba(242, 193, 78, .4);
  backdrop-filter: blur(6px);
}
.noel-tag svg { width: 16px; height: 16px; color: var(--noel-gold); }

.noel-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: 700 15px/1.1 var(--font-display, sans-serif);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.noel-btn svg { width: 19px; height: 19px; flex: none; }
.noel-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.noel-btn:active { transform: translateY(2px); }
.noel-btn:focus-visible { outline: 3px solid var(--noel-gold-light); outline-offset: 3px; }
.noel-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: noelShine 4.5s ease-in-out infinite;
}

.avent-theme--noel a.noel-btn--gold,
.noel-btn--gold {
  color: #5a1010;
  background: linear-gradient(180deg, #ffe590 0%, #f2c14e 48%, #d4951f 100%);
  box-shadow: 0 5px 0 #9a6410, 0 12px 26px rgba(0, 0, 0, .4);
}
.noel-btn--gold:active { box-shadow: 0 2px 0 #9a6410, 0 6px 14px rgba(0, 0, 0, .4); }

.noel-btn--green {
  color: #fff;
  background: linear-gradient(180deg, #27a26c, #116b45);
  box-shadow: 0 5px 0 #0a4029, 0 10px 22px rgba(0, 0, 0, .25);
}

.noel-btn--ghost {
  color: var(--noel-cream);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.noel-btn--ghost::after { display: none; }

/* ============================================================
   CALENDRIER
   ============================================================ */
.noel-calendar {
  max-width: 1180px;
  margin: 0 auto;
}

.noel-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  margin-bottom: 30px;
  animation: noelFadeUp .8s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.noel-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}
.noel-countdown-n {
  font: 700 44px/1 var(--noel-serif);
  background: var(--noel-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60, 20, 0, .5));
}
.noel-countdown-star {
  width: 34px;
  height: 34px;
  color: var(--noel-gold);
  filter: drop-shadow(0 0 10px rgba(242, 193, 78, .7));
  animation: noelSpinSlow 12s linear infinite;
}
.noel-countdown-label {
  font-family: var(--noel-serif);
  font-style: italic;
  font-size: 18px;
}
.noel-progress {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 240px;
}
.noel-progress-text { font-size: 14px; }
.noel-progress-text strong { font-size: 18px; color: var(--noel-gold); }
.noel-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.noel-progress-bar span {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, #fff 0 7px, #e3233b 7px 14px);
  background-size: 40px 40px;
  animation: noelGrow 1.6s .4s cubic-bezier(.2, .8, .2, 1) both, noelCandy 1.2s linear infinite;
}

/* --- Plateau -------------------------------------------------- */
.noel-board {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 140, .12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #0f3d2d, #08281d);
  box-shadow:
    0 0 0 2px rgba(242, 193, 78, .7),
    0 0 0 10px #0a2219,
    0 0 0 12px rgba(242, 193, 78, .45),
    0 40px 90px rgba(0, 0, 0, .6);
  animation: noelFadeUp .9s .25s cubic-bezier(.2, .8, .2, 1) both;
}
/* Cadre lumineux : ampoules dorées et rouges qui s'allument en alternance */
.noel-board::before,
.noel-board::after {
  content: '';
  position: absolute;
  inset: -10px;
  padding: 8px;
  border-radius: 34px;
  background: radial-gradient(circle, #fff3c4 0 1.6px, #ffd34d 2.4px, rgba(255, 211, 77, .35) 3.2px, transparent 4.5px) -6px -6px / 20px 20px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  animation: noelMarquee 1.4s steps(1) infinite;
}
.noel-board::after {
  background-image: radial-gradient(circle, #ffd0d6 0 1.6px, #ff3b4e 2.4px, rgba(255, 59, 78, .35) 3.2px, transparent 4.5px);
  animation-delay: .7s;
}

.noel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(112px, 12.5vw, 156px);
  grid-template-areas: var(--areas);
  gap: 14px;
}

/* --- Porte ---------------------------------------------------- */
.noel-door {
  position: relative;
  container-type: size;
  border-radius: 12px;
  animation: noelDoorIn .6s calc(.35s + var(--i) * 35ms) cubic-bezier(.2, .8, .2, 1) both;
}

.noel-door-inside {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
  border-radius: 12px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 214, 120, .5), transparent 58%),
    linear-gradient(180deg, #5c0c1b, #2a0610);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .45), inset 0 10px 26px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.noel-door-photo {
  width: clamp(36px, 44cqmin, 150px);
  height: clamp(36px, 44cqmin, 150px);
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--noel-gold);
  box-shadow: 0 0 0 3px rgba(90, 10, 20, .8), 0 0 22px rgba(255, 210, 120, .6);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.noel-door-initials {
  display: grid;
  place-items: center;
  font: 700 clamp(13px, 15cqmin, 48px)/1 var(--noel-serif);
  color: #5a1010;
  background: radial-gradient(circle at 35% 30%, #fff3cf, #f2c14e 70%);
}
.noel-door-name {
  margin: 5px 0 0;
  max-width: 100%;
  font-weight: 700;
  font-size: clamp(10.5px, 9.5cqmin, 22px);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.noel-door-gift {
  margin: 2px 0 0;
  padding: 1px 8px;
  max-width: 100%;
  border-radius: 999px;
  font-size: clamp(9.5px, 7.5cqmin, 16px);
  color: #5a1010;
  background: var(--noel-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.noel-door-sparkles i {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fff 0 1px, transparent 2px), conic-gradient(from 45deg, transparent 0 20%, #ffe9a8 25%, transparent 30% 45%, #ffe9a8 50%, transparent 55% 70%, #ffe9a8 75%, transparent 80% 95%, #ffe9a8 100%);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 72%);
  mask: radial-gradient(circle, #000 30%, transparent 72%);
  animation: noelSparkle 2.4s ease-in-out infinite;
}
.noel-door-sparkles i:nth-child(1) { top: 14%; left: 16%; animation-delay: .2s; }
.noel-door-sparkles i:nth-child(2) { top: 24%; right: 14%; animation-delay: 1s; width: 14px; height: 14px; }
.noel-door-sparkles i:nth-child(3) { bottom: 16%; left: 22%; animation-delay: 1.7s; }

.noel-door-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.noel-door-hit:focus-visible { outline: 3px solid var(--noel-gold-light); outline-offset: 3px; }

/* Double battant : chaque moitié pivote sur sa charnière extérieure */
.noel-door-leaf {
  --open: 95deg;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 50%;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(0deg);
  transition: transform .7s cubic-bezier(.3, .9, .25, 1);
}
.noel-door-leaf--l { left: 0; transform-origin: left center; }
.noel-door-leaf--r { right: 0; transform-origin: right center; }

.noel-door-face,
.noel-door-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.noel-door-leaf--l .noel-door-face,
.noel-door-leaf--l .noel-door-back { border-radius: 12px 0 0 12px; }
.noel-door-leaf--r .noel-door-face,
.noel-door-leaf--r .noel-door-back { border-radius: 0 12px 12px 0; }
.noel-door-face { box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.noel-door-back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(0deg, rgba(120, 80, 40, .07) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, #e9dcc0, #f8efdc);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12);
}
/* Jointure entre les deux battants */
.noel-door-leaf--l .noel-door-face::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 3;
  width: 1px;
  background: rgba(0, 0, 0, .35);
  box-shadow: 1px 0 0 rgba(255, 255, 255, .12);
}

/* Le décor de la porte est dessiné une fois sur toute la largeur, puis coupé en deux */
.noel-door-art {
  --num-bg: var(--noel-gold-text);
  --icon: rgba(255, 255, 255, .3);
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 0 0 5px rgba(0, 0, 0, .08),
    inset 0 0 0 6px rgba(255, 225, 150, .4);
}
.noel-door-leaf--l .noel-door-art { left: 0; }
.noel-door-leaf--r .noel-door-art { left: -100%; }
/* Reflet + neige posée sur le haut de la porte */
.noel-door-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 38%);
  pointer-events: none;
}
.noel-door-art::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 13px;
  background:
    radial-gradient(circle at 10% 0, #fff 0 9px, transparent 10px),
    radial-gradient(circle at 28% 0, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 45% 0, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 66% 0, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 84% 0, #fff 0 9px, transparent 10px),
    linear-gradient(#fff, #fff) top / 100% 4px no-repeat;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .18));
  opacity: .95;
}

.noel-door--v1 .noel-door-art {
  background:
    radial-gradient(rgba(255, 214, 110, .4) 1.2px, transparent 1.8px) 0 0 / 15px 15px,
    linear-gradient(150deg, #e0344a, #8c0f22);
}
.noel-door--v2 .noel-door-art {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 6px, transparent 6px 15px),
    linear-gradient(150deg, #1f8556, #0b3a29);
}
.noel-door--v3 .noel-door-art {
  --num-bg: linear-gradient(180deg, #e0344a, #8c0f22);
  --icon: rgba(196, 21, 44, .22);
  background:
    radial-gradient(rgba(196, 21, 44, .28) 1.4px, transparent 2px) 0 0 / 18px 18px,
    radial-gradient(rgba(23, 115, 78, .28) 1.4px, transparent 2px) 9px 9px / 18px 18px,
    linear-gradient(150deg, #fffaf0, #eedfc3);
}
.noel-door--v4 .noel-door-art {
  background:
    radial-gradient(rgba(255, 255, 255, .55) .9px, transparent 1.4px) 0 0 / 23px 19px,
    radial-gradient(rgba(255, 255, 255, .35) .8px, transparent 1.3px) 11px 9px / 17px 21px,
    linear-gradient(150deg, #2a4f93, #0c1c42);
}
.noel-door--v5 .noel-door-art {
  background:
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(242, 193, 78, .55) 11px 12px, transparent 12px 26px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(242, 193, 78, .55) 11px 12px, transparent 12px 26px),
    repeating-linear-gradient(0deg, rgba(10, 70, 48, .5) 0 8px, transparent 8px 26px),
    repeating-linear-gradient(90deg, rgba(10, 70, 48, .5) 0 8px, transparent 8px 26px),
    #a8162b;
}
.noel-door--v6 .noel-door-art {
  --num-bg: linear-gradient(180deg, #9c1226, #5a0a16);
  --icon: rgba(120, 20, 20, .22);
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%) 0 0 / 300% 100%,
    linear-gradient(150deg, #ffe08a, #d39a2a);
  animation: noelGoldSheen 6s ease-in-out infinite;
}

.noel-door-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font: 700 clamp(26px, 30cqmin, 110px)/1 var(--noel-serif);
  background: var(--num-bg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
.noel-door-icon {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: 48cqmin;
  height: 48cqmin;
  color: var(--icon);
  transform: rotate(-8deg);
}
.noel-door-knob {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d0, #d4951f 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.noel-door-knob--l { left: calc(50% - 15px); }
.noel-door-knob--r { left: calc(50% + 6px); }

/* Jour 24 : la grande porte */
.noel-door.is-big .noel-door-art {
  --icon: #ffd34d;
  background:
    radial-gradient(circle at 70% 70%, rgba(255, 210, 90, .35), transparent 50%),
    radial-gradient(rgba(255, 214, 110, .45) 1.3px, transparent 2px) 0 0 / 16px 16px,
    linear-gradient(150deg, #c81d34, #5e0814);
}
.noel-door.is-big .noel-door-icon {
  width: 56cqmin;
  height: 56cqmin;
  right: 10%;
  bottom: 10%;
  filter: drop-shadow(0 0 14px rgba(255, 211, 77, .9));
  animation: noelStarPulse 3s ease-in-out infinite;
}

/* Porte ouverte : les battants s'ouvrent à l'arrivée sur la page */
.noel-door.is-open .noel-door-leaf {
  pointer-events: none;
  animation: noelDoorOpenL 1.3s calc(.8s + var(--i) * 70ms) cubic-bezier(.3, .9, .25, 1) backwards;
}
.noel-door.is-open .noel-door-leaf--l { transform: perspective(1200px) rotateY(calc(var(--open) * -1)); }
.noel-door.is-open .noel-door-leaf--r { transform: perspective(1200px) rotateY(var(--open)); animation-name: noelDoorOpenR; }
.noel-door.is-open:hover .noel-door-photo { transform: scale(1.08); }

/* Porte fermée : elle s'entrouvre au survol */
.noel-door:not(.is-open):hover .noel-door-leaf--l { transform: perspective(1200px) rotateY(-16deg); }
.noel-door:not(.is-open):hover .noel-door-leaf--r { transform: perspective(1200px) rotateY(16deg); }
.noel-door:not(.is-open):hover { z-index: 3; }

/* Aujourd'hui */
.noel-door.is-today {
  z-index: 2;
}
.noel-door.is-today::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 17px;
  background: conic-gradient(from var(--noel-angle, 0deg), #ffd34d, #ff3b4e, #3ddc84, #4db8ff, #ffd34d);
  filter: blur(6px);
  opacity: .9;
  animation: noelHalo 4s linear infinite;
}
.noel-door.is-today:not(.is-open) .noel-door-leaf--l { animation: noelWiggleL 5s 2.5s ease-in-out infinite; }
.noel-door.is-today:not(.is-open) .noel-door-leaf--r { animation: noelWiggleR 5s 2.5s ease-in-out infinite; }
.noel-door-ribbon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(64% - 8px), #f2c14e calc(64% - 8px), #ffe590 64%, #c98b1e calc(64% + 8px), transparent calc(64% + 8px)),
    linear-gradient(180deg, transparent calc(38% - 8px), #f2c14e calc(38% - 8px), #ffe590 38%, #c98b1e calc(38% + 8px), transparent calc(38% + 8px));
  opacity: .95;
}
.noel-door-ribbon::before,
.noel-door-ribbon::after {
  content: '';
  position: absolute;
  top: calc(38% - 15px);
  width: 22px;
  height: 15px;
  border: 5px solid #f2c14e;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3);
}
.noel-door-ribbon::before { left: calc(64% - 22px); transform: rotate(-24deg); }
.noel-door-ribbon::after { left: 64%; transform: rotate(24deg); }
.noel-door-today {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5a1010;
  background: linear-gradient(180deg, #ffe590, #f2c14e);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

/* --- Lightbox / célébration (partagé) ------------------------ */
.noel-lightbox,
.noel-celebrate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(40, 10, 20, .72), rgba(3, 8, 20, .88));
  backdrop-filter: blur(5px);
  animation: noelFade .3s ease both;
}
.noel-lightbox[hidden],
.noel-celebrate[hidden] { display: none; }

.noel-lightbox-card,
.noel-celebrate-card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 28px 28px;
  border-radius: 24px;
  text-align: center;
  color: var(--noel-cream);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 120, .35), transparent 60%),
    linear-gradient(180deg, #8c0f22, #4a0712);
  box-shadow: 0 0 0 2px var(--noel-gold), 0 0 0 8px rgba(242, 193, 78, .18), 0 30px 80px rgba(0, 0, 0, .6);
  animation: noelPop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.noel-lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--noel-cream);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.noel-lightbox-close:hover { opacity: 1; }
.noel-lightbox-day,
.noel-celebrate-kicker,
.noel-lightbox-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--noel-gold);
}
.noel-lightbox-day {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  color: #5a1010;
  background: var(--noel-gold);
}
.noel-lightbox-photo,
.noel-celebrate-photo {
  width: 150px;
  height: 150px;
  margin: 20px auto 14px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 4px solid var(--noel-gold);
  box-shadow: 0 0 0 5px rgba(90, 10, 20, .8), 0 0 40px rgba(255, 210, 120, .6);
  background: radial-gradient(circle at 35% 30%, #fff3cf, #f2c14e 70%);
}
.noel-celebrate-photo[hidden] { display: none; }
.noel-lightbox-photo img,
.noel-celebrate-photo img { width: 100%; height: 100%; object-fit: cover; }
.noel-lightbox-photo span {
  font: 700 54px/1 var(--noel-serif);
  color: #5a1010;
}
.noel-lightbox-card h2,
.noel-celebrate-card h2 {
  margin: 6px 0 0;
  font: italic 700 clamp(28px, 6vw, 40px)/1.1 var(--noel-serif);
  background: var(--noel-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 0, 0, .5));
}
.noel-lightbox-gift,
.noel-celebrate-gift {
  margin: 12px 0 0;
  font-size: 15px;
  opacity: .9;
}
.noel-lightbox-gift:empty,
.noel-celebrate-gift:empty { display: none; }
.noel-celebrate-card { width: min(480px, 100%); padding-top: 30px; }
.noel-celebrate-card h2 { font-size: clamp(32px, 7vw, 50px); margin-top: 18px; }
.noel-celebrate-ok { margin-top: 24px; }

.noel-confetti {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --- Visuel à partager --------------------------------------- */
.noel-visual {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 8, 20, .86);
  backdrop-filter: blur(5px);
  animation: noelFade .25s ease both;
}
.noel-visual[hidden] { display: none; }
.noel-visual-card {
  position: relative;
  width: min(1240px, 100%);
  max-height: calc(100vh / var(--ui-scale, 1) - 32px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px 20px;
  border-radius: 20px;
  color: var(--noel-cream);
  background: linear-gradient(180deg, #13284a, #0a1830);
  box-shadow: 0 0 0 1px rgba(242, 193, 78, .5), 0 30px 80px rgba(0, 0, 0, .6);
  animation: noelPop .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
.noel-visual-title {
  margin: 0;
  font: italic 700 24px/1.2 var(--noel-serif);
  color: var(--noel-gold-light);
}
.noel-visual-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}
.noel-visual-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.noel-visual-mail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.noel-visual-mail h3 {
  margin: 0 0 4px;
  font: italic 700 19px/1.2 var(--noel-serif);
  color: var(--noel-gold);
}
.noel-visual-mail label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(251, 243, 228, .75);
}
.noel-visual-mail input,
.noel-visual-mail textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  font: 14px/1.45 var(--font-body, sans-serif);
  color: #1a1a18;
  background: #fbf6ec;
}
.noel-visual-mail textarea { resize: vertical; min-height: 140px; }
.noel-visual-mail .noel-visual-actions { justify-content: flex-start; margin-top: 6px; }
.noel-visual-mail .noel-btn { padding: 10px 16px; font-size: 14px; }
.noel-visual-hint { margin: 0; font-size: 12.5px; opacity: .7; }
.noel-visual-mail label span { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .8; }
.noel-visual-tabs { display: flex; gap: 6px; }
.noel-visual-tabs button {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  font: 600 13px var(--font-body, sans-serif);
  color: var(--noel-cream);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}
.noel-visual-tabs button.is-active { color: #5a1010; background: var(--noel-gold); }
.noel-visual-preview[hidden] { display: none; }
.noel-visual-mailpreview { display: flex; background: #0a1428; }
.noel-visual-mailpreview iframe {
  flex: 1 1 auto;
  width: 100%;
  min-height: 420px;
  height: auto;
  align-self: stretch;
  border: 0;
}
.noel-visual-preview {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  overflow: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, .3);
}
.noel-visual-preview img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh / var(--ui-scale, 1) - 230px);
  object-fit: contain;
}
.noel-visual-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.noel-visual-status {
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  font-size: 14px;
  color: var(--noel-gold-light);
}
.noel-draw-side > .noel-btn--gold { margin-top: -4px; }

/* ============================================================
   TIRAGE
   ============================================================ */
.noel-draw {
  max-width: 1160px;
  margin: 0 auto;
}

.noel-draw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .85fr);
  align-items: center;
  gap: 30px 56px;
}

.noel-wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 36px 0 30px;
  animation: noelFadeUp .9s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.noel-wheel-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  aspect-ratio: 1;
  max-width: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 100, .35), rgba(255, 120, 80, .1) 45%, transparent 68%);
  animation: noelGlow 3.5s ease-in-out infinite alternate;
}
.noel-wheel-wrap {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
}
#noel-wheel {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55));
}
.noel-wheel-pointer {
  position: absolute;
  top: -30px;
  left: 50%;
  z-index: 2;
  width: 62px;
  margin-left: -31px;
  transform-origin: 50% 30%;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)) drop-shadow(0 0 12px rgba(255, 211, 77, .55));
  animation: noelBob 2.2s ease-in-out infinite;
}
.noel-wheel-pointer.is-tick { animation: noelTick .14s ease-out; }
.noel-wheel-pointer svg { display: block; width: 100%; }
.noel-wheel-base {
  width: 62%;
  height: 26px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%);
}

.noel-draw-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  animation: noelFadeUp .9s .35s cubic-bezier(.2, .8, .2, 1) both;
}

/* Boule de Noël « Jour N » */
.noel-day-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin-top: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7) 0 6%, transparent 18%),
    radial-gradient(circle at 40% 35%, #ff5d6f, #c4152c 45%, #5c0814 100%);
  box-shadow: inset -10px -14px 26px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .45), 0 0 40px rgba(227, 52, 74, .35);
  transform-origin: 50% -26px;
  animation: noelSwing 4.5s ease-in-out infinite;
}
.noel-day-badge::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 34px;
  height: 18px;
  margin-left: -17px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #a8741a, #ffe590 40%, #c98b1e);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .4);
}
.noel-day-badge::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  width: 14px;
  height: 16px;
  margin-left: -7px;
  border: 2.5px solid #d6a440;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.noel-day-badge-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--noel-gold-light);
}
.noel-day-badge-n {
  font: 700 62px/1 var(--noel-serif);
  color: #fff;
  text-shadow: 0 3px 0 rgba(60, 0, 10, .55);
}
.noel-day-badge-date {
  position: absolute;
  top: calc(100% + 12px);
  white-space: nowrap;
  font-family: var(--noel-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--noel-cream);
}

.noel-draw-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
}
.noel-draw-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}
.noel-draw-facts li.is-demo { color: var(--noel-gold-light); border-color: rgba(242, 193, 78, .45); }
.noel-draw-facts svg { width: 17px; height: 17px; color: var(--noel-gold); flex: none; }
.noel-draw-facts strong { color: var(--noel-gold-light); }

.noel-spin-form { margin: 0; }
.noel-btn--spin {
  isolation: isolate;
  overflow: visible;
  margin: 10px;
  padding: 20px 38px;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(80, 0, 10, .6);
  background: linear-gradient(180deg, #ff5266, #c4152c 55%, #8c0f22);
  box-shadow: 0 7px 0 #5c0814, 0 18px 40px rgba(196, 21, 44, .5);
  animation: noelCta 2.4s ease-in-out infinite;
}
.noel-btn--spin::before {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: repeating-linear-gradient(45deg, #fff 0 9px, #e3233b 9px 18px);
  background-size: 51px 51px;
  animation: noelCandy 1s linear infinite;
}
.noel-btn--spin::after { border-radius: inherit; }
.noel-btn--spin span { position: relative; }
.noel-btn--spin:disabled {
  cursor: not-allowed;
  opacity: .55;
  animation: none;
  filter: grayscale(.4);
}
.noel-btn--spin:disabled::before,
.noel-btn--spin:disabled::after { animation: none; }
.noel-draw-empty { margin: 12px 0 0; opacity: .85; }

/* Étiquette cadeau du gagnant */
.noel-reveal {
  position: relative;
  width: min(360px, 100%);
  margin-top: 26px;
  padding: 30px 24px 24px;
  border-radius: 18px;
  color: #3a1a12;
  background:
    radial-gradient(circle at 50% 22px, var(--noel-night) 0 7px, transparent 8px),
    repeating-linear-gradient(0deg, rgba(120, 80, 40, .05) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #fffaf0, #f1e3c6);
  box-shadow: 0 0 0 1px rgba(150, 100, 40, .35), inset 0 0 0 7px #fffaf0, inset 0 0 0 8px rgba(196, 21, 44, .5), 0 22px 50px rgba(0, 0, 0, .45);
  transform-origin: 50% -30px;
  animation: noelTagIn 1s cubic-bezier(.2, 1.3, .4, 1) both, noelSwing 6s 1s ease-in-out infinite;
}
.noel-reveal-string {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 2px;
  height: 56px;
  background: linear-gradient(#c4152c, #8c0f22);
}
.noel-reveal-kicker {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--noel-red);
}
.noel-reveal-photo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 14px auto 4px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--noel-gold);
  box-shadow: 0 0 0 4px #fffaf0, 0 0 0 6px rgba(196, 21, 44, .5), 0 10px 22px rgba(0, 0, 0, .3);
}
.noel-reveal-name {
  margin: 8px 0 0;
  font: italic 700 clamp(26px, 3.2vw, 36px)/1.1 var(--noel-serif);
  color: #9c1226;
}
.noel-reveal-gift {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--noel-pine-2);
}

.noel-winner-form {
  width: min(360px, 100%);
  padding: 18px 20px 20px;
  border-radius: 16px;
  text-align: left;
  color: var(--text-primary, #1a1a18);
  background: rgba(251, 243, 228, .96);
  box-shadow: inset 0 5px 0 var(--noel-red), 0 16px 40px rgba(0, 0, 0, .35);
}
.noel-winner-form .ds-form-group { margin-bottom: 12px; }
.noel-winner-form input[type="file"] { max-width: 100%; font-size: 13px; }

/* Hors période */
.noel-offseason {
  max-width: 520px;
  margin: 20px auto;
  padding: 34px 30px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.noel-offseason-icon {
  width: 56px;
  height: 56px;
  color: #cfe6ff;
  animation: noelSpinSlow 14s linear infinite;
}
.noel-offseason h2 {
  margin: 12px 0 10px;
  font: italic 700 28px/1.2 var(--noel-serif);
  color: var(--noel-gold-light);
}
.noel-offseason p { margin: 6px 0 0; font-size: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .noel-visual-body { grid-template-columns: 1fr; }
  .noel-draw-layout { grid-template-columns: 1fr; }
  .noel-wheel-wrap { width: min(520px, 92vw); }
}

@media (max-width: 760px) {
  .avent-theme--noel .ds-content { padding: 64px 16px 160px; }
  .noel-board { padding: 12px; border-radius: 18px; }
  .noel-board::before, .noel-board::after { border-radius: 26px; }
  .noel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: none;
    grid-auto-rows: 104px;
    gap: 9px;
  }
  .noel-door { grid-area: auto !important; }
  .noel-door:first-child { grid-area: auto / span 2 !important; }
  .noel-door.is-big { grid-area: auto / 1 / span 2 / -1 !important; }
  .noel-moon { display: none; }
  .noel-bulb:nth-of-type(even) { display: none; }
  .noel-door-num { top: 8px; left: 9px; }
  .noel-hills { height: 150px; }
  .noel-hero-card { padding: 10px 16px; }
  .noel-countdown-n { font-size: 36px; }
}

@media (max-width: 420px) {
  .noel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 112px; }
  .noel-btn--spin { padding: 16px 28px; font-size: 18px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@property --noel-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes noelTwinkle {
  from { opacity: .2; transform: scale(.7); }
  to { opacity: 1; transform: scale(1.15); }
}
@keyframes noelAurora {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12%, 6%) scale(1.25); }
}
@keyframes noelShoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(-20deg); }
  1.5% { opacity: 1; }
  7% { opacity: 0; transform: translate(-420px, 150px) rotate(-20deg); }
  100% { opacity: 0; transform: translate(-420px, 150px) rotate(-20deg); }
}
@keyframes noelBulb {
  from { opacity: .55; box-shadow: 0 0 4px 1px var(--c); }
  to { opacity: 1; box-shadow: 0 0 12px 4px var(--c), 0 0 30px 8px color-mix(in srgb, var(--c) 45%, transparent); }
}
@keyframes noelFlicker {
  0%, 100% { opacity: 1; }
  40% { opacity: .82; }
  70% { opacity: .95; }
}
@keyframes noelSmoke {
  from { opacity: .7; transform: translate(0, 0) scale(.6); }
  to { opacity: 0; transform: translate(10px, -36px) scale(1.6); }
}
@keyframes noelTitleIn {
  from { opacity: 0; transform: translateY(-14px) scale(.96); letter-spacing: .08em; }
  to { opacity: 1; transform: none; }
}
@keyframes noelFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes noelFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes noelGrow {
  from { width: 0; }
}
@keyframes noelCandy {
  to { background-position: 40px 0; }
}
@keyframes noelSpinSlow {
  to { transform: rotate(360deg); }
}
@keyframes noelMarquee {
  0% { opacity: 1; }
  50% { opacity: .15; }
}
@keyframes noelDoorIn {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes noelDoorOpenL {
  0% { transform: perspective(1200px) rotateY(0deg); }
  12% { transform: perspective(1200px) rotateY(6deg); }
}
@keyframes noelDoorOpenR {
  0% { transform: perspective(1200px) rotateY(0deg); }
  12% { transform: perspective(1200px) rotateY(-6deg); }
}
@keyframes noelWiggleL {
  0%, 80%, 100% { transform: perspective(1200px) rotateY(0deg); }
  84% { transform: perspective(1200px) rotateY(-14deg); }
  88% { transform: perspective(1200px) rotateY(-4deg); }
  92% { transform: perspective(1200px) rotateY(-10deg); }
}
@keyframes noelWiggleR {
  0%, 80%, 100% { transform: perspective(1200px) rotateY(0deg); }
  84% { transform: perspective(1200px) rotateY(14deg); }
  88% { transform: perspective(1200px) rotateY(4deg); }
  92% { transform: perspective(1200px) rotateY(10deg); }
}
@keyframes noelHalo {
  to { --noel-angle: 360deg; }
}
@keyframes noelSparkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}
@keyframes noelGoldSheen {
  0%, 60% { background-position: 120% 0, 0 0; }
  100% { background-position: -120% 0, 0 0; }
}
@keyframes noelStarPulse {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.08); }
}
@keyframes noelShine {
  0%, 70% { left: -60%; }
  100% { left: 130%; }
}
@keyframes noelPop {
  from { opacity: 0; transform: scale(.6) translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes noelGlow {
  from { opacity: .6; transform: scale(.95); }
  to { opacity: 1; transform: scale(1.05); }
}
@keyframes noelBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@keyframes noelTick {
  0% { transform: rotate(0); }
  35% { transform: rotate(-16deg); }
  100% { transform: rotate(0); }
}
@keyframes noelSwing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes noelTagIn {
  from { opacity: 0; transform: translateY(-40px) rotate(-14deg); }
  to { opacity: 1; transform: none; }
}
@keyframes noelCta {
  0%, 100% { box-shadow: 0 7px 0 #5c0814, 0 18px 40px rgba(196, 21, 44, .45); }
  50% { box-shadow: 0 7px 0 #5c0814, 0 18px 60px rgba(255, 82, 102, .8); }
}

@media (prefers-reduced-motion: reduce) {
  .avent-theme--noel *,
  .avent-theme--noel *::before,
  .avent-theme--noel *::after,
  .noel-lightbox *,
  .noel-celebrate * {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001s !important;
  }
}

/* ============================================================
   AMBIANCE SONORE (bouton + panneau)
   ============================================================ */
.noel-sound {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 14px;
}
.noel-sound-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid var(--noel-gold);
  border-radius: 50%;
  color: var(--noel-gold-light);
  background: radial-gradient(circle at 35% 30%, #1d3b70, #091633 70%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 4px rgba(242, 193, 78, .12);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.noel-sound-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 22px rgba(242, 193, 78, .45); }
.noel-sound-btn:focus-visible { outline: 3px solid var(--noel-gold-light); outline-offset: 3px; }
.noel-sound-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.noel-sound-icon circle { fill: currentColor; }
.noel-sound-btn.is-muted::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--noel-gold-light);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 2px #0b1a3a;
}
.noel-sound-eq {
  position: absolute;
  right: -4px;
  top: -4px;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  padding: 3px 4px;
  border-radius: 9px;
  background: var(--noel-red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.noel-sound-eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: noelEq .9s ease-in-out infinite alternate; }
.noel-sound-eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .7s; }
.noel-sound-eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.1s; }
.noel-sound-btn.is-playing .noel-sound-eq { display: flex; }
.noel-sound-btn.is-playing { animation: noelSoundPulse 2.4s ease-in-out infinite; }

.noel-sound-hint {
  position: relative;
  margin: 0;
  padding: 8px 14px;
  border-radius: 14px;
  color: #3a0a12;
  font-family: var(--noel-serif);
  font-style: italic;
  font-size: 15px;
  background: var(--noel-cream);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  animation: noelFadeUp .5s ease-out both, noelBob 2.2s 0.5s ease-in-out infinite;
}
.noel-sound-hint::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: -7px;
  border: 7px solid transparent;
  border-bottom: 0;
  border-top-color: var(--noel-cream);
}

.noel-sound-panel {
  width: 290px;
  max-height: calc(100vh / var(--ui-scale, 1) - 120px);
  overflow: auto;
  padding: 18px 18px 14px;
  border: 1px solid rgba(242, 193, 78, .55);
  border-radius: 18px;
  color: var(--noel-cream);
  background: linear-gradient(180deg, rgba(16, 35, 72, .97), rgba(7, 18, 42, .97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: noelFadeUp .25s ease-out both;
}
.noel-sound-title {
  margin: 0 0 12px;
  font-family: var(--noel-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--noel-gold);
}
.noel-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  cursor: pointer;
  font-weight: 600;
}
.noel-switch input { position: absolute; opacity: 0; pointer-events: none; }
.noel-switch-ui {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .18);
  transition: background .2s;
}
.noel-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.noel-switch input:checked + .noel-switch-ui { background: var(--noel-pine-2); }
.noel-switch input:checked + .noel-switch-ui::after { transform: translateX(18px); }
.noel-switch input:focus-visible + .noel-switch-ui { outline: 2px solid var(--noel-gold); outline-offset: 2px; }
.noel-sound-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px 50px;
  font-size: 13px;
  color: rgba(251, 243, 228, .75);
}
.noel-sound-next {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(242, 193, 78, .5);
  border-radius: 50%;
  color: var(--noel-gold);
  background: transparent;
  cursor: pointer;
}
.noel-sound-next:hover { background: rgba(242, 193, 78, .15); }
.noel-sound-next svg { width: 14px; height: 14px; fill: currentColor; }
.noel-sound-vol { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 13px; }
.noel-sound-vol input { flex: 1; accent-color: var(--noel-gold); }

.noel-eggs-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(242, 193, 78, .35); }
.noel-eggs-title { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(251, 243, 228, .8); }
.noel-eggs-title strong { color: var(--noel-gold); }
.noel-eggs-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.noel-eggs-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--noel-gold-2), var(--noel-gold-light)); }
.noel-eggs-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.noel-eggs-list li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; color: rgba(251, 243, 228, .55); }
.noel-eggs-list li span { flex: none; width: 16px; text-align: center; font-weight: 700; color: rgba(242, 193, 78, .6); }
.noel-eggs-list li.is-found { color: var(--noel-cream); font-weight: 600; }
.noel-eggs-list li.is-found span { color: var(--noel-gold); text-shadow: 0 0 6px rgba(242, 193, 78, .8); }

/* ============================================================
   SURPRISES
   ============================================================ */
.noel-fxlayer {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw / var(--ui-scale, 1));
  height: calc(100vh / var(--ui-scale, 1));
  z-index: 65;
  pointer-events: none;
  overflow: hidden;
}
.noel-fxcanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.noel-toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 75;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.noel-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--noel-gold);
  border-radius: 999px;
  color: var(--noel-cream);
  background: linear-gradient(180deg, #14305f, #0a1838);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(242, 193, 78, .25);
  animation: noelToastIn .5s cubic-bezier(.2, 1.4, .4, 1) both;
  transition: opacity .5s, transform .5s;
}
.noel-toast.is-out { opacity: 0; transform: translateY(12px); }
.noel-toast svg { flex: none; width: 28px; height: 28px; fill: var(--noel-gold); filter: drop-shadow(0 0 6px rgba(242, 193, 78, .8)); animation: noelSpinSlow 6s linear infinite; }
.noel-toast strong { display: block; font-size: 14px; }
.noel-toast span { display: block; font-size: 12px; color: rgba(251, 243, 228, .7); }

/* Traîneau */
.noel-sleigh {
  position: absolute;
  top: 16vh;
  left: 0;
  width: min(440px, 70vw);
  animation: noelSleighFly 8s cubic-bezier(.35, .1, .5, .9) forwards;
  filter: drop-shadow(0 0 14px rgba(255, 241, 193, .55));
}
.noel-sleigh svg { display: block; width: 100%; overflow: visible; }
.noel-deer { fill: #8a5a35; animation: noelDeerBob .5s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.12s); }
.noel-deer-antler { fill: none; stroke: #d9b787; stroke-width: 1.8; stroke-linecap: round; }
.noel-deer-legs { fill: none; stroke: #6d4428; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.noel-deer-harness { fill: none; stroke: #f2c14e; stroke-width: 1.6; }
.noel-deer-nose { fill: #ff3b4e; filter: drop-shadow(0 0 4px #ff3b4e); animation: noelNose .6s ease-in-out infinite alternate; }
.noel-sleigh-reins { fill: none; stroke: #f2c14e; stroke-width: 1.2; opacity: .9; }
.noel-sleigh-body { animation: noelDeerBob .7s ease-in-out infinite alternate; }
.noel-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff6d6;
  box-shadow: 0 0 8px 2px rgba(255, 211, 77, .9);
  animation: noelSparkFall 1.4s ease-out forwards;
}

/* Coucou du Père Noël */
.noel-santa {
  position: absolute;
  left: 6vw;
  bottom: 0;
  width: 200px;
  animation: noelSantaPeek 6.2s ease-in-out forwards;
}
.noel-santa svg { display: block; width: 100%; filter: drop-shadow(0 -6px 20px rgba(0, 0, 0, .35)); }
.noel-santa-wink { transform-box: fill-box; transform-origin: center; }
.noel-santa.is-wink .noel-santa-wink { animation: noelWink .5s ease-in-out 2; }
.noel-santa-bubble {
  position: absolute;
  left: 170px;
  top: 12px;
  width: max-content;
  max-width: 260px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 18px 18px 18px 4px;
  color: #3a0a12;
  font-family: var(--noel-serif);
  font-style: italic;
  font-size: 17px;
  background: var(--noel-cream);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  animation: noelFadeUp .4s 1s ease-out both;
}

/* Lune complice */
.noel-moon { transition: transform .4s cubic-bezier(.2, 1.5, .4, 1); }
.noel-moon.is-awake { transform: scale(1.35) rotate(-8deg); }
.noel-moon-face { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.noel-moon.is-awake .noel-moon-face { opacity: 1; }
.noel-moon-face i {
  position: absolute;
  top: 34%;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: #6b5a35;
}
.noel-moon-face i:first-child { left: 30%; }
.noel-moon-face i:nth-child(2) { right: 30%; transform-origin: center; animation: noelWink 1.2s .6s ease-in-out 2; }
.noel-moon-face b {
  position: absolute;
  left: 32%;
  top: 52%;
  width: 36%;
  height: 16%;
  border: 3px solid #6b5a35;
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

/* Chalet en fête */
.noel-cabin.is-party .noel-window { animation: noelPartyWindow .25s steps(1) infinite; }

/* Guirlande */
.noel-bulb.is-broken {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), #4a5560 60%);
  box-shadow: none;
  animation: noelBulbBroken .4s ease-out forwards;
}
.noel-garland.is-disco .noel-bulb {
  animation: noelDisco .5s steps(1) infinite;
  animation-delay: calc(var(--n, 0) * -.06s);
}

/* Renne pressé */
.noel-progress { position: relative; }
.noel-runner { position: absolute; left: 0; width: 46px; pointer-events: none; z-index: 2; }
.noel-runner svg { display: block; width: 100%; overflow: visible; animation: noelHop .32s ease-in-out infinite alternate; }

@keyframes noelEq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes noelSoundPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 4px rgba(242, 193, 78, .12); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 9px rgba(242, 193, 78, .06), 0 0 26px rgba(242, 193, 78, .35); }
}
@keyframes noelToastIn { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes noelSleighFly {
  0% { transform: translate(105vw, 6vh) rotate(-4deg); }
  25% { transform: translate(70vw, -2vh) rotate(-7deg); }
  50% { transform: translate(38vw, 4vh) rotate(-2deg); }
  75% { transform: translate(8vw, -3vh) rotate(-8deg); }
  100% { transform: translate(-60vw, -8vh) rotate(-10deg); }
}
@keyframes noelDeerBob { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
@keyframes noelNose { from { opacity: .7; } to { opacity: 1; } }
@keyframes noelSparkFall {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: translate(14px, 40px) scale(.2); }
}
@keyframes noelSantaPeek {
  0% { transform: translateY(105%); }
  14%, 82% { transform: translateY(6%); }
  20%, 76% { transform: translateY(9%) rotate(-3deg); }
  100% { transform: translateY(105%); }
}
@keyframes noelWink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.1); } }
@keyframes noelPartyWindow {
  0% { fill: #ff3b4e; }
  25% { fill: #ffd34d; }
  50% { fill: #3ddc84; }
  75% { fill: #4db8ff; }
}
@keyframes noelBulbBroken {
  0% { transform: scale(1.3); }
  40% { transform: rotate(18deg); }
  100% { transform: rotate(8deg) translateY(2px); opacity: .7; }
}
@keyframes noelDisco {
  0% { --c: #ff3b4e; transform: scale(1.25); }
  25% { --c: #ffd34d; transform: scale(.9); }
  50% { --c: #3ddc84; transform: scale(1.25); }
  75% { --c: #ff8ad8; transform: scale(.9); }
}
@keyframes noelHop { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-9px) rotate(4deg); } }

@media (max-width: 640px) {
  .noel-sound { right: 14px; bottom: 14px; }
  .noel-sound-panel { width: min(290px, calc(100vw - 28px)); }
  .noel-santa { width: 150px; }
  .noel-santa-bubble { left: 120px; font-size: 15px; max-width: 180px; }
}

/* ============================================================
   PORTE FERMÉE : elle résiste + bulle des lutins
   ============================================================ */
.noel-door:not(.is-open) { cursor: pointer; }
.noel-door.is-locked { z-index: 6; }
.noel-door.is-locked .noel-door-leaf--l { animation: noelRattleL .5s ease-in-out; }
.noel-door.is-locked .noel-door-leaf--r { animation: noelRattleR .5s ease-in-out; }
.noel-door-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: max-content;
  max-width: min(240px, 80vw);
  margin: 0;
  padding: 10px 14px;
  border: 2px solid var(--noel-gold);
  border-radius: 16px;
  color: #3a0a12;
  font-family: var(--noel-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  background: var(--noel-cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: noelBubbleIn .45s cubic-bezier(.2, 1.5, .4, 1) both;
  transition: opacity .4s, transform .4s;
}
.noel-door-bubble.is-out { opacity: 0; transform: translate(-50%, -70%); }

@keyframes noelRattleL {
  0%, 100% { transform: perspective(1200px) rotateY(0deg); }
  20% { transform: perspective(1200px) rotateY(-9deg); }
  40% { transform: perspective(1200px) rotateY(-2deg); }
  60% { transform: perspective(1200px) rotateY(-7deg); }
  80% { transform: perspective(1200px) rotateY(-1deg); }
}
@keyframes noelRattleR {
  0%, 100% { transform: perspective(1200px) rotateY(0deg); }
  20% { transform: perspective(1200px) rotateY(9deg); }
  40% { transform: perspective(1200px) rotateY(2deg); }
  60% { transform: perspective(1200px) rotateY(7deg); }
  80% { transform: perspective(1200px) rotateY(1deg); }
}
@keyframes noelBubbleIn {
  from { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============================================================
   LUTIN DU JOUR
   ============================================================ */
.noel-draw-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.noel-lightbox-elf { margin-top: 16px; }

.noel-elf {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 8, 20, .88);
  backdrop-filter: blur(5px);
  animation: noelFade .25s ease both;
}
.noel-elf[hidden] { display: none; }
.noel-elf-card {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh / var(--ui-scale, 1) - 32px);
  overflow: auto;
  padding: 20px 24px 22px;
  border-radius: 20px;
  color: var(--noel-cream);
  background: linear-gradient(180deg, #13284a, #0a1830);
  box-shadow: 0 0 0 1px rgba(242, 193, 78, .5), 0 30px 80px rgba(0, 0, 0, .6);
  animation: noelPop .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
.noel-elf-title {
  margin: 0 40px 14px 0;
  font-family: var(--noel-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--noel-gold);
}
.noel-elf-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.noel-elf-stage { display: flex; justify-content: center; }
.noel-elf-stage canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(800px, calc(100vh / var(--ui-scale, 1) - 130px));
  aspect-ratio: 3 / 4;
  border: 2px solid var(--noel-gold);
  border-radius: 16px;
  background: #0e2752;
}
.noel-elf-stage canvas.is-adjusting { cursor: grab; touch-action: none; }
.noel-elf-stage canvas.is-adjusting:active { cursor: grabbing; }
.noel-elf-side { display: flex; flex-direction: column; gap: 10px; }
.noel-elf-admin { display: flex; flex-direction: column; gap: 10px; }
.noel-elf-admin[hidden], .noel-elf-crop[hidden], .noel-elf-crop-tools[hidden] { display: none; }
.noel-elf-section {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(242, 193, 78, .35);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(251, 243, 228, .7);
}
.noel-elf-note, .noel-elf-help { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(251, 243, 228, .75); }
.noel-elf-crop, .noel-elf-crop-tools { display: flex; flex-direction: column; gap: 10px; }
.noel-elf-zoom { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.noel-elf-zoom input { flex: 1; accent-color: var(--noel-gold); }
.noel-elf-row { display: flex; flex-wrap: wrap; gap: 8px; }
.noel-elf-side .noel-btn { padding: 10px 18px; font-size: 14px; }
.noel-elf-download[hidden] { display: none; }
.noel-elf-status { min-height: 1.2em; margin: 0; font-size: 13px; color: var(--noel-gold-light); }

@media (max-width: 760px) {
  .noel-elf-body { grid-template-columns: 1fr; }
  .noel-elf-stage canvas { height: auto; width: 100%; max-width: 420px; }
}
.noel-elf-card.is-public { width: min(560px, 100%); }
.noel-elf-card.is-public .noel-elf-body { grid-template-columns: 1fr; justify-items: center; }

/* Mail : annonce à tous / mail au gagnant */
.noel-visual-mail-all { display: flex; flex-direction: column; gap: 6px; }
.noel-visual-mail-all[hidden], .noel-visual-mailtype[hidden] { display: none; }
.noel-visual-mailtype {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
}
.noel-visual-mailtype button {
  flex: 1;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--noel-cream);
  background: transparent;
  font: 700 13px/1.2 var(--font-body, sans-serif);
  cursor: pointer;
}
.noel-visual-mailtype button.is-active { color: #5a1010; background: var(--noel-gold); }
.noel-visual-mailtype button:focus-visible { outline: 2px solid var(--noel-gold-light); outline-offset: 2px; }
