/* =====================================================================
 * Weda Blog System — TÉMOIGNAGES (hub + fiche)
 * Maquettes Figma wNSl9FsgmL1JWHptbOHGga :
 *   HUB 5177:25774 · FICHE 5182:26586
 * Complète blog-hub.css et blog-article.css (chargés avant) : on ne
 * redéfinit ici que ce qui diffère du blog.
 * ===================================================================== */

/* ====================================================================
 * HUB
 * ==================================================================== */
.weda-hub--tem .weda-hub__title strong {
  font-weight: 600;
}

.weda-hub--tem .weda-hub__title-light {
  font-weight: 300;
}

/* ---------- Témoignage à la une ---------- */
.weda-hub--tem .weda-hub__featured {
  max-width: none;
}

.weda-card--featured.weda-card--tem {
  align-items: stretch;
  gap: 24px;
  padding: 0;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

.weda-card--featured.weda-card--tem .weda-card__media {
  flex: 0 0 650px;
  max-width: 650px;
  height: 500px;
  border-radius: 10px;
}

.weda-card--featured.weda-card--tem .weda-card__body {
  flex: 1 1 auto;
  padding: 24px 32px 32px 8px;
  gap: 16px;
}

.weda-card--featured.weda-card--tem .weda-card__title {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  font-weight: 300;
}

.weda-card--featured.weda-card--tem .weda-card__title strong {
  display: block;
  font-weight: 600;
  color: #000;
}

.weda-card--featured.weda-card--tem .weda-card__subtitle {
  display: block;
  font-weight: 300;
}

.weda-card--featured.weda-card--tem .weda-card__excerpt {
  -webkit-line-clamp: 5;
}

/* CTA plein bleu aligné en bas à droite (maquette « CTA Lire ») */
.weda-card.weda-card--tem.weda-card--featured .weda-card__cta {
  align-self: flex-end;
  margin-top: auto;
  padding: 8px 8px 8px 16px;
  border-radius: 100px;
  background: var(--weda-blog-blue-700);
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
}

.weda-card.weda-card--tem.weda-card--featured .weda-card__cta:hover {
  color: #fff;
  text-decoration: none;
  background: #2c36b0;
}

.weda-card.weda-card--tem.weda-card--featured .weda-card__cta-icon {
  width: 20px;
  height: 20px;
  background: #fff;
  color: var(--weda-blog-blue-700);
}

/* ---------- Vidéo d'aperçu (survol / lecture directe sur la une) ---------- */
.weda-tem-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.weda-card__media.is-playing .weda-tem-video {
  opacity: 1;
}

/* Libellés / titres propres au mobile : masqués par défaut (desktop) */
.weda-tem-cta--m {
  display: none;
}

.weda-card--tem-grid .weda-card__title--mobile {
  display: none;
}

/* ---------- Grille 2 colonnes ---------- */
.weda-hub__grid--tem {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 48px;
}

/* Carte de grille : image pleine largeur, titre superposé sur dégradé, texte dessous */
.weda-card--tem-grid {
  padding: 0;
  gap: 16px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.weda-card--tem-grid .weda-card__top {
  gap: 16px;
}

.weda-card--tem-grid .weda-card__media {
  height: clamp(240px, 24vw, 340px);
  border-radius: 12px;
}

.weda-card--tem-grid .weda-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  /* Repli bleu, puis couleur choisie par témoignage (--tem-fondu, posée sur .weda-card__media) */
  background: linear-gradient(180deg, rgba(56, 67, 208, 0) 0%, rgba(56, 67, 208, .88) 100%);
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--tem-fondu, #3843D0) 0%, transparent) 0%,
      color-mix(in srgb, var(--tem-fondu, #3843D0) 88%, transparent) 100%);
  pointer-events: none;
  z-index: 1;
}

.weda-card--tem-grid .weda-card__badges {
  z-index: 2;
}

.weda-card--tem-grid .weda-card__media .weda-card__title {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: -.2px;
  -webkit-line-clamp: 2;
}

.weda-card--tem-grid .weda-card__excerpt {
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.5;
}

.weda-card--tem-grid .weda-card__cta {
  align-self: flex-end;
  margin-top: 0;
  font-size: 18px;
}

/* « Vous aimerez aussi » : carte blog standard, extrait sur 1 ligne */
.weda-card--tem:not(.weda-card--tem-grid):not(.weda-card--featured) .weda-card__excerpt {
  -webkit-line-clamp: 1;
  font-size: 16px;
  line-height: 1.45;
}

/* ====================================================================
 * FICHE — hero
 * ==================================================================== */
.weda-tem-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  min-height: 466px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.weda-tem-hero .weda-article__hero-text {
  justify-content: flex-start;
  gap: 28px;
  padding: 0;
}

.weda-tem-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.weda-tem-hero__top .weda-article__meta-chip {
  align-self: auto;
  padding: 12px 16px;
}

.weda-tem-hero__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.weda-article .weda-tem-hero__job {
  margin: 0;
  color: rgba(0, 0, 0, .7);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
  font-weight: 300;
}

.weda-tem-hero__intro {
  color: rgba(0, 0, 0, .8);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -.2px;
}

.weda-tem-hero__intro p {
  margin: 0 0 1.2em;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

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

.weda-tem-hero__intro strong {
  font-weight: 600;
  color: #000;
}

/* Visuel + panneau « faits clés » */
.weda-tem-hero__media {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: rgba(236, 241, 251, .5);
  border-radius: 8px;
}

.weda-tem-hero__media .weda-card__media {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  min-height: 466px;
  border-radius: 0;
}

.weda-tem-facts {
  flex: 0 0 206px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px 18px;
  list-style: none;
}

.weda-tem-facts__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  text-align: center;
  color: rgba(0, 0, 0, .7);
  font-size: 16px;
  line-height: 1.25;
  border-bottom: 1px solid rgba(56, 67, 208, .22);
}

.weda-tem-facts__item:last-child {
  border-bottom: 0;
}

.weda-tem-facts__icon {
  display: inline-flex;
  color: var(--weda-blog-blue-700);
}

.weda-tem-facts__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* ====================================================================
 * Responsive
 * ==================================================================== */
@media (max-width: 1023px) {
  .weda-card--featured.weda-card--tem {
    flex-direction: column;
  }

  .weda-card--featured.weda-card--tem .weda-card__media {
    flex-basis: auto;
    max-width: none;
    width: 100%;
    height: 360px;
  }

  .weda-card--featured.weda-card--tem .weda-card__body {
    padding: 0 20px 24px;
  }

  .weda-card.weda-card--tem.weda-card--featured .weda-card__cta {
    align-self: flex-start;
    margin-top: 8px;
  }

  .weda-hub__grid--tem {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .weda-tem-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
  }

  .weda-tem-hero .weda-article__hero-text {
    order: 1;
  }

  .weda-tem-hero__media {
    order: 2;
    flex-direction: column;
  }

  .weda-tem-hero__media .weda-card__media {
    min-height: 320px;
    height: 360px;
  }

  .weda-tem-facts {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px 16px 16px;
  }

  .weda-tem-facts__item {
    flex: 1 1 140px;
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  .weda-hub__grid--tem {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .weda-tem-hero__media .weda-card__media {
    min-height: 260px;
    height: 280px;
  }

  .weda-tem-hero__intro {
    font-size: 17px;
  }

  /* ---- Cartes (maquette mobile) : image + badge, date, TITRE SOUS L'IMAGE, texte, lien « Lire le témoignage ».
   *      Première carte : fond bleu clair ; suivantes : fond blanc + ombre. ---- */
  .weda-tem-cta--d {
    display: none;
  }

  .weda-tem-cta--m {
    display: inline;
  }

  /* Cartes de la grille (blanches) */
  .weda-card--tem-grid {
    padding: 16px;
    gap: 16px;
    background: #fff;
    box-shadow: var(--weda-hub-card-shadow);
    border-radius: var(--weda-hub-card-radius);
  }

  .weda-card--tem-grid .weda-card__media {
    height: 252px;
    border-radius: 8px;
  }

  .weda-card--tem-grid .weda-card__media::after {
    display: none;
  }

  .weda-card--tem-grid .weda-card__title--overlay {
    display: none;
  }

  .weda-card--tem-grid .weda-card__title--mobile {
    display: -webkit-box;
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 400;
    color: #000;
  }

  .weda-card--tem-grid .weda-card__excerpt {
    font-size: 15px;
    line-height: 1.45;
  }

  .weda-card--tem-grid .weda-card__cta {
    align-self: flex-start;
    font-size: 20px;
  }

  /* Première carte (à la une) : fond bleu clair, même structure */
  .weda-card--featured.weda-card--tem {
    padding: 16px;
    gap: 16px;
    background: var(--weda-blog-blue-50);
    box-shadow: var(--weda-hub-card-shadow);
  }

  .weda-card--featured.weda-card--tem .weda-card__media {
    height: 252px;
    border-radius: 8px;
  }

  .weda-card--featured.weda-card--tem .weda-card__body {
    padding: 0;
    gap: 12px;
  }

  .weda-card--featured.weda-card--tem .weda-card__title {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 400;
  }

  .weda-card--featured.weda-card--tem .weda-card__title strong {
    display: inline;
    font-weight: 400;
  }

  .weda-card--featured.weda-card--tem .weda-card__subtitle {
    display: inline;
    font-weight: 400;
  }

  .weda-card--featured.weda-card--tem .weda-card__subtitle::before {
    content: ' - ';
  }

  .weda-card--featured.weda-card--tem .weda-card__excerpt {
    font-size: 15px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .weda-card.weda-card--tem.weda-card--featured .weda-card__cta {
    align-self: flex-start;
    margin-top: 0;
    padding: 0;
    background: none;
    color: var(--weda-blog-blue-700);
    font-size: 20px;
  }

  .weda-card.weda-card--tem.weda-card--featured .weda-card__cta:hover {
    background: none;
    color: var(--weda-blog-blue-700);
    text-decoration: underline;
  }

  .weda-card.weda-card--tem.weda-card--featured .weda-card__cta-icon {
    width: 17px;
    height: 17px;
    background: var(--weda-blog-blue-700);
    color: #fff;
  }
}

/* Override `.breakdance a` (global) sur le fil d'Ariane de la fiche. */
.weda-article .weda-tem-hero .weda-article__breadcrumb a {
  color: rgba(56, 67, 208, .3);
}

.weda-article .weda-tem-hero .weda-article__breadcrumb span {
  color: rgba(56, 67, 208, .3);
}