/* ==========================================================================
   BANDEAU DES FÊTES (inc/bandeau-fetes.php)
   Pastille posée sous le menu flottant, en haut de la page. Position absolue :
   elle défile avec la page, ne décale ni le menu ni le contenu.
   ========================================================================== */

.fp-bfetes {
  position: absolute; z-index: 90;
  top: calc(var(--fp-nav-h, 84px) + var(--fp-admin-bar-h, 0px) + 6px);
  left: 0; right: 0;
  display: flex; justify-content: center;
  padding: 0 var(--fp-gutter-mobile, 20px);
  pointer-events: none;
}
.fp-bfetes[hidden] { display: none; }
.fp-bfetes-pastille {
  pointer-events: auto;
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  max-width: 100%;
  padding: 8px 8px 8px 10px;
  border-radius: var(--fp-pill, 30px);
  color: var(--fp-white, #fff);
  background: linear-gradient(100deg, #0b4a42, var(--fp-dark, #002f29));
  border: 1px solid rgba(255, 226, 154, .55);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
  animation: fp-bfetes-entree .7s cubic-bezier(.16, 1, .3, 1) both .3s;
}
.fp-bfetes-pastille::after {
  content: ''; position: absolute; inset: -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 226, 154, .22) 50%, transparent 56%);
  transform: translateX(-60%);
  animation: fp-bfetes-reflet 6s ease-in-out infinite 1.2s;
}
@keyframes fp-bfetes-entree { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fp-bfetes-reflet { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

.fp-bfetes-ic {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d6 0%, #ffe29a 40%, #f2b84b 100%);
  color: var(--fp-dark, #002f29);
}
.fp-bfetes-ic svg { width: 18px; height: 18px; animation: fp-bfetes-scintille 3s ease-in-out infinite; }
@keyframes fp-bfetes-scintille { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(14deg); } }
.fp-bfetes[data-etat="ferme"] .fp-bfetes-ic { background: rgba(255, 255, 255, .16); color: #ffe29a; }

.fp-bfetes-texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.fp-bfetes-titre {
  font-family: var(--fp-font-heading); font-weight: 400; text-transform: uppercase;
  font-size: 1.12rem; letter-spacing: .5px; white-space: nowrap;
}
.fp-bfetes[data-etat="ouvert"] .fp-bfetes-titre { color: #ffe29a; }
.fp-bfetes-sous { font-size: .8rem; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fp-bfetes-lien {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  margin-left: 6px; padding: 8px 14px; border-radius: var(--fp-pill, 30px);
  background: var(--fp-white, #fff); color: var(--fp-primary-dark, #004c45);
  font-family: var(--fp-font-heading); text-transform: uppercase; letter-spacing: .5px; font-size: .9rem;
  text-decoration: none; transition: background .25s, color .25s;
}
.fp-bfetes-lien:hover { background: #ffe29a; color: var(--fp-dark, #002f29); }
.fp-bfetes-fleche { display: inline-flex; }
.fp-bfetes-fleche svg { width: 14px; height: 14px; }
.fp-bfetes-fermer {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--fp-white, #fff);
  font-size: 1.1rem; line-height: 1;
}
.fp-bfetes-fermer:hover { background: rgba(255, 255, 255, .24); }

@media (max-width: 720px) {
  .fp-bfetes { top: calc(var(--fp-nav-h, 78px) + var(--fp-admin-bar-h, 0px) + 4px); padding: 0 12px; }
  .fp-bfetes-pastille { gap: 8px; padding: 6px 6px 6px 8px; }
  .fp-bfetes-ic { width: 28px; height: 28px; }
  .fp-bfetes-ic svg { width: 15px; height: 15px; }
  .fp-bfetes-titre { font-size: .95rem; white-space: normal; }
  .fp-bfetes-sous { font-size: .72rem; white-space: normal; }
  .fp-bfetes-lien { padding: 7px 10px; font-size: .78rem; margin-left: 0; }
  .fp-bfetes-lien > span:first-child { display: none; }
  .fp-bfetes-fermer { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-bfetes-pastille, .fp-bfetes-pastille::after, .fp-bfetes-ic svg { animation: none; }
}

/* Héros dont le sur-titre monte haut : un peu d'air sous la pastille, sur
   mobile seulement, et seulement quand elle est affichée (classe posée par le
   script). */
@media (max-width: 720px) {
  .fp-bfetes-on .fp-hub-hero { padding-top: calc(var(--fp-nav-h, 78px) + 92px); }
  .fp-bfetes-on .fp-abosl-hero { padding-top: calc(var(--fp-nav-h, 78px) + 92px); }
}
