/* ============================================================
   en-Stage.com — gabarit CATÉGORIE / LISTING
   (charge styles.css avant : variables, header, footer, news, boutons)
   ============================================================ */

.cat-main { padding-bottom: 20px; }

/* ---------- fil d'Ariane ---------- */
.crumb {
  padding: 22px 0 0;
  font-size: 13.5px;
  color: var(--gris);
}
.crumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }
.crumb a { color: var(--gris); font-weight: 500; }
.crumb a:hover { color: var(--rouge); }
.crumb li[aria-current] { color: var(--encre); font-weight: 600; }
.crumb .sep { color: var(--gris-line); }

/* ============================================================
   EN-TÊTE DE CATÉGORIE
   ============================================================ */
.cat-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  padding: 30px 0 6px;
  border-bottom: 2px solid var(--encre);
  margin-bottom: 26px;
}
.cat-head .ch-text { max-width: 62ch; }
.cat-head h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.cat-head h1 .ch-accent {
  display: inline-block;
  position: relative;
  color: var(--encre);
}
.cat-head h1 .ch-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 14px;
  background: var(--grad-arrow);
  opacity: .9;
  z-index: -1;
  border-radius: 3px;
}
.cat-chapo {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--encre-2);
}
.cat-chapo a {
  color: var(--encre);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.cat-chapo a:hover { color: var(--rouge); text-decoration-color: var(--rouge); }
.cat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gris);
  white-space: nowrap;
  padding-bottom: 8px;
}
.cat-meta b { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 28px; color: var(--rouge); }

/* ============================================================
   PUCES DE SOUS-THÈMES
   ============================================================ */
.subtopics {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  align-items: center;
}
.subtopics .st-label {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  margin-right: 4px;
}
.subtopic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--blanc);
  border: 1.5px solid var(--gris-line);
  color: var(--encre-2);
  cursor: pointer;
  transition: all .14s ease;
  white-space: nowrap;
}
.subtopic:hover { border-color: var(--encre); transform: translateY(-1px); }
.subtopic.active { background: var(--encre); color: var(--creme); border-color: var(--encre); }

/* ============================================================
   ARTICLE ÉPINGLÉ / À LA UNE
   ============================================================ */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--encre);
  color: var(--creme);
  box-shadow: var(--shadow-card);
  margin-bottom: 44px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.featured:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -30px rgba(21,22,29,.5); }
.featured-media { position: relative; min-height: 340px; overflow: hidden; }
.featured-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-body {
  padding: clamp(26px, 3.5vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-pin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre);
  background: var(--grad-arrow);
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.featured-body h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: #fff;
  text-wrap: balance;
}
.featured-body p {
  font-size: 16px;
  line-height: 1.6;
  color: #c9cbd6;
  margin: 0 0 22px;
  max-width: 46ch;
}
.featured-foot {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: #9a9cab;
}
.featured-foot img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.featured-foot b { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--creme); }
.featured-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--orange-2);
}
.featured:hover .featured-cta svg { transform: translateX(4px); }
.featured-cta svg { transition: transform .18s ease; }

/* ============================================================
   GRILLE D'ARTICLES
   ============================================================ */
.grid-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.grid-title h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
}
.grid-title .gt-count { font-size: 13px; color: var(--gris); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.acard {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--gris-line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.acard:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.acard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.acard-media image-slot { width: 100%; height: 100%; }
.acard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.acard-tag {
  position: absolute;
  top: 13px; left: 13px;
  z-index: 3;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sticker);
}
.acard-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.acard-body h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--encre);
  margin: 0;
  text-wrap: pretty;
}
.acard:hover .acard-body h3 { color: var(--rouge); }
.acard-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gris);
  margin: 0;
}
.acard-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--gris);
}
.acard-foot img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.acard-foot b { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--encre-2); }
.acard-foot .dot { color: var(--gris-line); }
.acard-foot .rt { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.load-more { text-align: center; margin: 40px 0 8px; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 38px 0 8px;
}
.page-btn {
  min-width: 42px; height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  background: var(--blanc);
  border: 1.5px solid var(--gris-line);
  color: var(--encre);
  cursor: pointer;
  transition: all .14s ease;
}
.page-btn:hover:not(:disabled) { border-color: var(--encre); transform: translateY(-2px); }
.page-btn.active { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-ellipsis { color: var(--gris); padding: 0 4px; }

/* ============================================================
   NEWSLETTER (réutilise .news de styles.css, marge propre)
   ============================================================ */
.cat-news { margin: 56px 0 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cat-head { grid-template-columns: 1fr; align-items: start; }
  .cat-meta { padding-bottom: 0; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 220px; aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .article-grid { grid-template-columns: 1fr; }
  .subtopics .st-label { width: 100%; margin-bottom: 4px; }
}
