/* ==========================================================================
   author.css — page /author/{slug}
   --------------------------------------------------------------------------
   Page nouvelle (elle n'existait pas dans l'ancien site), donc sans CSS
   jusqu'ici. Meme langage que le reste : #2C5370, boutons carres, titres
   800, gris #555 pour le texte.

   La grille d'articles, la pagination, la CTA et la newsletter viennent de
   styles.css et partials.css : rien a redefinir ici.
   ========================================================================== */

:root {
  --primary-color: #2C5370;
}

/* --- Profil --------------------------------------------------------------- */
.author-profile {
  padding: 70px 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.author-profile__inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

/* Sans photo, le texte prend toute la largeur */
.author-profile__inner > .author-profile__content:first-child {
  grid-column: 1 / -1;
}

.author-profile__avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.author-profile__name {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #111;
}

.author-profile__expertise {
  margin: 0 0 24px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
}

.author-profile__bio {
  max-width: 70ch;
}

.author-profile__bio p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #555;
}

/* --- Faits : nombre d'articles, LinkedIn, contact ------------------------ */
.author-profile__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.author-profile__facts li {
  font-size: 0.95rem;
  color: #555;
}

/* Le compteur, en texte simple */
.author-profile__facts li:first-child {
  padding-right: 16px;
  margin-right: 4px;
  border-right: 1px solid #d5dbe1;
}

.author-profile__facts strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
}

/* Les liens, en boutons carres comme le reste du site */
.author-profile__facts a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--primary-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.author-profile__facts a:hover {
  color: #fff;
  background: var(--primary-color);
}

.author-profile__facts li:last-child a {
  color: #fff;
  background: var(--primary-color);
}

.author-profile__facts li:last-child a:hover {
  color: var(--primary-color);
  background: transparent;
}

.author-profile__facts a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* --- Liste d'articles ------------------------------------------------------ */
.author-articles .section-header {
  margin-bottom: 40px;
}

/* --- Responsive (memes seuils que styles.css) ----------------------------- */
@media (max-width: 768px) {
  .author-profile { padding: 50px 20px; }

  .author-profile__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .author-profile__avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .author-profile__bio { margin: 0 auto; text-align: left; }

  .author-profile__facts { justify-content: center; }
}

@media (max-width: 600px) {
  .author-profile__facts li:first-child {
    flex-basis: 100%;
    padding-right: 0;
    margin: 0 0 4px;
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-profile__facts a { transition: none; }
}