/* Section « Ils parlent de nous » — avis clients à la une (Figma 8964-7390).
   Rendu par wp-content/novamira-sandbox/palmsquare-avis-vedette.php */
.psav, .psav * { box-sizing: border-box; }
.psav {
  position: relative;
  max-width: 1216px;
  margin: 0 auto;
  font-family: 'Satoshi', sans-serif;
  color: #0E0E0E;
  text-align: left;
}
.psav__title {
  margin: 0 0 40px;
  text-align: center;
  font-family: 'Livvic', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.25;
  color: #0E0E0E;
}
.psav__title em { font-weight: 500; font-style: italic; }

/* Onglets logos */
.psav__tabs {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.psav__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 77px;
  min-width: 150px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.52);
  border: 2px solid #FFFFFF;
  border-radius: 23px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, height .18s ease, transform .18s ease;
}
/* Survol = même look que l'état sélectionné : fond rose, bordure rose clair, logo blanc, encart agrandi */
.psav__tab:hover,
.psav__tab.is-active {
  background: #FF00A7;
  border-color: #FF71CE;
  height: 99px;
}
.psav__logo, .psav__tab img {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}
/* Découpe blanche du logo (mask CSS) pour survol/actif — fiable quel que soit le format du logo */
.psav__logomask {
  display: none;
  width: 170px;
  height: 48px;
  background: #FFFFFF;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.psav__tab:hover .psav__logo, .psav__tab.is-active .psav__logo { display: none; }
.psav__tab:hover .psav__logomask, .psav__tab.is-active .psav__logomask { display: block; }
.psav__logotxt { font-weight: 900; font-size: 22px; text-transform: uppercase; }
.psav__tab:hover .psav__logotxt, .psav__tab.is-active .psav__logotxt { color: #fff; }

/* Slides */
.psav__slide { display: none; }
.psav__slide.is-active { display: block; animation: psav-fade .35s ease; }
@keyframes psav-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Carte avis */
.psav__card {
  display: flex;
  gap: 40px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.52);
  border: 2px solid #FFFFFF;
  border-radius: 20px;
  padding: 20px;
}
.psav__quote {
  flex: 1 1 0;
  min-width: 0;
  padding: 25px 10px 25px 30px;
  font-size: 23px;
  line-height: 40px;
  font-weight: 400;
  align-self: center;
}
.psav__quote p { margin: 0 0 18px; }
.psav__quote p:last-child { margin-bottom: 0; }
.psav__quote strong, .psav__quote b { font-weight: 700; font-style: italic; }
.psav__visual {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
}
.psav__visual img.psav__site {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
  display: block;
}

/* Identité (avatar + nom + poste) */
.psav__who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 28px;
  min-height: 81px;
}
.psav__avatar,
img.psav__avatar {
  width: 81px;
  height: 81px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.psav__id { display: flex; flex-direction: column; gap: 3px; }
.psav__nom { margin: 0; font-size: 32px; font-weight: 500; line-height: 1.25; }
.psav__role { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.5; }

/* Flèches */
.psav__nav {
  position: absolute;
  bottom: 6px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #FF00A7;
  border: 3px solid #FF71CE;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
  padding: 0;
}
.psav__nav:hover { background: #E42899; border-color: #FC78CE; }
.psav__nav--prev { left: 0; }
.psav__nav--prev svg { transform: rotate(180deg); }
.psav__nav--next { right: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .psav__quote { font-size: 19px; line-height: 32px; }
  .psav__nom { font-size: 26px; }
}
@media (max-width: 767px) {
  .psav__title { font-size: 34px; margin-bottom: 22px; }

  /* Onglets : défilement horizontal (prêt pour 5-6 logos), sans barre visible */
  .psav__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    margin: 0 -6px 20px;
    padding: 6px 6px 10px;
  }
  .psav__tabs::-webkit-scrollbar { display: none; }
  .psav__tab { flex: 0 0 auto; height: 56px; min-width: 118px; padding: 8px 16px; border-radius: 16px; }
  .psav__tab:hover, .psav__tab.is-active { height: 62px; }
  .psav__logo, .psav__tab img { max-height: 28px; max-width: 110px; }
  .psav__logomask { width: 110px; height: 28px; }
  .psav__logotxt { font-size: 15px; }

  /* Carte : image d'abord (rythme visuel), citation ensuite */
  .psav__card { flex-direction: column; gap: 14px; padding: 12px; border-radius: 16px; }
  .psav__visual { order: 1; flex: none; width: 100%; }
  .psav__visual img.psav__site { height: 240px; }
  .psav__quote { order: 2; padding: 2px 10px 10px; font-size: 16px; line-height: 26px; }
  .psav__quote p { margin-bottom: 12px; }

  /* Pied : avatar + nom entre les flèches */
  .psav__who {
    margin-top: 18px;
    min-height: 56px;
    padding: 0 54px;
    gap: 10px;
    text-align: left;
  }
  .psav__avatar, img.psav__avatar { width: 52px; height: 52px; }
  .psav__nom { font-size: 18px; line-height: 1.2; white-space: normal; }
  .psav__role { font-size: 13px; line-height: 1.3; }
  .psav__nav { width: 44px; height: 44px; border-width: 2px; bottom: 6px; }
  .psav__nav svg { width: 19px; height: 19px; }
}
