/**
 * Page auteur (E-E-A-T) + byline d'article — S10-05
 * Dépend de design-system + components. Palette via variables (mode clair OK).
 */

/* ── Hero auteur ──────────────────────────────────────────────────────────── */
.n2m-auth-hero {
  position: relative;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(72px, 10vw, 120px);
  /* Hors .n2m-section : jamais masqué par le reveal (contenu principal). */
  opacity: 1;
}
.n2m-auth-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.n2m-auth-hero__photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: var(--bg-tertiary);
}
.n2m-auth-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.n2m-auth-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -70px 90px -40px rgba(5, 5, 8, 0.75);
  pointer-events: none;
}
.n2m-auth-hero__role {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 6px 0 0;
}
.n2m-auth-hero__lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  max-width: 62ch;
  margin: 20px 0 0;
}

/* Bandeau d'autorité (diplôme, certifications, périmètre) */
.n2m-auth-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}
.n2m-auth-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}
.n2m-auth-facts svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ── Corps de la bio ──────────────────────────────────────────────────────── */
.n2m-auth-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.n2m-auth-prose {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 68ch;
}
.n2m-auth-prose > * + * { margin-top: 1.15em; }
.n2m-auth-prose h2 {
  color: var(--text-primary);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin-top: 1.8em;
}
.n2m-auth-prose strong { color: var(--text-primary); font-weight: 600; }
.n2m-auth-prose a { color: var(--accent); }

.n2m-auth-aside {
  position: sticky;
  top: 110px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
}
.n2m-auth-aside img { display: block; width: 100%; height: auto; }
.n2m-auth-aside figcaption {
  padding: 14px 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Principes de management ──────────────────────────────────────────────── */
.n2m-auth-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}
.n2m-auth-principle {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.n2m-auth-principle:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-hover);
  border-left-color: var(--accent);
  transform: translateY(-3px);
}
.n2m-auth-principle svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }

/* ── Citation ─────────────────────────────────────────────────────────────── */
.n2m-auth-quote {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-secondary);
  text-align: center;
}
.n2m-auth-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}
.n2m-auth-quote figcaption {
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.n2m-auth-quote__mark {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: var(--accent);
  opacity: 0.55;
}

/* ── Byline (dans l'article) ──────────────────────────────────────────────── */
.n2m-byline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.n2m-byline:hover { border-color: var(--border-hover); background: var(--card-bg-hover); }
.n2m-byline img {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--border);
}
.n2m-byline__name { color: var(--text-primary); font-weight: 600; display: block; }
.n2m-byline__role { color: var(--text-muted); font-size: 0.75rem; display: block; }

/* ── Encart auteur en pied d'article ──────────────────────────────────────── */
.n2m-authorbox {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
}
.n2m-authorbox img {
  width: 132px;
  height: 165px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.n2m-authorbox__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.n2m-authorbox__role {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 4px 0 12px;
}
.n2m-authorbox__bio { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; margin: 0 0 16px; }

/* ── Article : hero + contenu ─────────────────────────────────────────────── */
.n2m-post-hero {
  position: relative;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(64px, 9vw, 104px);
  opacity: 1;
}
.n2m-post-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.n2m-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.55) 0%, rgba(5, 5, 8, 0.9) 100%);
}
.n2m-post-hero__inner { position: relative; z-index: 2; max-width: 860px; }
.n2m-post-hero__title { margin: 14px 0 0; }
.n2m-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.n2m-post-meta__date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.n2m-post-meta__date svg { width: 15px; height: 15px; color: var(--accent); }

.n2m-post-content {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: 72ch;
  margin-inline: auto;
}
.n2m-post-content > * + * { margin-top: 1.2em; }
.n2m-post-content h2 {
  color: var(--text-primary);
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  margin-top: 1.9em;
}
.n2m-post-content h3 { color: var(--text-primary); font-size: 1.25rem; margin-top: 1.6em; }
.n2m-post-content a { color: var(--accent); }
.n2m-post-content ul, .n2m-post-content ol { padding-left: 1.3em; }
.n2m-post-content li + li { margin-top: 0.5em; }
.n2m-post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.n2m-post-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-primary);
  font-style: italic;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .n2m-auth-hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .n2m-auth-hero__photo { max-width: 280px; }
  .n2m-auth-hero__lead { margin-inline: auto; }
  .n2m-auth-facts { justify-content: center; }
  .n2m-auth-body { grid-template-columns: 1fr; }
  .n2m-auth-aside { position: static; max-width: 340px; margin-inline: auto; }
  .n2m-auth-prose { margin-inline: auto; }
}
@media (max-width: 560px) {
  .n2m-authorbox { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .n2m-auth-hero__grid { gap: 30px; }
}

/* Respect des préférences système */
@media (prefers-reduced-motion: reduce) {
  .n2m-auth-principle, .n2m-byline { transition: none; }
  .n2m-auth-principle:hover { transform: none; }
}
