/**
 * Artistes en lumière – styles de base.
 * Ils s'appuient sur Bootstrap 5 et sur les classes du thème
 * (banniere-evenement, event_listing…) pour reprendre son apparence.
 */

/* Menu principal ------------------------------------------------------ */
/* Page index (en-tête blanc, comme la Billetterie) : menu sur fond bleu.
   Fiche artiste : rien de forcé, le menu reste transparent par-dessus la
   photo et le thème le passe en bleu au défilement, comme sur la fiche
   événement (voir js/artistes_lumiere.js, qui glisse l'en-tête sous le
   menu). */
body.page-artistes-lumiere-liste .navbar {
  background-color: rgb(31, 31, 51) !important;
}

/* Bandeau blanc sous le menu ----------------------------------------- */
/* Le gabarit de page du thème imprime son propre fil d'Ariane
   (.main-container > .pt-5 > .container > .row > .col-12 > .mb-3 > nav)
   avec une marge en haut. Sur nos pages, le fil d'Ariane est déjà dans
   l'en-tête ou la section : on retire celui du thème et la marge. */
body.page-artistes-lumiere .main-container > .pt-5 {
  padding-top: 0 !important;
}
body.page-artistes-lumiere .main-container > .pt-5 > .container > .row > [class*="col-"] > .mb-3:has(> nav) {
  display: none;
}

/* Page index : section au style du Calendrier culturel ---------------- */
/* Le balisage des tuiles (event_listing, event_photo, event_hover…) est
   celui du calendrier : le style et l'effet au survol viennent du thème. */
