.alpha-bar {
  padding: 0.8rem 2.5rem;
  background: var(--beige);
  border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 3px; align-items: center;
}
.alpha-label {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-right: 10px;
  font-weight: 400; flex-shrink: 0;
}
.alpha-btn {
  font-family: var(--serif); font-size: var(--t-body);
  font-weight: 700; color: var(--muted);
  background: none; border: none; cursor: pointer;
  padding: 3px 7px; line-height: 1;
  border-bottom: 2px solid transparent;
}
.alpha-btn:hover { color: var(--forest); }
.alpha-btn.has { color: var(--forest); }
.alpha-btn.has:hover { color: var(--gold); border-bottom-color: var(--gold); }
.alpha-btn.disabled { color: #d4c8b4; cursor: default; }

.content { padding: 2rem 2.5rem 1rem; }

/* Perf (CLS) : reserve la hauteur du listing tant que le JS n a pas injecte
   les cards. Sans cela, la section #contact et le footer sautent de ~1800px
   vers le bas au rendu, ce qui produisait un CLS de 0.67. La regle cible
   :empty, donc elle disparait des que innerHTML est rempli. */
#auteursList:empty { min-height: 3500px; }
@media (min-width: 769px) { #auteursList:empty { min-height: 3300px; } }
@media (min-width: 1025px) { #auteursList:empty { min-height: 3200px; } }

/* Annule le min-height ci-dessus quand on est explicitement en etat
   "Aucun auteur trouve" (apres une recherche), pour que le bloc no-results
   ne soit pas pousse 3200+ px vers le bas. La classe is-empty-no-results
   est posee par page-auteurs.js dans ce cas precis (jamais pendant le
   chargement initial). */
#auteursList.is-empty-no-results,
#auteursList.is-empty-no-results:empty { min-height: 0 !important; }

.letter-group { margin-bottom: 2.8rem; scroll-margin-top: 140px; }
.letter-heading {
  font-family: var(--serif); font-size: 48px;
  font-weight: 700; color: var(--beige3);
  line-height: 1; margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
  position: relative; letter-spacing: -0.02em;
}
.letter-heading::after {
  content: ''; position: absolute;
  left: 0; bottom: -1px;
  width: 44px; height: 2px; background: var(--gold);
}

.auteurs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}

/* Grands ecrans : 4 colonnes, aligne sur le pattern de .items-grid
   (listing autographes/oeuvres) pour coherence visuelle sur les
   desktops larges. */
@media (min-width: 1400px) {
  .auteurs-grid { grid-template-columns: repeat(4, 1fr); }
}
.auteur-card {
  background: #fff; border: 1px solid var(--border);
  cursor: pointer; overflow: hidden;
  display: flex; flex-direction: row; gap: 0;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none; color: inherit;
}
.auteur-card:hover { border-color: var(--gold); background: var(--beige); }
.auteur-photo {
  width: 90px; min-width: 90px; height: auto; align-self: stretch;
  object-fit: cover; object-position: top;
  display: block; background: var(--beige3);
}
.auteur-photo-placeholder {
  width: 90px; min-width: 90px;
  background: var(--beige3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--border);
}
.auteur-photo-placeholder[hidden] { display: none; }
.auteur-body {
  padding: 0.85rem 1rem;
  display: flex; flex-direction: column; gap: 0.18rem;
  flex: 1; min-width: 0;
}
.auteur-nom {
  font-family: var(--serif); font-size: var(--t-h3);
  font-weight: 700; color: var(--forest); line-height: 1.2;
}
.auteur-prenom {
  font-family: var(--sans); font-size: var(--t-micro);
  color: var(--muted); font-weight: 300;
}
.auteur-dates {
  font-family: var(--sans); font-size: var(--t-micro);
  color: var(--gold); font-weight: 600; margin-top: 0.15rem;
}
.auteur-cat {
  display: inline-block;
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; margin-top: 0.25rem;
}
.auteur-bio {
  font-family: var(--sans); font-size: var(--t-eyebrow);
  color: var(--muted); font-weight: 300; line-height: 1.55;
  margin-top: 0.45rem; padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  /* Pas de line-clamp ici : la troncature est faite cote JS (page-auteurs.js)
     pour controler precisement ou couper et inserer un "..." dore bien
     visible (.auteur-bio-dots) au lieu de l ellipsis CSS automatique qui
     heritait de la couleur grise du texte et passait inapercu. */
}
/* "..." dore bien marque a la fin de la bio tronquee. Plus voyant que
   l ellipsis CSS classique car couleur gold + bold + taille +20%. */
.auteur-bio-dots {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-left: 0.2em;
  vertical-align: -0.05em;
}
/* Mini lien "Lire la suite ->" sous la bio tronquee. La card entiere est
   deja un <a> vers la fiche auteur, donc ce span est purement visuel
   (signal d action). Au hover, la fleche se decale legerement. */
.auteur-bio-more {
  display: inline-flex; align-items: center; gap: 0.3em;
  margin-top: 0.3rem;
  font-family: var(--sans); font-size: var(--t-micro);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  transition: color 0.15s;
}
.auteur-bio-more .arrow {
  display: inline-block;
  transition: transform 0.15s;
}
.auteur-card:hover .auteur-bio-more { color: var(--gold2); }
.auteur-card:hover .auteur-bio-more .arrow { transform: translateX(3px); }
.auteur-nb {
  font-family: var(--sans); font-size: var(--t-eyebrow-lg);
  letter-spacing: 0.08em;
  color: var(--forest); font-weight: 700;
  margin-top: 0.45rem;
}

@media (max-width: 1024px) {
  .alpha-bar { padding: 0.7rem 1.5rem; }
  .content { padding: 1.5rem 1.5rem 1rem; }
  .auteurs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .alpha-bar { padding: 0.6rem 1rem; }
  .alpha-label { display: none; }
  .alpha-btn { font-size: var(--t-eyebrow-lg); padding: 3px 5px; }
  .content { padding: 1rem; }
  .letter-heading { font-size: 36px; }
  .auteurs-grid { grid-template-columns: 1fr; }
  .auteur-photo, .auteur-photo-placeholder { width: 80px; min-width: 80px; }
  .auteur-photo-placeholder { font-size: var(--t-h2); }
}

/* ============================================================
   Sprint 3.1 / 3.2 : Mode fiche auteur (?author=KEY)
   Layout 2 colonnes : photo a gauche (220px), meta + bio a droite.
   En dessous : grille des pieces disponibles, puis archives (vendu).
   Reutilise les classes .item / .items-grid existantes pour les cards.
   ============================================================ */
.author-detail { max-width: 1200px; margin: 0 auto; }

.author-detail-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.author-detail-photo-wrap {
  background: var(--beige3);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.author-detail-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}
.author-detail-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 96px; font-weight: 700;
  color: var(--beige4);
  background: var(--beige3);
}
.author-detail-meta { padding-top: 0.5rem; }
.author-detail-h1 {
  font-family: var(--serif);
  font-size: var(--t-hero);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 0.4rem;
}
.author-detail-dates {
  font-family: var(--serif);
  font-size: var(--t-h3);
  color: var(--muted);
  font-style: italic;
  margin: 0 0 0.4rem;
}
.author-detail-cat {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 1rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--gold);
}
.author-detail-bio {
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--text);
  margin: 1rem 0 1.5rem;
  text-align: justify;
  hyphens: auto;
}
.author-detail-ctas {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-top: 1rem;
}
.author-detail-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  color: var(--forest);
  background: var(--beige2);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.author-detail-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.author-detail-pieces,
