.sbgl-legacy-content {
  --e-global-color-primary: var(--paper);
  --e-global-color-secondary: var(--paper);
  --e-global-color-text: var(--muted);
  --e-global-color-accent: var(--electric);
  color: var(--muted);
  line-height: 1.65;
}

.sbgl-legacy .sbgl-legacy-content [data-elementor-type] {
  background-color: transparent;
}

.sbgl-legacy-content .elementor :is(.elementor-section, .elementor-column > .elementor-widget-wrap, .e-con) {
  background-color: transparent !important;
}

.sbgl-legacy-content .elementor :is(.sbgl-legacy-decor, .sbgl-legacy-decor > .elementor-widget-wrap, .sbgl-legacy-decor-overlay > .elementor-widget-wrap) {
  background-image: none !important;
}

.sbgl-legacy-content .elementor :is(.sbgl-legacy-decor-overlay, .sbgl-legacy-photo-bg) > .elementor-background-overlay,
.sbgl-legacy-content .elementor .sbgl-legacy-decor-overlay > .elementor-widget-wrap > .elementor-background-overlay {
  opacity: 0 !important;
}

.sbgl-legacy-content .elementor .sbgl-legacy-photo-bg {
  position: relative;
  isolation: isolate;
}

.sbgl-legacy-content .elementor .sbgl-legacy-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg,
    color-mix(in srgb, var(--canvas), transparent 7%),
    color-mix(in srgb, var(--canvas), transparent 28%));
  pointer-events: none;
}

.sbgl-legacy-content .elementor .elementor-top-section.elementor-section-boxed > .elementor-container {
  width: min(1280px, 100% - var(--edge) * 2);
}

.sbgl-legacy-content .elementor .sbgl-legacy-hero {
  background-color: var(--canvas) !important;
}

.sbgl-legacy-content .elementor .sbgl-legacy-hero > .elementor-container {
  min-height: min(44vw, 560px);
}

.sbgl-legacy-content :is(h1, h2, h3, h4, .elementor-heading-title, .elementor-icon-box-title, .elementor-image-box-title) {
  color: var(--paper) !important;
  font-family: Manrope, Inter, sans-serif !important;
  overflow-wrap: anywhere;
}

