.advent-banner {
  position: relative; overflow: hidden; color: #fff; font-size: .95rem; line-height: 1.3;
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.35) 0 1.5px, transparent 2px) 0 0 / 46px 38px,
    radial-gradient(circle at 70% 75%, rgba(255,255,255,.25) 0 1px, transparent 1.5px) 0 0 / 31px 27px,
    linear-gradient(90deg, #9e1028, #d7263d 50%, #9e1028);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
  transition: opacity .25s, transform .25s;
}

.advent-banner[hidden] {
  display: none;
}

.advent-banner.is-closing {
  opacity: 0; transform: translateY(-100%);
}

.advent-banner-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 28px; min-height: 46px; padding: 6px 52px 6px 24px; position: relative;
}

.ab-cal,
.ab-promo {
  display: flex; align-items: center; gap: 10px 12px; min-width: 0;
}

.ab-promo[hidden] {
  display: none;
}

.advent-banner-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #d7263d; font-size: .95rem; box-shadow: 0 .15rem .4rem rgba(0,0,0,.2);
}

.advent-banner-text {
  min-width: 0;
}

.advent-banner-text b {
  font-weight: 700; letter-spacing: .01em;
}

.advent-banner-sub {
  font-weight: 300;
}

.advent-banner-day {
  flex: none; background: #ffd43b; color: #3b2a00; font-weight: 600; font-size: .82rem; padding: 3px 11px; border-radius: 2rem; white-space: nowrap;
}

.advent-banner-day[hidden] {
  display: none;
}

.advent-banner-cta {
  flex: none; display: inline-flex; align-items: center; background: #fff; color: #b5172f; font-weight: 600; font-size: .88rem;
  padding: 5px 16px; border-radius: 2rem; text-decoration: none; white-space: nowrap; box-shadow: 0 .2rem .5rem rgba(0,0,0,.18); transition: transform .2s, background .2s;
}

.advent-banner-cta:hover,
.advent-banner-cta:focus-visible {
  color: #b5172f; background: #fff4f5; transform: scale(1.05);
}

.advent-banner-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: transparent; color: rgba(255,255,255,.8); font-size: 1rem; cursor: pointer; display: grid; place-items: center;
}

.advent-banner-close:hover,
.advent-banner-close:focus-visible {
  background: rgba(255,255,255,.15); color: #fff;
}

/* Promo du jour */
.advent-banner.has-promo .advent-banner-sub {
  display: none;
}

.ab-promo {
  flex-wrap: wrap; justify-content: center;
}

.ab-promo-label {
  flex: none; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #ffd43b; white-space: nowrap;
}

.ab-promo-offer {
  font-weight: 600;
}

.ab-promo-how {
  font-weight: 300; white-space: nowrap;
}

.ab-code {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 12px; border-radius: .4rem; cursor: pointer;
  border: 1.5px dashed rgba(255,255,255,.85); background: rgba(255,255,255,.12); color: #fff;
  font: 700 .85rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; transition: background .2s;
}

.ab-code:hover,
.ab-code:focus-visible {
  background: rgba(255,255,255,.25);
}

.ab-code i {
  font-size: .8rem; opacity: .85;
}

.ab-code.is-copied {
  border-style: solid; background: #fff; color: #b5172f;
}

.ab-code[hidden],
.ab-teaser[hidden],
.ab-promo-link[hidden] {
  display: none;
}

.ab-teaser {
  font-style: italic; font-weight: 300; font-size: .85rem; opacity: .95; white-space: nowrap;
}

.ab-teaser::before {
  content: "✨ ";
  font-style: normal;
}

.ab-promo-link {
  flex: none; display: inline-flex; align-items: center; color: #fff; font-weight: 600; font-size: .85rem; text-decoration: none; white-space: nowrap;
  padding: 4px 14px; border-radius: 2rem; border: 1.5px solid rgba(255,255,255,.8); transition: background .2s;
}

.ab-promo-link:hover,
.ab-promo-link:focus-visible {
  color: #fff; background: rgba(255,255,255,.15);
}

@media (max-width: 991px) {
  .advent-banner-sub { display: none; }
}

@media (max-width: 575px) {
  .advent-banner { font-size: .88rem; }
  .advent-banner-inner { gap: 6px 10px; justify-content: flex-start; padding-left: 14px; padding-right: 46px; }
  .ab-promo { justify-content: flex-start; gap: 6px 8px; }
  .advent-banner-icon { display: none; }
  .advent-banner-day { display: none; }
  /* Le jeu se joue sur ordinateur : sur mobile, la promo du jour passe avant le calendrier */
  .advent-banner.has-promo .ab-cal { display: none; }
  .ab-promo-label { display: none; }
  .ab-promo-how, .ab-teaser { display: none !important; }
  .ab-promo-offer { flex: 1 1 100%; line-height: 1.25; }
  .ab-code { font-size: .8rem; padding: 2px 8px 2px 10px; }
  .ab-promo-link { font-size: .8rem; padding: 2px 10px; }
}

.has-advent-banner .header-content {
  border-top: var(--advent-banner-h, 0px) solid transparent;
}

.header-content {
  transition: border-top-width .25s;
}
