/* ============================================
   Page « Nos auteurs » — refonte éditoriale
   Aligné sur le langage visuel de equipe.css :
   hero clair, eyebrow filet accent, grille de cards
   sobres, recherche live et CTA serif.
   ============================================ */

/* ── HERO ───────────────────────────────────── */
.auteurs-hero {
  padding: calc(var(--nav-height, 80px) + 5.5rem) 1.5rem 4rem;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--border);
}
.auteurs-hero .breadcrumb {
  justify-content: center;
  margin-bottom: 2.5rem;
  color: var(--body);
  font-size: .8rem;
}
.auteurs-hero .breadcrumb a { color: var(--body); }
.auteurs-hero .breadcrumb a:hover { color: var(--navy); }
.auteurs-hero .breadcrumb .sep { color: var(--body); opacity: .55; }
.auteurs-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.auteurs-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--navy);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.85rem;
}
.auteurs-hero .eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--color-accent);
  transform: translateY(-50%);
}
.auteurs-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.auteurs-hero h1 .accent {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}
.auteurs-hero h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.5rem auto 0;
}
.auteurs-hero .hero-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--body);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ── TOOLBAR : recherche + compteur ─────────── */
.auteurs-toolbar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-height, 80px);
  z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255, 255, 255, 0.92);
}
.auteurs-toolbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.auteurs-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}
.auteurs-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.auteurs-search input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.75rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--navy);
  background: var(--color-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auteurs-search input::placeholder {
  color: var(--muted);
}
.auteurs-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(45, 91, 215, 0.12);
}
.auteurs-search-clear {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-border);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: background var(--transition);
}
.auteurs-search-clear:hover { background: var(--color-border-strong); }
.auteurs-search.has-value .auteurs-search-clear { display: flex; }

.auteurs-counter {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.auteurs-counter strong {
  color: var(--navy);
  font-weight: 700;
}

/* ── SECTION GRILLE ─────────────────────────── */
.auteurs-list-section {
  padding: 3.5rem 1.5rem 5rem;
  background: var(--color-bg);
}
.auteurs-list-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin: 0;
}

/* ── AUTHOR CARD ────────────────────────────── */
.author-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.author-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}
.author-item:hover {
  border-color: var(--color-sky);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.author-item:hover::before { transform: scaleY(1); }
.author-item:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}

.author-item picture,
.author-item .author-avatar,
.author-item .author-avatar-photo {
  flex-shrink: 0;
}
.author-item picture { line-height: 0; }

.author-avatar,
.author-avatar-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.author-avatar-photo {
  object-fit: cover;
  background: var(--color-bg-alt);
  box-shadow: inset 0 0 0 1px rgba(15, 30, 61, 0.06);
}
.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent));
}

.author-info {
  min-width: 0;
  flex: 1;
}
.author-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 .2rem 0;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.author-info p {
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* État « aucun résultat » */
.auteurs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--muted);
  font-family: var(--font-body);
}
.auteurs-empty strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: .5rem;
}

/* État loading skeleton */
.author-item--skeleton {
  pointer-events: none;
}
.author-item--skeleton .author-avatar-photo,
.author-item--skeleton .author-info h3,
.author-item--skeleton .author-info p {
  background: linear-gradient(90deg, var(--color-bg-alt) 0%, var(--color-border) 50%, var(--color-bg-alt) 100%);
  background-size: 200% 100%;
  animation: auteurs-skeleton 1.4s ease-in-out infinite;
  color: transparent !important;
  border-radius: 4px;
}
.author-item--skeleton .author-avatar-photo { border-radius: 50%; }
.author-item--skeleton .author-info h3 { height: 14px; width: 60%; }
.author-item--skeleton .author-info p { height: 10px; width: 90%; margin-top: 8px; }
@keyframes auteurs-skeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── CTA FINAL ──────────────────────────────── */
.auteurs-cta {
  padding: 4.5rem 1.5rem 5.5rem;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.auteurs-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.auteurs-cta .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.auteurs-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.auteurs-cta p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--body);
  line-height: 1.7;
  margin: 0 0 2rem;
}
.auteurs-cta .auteurs-cta-actions {
  display: inline-flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 720px) {
  .auteurs-hero {
    padding: calc(var(--nav-height, 80px) + 3rem) 1.25rem 3rem;
  }
  .auteurs-toolbar-inner {
    padding: .85rem 1.25rem;
    gap: .75rem;
  }
  .auteurs-search { max-width: none; }
  .auteurs-counter { font-size: .75rem; }
  .auteurs-list-section { padding: 2.5rem 1.25rem 4rem; }
  .authors-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .author-item { padding: 1rem; gap: 1rem; }
  .author-avatar,
  .author-avatar-photo { width: 56px; height: 56px; }
  .author-info h3 { font-size: 1rem; }
}
