/* ProJump — gabarit du blog (étape 1 : structure technique).
   Complète marketing.css (tokens, nav, footer) sans le dupliquer :
   charger les deux feuilles sur toute page /blog. */

.crumbs {
  font-size: 12.5px;
  color: var(--text-3);
  padding: 20px 0 0;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "›"; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text-3); }

.article-header { padding: 28px 0 8px; max-width: 720px; }
.article-pillar-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 12px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.article-pillar-tag.coachs { color: var(--brand-hi); background: var(--brand-glow); }
.article-pillar-tag.athletes { color: var(--low); background: color-mix(in srgb, var(--low) 16%, transparent); }
.article-pillar-tag.eleves { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.article-pillar-tag.exos { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }

.video-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 0 0 16px;
}
.video-slot { min-width: 0; }

.video-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--radius-card); overflow: hidden; background: var(--surface-2);
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.video-card {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; border-radius: var(--radius-card); overflow: hidden;
  cursor: pointer; background: var(--surface-2);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: background .15s var(--ease);
}
.video-card:hover .video-play { background: var(--brand); }
.video-card-titre {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px;
  font-size: 12px; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

.article-header h1 { font-size: 34px; line-height: 1.18; margin-bottom: 16px; }
@media (max-width: 560px) { .article-header h1 { font-size: 26px; } }

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
}
.article-meta .byline-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-glow); border: 1px solid var(--brand);
  flex: none;
}
.article-meta strong { color: var(--text); font-weight: 600; }
.article-meta .dot { color: var(--text-3); }
.article-meta time { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  gap: 48px;
  justify-content: center;
  padding: 32px 0 72px;
  align-items: start;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 720px); justify-content: stretch; }
}

.article-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .article-aside { position: static; } }

.slot-placeholder {
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius-card);
  padding: 16px;
  font-size: 12px;
  color: var(--text-3);
  background: var(--surface-2);
}
.slot-placeholder strong { display: block; color: var(--text-2); font-size: 12.5px; margin-bottom: 4px; }

/* --- Sommaire (repliable, généré par blog.js) --- */

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 14px 16px;
}
.toc summary {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--text-2); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "+"; font-family: 'IBM Plex Mono', monospace; color: var(--text-3); font-size: 14px;
}
.toc[open] summary::after { content: "–"; }
.toc-list { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.toc-list li[data-level="3"] { padding-left: 14px; }
.toc-list a {
  font-size: 13px; color: var(--text-2); text-decoration: none; display: block;
  border-left: 2px solid transparent; padding-left: 8px; margin-left: -1px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.toc-list a:hover { color: var(--text); }
.toc-list a.active { color: var(--brand-hi); border-left-color: var(--brand); font-weight: 600; }

/* --- Boutons de résumé par IA --- */

.ai-summary { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.ai-summary p { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 10px; }
.ai-summary-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-summary-buttons a {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 5px 12px; text-decoration: none;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.ai-summary-buttons a:hover { border-color: var(--border-hi); color: var(--text); }

/* --- Vignette de conversion --- */

.conversion-vignette {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-2);
  padding: 18px;
}
.conversion-vignette h3 { font-size: 15px; margin-bottom: 8px; }
.conversion-vignette p { font-size: 13px; color: var(--text-2); margin: 0 0 14px; }
.conversion-vignette .btn { width: 100%; margin-bottom: 8px; }
.conversion-vignette .secondary-link { display: block; text-align: center; font-size: 12px; color: var(--text-3); text-decoration: underline; }

/* --- Vignette d'articles liés --- */

.related-vignette {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 16px;
}
.related-vignette h4 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); margin: 0 0 10px; }
.related-vignette ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related-vignette a { font-size: 13px; color: var(--text-2); text-decoration: none; line-height: 1.4; }
.related-vignette a:hover { color: var(--brand-hi); }

.article-body { min-width: 0; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 {
  font-size: 23px; margin: 40px 0 14px; scroll-margin-top: 88px; color: var(--brand);
}
.article-body h3 {
  font-size: 18px; margin: 28px 0 10px; scroll-margin-top: 88px;
}
.article-body p { font-size: 15.5px; line-height: 1.7; color: var(--text-2); margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--text); }
.article-body a:not(.btn) { color: var(--brand-hi); text-decoration: underline; text-underline-offset: 2px; }

.article-placeholder-note {
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius-card);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
  padding: 14px 16px;
  margin: 0 0 28px;
}

