/* Variantes éditoriales de la bibliothèque de compositions. */
.wp-block-group.pcse-editorial-variant {
  background: var(--wp--preset--color--surface);
}

.wp-block-group.pcse-editorial-variant--border {
  background: var(--wp--preset--color--surface-container-lowest);
}

.wp-block-group.pcse-editorial-variant--dark {
  background: var(--wp--preset--gradient--deep-ocean);
  color: var(--wp--preset--color--white);
}

.pcse-editorial-variant .pcse-editorial {
  gap: var(--wp--preset--spacing--3xl);
}

.pcse-editorial-variant .pcse-editorial__copy {
  max-width: none;
  min-width: 0;
}

.pcse-editorial-variant .pcse-editorial__media {
  position: relative;
  min-width: 0;
}

.pcse-editorial-variant .pcse-editorial__media .wp-block-image img {
  max-height: none;
  aspect-ratio: 1.37;
}

.pcse-editorial-variant--border .pcse-editorial__media .wp-block-image img,
.pcse-editorial-variant--dark .pcse-editorial__media .wp-block-image img {
  aspect-ratio: 1.08;
}

.pcse-editorial-variant .pcse-editorial__copy > * + * {
  margin-block-start: var(--wp--preset--spacing--lg);
}

.pcse-editorial-variant .pcse-editorial__copy .wp-block-heading {
  color: var(--wp--preset--color--neutral-dark);
  font-size: var(--wp--preset--font-size--large);
  letter-spacing: -0.03em;
}

.pcse-editorial-variant .pcse-editorial__copy p {
  line-height: 1.6;
}

.pcse-editorial-variant .wp-block-button__link:focus-visible {
  outline: 2px solid var(--wp--preset--color--neutral-dark);
  outline-offset: 3px;
}

.pcse-editorial-variant--dark .wp-block-button__link:focus-visible {
  outline-color: var(--wp--preset--color--white);
}

.pcse-editorial-variant .pcse-editorial__copy .pcse-editorial-variant__badge,
.pcse-editorial-variant .pcse-editorial-variant__image-badge {
  display: table;
  width: fit-content;
  margin-block: 0;
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--md);
  border-radius: var(--wp--custom--radius--pill);
  background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, var(--wp--preset--color--white));
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pcse-editorial-variant--green .pcse-editorial__copy .pcse-editorial-variant__badge {
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 10%, var(--wp--preset--color--white));
  color: var(--wp--preset--color--secondary);
}

.pcse-editorial-variant .pcse-editorial-variant__benefits {
  display: grid;
  gap: var(--wp--preset--spacing--sm);
  padding: 0;
  list-style: none;
}

.pcse-editorial-variant .pcse-editorial-variant__benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--sm);
  color: var(--wp--preset--color--neutral-dark);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
}

.pcse-editorial-variant .pcse-editorial-variant__benefits li::before {
  content: "✓";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: var(--wp--preset--spacing--lg);
  height: var(--wp--preset--spacing--lg);
  border-radius: 50%;
  background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, var(--wp--preset--color--white));
  color: var(--wp--preset--color--primary);
  font-weight: 700;
}

.pcse-editorial-variant--green .pcse-editorial-variant__benefits li::before {
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 12%, var(--wp--preset--color--white));
  color: var(--wp--preset--color--secondary);
}

.pcse-editorial-variant .pcse-editorial-variant__image-badge {
  position: absolute;
  z-index: 1;
  top: var(--wp--preset--spacing--lg);
  left: var(--wp--preset--spacing--lg);
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--neutral-dark);
  font-size: var(--wp--preset--font-size--sm);
  letter-spacing: 0;
  text-transform: none;
  box-shadow: var(--wp--preset--shadow--sm);
}

.pcse-editorial-variant--border .pcse-editorial-variant__quote {
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--lg);
  border-inline-start: 4px solid var(--wp--preset--color--primary);
  border-radius: 0 var(--wp--custom--radius--lg) var(--wp--custom--radius--lg) 0;
  background: var(--wp--preset--color--surface);
}

.pcse-editorial-variant .pcse-editorial-variant__quote > * + * {
  margin-block-start: var(--wp--preset--spacing--md);
}

.pcse-editorial-variant .pcse-editorial-variant__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--sm);
}

.pcse-editorial-variant .pcse-editorial-variant__card {
  min-width: 0;
  margin: 0;
  padding: var(--wp--preset--spacing--md);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--outline-variant) 55%, transparent);
  border-radius: var(--wp--custom--radius--lg);
  background: var(--wp--preset--color--surface);
}

.pcse-editorial-variant .pcse-editorial-variant__card > * {
  margin: 0;
}

.pcse-editorial-variant .pcse-editorial-variant__card > * + * {
  margin-block-start: var(--wp--preset--spacing--xs);
}

.pcse-editorial-variant .pcse-editorial-variant__card .pcse-editorial-variant__card-number {
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 800;
  line-height: 1.2;
}

.pcse-editorial-variant .pcse-editorial-variant__card p {
  color: var(--wp--preset--color--neutral-dark);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  line-height: 1.4;
}

.pcse-editorial-variant--dark .pcse-editorial__copy .wp-block-heading,
.pcse-editorial-variant--dark .pcse-editorial__copy p {
  color: var(--wp--preset--color--white);
}

.pcse-editorial-variant--dark .pcse-editorial__copy > .wp-block-heading {
  font-size: var(--wp--preset--font-size--2xl);
}

.pcse-editorial-variant--dark .pcse-editorial__copy .pcse-editorial-variant__badge {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 30%, transparent);
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 15%, var(--wp--preset--color--neutral-dark));
  color: var(--wp--preset--color--white);
}

.pcse-editorial-variant--dark .pcse-editorial__media {
  padding: var(--wp--preset--spacing--md);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
  border-radius: var(--wp--custom--radius--lg);
}

.pcse-editorial-variant--dark .pcse-editorial-variant__card {
  border-color: color-mix(in srgb, var(--wp--preset--color--white) 14%, transparent);
  background: color-mix(in srgb, var(--wp--preset--color--white) 5%, var(--wp--preset--color--neutral-dark));
}

.pcse-editorial-variant--dark .pcse-editorial-variant__card .pcse-editorial-variant__card-number {
  display: grid;
  place-items: center;
  width: var(--wp--preset--spacing--xl);
  height: var(--wp--preset--spacing--xl);
  border-radius: 50%;
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 25%, transparent);
  color: var(--wp--preset--color--white);
}

.pcse-editorial-variant--dark .pcse-editorial-variant__card .wp-block-heading {
  color: var(--wp--preset--color--white);
  font-size: var(--wp--preset--font-size--sm);
}

.pcse-editorial-variant--dark .pcse-editorial-variant__card p:last-child {
  color: color-mix(in srgb, var(--wp--preset--color--white) 80%, transparent);
  font-weight: 400;
}

@media (min-width: 768px) {
  .pcse-editorial-variant--border .pcse-editorial,
  .pcse-editorial-variant--dark .pcse-editorial {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

@media (max-width: 767px) {
  .pcse-editorial-variant .pcse-editorial {
    gap: var(--wp--preset--spacing--xl);
  }

  .pcse-editorial-variant .pcse-editorial-variant__cards {
    grid-template-columns: 1fr;
  }

  .pcse-editorial-variant .pcse-editorial__copy .wp-block-heading {
    font-size: var(--wp--preset--font-size--large);
  }

  .pcse-editorial-variant .wp-block-buttons .wp-block-button,
  .pcse-editorial-variant .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }
}
