/* ================================
   SHORTCODE : fade_slider_hero_home (ticker)
   ================================ */

.flip-ticker {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.flip-ticker__track {
  display: flex;
  width: max-content;
  animation: flip-ticker-scroll 100s linear infinite;
}

/* Pause au hover — RGAA : contrôle du mouvement */
.flip-ticker:hover .flip-ticker__track,
.flip-ticker:focus-within .flip-ticker__track {
  animation-play-state: paused;
}

@keyframes flip-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.flip-ticker__item {
  flex-shrink: 0;
  padding: 0 20px;
}

.flip-ticker__item p {
  margin: 0;
  white-space: nowrap;
  color: #a7a7ab;
  font-size: 14px;
  font-weight: 500;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .flip-ticker__track {
    animation: none;
  }
}

/* ================================
   SHORTCODE : fade_image_swiper (ticker images)
   ================================ */

.flip-img-ticker {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.flip-img-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: flip-ticker-scroll 30s linear infinite;
}

.flip-img-ticker:hover .flip-img-ticker__track,
.flip-img-ticker:focus-within .flip-img-ticker__track {
  animation-play-state: paused;
}

.flip-img-ticker__item {
  flex-shrink: 0;
  padding: 0 8px;
}

.flip-img-ticker__item img {
  height: 80px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  background: #fafaf8;
  border-radius: 12px;
  padding: 16px 24px;
}

@media (prefers-reduced-motion: reduce) {
  .flip-img-ticker__track {
    animation: none;
  }
}

/* ================================
   SHORTCODE : kpi_home
   ================================ */

#page-container.et-animated-content {
  overflow: visible !important;
}

.tilted-kpi-container {
  display: flex;
  flex-direction: column;

  &.tilted-kpi-container--auto {
    height: auto;
  }

  .tilted-kpi {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 32px 40px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 12px;
    position: sticky;

    will-change: transform;
    backface-visibility: hidden;

    margin-top: 10vh;
    margin-bottom: 10vh;
    &:first-child {
      margin-top: 0;
    }

    p {
      padding: 0;
    }
    .separator {
      height: 50px;
      width: 1px;
    }
    .number {
      font-size: 48px;
      font-family: 'DM Serif Display', serif;
    }

    .title {
      font-family: 'DM Serif Display', serif;
      font-size: 20px;
    }
    .text {
      font-weight: 400;
    }
  }
}

/* ================================
   SHORTCODE : flip_working_groups
   ================================ */

.working-group-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;

  .card-working-group {
    background: #fafaf8;
    border: 1px solid rgb(0 118 255 / 0.1);
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 16px;
    .color {
      background: #4998f3;
      width: 10px;
      height: 10px;
      border-radius: 20px;
    }
  }
}

@media screen and (max-width: 900px) {
  .working-group-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 500px) {
  .working-group-container {
    grid-template-columns: 1fr;
  }
}
/* ================================
   SHORTCODE : show_values
   ================================ */
.wrapper-image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  .image-text-card {
    padding: 24px;
    border: 1px solid rgb(0 118 255 / 10%);
    background-color: #fafaf8;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-radius: 3px;
    &:first-child {
      border-top-left-radius: 19px;
    }
    &:nth-child(2) {
      border-top-right-radius: 19px;
    }

    &:nth-of-type(even):last-child {
      border-bottom-right-radius: 19px;
    }
    &:nth-of-type(odd):last-child {
      border-bottom-left-radius: 19px;
    }
    &:nth-of-type(odd):nth-last-child(2) {
      border-bottom-left-radius: 19px;
    }
    .image {
      max-width: 56px;
    }

    .title {
      font-family: 'DM Serif Display', serif;
      color: #161618;
    }
    .text {
      padding: 0;
      font-weight: 400;
      color: #4c515c;
    }
  }
}
/* ================================
   SHORTCODE : governance
   ================================ */
.governance-title {
  color: #f4f5f5;
}
.wrapper-governance {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  &.columns-3 .governance-card {
    width: calc(33.33% - 14px);
  }
  &.columns-4 .governance-card {
    width: calc(25% - 15px);
  }

  .governance-card {
    border-radius: 16px;
    border: 1px solid rgb(0 118 255 / 0.2);
    background-color: rgb(255 255 255 / 0.05);
    color: #f4f5f5;
    overflow: hidden;
    font-weight: 400;
    .image-container {
      width: 100%;
      img {
        aspect-ratio: 380 / 261;
        object-fit: cover;
        width: 100%;
      }
    }

    .card-content {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      flex-direction: column;
      padding: 20px;
      p {
        padding: 0;
      }
      .role {
        background-color: rgb(255 255 255 / 0.05);
        text-transform: uppercase;
        border-radius: 50px;
        border: 1px solid rgb(255 255 255 / 0.1);
        width: fit-content;
        padding: 7px 12px;
        line-height: 1em;
        font-size: 13px;
      }
      .title {
        font-family: 'DM Serif Display', serif;
        font-size: 20px;
      }
      .location {
        color: #d9dbdd;
      }
    }
  }
}
/* === [quick_access] : grille de cartes (titre + description + bouton) === */
.flip-quick-access {
  display: flex;
  gap: 24px;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.flip-quick-access__card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  width: calc(33% - 13px);
}

.flip-quick-access__title {
  margin: 0;
  color: #232529;
  font-weight: 700;
}

.flip-quick-access__desc {
  margin: 0;
  color: #4c515c;
}

.flip-quick-access__btn {
  margin-top: auto;
  align-self: flex-start;
  background: #ffd166;
  border-color: #ffd166 !important;
  color: #443300;
  --liquid-fill: #f4f5f5;
  padding-right: 2.5em !important;
}
.flip-quick-access__btn:hover {
  background: #ffd166;
}

@media (max-width: 980px) {
  .flip-quick-access {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .flip-quick-access__card {
    min-height: 0;
  }
}
