/* Services page only. Shared Header dimensions, scroll behavior and other pages stay unchanged. */
#kubio .tl-services-page {
  --tl-services-navy: #123745;
  --tl-services-teal: #007f94;
  --tl-services-ink: #243c46;
  --tl-services-muted: #5f7077;
  --tl-services-rule: #dce5e8;
  background: #fff;
}

#kubio .tl-services-page .wp-site-blocks > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Reuse the inner-page Header colors without overriding its size or sticky animation. */
#kubio .tl-services-page .style-2_L-1op2pz-outer {
  background-color: #123745;
}

#kubio .tl-services-page .wp-block-kubio-navigation-section__nav:not(.h-navigation_sticky) {
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(18, 55, 69, 0.08);
}

#kubio .tl-services-page .wp-block-kubio-navigation-section__nav:not(.h-navigation_sticky) .style-c6BbujDIAOY-outer > .kubio-menu > ul > li > a {
  color: #244652;
}

#kubio .tl-services-page .wp-block-kubio-navigation-section__nav:not(.h-navigation_sticky) .style-c6BbujDIAOY-outer > .kubio-menu > ul > li > a:hover,
#kubio .tl-services-page .wp-block-kubio-navigation-section__nav:not(.h-navigation_sticky) .style-c6BbujDIAOY-outer > .kubio-menu > ul > li.current-menu-item > a {
  color: #007f94;
}

#kubio .tl-services-page .wp-block-kubio-navigation-section__nav:not(.h-navigation_sticky) .style-c6BbujDIAOY-outer > .kubio-menu > ul > li::before,
#kubio .tl-services-page .wp-block-kubio-navigation-section__nav:not(.h-navigation_sticky) .style-c6BbujDIAOY-outer > .kubio-menu > ul > li::after {
  background-color: #007f94;
}

#kubio .tl-services-page .wp-block-kubio-navigation-section__nav:not(.h-navigation_sticky) .style-r1Ph182_RWJ-icon {
  fill: #123745;
}

#kubio .tl-services-page .tl-services-main {
  color: var(--tl-services-ink);
  background: #fff;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  text-align: left;
}

#kubio .tl-services-page .tl-services-main *,
#kubio .tl-services-page .tl-services-main *::before,
#kubio .tl-services-page .tl-services-main *::after {
  box-sizing: border-box;
}

#kubio .tl-services-page .tl-services-main [id] {
  scroll-margin-top: 128px;
}

#kubio .tl-services-page .tl-services-main h1,
#kubio .tl-services-page .tl-services-main h2,
#kubio .tl-services-page .tl-services-main h3 {
  margin: 0;
  color: var(--tl-services-navy);
  font-family: Niramit, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-transform: none;
  overflow-wrap: break-word;
}

#kubio .tl-services-page .tl-services-main h1 {
  max-width: 850px;
  font-size: clamp(40px, 4.1vw, 56px);
}

#kubio .tl-services-page .tl-services-main h2 {
  font-size: clamp(29px, 2.8vw, 38px);
}

#kubio .tl-services-page .tl-services-main h3 {
  font-size: 25px;
  line-height: 1.35;
}

#kubio .tl-services-page .tl-services-main p {
  margin: 0 0 20px;
}

#kubio .tl-services-page .tl-services-main p:last-child {
  margin-bottom: 0;
}

#kubio .tl-services-page .tl-services-main a {
  color: var(--tl-services-teal);
  text-underline-offset: 4px;
}

#kubio .tl-services-page .tl-services-main a:focus-visible {
  outline: 2px solid var(--tl-services-teal);
  outline-offset: 5px;
}

#kubio .tl-services-page .tl-services-main img {
  display: block;
  max-width: 100%;
  height: auto;
}

#kubio .tl-services-page .tl-services-container {
  width: calc(100% - 96px);
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
}

#kubio .tl-services-page .tl-services-hero {
  --tl-services-hero-header-height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 800px;
  padding: 260px 0 90px;
  overflow: hidden;
  background: #03213f;
}

#kubio .tl-services-page .tl-services-main .tl-services-hero__image {
  position: absolute;
  inset: var(--tl-services-hero-header-height) 0 0 auto;
  width: auto;
  max-width: 100%;
  height: calc(100% - var(--tl-services-hero-header-height));
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%);
  mask-image: linear-gradient(90deg, transparent, #000 20%);
}

#kubio .tl-services-page .tl-services-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #03213f 0%, rgba(3, 33, 63, 0.98) 27%, rgba(3, 33, 63, 0.94) 43%, rgba(3, 33, 63, 0.72) 58%, rgba(3, 33, 63, 0.18) 75%, transparent 90%);
}

