a.elementor-button[id^="yt-news-"] {
  position: relative !important;
  overflow: visible !important;
}

a.elementor-button[id^="yt-news-"] .yeti-news-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  z-index: 30;
  pointer-events: none;
  border: 2px solid #fff;
}

/* hebdo = badge principal */
a.elementor-button[id^="yt-news-"] .yeti-news-badge--week {
  top: -10px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 4px0;
  transform: rotate(45deg);
  padding: 0;
}

a.elementor-button[id^="yt-news-"] .yeti-news-badge--week span {
  transform: rotate(-45deg);
  display: block;
  font-size: 10px;
  line-height: 1;
}

/* quotidien = plus à gauche */
a.elementor-button[id^="yt-news-"] .yeti-news-badge--day {
  top: -10px;
  right: 24px;
  min-width: 22px;
  height: 22px;
  padding: 4px 6px;
  border-radius: 999px;
  background: #ea1465;
}

/* si texte large type 99+ */
a.elementor-button[id^="yt-news-"] .yeti-news-badge--day.is-wide {
  min-width: 36px;
  padding: 0 8px;
  font-size: 10px;
}

a.elementor-button[id^="yt-news-"] .yeti-news-badge--week.is-wide {
  width: 30px;
  height: 30px;
}

a.elementor-button[id^="yt-news-"] .yeti-news-badge--week.is-wide span {
  font-size: 9px;
}

#yt-news-radar .yeti-news-badge--day,
#yt-news-wpjm .yeti-news-badge--day {
  right: 34px;
}

#yt-news-radar .yeti-news-badge--day.is-wide,
#yt-news-wpjm .yeti-news-badge--day.is-wide {
  right: 42px;
}

/* éviter que les wrappers Elementor/UAEL coupent les badges */
.uael-button-wrapper,
.elementor-widget-button,
.elementor-button-wrapper,
.elementor-button-content-wrapper {
  overflow: visible !important;
}



#col-legende .elementor-widget-wrap {
  overflow: visible !important;
}

#col-legende .yeti-news-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 8px;
  font-size: 14px;
  color: #222;
  flex-wrap: wrap;
  width: 100%;
}

#col-legende .yeti-news-legend__title {
  font-weight: 400;
}

#col-legende .yeti-news-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#col-legende .yeti-news-legend__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px solid #fff;
}

#col-legende .yeti-news-legend__badge--day {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ea1465;
}

#col-legende .yeti-news-legend__badge--week {
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 3px;
  transform: rotate(45deg);
}

#col-legende .yeti-news-legend__badge--week span {
  display: none;
}

#col-legende .yeti-news-legend__text {
  white-space: nowrap;
}