.author-detail-archives,
.author-detail-empty {
  margin: 2.5rem 0;
}
.author-detail-section-title {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.author-detail-archives-note {
  font-family: var(--serif);
  font-size: var(--t-body);
  color: var(--muted);
  font-style: italic;
  margin: 0.8rem 0 1.5rem;
}
.author-detail-archives .items-grid .item { opacity: 0.85; }

.author-detail-empty p {
  font-family: var(--serif);
  font-size: var(--t-body);
  color: var(--text);
  line-height: 1.6;
  margin: 1rem 0 0;
}
.author-detail-empty p a { color: var(--gold); text-decoration: underline; }

.author-detail-back {
  margin: 3.5rem 0 1.5rem;
  text-align: center;
}
.author-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.author-detail-back a::before {
  content: '\2190'; /* fleche gauche */
  display: inline-block;
  font-size: var(--t-small);
  transition: transform 0.2s;
}
.author-detail-back a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.author-detail-back a:hover::before { transform: translateX(-3px); }

@media (max-width: 768px) {
  .author-detail-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .author-detail-photo-wrap {
    max-width: 200px;
    margin: 0 auto;
  }
  .author-detail-h1 { font-size: var(--t-h1); text-align: center; }
  .author-detail-dates { text-align: center; }
  .author-detail-cat { display: block; text-align: center; }
  .author-detail-meta { padding-top: 0; }
  .author-detail-section-title { font-size: var(--t-h3); }
}
