/* Les pages des artistes de Line-up (lot 29), /artistes/<slug>/ et /en/artists/<slug>/ : en plus de site.css, pour elles
   seules. Le visuel d'un artiste en licence libre est dessiné, jamais une photo (il n'a rien autorisé) : le dégradé de sa
   couleur dans le jeu (--a1, --a2, --a3, posés par tools/sync-artistes.py) et son nom en très grand, à peine visible. */

.artiste { max-width: 760px; }
/* les sept couleurs de la roue du jeu (CoverArt.WHEEL), une par place : la politique du site refuse un style dans la balise */
.artiste[data-hue="0"] { --a1: #420F18; --a2: #D16423; --a3: #7CFF4A; }
.artiste[data-hue="1"] { --a1: #42200B; --a2: #D1A236; --a3: #00E5FF; }
.artiste[data-hue="2"] { --a1: #423311; --a2: #66D13D; --a3: #8A5CFF; }
.artiste[data-hue="3"] { --a1: #204213; --a2: #00BCD1; --a3: #FF2BD6; }
.artiste[data-hue="4"] { --a1: #003C42; --a2: #714BD1; --a3: #FF3B5C; }
.artiste[data-hue="5"] { --a1: #241842; --a2: #D123AF; --a3: #FF7A2B; }
.artiste[data-hue="6"] { --a1: #420B38; --a2: #D1304B; --a3: #FFC542; }
.artiste__visuel {
  display: block;
  width: 100%;
  height: auto;               /* une photo : sans cela, son attribut height (800) l'emporte sur la proportion */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 30%;   /* une photo garde plutôt le haut : le visage */
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--a1, #241046) 0%, var(--a2, #2A0F4D) 55%, var(--a3, #FF2BD6) 100%);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.artiste__visuel--credite { margin-bottom: 6px; }
/* un logo n'est jamais recadré : entier, sur un fond uni, sombre ou clair (ArtistArtView.DARK et LIGHT dans le jeu) */
.artiste__visuel--logo { object-fit: contain; object-position: 50% 50%; padding: 8% 14%; box-sizing: border-box; background: #0D0E1C; }
.artiste__visuel--clair { background: #ECECF2; }
.artiste__credit-photo { margin: 0 0 18px; color: var(--grey); font-size: 0.85rem; text-align: right; }
.artiste__visuel::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}
.artiste__visuel span {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 6%;
  font-family: var(--display);
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  line-height: 0.88;
  color: rgba(255, 255, 255, 0.18);
  overflow-wrap: anywhere;
  z-index: 1;
}
.artiste h1 { margin-bottom: 0.15em; }
.artiste__genres { color: var(--grey); margin: 0 0 1em; }
.artiste__bio { font-size: 1.1rem; max-width: 60ch; }
.artiste__liens { list-style: none; padding: 0; margin: 1.2em 0 2em; display: flex; flex-wrap: wrap; gap: 10px; }
.artiste__liens a {
  display: inline-block;
  padding: 10px 16px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--white);
  text-decoration: none;
}
.artiste__liens a:hover, .artiste__liens a:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.artiste__morceaux { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 12px; }
.artiste__morceaux li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.artiste__titre { font-weight: 600; }
.artiste__meta { color: var(--grey); font-size: 0.95rem; }
.artiste__morceaux audio { grid-column: 1 / -1; width: 100%; height: 40px; }
.artiste__ecoute { grid-column: 1 / -1; color: var(--cyan); }
.artiste__jouer { margin: 2em 0; padding: 18px 20px; border: 1px solid rgba(0, 229, 255, 0.35); background: rgba(0, 229, 255, 0.06); }
.artiste__jouer h2 { margin-top: 0; font-size: 1.3rem; }
.artiste__mention { color: var(--grey); font-size: 0.95rem; }
.artiste__credits { margin: 1em 0; color: var(--grey); font-size: 0.95rem; }
.artiste__credits summary { cursor: pointer; color: var(--white); min-height: 44px; display: flex; align-items: center; }
.artiste__note { font-size: 0.9rem; }
@media (max-width: 480px) {
  .artiste__morceaux li { grid-template-columns: 1fr; }
}
