/**
 * Services — full layout Ace New (éditorial ouvert, distinct de Triumph)
 */

.olympus-services.ace-new.service-description {
  --svc-primary: var(--wp--preset--color--primary, #2e2f85);
  --svc-primary-contrast: var(--wp--preset--color--primary-contrast, #ffffff);
  --svc-secondary: var(--wp--preset--color--secondary, #64748b);
  --svc-secondary-contrast: var(--wp--preset--color--secondary-contrast, #ffffff);
  --svc-muted: #64748b;
  --svc-border: rgba(15, 23, 42, 0.08);
  --svc-gap: clamp(2rem, 4vw, 3rem);
  --svc-radius: clamp(14px, 1.5vw, 20px);
}

.olympus-services.ace-new.service-description .olympus-services-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
}

.olympus-services.ace-new.service-description .olympus-svc__sector-group {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-radius: clamp(16px, 2vw, 24px);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--svc-primary) 6%, #ffffff) 0%,
    color-mix(in srgb, var(--svc-secondary) 4%, #ffffff) 100%
  );
  isolation: isolate;
}

.olympus-services.ace-new.service-description .olympus-svc__sector-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 90% at 0% 40%,
    color-mix(in srgb, var(--svc-primary) 8%, transparent) 0%,
    transparent 68%
  );
  opacity: 0.35;
}

.olympus-services.ace-new.service-description .olympus-svc__sector-group > * {
  position: relative;
  z-index: 1;
}

.olympus-services.ace-new.service-description .olympus-svc__sector {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.olympus-services.ace-new.service-description .olympus-svc__sector-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--svc-secondary);
  display: inline-block;
}

.olympus-services.ace-new.service-description .olympus-svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.olympus-services.ace-new.service-description .olympus-svc__tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--svc-secondary-contrast);
  color: var(--svc-secondary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--svc-secondary) 22%, transparent);
}

.olympus-services.ace-new.service-description .olympus-svc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(1rem, 2vw, 1.35rem);
}

.olympus-services.ace-new.service-description .olympus-svc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: var(--svc-primary);
  color: var(--svc-primary-contrast);
  border: 1px solid var(--svc-primary);
}

.olympus-services.ace-new.service-description .olympus-svc__link {
  font-weight: 600;
  text-decoration: none;
  color: var(--svc-secondary);
}

/* Ligne éditoriale — copy + figure (pas de carte Triumph) */
.olympus-services.ace-new.service-description .olympus-svc-full--ace-new {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.75fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--svc-secondary) 18%, transparent);
}

.olympus-services.ace-new.service-description .olympus-svc-full--ace-new:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.olympus-services.ace-new.service-description .olympus-svc-full--ace-new:first-of-type {
  padding-top: 0;
}

.olympus-services.ace-new.service-description .olympus-svc-full--ace-new.olympus-svc-full--reverse {
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.1fr);
}

.olympus-services.ace-new.service-description .olympus-svc-full--ace-new.olympus-svc-full--reverse .olympus-svc-full__copy {
  order: 2;
}

.olympus-services.ace-new.service-description .olympus-svc-full--ace-new.olympus-svc-full--reverse .olympus-svc-full__figure {
  order: 1;
}

.olympus-services.ace-new.service-description .olympus-svc-full__copy {
  min-width: 0;
}

.olympus-services.ace-new.service-description .olympus-svc-full__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--wp--preset--color--contrast, #0f172a);
}

.olympus-services.ace-new.service-description .olympus-svc-full__excerpt {
  color: var(--svc-muted);
  line-height: 1.7;
  font-size: clamp(0.975rem, 1.5vw, 1.05rem);
  max-width: 58ch;
}

.olympus-services.ace-new.service-description .olympus-svc-full__excerpt p {
  margin: 0 0 0.5rem;
}

.olympus-services.ace-new.service-description .olympus-svc-full__figure {
  margin: 0;
  min-width: 0;
}

.olympus-services.ace-new.service-description .olympus-svc-full__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: clamp(280px, 36vw, 420px);
  border-radius: var(--svc-radius);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--svc-primary) 14%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--svc-secondary) 16%, transparent);
}

@media (max-width: 767px) {
  .olympus-services.ace-new.service-description .olympus-svc-full--ace-new,
  .olympus-services.ace-new.service-description .olympus-svc-full--ace-new.olympus-svc-full--reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .olympus-services.ace-new.service-description .olympus-svc-full--ace-new .olympus-svc-full__copy,
  .olympus-services.ace-new.service-description .olympus-svc-full--ace-new .olympus-svc-full__figure {
    order: unset;
  }

  .olympus-services.ace-new.service-description .olympus-svc-full__media {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .olympus-services.ace-new.service-description .olympus-svc-full__excerpt {
    max-width: none;
  }
}