#kubio .tl-services-page .tl-services-hero__content {
  position: relative;
  z-index: 1;
}

#kubio .tl-services-page .tl-services-main .tl-services-eyebrow,
#kubio .tl-services-page .tl-services-main .tl-service-number {
  display: block;
  margin: 0 0 20px;
  color: var(--tl-services-teal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#kubio .tl-services-page .tl-services-main .tl-services-intro {
  max-width: 700px;
  margin-top: 25px;
  color: #304e5a;
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.75;
}

#kubio .tl-services-page .tl-services-main .tl-services-intro + .tl-services-intro {
  margin-top: 0;
}

#kubio .tl-services-page .tl-services-hero h1 {
  color: #f7fbff;
}

#kubio .tl-services-page .tl-services-hero .tl-services-eyebrow {
  color: #8fdfec;
}

#kubio .tl-services-page .tl-services-hero .tl-services-intro {
  color: #dfebf5;
}

#kubio .tl-services-page .tl-service-section {
  padding: 80px 0;
  background: #fff;
}

#kubio .tl-services-page .tl-service-section--tint {
  background: #f4f7f8;
}

#kubio .tl-services-page .tl-service-section__grid {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
  width: calc(100% - 96px);
  max-width: 1360px;
}

#kubio .tl-services-page .tl-service-rail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  pointer-events: none;
}

#kubio .tl-services-page .tl-service-rail__track {
  position: absolute;
  top: 50%;
  left: calc(50% - 1px);
  width: 2px;
  height: var(--tl-service-line-length, calc(100% + 160px));
  background: #d4e1e6;
}

#kubio .tl-services-page .tl-service-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--tl-services-teal);
  transform: scaleY(var(--tl-service-progress, 0));
  transform-origin: center top;
}

#kubio .tl-services-page .tl-service-rail[data-service-step="4"] .tl-service-rail__track {
  display: none;
}

#kubio .tl-services-page .tl-service-marker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid #c5d6dd;
  border-radius: 50%;
  background: #fff;
  color: #7b959f;
  opacity: 0.6;
  transform: translate(-12px, 18px);
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1), opacity 450ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

#kubio .tl-services-page .tl-service-rail.is-revealed .tl-service-marker {
  opacity: 1;
  transform: translate(0, 0);
}

#kubio .tl-services-page .tl-service-rail.is-complete .tl-service-marker {
  border-color: var(--tl-services-teal);
  background: #edf8fa;
  color: var(--tl-services-teal);
}

#kubio .tl-services-page .tl-service-rail.is-active .tl-service-marker {
  border-color: var(--tl-services-teal);
  background: var(--tl-services-teal);
  box-shadow: 0 0 0 7px rgba(0, 127, 148, 0.09);
  color: #fff;
}

#kubio .tl-services-page .tl-service-marker__icon {
  display: block;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask-image: var(--tl-service-icon);
  mask-image: var(--tl-service-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

#kubio .tl-services-page .tl-service-marker__icon--exploitation {
  --tl-service-icon: url('../assets/icons/lucide/server-cog.svg');
}

#kubio .tl-services-page .tl-service-marker__icon--travaux {
  --tl-service-icon: url('../assets/icons/lucide/wrench.svg');
}

#kubio .tl-services-page .tl-service-marker__icon--souverainete {
  --tl-service-icon: url('../assets/icons/lucide/shield-check.svg');
}

#kubio .tl-services-page .tl-service-marker__icon--tests {
  --tl-service-icon: url('../assets/icons/lucide/radio-tower.svg');
}

#kubio .tl-services-page .tl-service-marker__icon--projets {
  --tl-service-icon: url('../assets/icons/lucide/clipboard-check.svg');
}

#kubio .tl-services-page .tl-service-section__heading,
#kubio .tl-services-page .tl-service-section__body {
  min-width: 0;
}

#kubio .tl-services-page .tl-service-section__heading h2 {
  font-size: clamp(29px, 2.5vw, 34px);
  line-height: 1.3;
}

#kubio .tl-services-page .tl-service-section__heading {
  grid-column: 2;
  grid-row: 1;
}

#kubio .tl-services-page .tl-service-section__body {
  grid-column: 3;
  grid-row: 1;
  max-width: 75ch;
  line-height: 1.8;
  overflow-wrap: break-word;
}

#kubio .tl-services-page .tl-service-section__body strong {
  color: var(--tl-services-navy);
  font-weight: 600;
}

#kubio .tl-services-page .tl-service-list {
  margin: 24px 0;
  padding: 0 0 0 22px;
  list-style: disc;
}

