/* ============================================================================
   PASA MUSIK — MISE EN PAGE ÉDITORIALE DES ARTICLES
   ----------------------------------------------------------------------------
   Ces règles n'ajoutent rien à la page d'article existante : elles habillent
   le contenu que WordPress place déjà dans `theme-post-content`.

   Trois besoins, trois blocs :
     • `.pm-art__lead`    — le chapeau, première phrase de l'article ;
     • `.pm-art__facts`   — les informations pratiques d'un événement ;
     • `.pm-art__gallery` — une galerie éditoriale, asymétrique, jamais une
                            grille de vignettes toutes identiques.

   Tout reprend les jetons du site (--pm-*) : aucune couleur, aucune police et
   aucun arrondi n'est introduit ici.
   ========================================================================== */

/* --- Chapeau ------------------------------------------------------------- */
/* La phrase d'ouverture porte l'annonce. Elle se distingue du corps de texte
   par sa taille, pas par une couleur de plus. */

.entry-content .pm-art__lead,
.elementor-widget-theme-post-content .pm-art__lead {
  margin: 0 0 var(--pm-s3, 24px);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.012em;
  color: var(--pm-ink, #0b2530);
}

/* --- Informations pratiques ---------------------------------------------- */

.pm-art__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px clamp(18px, 2vw, 28px);
  margin: var(--pm-s4, 32px) 0;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--pm-line, #e3ebee);
  border-radius: var(--pm-radius, 14px);
  background: var(--pm-surface-2, #f6fafb);
}

.pm-art__facts > div { padding-block: 6px; }

.pm-art__facts dt {
  margin: 0 0 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pm-ink-3, #6b7f88);
}

.pm-art__facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pm-ink, #0b2530);
}

.pm-art__facts dd small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--pm-ink-2, #3f5560);
}

/* La gratuité est l'information la plus importante de l'annonce : elle est
   dite en toutes lettres, dans la couleur d'accent de la marque. */
.pm-art__facts .pm-art__free dd {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--pm-primary, #047391);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pm-art__facts .pm-art__free dd::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pm-accent, #F3AF20);
}

/* --- Galerie éditoriale --------------------------------------------------- */
/* Une image porteuse en pleine largeur, puis les autres en rythme : la page
   raconte, elle n'aligne pas des vignettes. */

/* `auto-fit` plutôt qu'un nombre fixe de colonnes : la rangée se remplit
   d'elle-même, quel que soit le nombre de photographies. Aucune case vide
   ne reste en fin de galerie. */
.pm-art__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin: var(--pm-s5, 48px) 0 var(--pm-s4, 32px);
}

.pm-art__gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--pm-radius, 14px);
  background: var(--pm-surface-2, #f6fafb);
  box-shadow: var(--pm-shadow-1, 0 2px 8px rgba(4, 37, 48, .05));
}

/* `cover` sur un cadre au ratio fixe : les photographies gardent leurs
   proportions et le point de focalisation garde les visages dans le cadre. */
.pm-art__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--pm-focal, 50% 32%);
  transition: transform .9s var(--pm-ease, cubic-bezier(.22, .61, .36, 1));
}

.pm-art__gallery figure:hover img { transform: scale(1.03); }

/* L'image d'ouverture occupe toute la largeur et respire davantage. */
.pm-art__gallery .pm-art__shot--wide { grid-column: 1 / -1; }
.pm-art__gallery .pm-art__shot--wide img { aspect-ratio: 16 / 9; }

.pm-art__gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 11px;
  background: linear-gradient(to top, rgba(4, 37, 48, .78) 0%, rgba(4, 37, 48, 0) 100%);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
}

/* --- Média vidéo ---------------------------------------------------------- */

.pm-art__media {
  margin: var(--pm-s5, 48px) 0 var(--pm-s4, 32px);
}

.pm-art__media .pm-frame { box-shadow: 0 22px 60px rgba(11, 37, 48, .20); }

.pm-art__media figcaption,
.pm-art__caption {
  margin: 12px 2px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pm-ink-3, #6b7f88);
}

/* --- Affiche -------------------------------------------------------------- */
/* L'affiche officielle est montrée EN ENTIER : jamais recadrée, jamais
   déformée, le visage reste intact à toutes les largeurs. */

.pm-art__poster {
  display: block;
  max-width: 480px;
  margin: var(--pm-s4, 32px) 0;
  border-radius: var(--pm-radius, 14px);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(11, 37, 48, .18);
}

.pm-art__poster img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Appel à l'action ----------------------------------------------------- */

.pm-art__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--pm-s4, 32px) 0 0;
}

/* Le bouton est posé DANS le corps de l'article, où le thème impose sa
   couleur de lien à tous les <a>. Sans ces deux règles, le libellé se
   retrouve écrit en bleu sur le bleu du bouton, donc illisible.
   La classe est doublée pour passer devant la règle du thème. */
.pm-art__actions a.pm-btn.pm-btn,
.pm-art__actions a.pm-btn.pm-btn:hover,
.pm-art__actions a.pm-btn.pm-btn:focus-visible {
  color: #fff;
  text-decoration: none;
}

.pm-art__actions a.pm-btn--ghost.pm-btn--ghost {
  color: var(--pm-ink, #0b2530);
}

.pm-art__actions a.pm-btn--ghost.pm-btn--ghost:hover,
.pm-art__actions a.pm-btn--ghost.pm-btn--ghost:focus-visible {
  color: var(--pm-primary, #047391);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 767px) {
  .pm-art__gallery {
    grid-template-columns: minmax(0, 1fr);
    margin-block: var(--pm-s4, 32px) var(--pm-s3, 24px);
  }
  .pm-art__gallery img { aspect-ratio: 3 / 2; }
  .pm-art__facts { grid-template-columns: minmax(0, 1fr); }
  .pm-art__poster { max-width: 100%; }
  .pm-art__actions .pm-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-art__gallery img,
  .pm-art__gallery figure:hover img { transition: none; transform: none; }
}
