/* Marquage européen des contenus assistés, modifiés ou générés par IA. */
.ai-text-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.7rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  cursor: default;
}

.ai-text-label > img[aria-hidden="true"] {
  display: block !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  transition: none !important;
  background: transparent !important;
}

.ai-media-surface {
  position: relative;
  isolation: isolate;
}

.ai-media-label {
  position: absolute;
  z-index: 3;
  right: 6px;
  bottom: 6px;
  display: block;
  min-height: 0;
  padding: 0;
  line-height: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.46));
}

.ai-media-label > img {
  display: block;
  width: min(88px, 24vw) !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  transition: none !important;
  background: transparent !important;
}

.ai-media-label--modified > img {
  width: min(82px, 22vw) !important;
}

.ai-media-label--top {
  top: clamp(8px, 1.5vw, 14px);
  bottom: auto;
}

.ai-label-legend {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.ai-label-legend li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ai-label-legend img {
  display: block;
  width: 150px;
  height: auto;
  flex: 0 0 auto;
}

.ai-label-legend img[data-ai-label="basic"] {
  width: 34px;
}

.ai-label-legend img[data-ai-label="modified"] {
  width: 140px;
}

.agency-site-photo-frame {
  position: relative;
}

.agency-site-photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agency-site-photo-frame .ai-media-label {
  right: 3px;
  bottom: 3px;
}

.agency-site-photo-frame .ai-media-label > img {
  width: 52px !important;
}

@media (max-width: 520px) {
  .ai-text-label {
    align-items: flex-start;
  }

  .ai-label-legend li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .ai-media-label > img {
    width: min(72px, 24vw) !important;
  }

  .ai-media-label--modified > img {
    width: min(68px, 22vw) !important;
  }

  .agency-site-photo-frame .ai-media-label > img {
    width: 48px !important;
  }
}