#kubio .tl-services-page .tl-service-list li {
  margin: 0 0 14px;
  padding-left: 6px;
}

#kubio .tl-services-page .tl-service-list li:last-child {
  margin-bottom: 0;
}

#kubio .tl-services-page .tl-service-list li::marker {
  color: var(--tl-services-teal);
}

#kubio .tl-services-page .tl-service-photo {
  margin: 32px 0 0;
}

#kubio .tl-services-page .tl-services-main .tl-service-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(18, 55, 69, 0.12);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 55, 69, 0.1), 0 1px 3px rgba(18, 55, 69, 0.06);
}

#kubio .tl-services-page .tl-services-principles {
  padding: 88px 0;
  background: #f3f7fa;
  color: var(--tl-services-ink);
}

#kubio .tl-services-page .tl-services-principles__heading {
  max-width: 800px;
  margin-bottom: 36px;
}

#kubio .tl-services-page .tl-principles-carousel {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

#kubio .tl-services-page .tl-principles-carousel__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#kubio .tl-services-page .tl-principles-carousel__viewport {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(18, 55, 69, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18, 55, 69, 0.08), 0 2px 6px rgba(18, 55, 69, 0.04);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

#kubio .tl-services-page .tl-principles-carousel__viewport::-webkit-scrollbar {
  display: none;
}

#kubio .tl-services-page .tl-principles-carousel__viewport:focus-visible {
  outline: 2px solid var(--tl-services-teal);
  outline-offset: 6px;
}

#kubio .tl-services-page .tl-principles-carousel__track {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

#kubio .tl-services-page .tl-services-principle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  flex: 0 0 100%;
  align-self: stretch;
  min-width: 0;
  min-height: 400px;
  overflow-wrap: break-word;
  background: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#kubio .tl-services-page .tl-services-principle__media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
}

#kubio .tl-services-page .tl-services-main .tl-services-principle__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#kubio .tl-services-page .tl-services-principle__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 46px 54px 76px;
}

#kubio .tl-services-page .tl-services-principle__number {
  margin-bottom: 18px;
  color: var(--tl-services-teal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

#kubio .tl-services-page .tl-services-principle h3 {
  color: var(--tl-services-navy);
  font-size: clamp(25px, 2.5vw, 33px);
  line-height: 1.3;
}

#kubio .tl-services-page .tl-services-principle p {
  margin: 20px 0 0;
  color: #4a626d;
  font-size: 16px;
  line-height: 1.85;
}

#kubio .tl-services-page .tl-principles-carousel__controls {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}

#kubio .tl-services-page .tl-principles-carousel__controls[hidden] {
  display: none;
}

#kubio .tl-services-page .tl-principles-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid #c3d5dd;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(18, 55, 69, 0.12);
  color: var(--tl-services-navy);
  transform: translateY(-50%);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
}

#kubio .tl-services-page .tl-principles-carousel__arrow[data-carousel-prev] {
  left: -24px;
}

#kubio .tl-services-page .tl-principles-carousel__arrow[data-carousel-next] {
  right: -24px;
}

#kubio .tl-services-page .tl-principles-carousel__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#kubio .tl-services-page .tl-principles-carousel__arrow:hover:not(:disabled) {
  border-color: var(--tl-services-teal);
  color: var(--tl-services-teal);
  background: #f8fcfd;
}

#kubio .tl-services-page .tl-principles-carousel__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

#kubio .tl-services-page .tl-principles-carousel__pagination {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: auto;
}

#kubio .tl-services-page .tl-principles-carousel__dot {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

#kubio .tl-services-page .tl-principles-carousel__dot::before {
  width: 7px;
  height: 7px;
  border-radius: 7px;
  background: #9fbac5;
  content: "";
}

#kubio .tl-services-page .tl-principles-carousel__dot[aria-current="true"]::before,
#kubio .tl-services-page .tl-principles-carousel__dot.is-active::before {
  width: 23px;
  background: var(--tl-services-teal);
}

#kubio .tl-services-page .tl-principles-carousel__dot:hover::before {
  background: var(--tl-services-teal);
}

#kubio .tl-services-page .tl-principles-carousel__arrow:focus-visible,
#kubio .tl-services-page .tl-principles-carousel__dot:focus-visible {
  outline: 2px solid var(--tl-services-teal);
  outline-offset: 3px;
}

#kubio .tl-services-page .tl-principles-carousel.is-dragging .tl-principles-carousel__viewport,
#kubio .tl-services-page .tl-principles-carousel__viewport.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