.callout-retenir {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 18px 20px;
  margin: 32px 0;
}
.callout-retenir h3 { margin-top: 0; font-size: 15px; }
.callout-retenir ul { margin-bottom: 0; }

.article-faq h2 { margin-top: 44px; }
.article-faq h3 { font-size: 15.5px; margin: 20px 0 6px; }
.article-faq p { margin-bottom: 0; }

/* ===================== Page index /blog (étape 3) ===================== */

.blog-header { padding: 48px 0 28px; text-align: center; }
.blog-header h1 { font-size: 34px; margin-bottom: 10px; }
.blog-header p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }

.blog-search { max-width: 480px; margin: 0 auto; position: relative; }
.blog-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.blog-search input {
  width: 100%; font-family: 'IBM Plex Sans', sans-serif; font-size: 14.5px;
  padding: 12px 16px 12px 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.blog-search input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.blog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }

.blog-filters {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 8px;
}
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row + .filter-row { margin-top: 8px; }
.filter-row.secondary { padding-top: 8px; border-top: 1px dashed var(--border); }

.pill-filter {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.pill-filter:hover { border-color: var(--border-hi); }
.pill-filter:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pill-filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill-filter .count { opacity: .75; margin-left: 3px; font-family: 'IBM Plex Mono', monospace; }

.pill-filter.secondary-pill { background: transparent; }
.pill-filter.secondary-pill[aria-pressed="true"] { background: var(--brand-glow); border-color: var(--brand); color: var(--brand-hi); }

.filter-reset {
  font-size: 12.5px; font-weight: 600; color: var(--text-3); text-decoration: underline;
  background: none; border: none; cursor: pointer; padding: 7px 4px;
}
.filter-reset[hidden] { display: none; }

.blog-controls {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 20px 0 4px;
  font-size: 13px; color: var(--text-3);
}
.results-count strong { color: var(--text); font-family: 'IBM Plex Mono', monospace; }
.sort-control { display: flex; align-items: center; gap: 6px; }
.sort-control select {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; background: var(--surface);
}

.pinned-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 0 32px; }
@media (max-width: 860px) { .pinned-grid { grid-template-columns: 1fr; } }
.pinned-card {
  display: block; border-radius: var(--radius-card); padding: 22px;
  border: 1px solid var(--border); text-decoration: none;
  background: var(--surface);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.pinned-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.pinned-card .article-pillar-tag { margin-bottom: 12px; }
.pinned-card h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.pinned-card p { font-size: 13px; color: var(--text-2); margin: 0; }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 8px 0 40px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), opacity 200ms var(--ease);
}
.blog-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.blog-card[hidden] { display: none; }
.blog-card.leaving { opacity: 0; transform: translateY(4px); }

.blog-card-visual {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.blog-card-visual svg { width: 58%; height: auto; }
.blog-card-visual.coachs { background: linear-gradient(135deg, var(--brand-glow), var(--surface-2)); color: var(--brand); }
.blog-card-visual.athletes { background: linear-gradient(135deg, color-mix(in srgb, var(--low) 20%, transparent), var(--surface-2)); color: var(--low); }
.blog-card-visual.eleves { background: linear-gradient(135deg, color-mix(in srgb, var(--ok) 20%, transparent), var(--surface-2)); color: var(--ok); }
.blog-card-visual.exos { background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 20%, transparent), var(--surface-2)); color: var(--warn); }

.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .article-pillar-tag { margin-bottom: 0; align-self: flex-start; }
.blog-card-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.blog-card-title a { color: var(--text); text-decoration: none; }
.blog-card-title a:hover { color: var(--brand-hi); }
.blog-card-title a::after { content: ""; position: absolute; inset: 0; }
.blog-card { position: relative; }
.blog-card-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0; flex: 1; }
.blog-card-foot { font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.blog-card-foot time { font-family: 'IBM Plex Mono', monospace; }

.blog-empty { text-align: center; padding: 48px 16px; color: var(--text-2); }
.blog-empty[hidden] { display: none; }
.blog-empty h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.blog-empty ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.blog-empty a { color: var(--brand-hi); }

.load-more-row { text-align: center; padding: 8px 0 56px; }
.load-more-row button[hidden] { display: none; }
