.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

/* =========================
   MEDIA
   ========================= */

.testimonial-card__photo,
.testimonial-card__video {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.testimonial-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   CONTENT
   ========================= */

.testimonial-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.testimonial-card__company-logo {
  width: auto;
  max-width: 140px;
  max-height: 50px;
  margin-bottom: 20px;
  object-fit: contain;
  object-position: left;
}

.testimonial-card__company-sector {
  display: flex;
  justify-content: flex-end;
}

.testimonial-card__company-sector p {
  font-size: 12px;
  background: #eeeeee;
  border-radius: 5px;
  padding: 3px 8px;
  width: fit-content;
  margin-bottom: 20px;
}

.testimonial-card__text {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
}

.testimonial-card__speaker {
  margin-top: auto;
  font-weight: 600;
  color: var(--blue);
}

.testimonial-card__speaker-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card__speaker_photo {
  border-radius: 50rem;
  overflow: hidden;
  width: 40px;
  height: 40px;
}

.testimonial-card__speaker_photo_img {
  object-fit: cover;
  object-position: center;
}

.testimonial-card__company {
  margin-top: 4px;
  color: #777;
  font-size: 14px;
}

.testimonial-card__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* =========================================
   IFRAME
   ========================================= */

.testimonial-card__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* =========================================
   COVER
   ========================================= */

.testimonial-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  background: none;
  z-index: 2;
}


.testimonial-card__cover-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* =========================================
   PLAY SUR LA COVER
   ========================================= */

.testimonial-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}


.testimonial-card__play img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


.testimonial-card__cover:hover .testimonial-card__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}


/* =========================================
   VIDÉO SANS COVER
   ========================================= */

.testimonial-card__play-button {
  position: absolute;
  z-index: 2;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 0;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.65);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}


.testimonial-card__play-button img {
  width: 24px;
  height: 24px;
}


.testimonial-card__play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}


/* =========================================
   ÉTAT MASQUÉ
   ========================================= */

.testimonial-card__cover.is-hidden,
.testimonial-card__play-button.is-hidden {
  display: none;
}


/* =========================================
   PHOTO SANS VIDÉO
   ========================================= */

.testimonial-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}