.fl-index-friends-stack {
  --fl-index-friends-accent: var(--fl-color-entity-particulier-clair, #00a2b7);
  --fl-index-friends-accent-strong: #007f91;
  --fl-index-friends-accent-soft: #e6f9fa;
  --fl-index-friends-border: #d5e2e4;
  --fl-index-friends-text: #0c1e23;
  display: grid;
  gap: 16px;
}

.fl-index-friends {
  border: 1px solid var(--fl-index-friends-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(6, 43, 49, .08);
  overflow: hidden;
}

.fl-index-friends__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 12px;
}

.fl-index-friends__header--featured {
  margin: 16px 16px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--fl-index-friends-accent-soft);
}

.fl-index-friends__title {
  margin: 0;
  color: var(--fl-index-friends-accent);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.fl-index-friends__header--featured .fl-index-friends__title {
  color: #006a78;
}

.fl-index-friends__counter,
.fl-index-friends__see-all {
  flex: 0 0 auto;
  color: var(--fl-index-friends-accent-strong);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.fl-index-friends__see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.fl-index-friends__see-all:hover,
.fl-index-friends__see-all:focus-visible {
  color: #006b7a;
  text-decoration: underline;
}

.fl-index-friends__body {
  padding: 0 16px 16px;
}

.fl-index-friends--featured .fl-index-friends__body {
  padding-top: 16px;
}

.fl-index-friends__list,
.fl-index-friends__featured-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fl-index-friends__featured-list {
  grid-template-areas: "slide";
}

.fl-index-friends__item {
  min-width: 0;
}

.fl-index-friends__item--featured {
  grid-area: slide;
  visibility: hidden;
  opacity: 0;
  transform: translateX(18px) scale(.985);
  pointer-events: none;
  transition:
    opacity .36s ease,
    transform .36s cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear .36s;
}

.fl-index-friends__item--featured.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.fl-index-friends__profile {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e8ea;
  border-radius: 14px;
  background: #f8fcfc;
}

.fl-index-friends__item--featured .fl-index-friends__profile {
  padding: 24px 18px 20px;
  border-color: var(--fl-color-entity-particulier-fonce, #63dbeb);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(99, 219, 235, .24), transparent 42%),
    #f0fcfd;
}

.fl-index-friends__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fl-index-friends__item--featured .fl-index-friends__identity {
  flex-direction: column;
  text-align: center;
}

.fl-index-friends__avatar {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dff5f7;
  box-shadow: 0 0 0 2px rgba(0, 162, 183, .18);
  overflow: hidden;
}

.fl-index-friends__item--featured .fl-index-friends__avatar {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  box-shadow:
    0 0 0 3px rgba(0, 162, 183, .2),
    0 10px 24px rgba(0, 127, 145, .18);
}

.fl-index-friends__avatar picture,
.fl-index-friends__avatar img {
  display: block;
  width: 100%;
  height: 100%;
}

.fl-index-friends__avatar img {
  object-fit: cover;
}

.fl-index-friends__details {
  min-width: 0;
  flex: 1 1 auto;
}

.fl-index-friends__name-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.fl-index-friends__item--featured .fl-index-friends__name-line {
  justify-content: center;
}

.fl-index-friends__name {
  min-width: 0;
  color: var(--fl-index-friends-text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-index-friends__item--featured .fl-index-friends__name {
  font-size: 18px;
  font-weight: 700;
}

.fl-index-friends__name:hover,
.fl-index-friends__name:focus-visible {
  color: var(--fl-index-friends-accent-strong);
  text-decoration: underline;
}

.fl-index-friends__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: var(--fl-index-friends-accent);
  color: #fff;
  font-size: 8px;
}

.fl-index-friends__handle,
.fl-index-friends__location {
  display: block;
  margin-top: 2px;
  color: #5d7077;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-index-friends__item--featured .fl-index-friends__handle {
  display: none;
}

.fl-index-friends__location i {
  margin-right: 3px;
  color: var(--fl-index-friends-accent);
}

.fl-index-friends__mutual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #d1f3f6;
  color: #006a78;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

.fl-index-friends__item--compact .fl-index-friends__mutual {
  justify-content: flex-start;
  margin-left: 64px;
  padding: 0;
  background: transparent;
  color: #5d7077;
}

.fl-index-friends__mutual i {
  color: var(--fl-index-friends-accent);
}

.fl-index-friends__context {
  min-height: 36px;
  margin: 10px auto 0;
  color: #42565d;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.fl-index-friends__actions {
  display: grid;
  grid-template-columns: minmax(0, 210px) 96px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.fl-index-friends__item--featured .fl-index-friends__actions {
  display: flex;
  flex-direction: column;
}

.fl-index-friends__connect {
  width: 100% !important;
  max-width: 210px;
  min-width: 0;
  justify-content: flex-start;
}

.fl-index-friends__item--featured .fl-index-friends__connect {
  align-self: center;
}

.fl-index-friends__connect .btn-text {
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
}

.fl-index-friends__follow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
  width: 96px;
  min-width: 0;
  height: 32px;
  padding: 0 8px 0 3px;
  border: 1px solid var(--fl-index-friends-accent);
  border-radius: 20px;
  background: #fff;
  color: var(--fl-index-friends-accent-strong);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.fl-index-friends__item--featured .fl-index-friends__follow {
  width: 118px;
  align-self: center;
}

.fl-index-friends__follow .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background: var(--fl-index-friends-accent-soft);
  color: var(--fl-index-friends-accent-strong);
}

.fl-index-friends__follow:hover,
.fl-index-friends__follow:focus-visible {
  border-color: var(--fl-index-friends-accent-strong);
  background: var(--fl-index-friends-accent-soft);
  color: #006b7a;
}

.fl-index-friends__navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
}

.fl-index-friends__next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #546870;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  cursor: pointer;
}

.fl-index-friends__next:hover,
.fl-index-friends__next:focus-visible {
  color: var(--fl-index-friends-accent-strong);
}

.fl-index-friends__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 8px;
}

.fl-index-friends__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c6dbde;
  cursor: pointer;
  transition:
    width .25s ease,
    background-color .25s ease;
}

.fl-index-friends__dot.is-active {
  width: 18px;
  background: var(--fl-index-friends-accent);
}

.fl-index-friends__follow:focus-visible,
.fl-index-friends__see-all:focus-visible,
.fl-index-friends__name:focus-visible,
.fl-index-friends__avatar:focus-visible,
.fl-index-friends__next:focus-visible,
.fl-index-friends__dot:focus-visible {
  outline: 3px solid rgba(0, 162, 183, .24);
  outline-offset: 2px;
}

@media (max-width: 319.98px) {
  .fl-index-friends__header {
    align-items: flex-start;
  }

  .fl-index-friends__actions {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .fl-index-friends__follow {
    width: 88px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-index-friends__item--featured,
  .fl-index-friends__follow,
  .fl-index-friends__dot {
    transition: none;
  }
}
