/* css video for both pc and mobile 4.6.26 */
#video-home,
#video-home-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  object-fit: cover;
  object-position: 50% center;
  display: block;
  z-index: -1;
}

/* css video switching for pc and mobile, to avoid double load 4.6.26 */
#video-home {
  display: block;
}

#video-home-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  #video-home {
    display: none;
  }

  #video-home-mobile {
    display: block;
    object-position: 46% center;
  }
}

#video-home-bottom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  display: block;
  z-index: -1;
}

.video-bottom-container {
  position: relative;
  display: flex;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.text-bottom-section {
  color: white;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.video-bottom-content a {
  margin: auto;
}

#landing-page-ctn {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 88px);
  user-select: none;
  justify-content: center;
  padding-top: 70px;
  margin-top: 5vh;
}

#landing-page-ctn > img {
  width: 3vw;
  min-width: 60px;
  aspect-ratio: 1 / 1;
  margin-top: 0vh;
  margin-bottom: 3vh;
  filter: none !important;
  mix-blend-mode: normal;
}

#landing-page-title {
  word-wrap: break-word;
  font-weight: 400;
  text-align: center;
  text-shadow: 1px 1px 1px #666;
  color: white;
  margin-bottom: 0.5vh;
  padding-left: 5%;
  padding-right: 5%;
}

#landing-page-subtitle {
  font-weight: 400;
  color: #d9ccbb;
  text-align: center;
  text-shadow: 1px 1px 1px #666;
  padding-left: 5%;
  padding-right: 5%;
  /* Correctif d'ajustement au standard.css */
  margin-top: 0;
  margin-bottom: 0.5rem;
}

#landing-page-menu {
  display: flex;
  gap: 16px; /*8.4.26 */
  justify-content: center; /*8.4.26 */
  flex-wrap: nowrap; /*8.4.26 */
  margin-top: 1.5vw;
  margin-bottom: 2vw;
}

#landing-page-menu .button-link {
  /* width: 17vw;  8.4.26 */
  /* min-width: 140px;  8.4.26 */
  /* padding-left: 5px; 8.4.26 */
  /* padding-right: 5px; 8.4.26 */
  width: auto; /*8.4.26 */
  min-width: 0; /*8.4.26 */
  padding: 0 22px; /*8.4.26 */
  white-space: nowrap; /*8.4.26 */
  font-size: 1rem;
}

#landing-page-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1vw;
}

#landing-page-description p,
#landing-page-ctn > p {
  /*font-family: 'Inter', sans-serif;*/
  max-width: 600px;
  color: white;
  text-align: center;
  text-shadow: 1px 0px 1px #999;
  padding: 0 8%;
  margin-top: 0;
  margin-bottom: 0;
}

.button-link.primary.hero-cta {
  background: rgba(73, 6, 86, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(73, 6, 86, 0.25);
}

.button-link.secondary.hero-cta {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ========================================= */
/* EXPERIENCE IN PRACTICE                    */
/* ========================================= */

#why-choose-ws {
  position: relative;
  z-index: 5;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: clamp(84px, 9vw, 128px) 24px;
  overflow: hidden;

  background-image: url("../img/experience-in-practice.jpg") !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Brand treatment over the mountain */
#why-choose-ws .experience-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(73, 6, 86, 0.62) 0%,
    rgba(73, 6, 86, 0.34) 38%,
    rgba(33, 16, 57, 0.42) 100%
  );
}

/* Keep content above overlay */
#why-choose-ws .experience-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

#why-choose-ws h2,
#why-choose-ws h1 {
  color: #ffffff;
  text-align: center;
  font-size: clamp(2rem, 2.1vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

/* Glass panel */
#ws-in-numbers.experience-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 50px rgba(17, 10, 30, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ws-in-numbers {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 160px;
  padding: 12px 20px;
  text-align: center;
  color: #fff;
}

/* subtle separators on desktop */
.ws-in-numbers:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 20%,
    rgba(255, 255, 255, 0.22) 80%,
    rgba(255, 255, 255, 0) 100%
  );
}

.ws-number {
  margin-top: auto;
  margin-bottom: 1rem;
  line-height: 1;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ws-number-value {
  display: inline-block;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  font-variant-numeric: tabular-nums;
}

.ws-number-desc {
  margin: 0;
  margin-bottom: auto;
  min-height: 3em;
  max-width: 14ch;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

/* remove old counter helper if unused */
.ws-in-numbers > .counter {
  display: none;
}

/* Responsive */
@media (max-width: 991.98px) {
  #ws-in-numbers.experience-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

  .ws-in-numbers:nth-child(2n)::after {
    display: none;
  }

  .ws-in-numbers {
    min-height: 150px;
  }
}

@media (max-width: 575.98px) {
  #why-choose-ws {
    padding: 72px 16px;
    background-position: center center;
  }

  #ws-in-numbers.experience-panel {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 18px;
  }

  .ws-in-numbers {
    min-height: 126px;
    padding: 20px 14px;
  }

  .ws-in-numbers::after {
    display: none !important;
  }

  #why-choose-ws h2,
  #why-choose-ws h1 {
    margin-bottom: 1.4rem;
  }

  .ws-number-desc {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #why-choose-ws .reveal-up {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

#landing-page-ctn,
#why-choose-ws,
#our-partners {
  position: relative;
  z-index: 2;
}

