/* Bandeau de saison : vert « papier cadeau » avec ruban doré, une seule ligne à hauteur fixe */
:root { --pfbn-h: 40px; }

.pfbn {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--pfbn-h);
  padding: 0 44px;
  color: #fff;
  font-size: 13.5px;
  line-height: 1;
  overflow: hidden;
  background-color: #14603f;
  /* motif papier cadeau : petits points clairs en quinconce */
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, .20) 0 1.7px, transparent 2.3px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, .20) 0 1.7px, transparent 2.3px),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .10));
  background-size: 28px 28px, 28px 28px, 100% 100%;
  /* ruban doré le long du bord bas */
  border-bottom: 3px solid #e2b95a;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .35);
}

/* deux rubans rouges verticaux, comme un paquet ficelé (grands écrans seulement) */
@media (min-width: 1100px) {
  .pfbn::before,
  .pfbn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    background: linear-gradient(90deg, #a81b2e, #d83a4e 50%, #a81b2e);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  }
  .pfbn::before { left: 7%; }
  .pfbn::after { right: 7%; }
}

.pfbn__link,
#header .pfbn__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
  margin: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
#header a.pfbn__link:hover .pfbn__text { text-decoration: underline; }

.pfbn__big {
  flex: none;
  padding: 5px 9px 4px;
  border-radius: 3px;
  background: #f1cf72;
  color: #0e3f29;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.pfbn__text { overflow: hidden; text-overflow: ellipsis; font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.pfbn__text--short { display: none; }
.pfbn__arrow { font-size: 19px; line-height: 1; color: #f1cf72; }
.pfbn__bow { flex: none; }
.pfbn__bow--r { transform: scaleX(-1); }

.pfbn__x {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 44px;
  height: var(--pfbn-h);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
}
.pfbn__x:hover,
.pfbn__x:focus-visible { opacity: 1; }

/* Quand le bandeau est là, il remplace la barre noire « Bienvenue » */
#header:has(.pfbn) .pfbv { display: none !important; }
/* L'en-tête Écrin est « collant » et cache les barres en remontant : on cache aussi la nôtre */
#header:has(.pfbn),
#header:has(.pfbn):has(.pfbv) { top: calc(-1 * (var(--ec-announce-h, 36px) + var(--pfbn-h))); }

@media (max-width: 767px) {
  .pfbn { padding: 0 38px 0 10px; font-size: 12.5px; }
  .pfbn__link { gap: 7px; }
  .pfbn__big { padding: 4px 7px 3px; font-size: 13px; }
  .pfbn__x { width: 38px; }
  .pfbn__arrow { display: none; }
  .pfbn__text--long { display: none; }
  .pfbn__text--short { display: inline; }
}
@media (max-width: 479px) {
  .pfbn__bow { display: none; }
  .pfbn { font-size: 12px; }
}
