/* Page publique /artistes.php — annuaire des artistes/créateurs/designers de
   A à Z (carrousel des portraits + index alphabétique + liste par lettre).
   Copie quasi identique de marques.css (même modèle, sephora.fr/marques/de-a-a-z/),
   classes renommées .marques-*→.artistes-* pour rester lisible page par page. */

.artistes-intro { padding: 2.4rem 0 1.2rem; text-align: center; }
.artistes-intro h1 { font-size: 2rem; margin: 0 0 .6rem; }
.artistes-intro p { max-width: 60ch; margin: 0 auto; color: #555; }

/* ---------- Recherche (autocomplete) ---------- */
/* .container est en display:flex sitewide (myt.css) : sans width:100% ce
   bloc redevient un item flex qui se met à côté du <p> au lieu de passer à
   la ligne — même correctif que .artistes-groupe{width:100%} plus bas. */
.artistes-recherche { position: relative; width: 100%; margin: 1.4rem 0 0; text-align: center; }
.artistes-recherche input[type="search"] {
  display: block;
  width: 90%;
  margin: 0 auto;
  padding: .6rem 1rem;
  border: 2px solid #ddd;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
}
.artistes-recherche input[type="search"]:focus {
  border-color: var(--Bleu--Klein--, #21177d);
  outline: none;
}
#resultats-artistes {
  position: absolute;
  top: 100%;
  left: 5%;
  right: 5%;
  z-index: 30;
  margin: .4rem 0 0;
  padding: .4rem 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  max-height: 320px;
  overflow-y: auto;
}
#resultats-artistes li { list-style: none; }
#resultats-artistes a {
  display: block;
  padding: .55rem 1.1rem;
  text-decoration: none;
  color: var(--black, #3a3a3a);
}
#resultats-artistes a:hover { background: #f6f5ff; color: var(--Bleu--Klein--, #21177d); }

/* ---------- Carrousel des portraits ---------- */
.artistes-carrousel { padding: 1rem 0 2rem; }
.artistes-carrousel .container { position: relative; padding: 0 3.2rem; }
.carrousel-piste {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .6rem .2rem 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-logo {
  flex: 0 0 150px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--black, #3a3a3a);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem .8rem;
  transition: border-color .15s, box-shadow .15s;
}
.carrousel-logo:hover {
  border-color: var(--Bleu--Klein--, #21177d);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.carrousel-logo img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}
.carrousel-logo span {
  font-size: .88em;
  font-weight: 600;
  text-align: center;
}
.carrousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  color: var(--black, #3a3a3a);
}
.carrousel-nav:hover { border-color: var(--Bleu--Klein--, #21177d); color: var(--Bleu--Klein--, #21177d); }
.carrousel-nav--prev { left: 0; }
.carrousel-nav--next { right: 0; }

/* ---------- Index alphabétique (ABCdaire) ---------- */
.abc {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  padding: 1rem 1rem 1.6rem;
  max-width: 920px;
  margin: 0 auto;
}
.abc__lettre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 .3rem;
  border: 1px solid #ddd;
  border-radius: 50%;
  text-decoration: none;
  color: var(--black, #3a3a3a);
  font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.abc__lettre sup {
  font-size: .6em;
  font-weight: 600;
  margin-left: 1px;
  color: #888;
}
.abc__lettre:hover sup,
.abc__lettre:focus-visible sup {
  color: #fff;
}
.abc__lettre:hover, .abc__lettre:focus-visible {
  border-color: var(--Bleu--Klein--, #21177d);
  background: var(--Bleu--Klein--, #21177d);
  color: #fff;
}
.abc__lettre--vide {
  color: #ccc;
  border-color: #f0f0f0;
  pointer-events: none;
}

/* ---------- Liste par lettre ---------- */
.artistes-liste { padding: 1rem 1rem 4rem; }
/* .container est en display:flex sitewide (myt.css) : sans width:100% chaque
   groupe redevient un item flex qui se met côte à côte avec le suivant au
   lieu de s'empiler — même correctif que .catalog h2{width:100%} ailleurs. */
.artistes-groupe { width: 100%; margin: 0 0 2.4rem; scroll-margin-top: 100px; }
.artistes-groupe h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--Bleu--Klein--, #21177d);
  color: var(--Bleu--Klein--, #21177d);
}
/* 3 colonnes lues de haut en bas puis de gauche à droite (comme un annuaire),
   même esprit que la grille du footer (.footer__top) — ici 3 colonnes
   égales, chacune un <div> qui empile ses artistes verticalement
   (répartition calculée en PHP, voir $_colonnes_artistes dans artistes.php). */
.artistes-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem 1.6rem;
}
.artistes-grille > div {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.artistes-grille a {
  text-decoration: none;
  color: var(--black, #3a3a3a);
  display: inline-block;
  padding: .15rem 0;
}
.artistes-grille a:hover { color: var(--Bleu--Klein--, #21177d); text-decoration: underline; }
.artistes-grille span.sans-lien { color: #999; }
.artistes-vide { text-align: center; color: #888; padding: 2rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 48em) {
  /* Réserve la largeur du rail alphabétique fixé à droite (~2.5rem) pour que
     le titre, l'intro et les titres de lettre ne passent pas dessous. */
  .artistes-intro,
  .artistes-liste { padding-right: 2.6rem; }
  .artistes-intro h1 { font-size: 1.5rem; }
  .artistes-carrousel .container { padding: 0 2.4rem; }
  .carrousel-logo { flex-basis: 120px; }
  .carrousel-logo img { height: 70px; }
  .carrousel-nav { width: 2.1rem; height: 2.1rem; font-size: 1.15rem; }

  /* ABCdaire : rail vertical fixé à droite, suit le scroll — même logique
     que sur sephora.fr/marques/de-a-a-z/ en mobile. */
  .abc {
    position: fixed;
    right: .3rem;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: .12rem;
    padding: .5rem .25rem;
    max-height: 82vh;
    overflow-y: auto;
    background: rgba(255,255,255,.92);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    z-index: 40;
    max-width: none;
    margin: 0;
  }
  .abc__lettre {
    min-width: 1.35rem;
    height: 1.35rem;
    font-size: .68rem;
    border: none;
  }

  .artistes-grille { grid-template-columns: 1fr; }
}
