/* Page-only adaptations for HOP Musique En Chambre. */
/* RG01: match the shared Governance title scale on this page only. */
html[lang="fr"] body.page-body.mec-page .page-hero {
  height: 500px;
  min-height: 500px;
  padding: 110px 0 0;
  text-align: left;
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .47) 0%, #fcfcfc 89%), url('/assets/images/musique-chambre-hero.jpg');
  background-position: 0 0, center top;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

body.mec-page main .page-hero__title {
  font-family: var(--font-title) !important;
  font-size: clamp(2rem, 4.5vw, 3.375rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-inline: auto !important;
  text-align: center !important;
}

body.mec-page main .action-collage__tagline {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  line-height: 1.2;
  text-align: center;
  padding: var(--space-6) var(--space-4) calc(var(--space-10) + var(--space-6));
}

.mec-page .action-collage__text p {
  max-width: 560px;
  margin-left: max(-16px, calc((100vw - 1200px) / 2 - 16px));
  margin-right: 0;
  text-align: center;
}

.mec-page .action-collage__boxes {
  margin-top: 28px;
}

.mec-page .action-collage__tagline::after,
.mec-page .action-posters__heading::after,
.mec-page .action-temoignages__heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: var(--color-teal);
}

.mec-page .action-posters__heading,
.mec-page .action-temoignages__heading {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  text-align: center;
}

.mec-page .mec-section-title {
  max-width: 920px;
  margin: 0 auto var(--space-8);
}

.mec-page .mec-musicians__intro p {
  margin: 0 0 .75rem;
}

.mec-page .mec-musicians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.mec-page .mec-musician-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.mec-page .mec-musician-card .ca-card__avatar-wrap {
  width: min(100%, 206px);
  margin-bottom: .9rem;
  flex-shrink: 0;
}

.mec-page .mec-musician-card .ca-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 306 / 350;
  overflow: hidden;
  background: var(--color-navy);
}

.mec-page .mec-musician-card .ca-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mec-page .mec-musician-card .ca-card__avatar--placeholder {
  padding: 1rem;
  background: #edf2f4;
  color: #5d7079;
  font-size: .8rem;
  line-height: 1.35;
}

.mec-page .mec-musician-card .ca-card__name {
  margin: 0 0 .3rem;
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.mec-page .mec-musician-card .ca-card__role {
  margin: 0;
  color: var(--color-text-muted, #6b7280);
  font-size: .88rem;
  line-height: 1.45;
}

.mec-page .mec-videos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.mec-page .mec-video-item {
  min-width: 0;
}

.mec-page .mec-video-item__title {
  margin: 0 0 .8rem;
  color: var(--color-navy);
  font-family: var(--font-title);
  font-size: 1.05rem;
  line-height: 1.4;
  text-align: center;
}

.mec-page .mec-video-player,
.mec-page .mec-video-pending {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #102e49;
}

.mec-page .mec-video-pending {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #fff;
  font-size: .95rem;
  text-align: center;
}

.mec-page .mec-video-item--center {
  grid-column: 1 / -1;
  width: calc(50% - .75rem);
  justify-self: center;
}

.mec-page .action-temoignages {
  padding: 5rem 0;
  background: #fff;
}

.mec-page .action-temoignages__heading {
  margin-bottom: 2rem;
}

.mec-page .action-temoignages .temoignages-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.mec-page .temoignage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.75rem 1.5rem;
  border-left: 4px solid var(--color-teal, #159f9a);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.mec-page .temoignage__header {
  display: flex;
  align-items: center;
  gap: .875rem;
}

.mec-page .temoignage__avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
}

.mec-page .temoignage__name,
.mec-page .temoignage__role {
  margin: 0;
}

.mec-page .temoignage__name {
  color: var(--color-navy);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.3;
}

.mec-page .temoignage__role {
  margin-top: .1rem;
  color: var(--color-text-muted, #6b7280);
  font-size: .75rem;
}

.mec-page .temoignage__quote {
  flex: 1;
  margin: 0;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.75;
}

@media (max-width: 900px) {
  html[lang="fr"] body.page-body.mec-page .page-hero {
    height: 390px;
    min-height: 390px;
    padding: 105px 0 0;
    background-position: 0 0, center center;
  }

  .mec-page .mec-musicians-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .mec-page .action-collage__text p { margin-inline: auto; }
  .mec-page .action-collage__boxes { margin-top: 0; }
}

@media (max-width: 600px) {
  .mec-page .mec-musicians-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .mec-page .mec-videos__grid { grid-template-columns: minmax(0, 1fr); }
  .mec-page .mec-video-item--center { grid-column: auto; width: 100%; justify-self: stretch; }
  .mec-page .action-temoignages .temoignages-list { grid-template-columns: 1fr; }
  .mec-page .mec-musician-card { padding: 1.1rem .8rem 1rem; }
}
