/*
 * archive.css — Archives blog, catégories et auteurs
 * Sources :
 *   - prototype_blog_archive_v1.html
 *   - prototype_archive_auteur_v1.html
 *   - prototype_archive_categorie_v1.html
 *
 * Tokens, header, footer, breadcrumb et CTA Final : voir base.css
 */

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 80px 5% 48px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 16px;
  max-width: 800px;
}
.hero .accroche,
.hero-bio {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text);
  max-width: var(--content-width);
}
.hero .accroche { margin-bottom: 12px; }
.hero-role {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.hero-bio { margin-bottom: 12px; }
.hero .depth-signal,
.hero-authors {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-secondary);
}
.hero-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-footer .depth-signal { margin-top: 0; }
.hero-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-profile-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}
.hero-profile-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.hero-profile-link:hover .arrow { transform: translateX(4px); }
.hero-authors {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-authors a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.hero-authors a:hover { color: var(--color-accent-dark); }

/* ==========================================================================
   CATEGORY GATES
   ========================================================================== */
.category-gates {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 5% 48px;
}
.category-gates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-gate {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.category-gate:hover { border-color: var(--color-accent-dark); }
.gate-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.gate-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  transition: color 0.2s ease;
}
.category-gate:hover .gate-title { color: var(--color-accent-dark); }
.gate-count {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.gate-articles {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}
.gate-articles li {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
  padding: 5px 0;
}
.gate-articles li + li { border-top: 1px solid var(--color-border); }
.ga-date {
  font-size: 0.65rem;
  color: var(--color-secondary);
  margin-left: 6px;
}

/* ==========================================================================
   ANCHOR BAND
   ========================================================================== */
.anchor-band {
  background: var(--color-primary);
  padding: 0 5%;
}
.anchor-band-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.anchor-band-inner > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.anchor-band-nav {
  display: flex;
  gap: 0;
}
.anchor-band-nav a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.anchor-band-nav a:hover,
.anchor-band-nav a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}
.anchor-band-authors {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}
.anchor-band-authors a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.anchor-band-authors a:hover { color: var(--color-surface); }

/* ==========================================================================
   ARTICLES
   ========================================================================== */
.articles-section {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 48px 5% 0;
}
.featured-card {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}
.featured-accent {
  background: var(--color-accent-dark);
  transition: background 0.3s ease;
}
.featured-card:hover .featured-accent { background: var(--color-accent-light); }
.featured-body {
  padding: 32px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--color-border);
  border-left: none;
  transition: border-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.featured-card:hover .featured-body { border-color: var(--color-accent-dark); }
.fc-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}
.fc-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 720px;
}
.fc-excerpt {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 16px;
  max-width: var(--content-width);
}
.fc-footer,
.ac-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
}
.fc-footer time,
.ac-footer time {
  font-weight: 700;
  color: var(--color-accent-dark);
}
.fc-sep,
.ac-sep { color: var(--color-border); }
.fc-badge,
.fc-category,
.fc-author,
.fc-readtime,
.ac-author,
.ac-category,
.ac-readtime {
  color: var(--color-secondary);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.article-card:hover { border-color: var(--color-accent-dark); }
.ac-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-dark);
}
.ac-badge--formation .cat-dot { background: var(--color-accent-light); }
.ac-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.article-card:hover .ac-title { color: var(--color-accent-dark); }
.ac-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-updated {
  font-weight: 600;
  color: var(--color-accent-dark);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 48px 5% 0;
  display: flex;
  justify-content: center;
}
.pagination .page-numbers {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.pagination .page-numbers li { display: flex; }
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.pagination a { color: var(--color-secondary); }
.pagination a:hover {
  color: var(--color-accent-dark);
  background: rgba(255, 255, 255, 0.45);
}
.pagination .current {
  background: var(--color-primary);
  color: var(--color-surface);
}
.pagination .dots {
  color: var(--color-secondary);
  min-width: 32px;
}
.pagination .prev,
.pagination .next {
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   RESPONSIVE — 1024px
   ========================================================================== */
@media (max-width: 1024px) {
  .category-gates-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   RESPONSIVE — 768px
   ========================================================================== */
@media (max-width: 768px) {
  .hero { padding: 48px 5% 32px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-footer { align-items: flex-start; }

  .category-gates { padding: 0 5% 32px; }
  .category-gates-grid { grid-template-columns: 1fr; }
  .category-gate { padding: 20px; }

  .anchor-band-inner,
  .anchor-band-inner > .wp-block-group__inner-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .anchor-band-nav {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
  }
  .anchor-band-nav::-webkit-scrollbar { display: none; }
  .anchor-band-nav a { padding: 12px 16px; font-size: 0.78rem; }
  .anchor-band-authors { padding: 0 16px 12px; font-size: 0.68rem; }

  .articles-section { padding: 32px 5% 0; }
  .featured-body { padding: 24px; }
  .fc-title { font-size: 1.05rem; }
  .fc-excerpt { font-size: 0.92rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card { padding: 24px; }

  .pagination { padding: 32px 5% 0; }
  .pagination a,
  .pagination span { min-width: 36px; height: 36px; font-size: 0.78rem; }
}

/* ==========================================================================
   RESPONSIVE — 480px
   ========================================================================== */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero .accroche,
  .hero-bio { font-size: 0.98rem; }
  .featured-body,
  .article-card,
  .category-gate { padding: 20px; }
  .fc-footer,
  .ac-footer { gap: 6px; font-size: 0.68rem; }
  .pagination .page-numbers { gap: 2px; }
  .pagination a,
  .pagination span { min-width: 34px; height: 34px; font-size: 0.75rem; }
}