.sbgl-legacy-content h1.elementor-heading-title,
.sbgl-legacy-legal > h1 {
  font-size: clamp(2.35rem, 5vw, 4.65rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.055em;
  line-height: 1.05 !important;
  text-wrap: balance;
  text-transform: none !important;
}

.sbgl-legacy-content h2.elementor-heading-title {
  font-size: clamp(1.95rem, 3.65vw, 3.75rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.045em;
  line-height: 1.1 !important;
  text-wrap: balance;
}

.sbgl-legacy-content :is(.elementor-widget-text-editor, .elementor-icon-box-description, .elementor-image-box-description, .elementor-tab-content, .elementor-testimonial-content, .elementor-testimonial-job) {
  color: var(--muted) !important;
  font-family: Inter, Arial, sans-serif !important;
  line-height: 1.65 !important;
}

.sbgl-legacy-content :is(.elementor-widget-text-editor, .elementor-tab-content) p + p {
  margin-block-start: .72em;
}

.sbgl-legacy-content :is(.elementor-widget-text-editor, .elementor-widget-shortcode, .elementor-tab-content, .sbgl-expertises-liens) a:not(.elementor-button),
.sbgl-legacy-legal a:not(.elementor-button) {
  color: var(--electric) !important;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.sbgl-legacy-content .elementor .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: .72rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--button-ink) !important;
  background: linear-gradient(105deg, var(--button-face), var(--button-glint)) !important;
  font: 800 .95rem/1.3 Manrope, Inter, sans-serif !important;
  text-decoration: none !important;
}

.sbgl-legacy-content .elementor .elementor-button:is(:hover, :focus-visible) {
  border-color: var(--rose-accent);
  box-shadow: 0 0 24px var(--pink-halo);
}

.sbgl-legacy-content .elementor .elementor-fixed:has(.elementor-button[href*="#contact"]) {
  inset: auto auto max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
  width: auto !important;
}

.sbgl-legacy-content .elementor .elementor-fixed .elementor-button[href*="#contact"] {
  width: 49px !important;
  height: 49px !important;
  min-height: 49px;
  padding: 0 !important;
}

@media (prefers-reduced-motion: no-preference) {
  .sbgl-legacy-content .elementor .elementor-button {
    transition: transform .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out;
  }
  .sbgl-legacy-content .elementor .elementor-button:is(:hover, :focus-visible) {
    transform: scale(1.04);
  }
}

.sbgl-legacy-content :is(.elementor-widget-image img, .elementor-image-box-img img, .elementor-wrapper, .elementor-swiper .swiper-slide-image) {
  border: 1px solid var(--frame-border);
  border-radius: var(--image-radius) !important;
}

.sbgl-legacy-content :is(.elementor-wrapper, .e-gallery-item, .elementor-swiper .swiper-slide-image) {
  overflow: hidden;
}

.sbgl-legacy-content .e-gallery-item {
  border-radius: var(--image-radius);
}

.sbgl-legacy-content :is(.elementor-widget-image a:hover img, .elementor-widget-image a:focus-visible img) {
  border-color: var(--rose-accent);
  box-shadow: 0 0 18px var(--pink-halo);
}

.sbgl-legacy-content :is(.elementor-price-table, .elementor-testimonial-wrapper, .elementor-accordion-item, .elementor-toggle-item) {
  border: 1px solid var(--frame-border) !important;
  border-radius: var(--image-radius);
  background: var(--surface-glass) !important;
  overflow: hidden;
}

.sbgl-legacy-content .elementor-testimonial-wrapper {
  padding: clamp(14px, 2.5vw, 27px);
}

.sbgl-legacy-content :is(.elementor-price-table__header, .elementor-price-table__price, .elementor-price-table__features-list, .elementor-price-table__footer, .elementor-testimonial-name, .elementor-tab-title, .elementor-tab-content) {
  background: transparent !important;
  color: var(--paper) !important;
}

.sbgl-legacy-content :is(.elementor-accordion-item, .elementor-toggle-item) + :is(.elementor-accordion-item, .elementor-toggle-item) {
  margin-block-start: .55rem;
}

.sbgl-legacy-content :is(.elementor-tab-title a, .elementor-icon, .elementor-icon-list-icon i) {
  color: var(--rose-accent) !important;
}

.sbgl-legacy-content :is(.elementor-icon, .elementor-icon-list-icon) svg {
  fill: currentColor;
}

.sbgl-legacy-legal {
  width: min(920px, 100% - var(--edge) * 2);
  margin-inline: auto;
  padding-block: clamp(45px, 8vw, 110px);
}

.sbgl-legacy-legal > h1 {
  margin-bottom: .75em;
}

.sbgl-legacy-legal > :is(p, ul, ol) {
  margin-bottom: .85em;
}

.sbgl-legacy-legal > :is(h2, h3) {
  margin-block: 1.2em .5em;
}

@media (max-width: 767px) {
  .sbgl-legacy-content .elementor .elementor-top-section.elementor-section-boxed > .elementor-container {
    width: calc(100% - var(--edge) * 2);
  }
  .sbgl-legacy-content .elementor .sbgl-legacy-hero > .elementor-container {
    min-height: 0;
  }
  .sbgl-legacy-content .elementor .elementor-widget-link-in-bio-var-7 {
    max-width: 100% !important;
  }
  .sbgl-legacy-content .elementor .elementor-fixed:has(.elementor-button[href*="#contact"]) {
    inset-inline-start: max(8px, env(safe-area-inset-left)) !important;
  }
  .sbgl-legacy-content .elementor .elementor-fixed .elementor-button[href*="#contact"] {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px;
  }
}