.section-lead {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.6;
  font-weight: 400;
  color: #333;
  /* slightly muted */
  max-width: 48rem;
  /* keeps it editorial */
}

.ws-fade-in {
  opacity: 0;
  transform: translateY(10px);
  /* subtle lift */
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  will-change: opacity, transform;
}

.ws-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-block {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Animation depuis la gauche */
.fade-left {
  transform: translateX(-80px);
}

/* Animation depuis la droite */
.fade-right {
  transform: translateX(80px);
}

/* Classe activée au scroll */
.content-block.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out;
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #why-choose-ws .reveal-up {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
}

/*. button text fix for smaller view ports 8.4.26 */

@media (max-width: 1100px) {
  #landing-page-menu {
    gap: 12px;
  }

  #landing-page-menu .button-link {
    padding: 0 18px;
    font-size: 0.95rem;
  }
}

/*. button text fix for smaller view ports 8.4.26 */

@media (max-width: 980px) {
  #landing-page-menu {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  #landing-page-menu .button-link {
    width: min(320px, 80vw);
    justify-content: center;
  }
}

/* Experience in Practice: responsive overrides aligned with new grid version */

#why-choose-ws {
  margin-top: 0;
  margin-bottom: 0;
}

#why-choose-ws .reveal-up {
  opacity: 1;
  transform: none;
}

#ws-in-numbers.experience-panel {
  display: grid;
}

#why-choose-ws .ws-in-numbers {
  width: auto;
  max-width: none;
}

#why-choose-ws .ws-number {
  font-size: inherit;
}

#why-choose-ws .ws-number-desc {
  font-size: inherit;
}

/* ========================================= */
/* ECOSYSTEMS                                */
/* ========================================= */

#our-partners {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: clamp(108px, 8vw, 108px) 0 clamp(120px, 9vw, 120px);
  background: #f8f7fa;
  overflow: hidden;
}

#our-partners::before {
  content: "";
  display: block;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  margin: 0 auto clamp(34px, 4vw, 44px);
  background: linear-gradient(
    90deg,
    rgba(73, 6, 86, 0) 0%,
    rgba(73, 6, 86, 0.14) 18%,
    rgba(73, 6, 86, 0.14) 82%,
    rgba(73, 6, 86, 0) 100%
  );
}

.partners-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.partners-header {
  max-width: 760px;
  margin: 0 auto clamp(26px, 3vw, 34px);
  padding: 0 40px;
  text-align: center;
}

#our-partners h2,
#our-partners > h1 {
  margin: 0;
  color: #490656;
  font-size: clamp(1.9rem, 2vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.partners-subtitle {
  margin: 0.8rem auto 0;
  color: rgba(73, 6, 86, 0.72);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.55;
  max-width: 44ch;
}

.logos {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 4%,
    black 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 4%,
    black 96%,
    transparent 100%
  );
}

.logos-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  align-items: center;
  animation: ecosystems-marquee 52s linear infinite;
  will-change: transform;
}

.logos:hover .logos-track {
  animation-play-state: paused;
}

.logos-slide {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(28px, 3vw, 48px);
  padding-right: clamp(22px, 2.4vw, 38px);
  flex-shrink: 0;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(160px, 14vw, 2000px);
  height: clamp(84px, 8vw, 110px);
  padding: 14px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(73, 6, 86, 0.08);
  box-shadow: 0 12px 32px rgba(27, 17, 47, 0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.logo-item img {
  max-width: 170px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.88;
  filter: grayscale(8%);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-1px);
}

.logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

@keyframes ecosystems-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 991.98px) {
  .logos-track {
    animation-duration: 48s;
  }

  .logo-item {
    min-width: 132px;
    height: 74px;
    padding: 10px 16px;
  }

  .logo-item img {
    max-width: 116px;
    max-height: 38px;
  }
}

@media (max-width: 575.98px) {
  #our-partners {
    padding: 58px 0 76px;
  }

  .partners-header {
    padding: 0 16px;
    margin-bottom: 22px;
  }

  .partners-subtitle {
    font-size: 0.95rem;
  }

  .logos {
    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 4%,
      black 96%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 4%,
      black 96%,
      transparent 100%
    );
  }

  .logos-track {
    animation-duration: 60s;
  }

  .logos-slide {
    gap: 22px;
    padding-right: 22px;
  }

  .logo-item {
    min-width: 150px;
    height: 90px;
    padding: 12px 18px;
    border-radius: 16px;
  }

  .logo-item img {
    max-width: 130px;
    max-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
    transform: none;
  }

  .logos {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 991.98px) {
  .logo-item {
    min-width: 150px; /* was 132px */
    height: 90px; /* was 74px */
  }

  .logo-item img {
    max-width: 130px; /* was 116px */
    max-height: 50px; /* was 38px */
  }
}

/* ========================================= */
/* FINAL CTA                                */
/* ========================================= */

.final-cta {
  position: relative;
  background: #ffffff;
  padding: clamp(64px, 6vw, 96px) 24px clamp(72px, 7vw, 104px);
  z-index: 2;
  width: 100%;
  text-align: center;
}

.cta-shell {
  max-width: 720px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 2.2vw, 2.6rem);
  color: #490656;
  margin-bottom: 1rem;
}

.final-cta p {
  color: #555;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  margin-bottom: 2rem;
}

.final-cta .button-link {
  min-height: clamp(48px, 5vw, 56px);
  padding: 0 clamp(20px, 2vw, 32px);
}
