/* Texte tronqué + Voir plus / Voir moins */
.voir-plus-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  max-width: 100%;
}

.voir-plus-toggle {
  border: none;
  background: transparent;
  color: var(--titre-color, #1976d2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.3;
  flex-shrink: 0;
}

.voir-plus-toggle:hover,
.voir-plus-toggle:focus-visible {
  opacity: 0.85;
}

.voir-plus-wrap [data-voir-plus-text] {
  margin: 0;
  word-break: break-word;
}

/* Story viewer */
.story-viewer-legend-wrap {
  align-items: center;
  margin: 10px 0 0;
  padding: 0 10px 16px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.story-viewer-legend-wrap .story-viewer-legend {
  margin: 0;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.story-viewer-legend-wrap .voir-plus-toggle {
  color: #ffffff;
  align-self: flex-end;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.story-viewer-legend-wrap .voir-plus-toggle:hover,
.story-viewer-legend-wrap .voir-plus-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

/* Notifications */
.notification-item .voir-plus-wrap {
  margin-top: 2px;
}

.notification-item a .voir-plus-wrap {
  color: inherit;
}

.notification-item .voir-plus-toggle {
  font-size: 11px;
}