body.page-artistes-lumiere-liste {
  overflow-x: hidden;
  overflow-x: clip;
}
/* En-tête au style de la page Billetterie (sans les filtres). */
.artistes-lumiere-entete {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
.artistes-lumiere-entete__titre {
  margin-bottom: 0.5rem;
}
.artistes-lumiere-entete__sous-titre {
  margin-bottom: 1.5rem;
}
.artistes-lumiere-entete__texte {
  max-width: 62rem;
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.6;
}
.artistes-lumiere-entete__texte p:last-child {
  margin-bottom: 0;
}

/* Bande en dégradé, coupée en biais en haut comme sur la Billetterie. */
.artistes-lumiere-section {
  /* Hauteur de la coupe en biais : augmentez pour une pente plus forte. */
  --artistes-biais: clamp(30px, 4vw, 90px);
  /* Pleine largeur, même si la page est dans un conteneur étroit. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(110deg, #b51f37 0%, #7a1f3a 45%, #2a2236 100%);
  clip-path: polygon(0 var(--artistes-biais), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--artistes-biais) + 2.5rem);
  padding-bottom: 3rem;
}
/* Le dégradé descend jusqu'au pied de page, sans bande blanche. */
body.page-artistes-lumiere-liste .main-container > .pt-5 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
/* Format des tuiles : petit rectangle vertical, comme les affiches du
   calendrier (3 / 4). Pour des tuiles encore moins hautes : 4 / 5. */
.artiste-carte {
  --artiste-carte-format: 3 / 4;
}
/* Le thème impose une hauteur aux photos des tuiles : on la neutralise
   pour garder le format ci-dessus. */
.artiste-carte .event_photo {
  aspect-ratio: var(--artiste-carte-format);
  height: auto !important;
  min-height: 0 !important;
}
.artiste-carte .event_photo > .overflow-hidden {
  height: 100% !important;
}
.artiste-carte__image,
.artiste-carte__initiales {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
}
/* Rappel du nom au survol, au-dessus de la pratique. */
.artiste-carte__nom-survol {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.artiste-carte__initiales {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
/* Le bouton « Voir sa fiche » passe au-dessus du lien qui couvre la tuile. */
.artiste-carte .event_hover .btn {
  position: relative;
  z-index: 5;
  color: #fff !important;
}

/* Bloc sur la fiche événement ---------------------------------------- */
.evenement-artiste {
  margin-top: 1.5rem;
}
.evenement-artiste__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.evenement-artiste__vignette img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.evenement-artiste__nom {
  font-weight: 700;
  margin-bottom: 0;
}
.evenement-artiste__pratique {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

/* Fiche artiste ------------------------------------------------------- */

/* En-tête : le style (flou, coupe en biais) vient du thème via les classes
   banniere-evenement. Ici, on le fait seulement déborder sur toute la
   largeur de l'écran, même si la page est dans un conteneur étroit. */
body.page-artiste-fiche {
  overflow-x: hidden;
  overflow-x: clip;
}
.artiste-banniere {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* S'il reste un espace blanc entre le menu et l'en-tête, mettez ici la
     hauteur de cet espace, ex. : --artiste-banniere-decalage: 48px; */
  margin-top: calc(-1 * var(--artiste-banniere-decalage, 0px));
}
/* Photo de l'en-tête : même format paysage que l'image d'un événement,
   quelle que soit la photo envoyée (portrait ou paysage). */
.artiste-banniere .evenement-image img {
  /* Format : 5 / 3 comme les événements ; 16 / 9 pour plus bas. */
  aspect-ratio: var(--artiste-banniere-format, 5 / 3);
  height: auto;
  max-height: 480px;
  object-fit: cover;
  /* Cadrage : « center 25% » garde le haut de la photo (le visage).
     « center center » pour centrer, « center top » pour coller en haut. */
  object-position: var(--artiste-banniere-cadrage, center 25%);
}
/* Fil d'Ariane lisible sur le fond sombre (page courante en blanc). */
.artiste-banniere .breadcrumb-item.active,
.artiste-banniere .breadcrumb li:last-child,
.artiste-banniere .breadcrumb li:last-child a {
  color: #fff;
}
.artiste-fiche__corps {
  padding-top: 3rem;
}
.artiste-fiche__galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.artiste-fiche__galerie img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
}
/* Le champ Coordonnées convertit déjà les retours à la ligne en <br> :
   pas de « white-space: pre-line » ici, sinon les lignes sont doublées. */
.artiste-fiche__coordonnees {
  line-height: 1.8;
}
.artiste-fiche__coordonnees p:last-child {
  margin-bottom: 0;
}
/* Lecteurs vidéo / audio (YouTube, Vimeo, Spotify, SoundCloud). */
.artiste-fiche__lecteur {
  border-radius: 0.5rem;
  overflow: hidden;
}
.artiste-fiche__lecteur iframe,
.artiste-fiche__lecteur--audio {
  border: 0;
}
.artiste-fiche__lecteur--audio {
  display: block;
  width: 100%;
  border-radius: 12px;
}
/* Icônes des réseaux sociaux. */
.artiste-fiche__reseaux a {
  color: var(--bs-primary, #ce202f);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.artiste-fiche__reseaux a:hover,
.artiste-fiche__reseaux a:focus {
  opacity: 0.7;
}

/* Bande des événements (tuiles du calendrier) en bas de la fiche. */
.artiste-fiche__evenements {
  margin-top: 4rem;
}
body.page-artiste-fiche .main-container > .pt-5 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.artiste-fiche__liste {
  list-style: none;
  padding: 0;
}
.artiste-fiche__liste li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
/* Liens en blanc dans la bande (le thème les met en rouge par défaut). */
.artistes-lumiere-section .artiste-fiche__liste a,
.artistes-lumiere-section .artiste-fiche__retour a {
  color: #fff !important;
  text-decoration: none;
}
.artistes-lumiere-section .artiste-fiche__liste a:hover,
.artistes-lumiere-section .artiste-fiche__liste a:focus,
.artistes-lumiere-section .artiste-fiche__retour a:hover,
.artistes-lumiere-section .artiste-fiche__retour a:focus {
  color: #fff !important;
  text-decoration: underline;
}
.artiste-fiche__liste--passes {
  opacity: 0.75;
}
.artiste-fiche__date {
  font-size: 0.9rem;
  opacity: 0.8;
}
.artiste-fiche__retour {
  margin-top: 2rem;
}

/* Filtres par pratique (page index). */
.artistes-filtres .btn {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Lien « Prochain événement » de l'en-tête : blanc, souligné au survol. */
.artiste-banniere__prochain a {
  color: #fff !important;
  text-decoration: none;
}
.artiste-banniere__prochain a:hover,
.artiste-banniere__prochain a:focus {
  text-decoration: underline;
}
