/* video-embed-charte — bandeau vidéo 16:9 + transcription repliée */
.lws-video-embed-charte {
  --vec-bg: var(--lws-bg, #111111);
  --vec-ivory: var(--lws-ivory, #f4efe8);
  --vec-soft: var(--lws-text-soft, #c7bbb3);
  --vec-copper: var(--lws-copper, #DBAF5C);
  --vec-copper-hover: var(--lws-copper-hover, #E8C070);
  --vec-border: var(--lws-border, #3b3137);
  --vec-surface: var(--lws-surface, #1c181b);
  position: relative;
  width: 100%;
  padding: clamp(1.5rem, 4vh, 2.75rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vh, 3.25rem);
  background: transparent;
  overflow: visible;
  color: var(--vec-ivory);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
}

.lws-video-embed-charte *,
.lws-video-embed-charte *::before,
.lws-video-embed-charte *::after {
  box-sizing: border-box;
}

.lws-video-embed-charte__inner {
  max-width: min(960px, 100%);
  margin: 0 auto;
}

.lws-video-embed-charte__header {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.lws-video-embed-charte__title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--vec-ivory);
  text-wrap: balance;
}

.lws-video-embed-charte__intro {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--vec-soft);
}

.lws-video-embed-charte__intro p {
  margin: 0 0 0.75rem;
}

.lws-video-embed-charte__intro p:last-child {
  margin-bottom: 0;
}

.lws-video-embed-charte__intro ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.lws-video-embed-charte__intro a {
  color: var(--vec-copper);
  text-decoration: none;
  text-underline-offset: 0.14em;
}

.lws-video-embed-charte__intro a:hover,
.lws-video-embed-charte__intro a:focus-visible {
  color: var(--vec-copper-hover);
  text-decoration: underline;
}

.lws-video-embed-charte__frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: var(--lws-video-aspect, 56.25%);
  overflow: hidden;
  border: 1px solid var(--vec-border);
  background: #0a0a0a;
}

.lws-video-embed-charte__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lws-video-embed-charte__transcript {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(219, 175, 92, 0.42);
  background: var(--vec-surface);
}

.lws-video-embed-charte__transcript-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vec-copper);
  transition: color 0.2s ease;
}

.lws-video-embed-charte__transcript-summary::-webkit-details-marker {
  display: none;
}

.lws-video-embed-charte__transcript-summary::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.lws-video-embed-charte__transcript[open] > .lws-video-embed-charte__transcript-summary {
  color: var(--vec-copper);
  border-bottom: 1px solid var(--vec-border);
}

.lws-video-embed-charte__transcript[open] > .lws-video-embed-charte__transcript-summary::before {
  transform: rotate(45deg) translateY(-2px);
}

.lws-video-embed-charte__transcript-summary:hover,
.lws-video-embed-charte__transcript-summary:focus-visible {
  color: var(--vec-copper-hover);
  outline: none;
}

.lws-video-embed-charte__transcript-body {
  max-height: min(28rem, 55vh);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.35rem;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--vec-soft);
  scrollbar-color: var(--vec-copper) #111111;
  scrollbar-width: thin;
}

.lws-video-embed-charte__transcript-body::-webkit-scrollbar {
  width: 8px;
}

.lws-video-embed-charte__transcript-body::-webkit-scrollbar-track {
  background: #111111;
}

.lws-video-embed-charte__transcript-body::-webkit-scrollbar-thumb {
  background: var(--vec-copper);
  border-radius: 8px;
}

.lws-video-embed-charte__transcript-body p {
  margin: 0 0 0.9rem;
}

.lws-video-embed-charte__transcript-body p:last-child {
  margin-bottom: 0;
}

.lws-video-embed-charte__notices {
  margin-top: clamp(0.9rem, 2vw, 1.25rem);
  padding: 1rem 1.25rem 1.1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--vec-copper) 28%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--vec-copper) 10%, transparent) 0%, var(--vec-surface) 65%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: var(--vec-soft);
}

.lws-video-embed-charte__notices-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vec-copper);
}

.lws-video-embed-charte__notices-kicker svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lws-video-embed-charte__notices ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lws-video-embed-charte__notices li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.lws-video-embed-charte__notices li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vec-copper);
}

.lws-video-embed-charte__notices li + li {
  margin-top: 0.55rem;
}

.lws-video-embed-charte__speaker {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 600;
  color: var(--vec-copper);
}

.lws-video-embed-charte__translation {
  color: var(--vec-soft);
  font-style: italic;
}

/* Défi 2024 — format vertical : texte | vidéo desktop */
[data-instance="defi-2024-bonus"] .lws-video-embed-charte__intro {
  max-width: none;
  text-align: justify;
  font-weight: 400;
}

[data-instance="defi-2024-bonus"] .lws-video-embed-charte__intro p {
  margin-bottom: 1rem;
}

[data-instance="defi-2024-bonus"] .lws-video-embed-charte__intro strong {
  font-weight: 700;
  color: var(--vec-ivory);
}

[data-instance="defi-2024-bonus"] .lws-video-embed-charte__header {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

@media (min-width: 900px) {
  [data-instance="defi-2024-bonus"] .lws-video-embed-charte__inner {
    max-width: min(1100px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
    gap: clamp(1.35rem, 3vw, 2.25rem);
    align-items: start;
  }

  [data-instance="defi-2024-bonus"] .lws-video-embed-charte__header {
    margin-bottom: 0;
  }

  [data-instance="defi-2024-bonus"] .lws-video-embed-charte__title {
    margin-bottom: 1rem;
  }
}
