/**
 * @file
 * Testimonial page styles — pixel-perfect from Figma (1485:4644).
 */

/* ===== HERO ===== */
.tem-hero {
  position: relative;
  height: 801px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -86px;
  padding-top: 86px;
  padding-bottom: 80px;
}

/* Background image + dark overlay */
.tem-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.tem-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Fallback when no hero image — use light-blue bg */
.tem-hero--no-image {
  background: var(--color-blue-light);
  height: auto;
  min-height: 500px;
}

.tem-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Breadcrumb in hero — white on dark overlay, blue on no-image fallback */
.tem-hero .hub-breadcrumb__sep,
.tem-hero .hub-breadcrumb__current,
.tem-hero .hub-breadcrumb__link,
.tem-hero .hub-breadcrumb__home {
  color: var(--color-white);
}

.tem-hero--no-image .hub-breadcrumb__sep,
.tem-hero--no-image .hub-breadcrumb__current,
.tem-hero--no-image .hub-breadcrumb__link,
.tem-hero--no-image .hub-breadcrumb__home {
  color: var(--color-blue);
}

/* Meta: tag + reading time */
.tem-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tag badge: orange bg, white border inner pill */
.tem-hero__tag {
  background: var(--color-orange);
  border-radius: 100px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tem-hero__tag-inner {
  border: 1px solid var(--color-white);
  border-radius: 100px;
  padding: 4px 16px;
  display: inline-flex;
  align-items: center;
}

.tem-hero__tag-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-white);
  line-height: normal;
}

.tem-hero__reading-time {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.5;
}

/* When no hero image, text uses standard colors */
.tem-hero--no-image .tem-hero__reading-time {
  color: var(--color-black);
  opacity: 0.6;
  font-size: 12px;
  font-weight: 400;
}

/* Title */
.tem-hero__title {
  font-family: var(--font-heading);
  font-size: 75px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-white);
  line-height: 1;
  margin: 0;
  max-width: 1172px;
}

.tem-hero--no-image .tem-hero__title {
  font-size: 60px;
  color: var(--color-blue);
  max-width: 900px;
}

/* Hero description text / chapô */
.tem-hero__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
  max-width: 1172px;
}

.tem-hero__text p {
  margin: 0;
}

.tem-hero--no-image .tem-hero__text {
  color: var(--color-black);
}

/* ===== BLOC 1 (content section — white card overlapping hero) ===== */
.tem-conversation {
  background: var(--color-white);
  border-radius: 40px 40px 0 0;
  padding: 80px 278px 0;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.tem-conversation__inner {
  max-width: 884px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Patient narrative (body text) --- */
.tem-narrative {
  display: flex;
  justify-content: flex-start;
}

.tem-narrative__content {
  max-width: 100%;
  width: 100%;
}

.tem-narrative__content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-black);
  margin: 0 0 1em;
}

.tem-narrative__content p:last-child {
  margin-bottom: 0;
}

.tem-narrative__content strong {
  font-weight: 600;
}

.tem-narrative__content a {
  color: var(--color-blue);
  text-decoration: underline;
  font-weight: 700;
}

/* Sources: keep normal weight — links there are references, not emphasis. */
.tem-conversation .art-sources a {
  font-weight: 400;
}

.tem-narrative__content h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-blue);
  line-height: 1;
  margin-top: 32px;
  margin-bottom: 16px;
}

.tem-narrative__content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-blue);
  line-height: 1.1;
  margin-top: 24px;
  margin-bottom: 12px;
}

/* ===== SOURCES — override art-sources title selector for temoignage context ===== */
.tem-conversation .art-sources__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0 0 16px 0;
  padding: 0;
  line-height: normal;
  letter-spacing: normal;
}

.tem-conversation .art-sources p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-black);
  margin: 0;
}

/* ===== SHARE CARD (blue-light card) ===== */
.tem-share-card {
  background: var(--color-blue-light);
  border-radius: 32px;
  padding: 42px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.tem-share-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: 1.3;
}

.tem-share-card__buttons {
  display: flex;
  gap: 16px;
}

/* Share buttons (Figma style — 44x44 circle with blue border, same as article) */
.tem-share-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 100px;
  border: 0.8px solid var(--color-blue);
  background: var(--color-blue-light);
  color: var(--color-blue);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

.tem-share-card__btn:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.tem-share-card__btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ===== RELATED TESTIMONIALS (Bloc 3) ===== */
.tem-related {
  background: var(--color-white);
  padding: 80px 80px;
  overflow: hidden;
}

.tem-related__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* H2 section inside related */
.tem-related .hub-heading {
  gap: 2px;
  margin-bottom: 20px;
}

.tem-related__articles-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.tem-related__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Related card — article item style matching Figma */
a.tem-related-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--color-black);
}

.tem-related-card__separator {
  height: 0;
  border-top: 2px solid var(--color-blue-light);
}

.tem-related-card__content {
  display: flex;
  gap: 16px;
  align-items: center;
}

.tem-related-card__avatar {
  width: 78px;
  height: 78px;
  border-radius: var(--radius-md);
  background: var(--color-blue-light);
  flex-shrink: 0;
  overflow: hidden;
}

.tem-related-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tem-related-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tem-related-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--color-black);
  line-height: normal;
  margin: 0;
}

/* Arrow button */
.tem-related-card__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.8px solid var(--color-blue);
  background: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-blue);
  transition: background var(--transition-base), color var(--transition-base);
}

.tem-related-card:hover .tem-related-card__arrow {
  background: var(--color-blue);
  color: var(--color-white);
}

.tem-related__cta {
  text-align: center;
}

/* CTA button — pill style matching Figma */
.tem-related__cta .btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 0.8px solid var(--color-blue);
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  text-decoration: none;
  overflow: hidden;
}

/* ===== PAGE BACKGROUND ===== */
.page--temoignage {
  background: var(--color-white);
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .tem-conversation {
    padding: 60px 80px 0;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .tem-hero {
    height: auto;
    min-height: auto;
    padding: 150px 16px 170px;
    margin-top: -86px;
  }

  .tem-hero__inner {
    padding: 0;
  }

  .tem-hero__title {
    font-size: 40px;
  }

  .tem-hero--no-image .tem-hero__title {
    font-size: 40px;
  }

  .tem-conversation {
    padding: 25px 16px 45px;
    border-radius: 24px 24px 0 0;
    margin-top: -42px;
  }

  .tem-conversation__inner {
    gap: 24px;
  }

  .tem-share-card {
    padding: 40px 16px;
    border-radius: 24px;
    margin-right: -16px;
    margin-left: -16px;
  }

  .tem-related {
    padding: 0px 16px 75px;
  }

  .tem-related__inner {
    gap: 24px;
  }

  .tem-related__list {
    max-width: 100%;
  }

  .tem-related-card__avatar {
    width: 60px;
    height: 60px;
  }

  .tem-related__cta {
    width: 100%;
  }
  .tem-related__cta .btn--secondary {
    display: flex;
    width: 100%;
  }
}
