/* ===== DIRECTION RTL (langue arabe) ===== */
.rtl {
  direction: rtl;
  text-align: right;
}

/* ===== MÉTADONNÉES DE L’AUTEUR ===== */
.auteur-meta {
  font-size: 1.03rem;
  color: #29415c;
  margin-bottom: 12px;
}
.auteur-meta-label {
  color: #444;
  font-weight: 600;
  margin-right: 5px;
}
.auteur-biography {
  margin: 11px 0 8px 0;
  font-size: 1.04em;
  color: #234;
  line-height: 1.7;
}

/* ===== ARTICLES DE L’AUTEUR ===== */
.auteur-articles-title {
  font-size: 1.17em;
  color: #3261ad;
  font-weight: 600;
  margin-bottom: 14px;
}
.auteur-articles-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.auteur-article-li {
  background: #f9fafb;
  border-radius: 9px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(44, 82, 130, 0.07);
  padding: 13px 18px;
  font-size: 1.07rem;
  transition: box-shadow 0.19s ease, background 0.13s ease;
  display: flex;
  flex-direction: column;
}
.auteur-article-link {
  color: #1a304a;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08em;
  transition: color 0.14s ease;
  margin-bottom: 5px;
}
.auteur-article-li:hover .auteur-article-link {
  color: #0058ab;
}
.auteur-article-meta {
  font-size: 0.97em;
  color: #4d617a;
  margin-top: 2px;
  line-height: 1.4;
}
.auteur-pages {
  color: #2c5272;
  margin-right: 4px;
}
.auteur-num-titre {
  color: #4b5562;
  margin-right: 5px;
}

/* ===== LISTE DES AUTEURS ===== */
.auteurs-liste-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.auteur-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  background: #f9fafb;
  border-radius: 9px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(44, 82, 130, 0.07);
  padding: 15px 18px;
  font-size: 0.9rem;
  transition: box-shadow 0.19s ease, background 0.13s ease;
}
.auteur-card:last-child {
  margin-bottom: 0;
}
.auteur-card:hover {
  box-shadow: 0 4px 16px rgba(44, 82, 130, 0.12);
  background: #f3f8ff;
}
.auteur-nom {
  color: #1a304a;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.12em;
  transition: color 0.14s ease;
}
.auteur-card:hover .auteur-nom {
  color: #0058ab;
}
.auteur-nb {
  background: #e6eefb;
  color: #3261ad;
  border-radius: 50px;
  padding: 3px 14px;
  font-size: 1em;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 32, 64, 0.04);
}

/* ===== BARRE DE RECHERCHE ET TRI ALPHABÉTIQUE ===== */
.auteurs-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

/* Champ de recherche */
#auteurSearch {
  flex: 1 1 240px;
  max-width: 360px;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fafafa;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#auteurSearch:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* Index alphabétique */
.alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.alpha-letter {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.alpha-letter:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
/* Lettre alphabétique active */
.alpha-letter.active {
  background-color: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

/* ===== RESPONSIVE (TABLETTES & MOBILES) ===== */
@media (max-width: 768px) {
  .auteurs-controls {
    flex-direction: column;
    gap: 10px;
  }
  #auteurSearch {
    max-width: 100%;
  }
  .alpha-index {
    gap: 4px;
  }
  .alpha-letter {
    padding: 5px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auteurs-controls {
    gap: 8px;
  }
  #auteurSearch {
    padding: 6px 10px;
    font-size: 0.95rem;
  }
  .alpha-letter {
    padding: 4px 6px;
    font-size: 0.85rem;
  }
  .auteur-card {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
  .auteur-nom {
    font-size: 1em;
  }
  .auteur-nb {
    padding: 2px 10px;
    font-size: 0.9rem;
  }
  .auteur-article-li {
    padding: 10px 14px;
    font-size: 1rem;
  }
  .auteur-article-link {
    font-size: 1rem;
  }
  .auteur-article-meta {
    font-size: 0.9rem;
  }
}