@media (max-width: 1023px) {
  #kubio .tl-services-page .tl-service-section__grid {
    grid-template-columns: 48px minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 24px;
    width: calc(100% - 64px);
  }

  #kubio .tl-services-page .tl-service-marker {
    width: 48px;
    height: 48px;
  }

  #kubio .tl-services-page .tl-service-marker__icon {
    width: 24px;
    height: 24px;
  }

  #kubio .tl-services-page .tl-services-principle__content {
    padding: 36px 32px 76px;
  }
}

@media (min-width: 768px) and (max-width: 944px) {
  #kubio .tl-services-page .tl-services-main .tl-services-hero__image {
    bottom: auto;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 10%, #000 80%, transparent);
  }
}

@media (max-width: 767px) {
  #kubio .tl-services-page .tl-services-main {
    font-size: 16px;
    line-height: 1.8;
  }

  #kubio .tl-services-page .tl-services-main [id] {
    scroll-margin-top: 120px;
  }

  #kubio .tl-services-page .tl-services-container {
    width: calc(100% - 40px);
  }

  #kubio .tl-services-page .tl-services-hero {
    --tl-services-hero-header-height: 72px;
    min-height: 680px;
    padding: 180px 0 64px;
  }

  #kubio .tl-services-page .tl-services-main .tl-services-hero__image {
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent);
    mask-image: linear-gradient(180deg, #000 45%, transparent);
  }

  #kubio .tl-services-page .tl-services-hero__shade {
    background: linear-gradient(180deg, rgba(3, 33, 63, 0.18) 72px, rgba(3, 33, 63, 0.8) 210px, #03213f 360px);
  }

  #kubio .tl-services-page .tl-services-main h1 {
    font-size: clamp(34px, 8.8vw, 46px);
  }

  #kubio .tl-services-page .tl-services-main h2,
  #kubio .tl-services-page .tl-service-section__heading h2 {
    font-size: 29px;
  }

  #kubio .tl-services-page .tl-services-main h3 {
    font-size: 23px;
  }

  #kubio .tl-services-page .tl-services-main .tl-services-intro {
    margin-top: 22px;
    font-size: 18px;
  }

  #kubio .tl-services-page .tl-service-section,
  #kubio .tl-services-page .tl-services-principles {
    padding: 58px 0;
  }

  #kubio .tl-services-page .tl-service-section__grid {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 30px 12px;
    width: calc(100% - 40px);
  }

  #kubio .tl-services-page .tl-service-rail {
    grid-row: 1 / span 2;
  }

  #kubio .tl-services-page .tl-service-marker {
    width: 36px;
    height: 36px;
  }

  #kubio .tl-services-page .tl-service-marker__icon {
    width: 20px;
    height: 20px;
  }

  #kubio .tl-services-page .tl-service-rail__track {
    height: var(--tl-service-line-length, calc(100% + 116px));
  }

  #kubio .tl-services-page .tl-service-section__body {
    grid-column: 2;
    grid-row: 2;
  }

  #kubio .tl-services-page .tl-service-photo {
    max-width: 520px;
    margin-top: 26px;
  }

  #kubio .tl-services-page .tl-services-principles__heading {
    margin-bottom: 28px;
  }

  #kubio .tl-services-page .tl-services-principle__content {
    padding: 32px 36px 72px;
  }

  #kubio .tl-services-page .tl-principles-carousel__arrow {
    width: 44px;
    height: 44px;
  }

  #kubio .tl-services-page .tl-principles-carousel__arrow[data-carousel-prev] {
    left: -16px;
  }

  #kubio .tl-services-page .tl-principles-carousel__arrow[data-carousel-next] {
    right: -16px;
  }

}

@media (max-width: 599px) {
  #kubio .tl-services-page .tl-services-principle {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  #kubio .tl-services-page .tl-services-principle__media {
    min-height: 0;
    height: clamp(160px, 48vw, 230px);
  }

  #kubio .tl-services-page .tl-services-principle__content {
    justify-content: flex-start;
    padding: 28px 36px 72px;
  }

  #kubio .tl-services-page .tl-services-principle__number {
    margin-bottom: 14px;
  }

  #kubio .tl-services-page .tl-services-main .tl-services-principle h3 {
    font-size: 25px;
  }

  #kubio .tl-services-page .tl-principles-carousel__viewport {
    border-radius: 18px;
  }

  #kubio .tl-services-page .tl-principles-carousel__dot {
    min-height: 44px;
  }

}

@media (prefers-reduced-motion: reduce) {
  #kubio .tl-services-page .tl-service-marker {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #kubio .tl-services-page .tl-service-rail.is-revealed .tl-service-marker {
    transform: none;
  }

  #kubio .tl-services-page .tl-principles-carousel__viewport {
    scroll-behavior: auto;
  }
}

