/* ============================================================
   BLOG - Venezance
   Toute la grammaire visuelle des pages article + liste.
   Toute modification ici se propage automatiquement à toutes
   les pages du blog.
   ============================================================ */

/* ---------- Barre de progression de lecture ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}

.read-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.08s linear;
}

/* ============================================================
   ARTICLE — Hero (titre + meta + cover)
   ============================================================ */

.article-hero {
  padding: clamp(120px, 16vh, 170px) 0 clamp(36px, 5vw, 56px);
}

.article-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 28px;
}

.article-eyebrow a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-eyebrow a:hover { color: var(--text); }

.article-eyebrow-sep {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 22ch;
}

.article-lede {
  font-family: var(--font);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  color: var(--text-mute);
  max-width: 60ch;
  margin: 0 0 36px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-mute);
}

.article-meta-dot {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}

.article-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.article-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.article-cover {
  margin: clamp(40px, 6vw, 64px) 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-cover figcaption {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ============================================================
   ARTICLE — Shell (TOC sticky | contenu | actions)
   ============================================================ */

.article-shell {
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
}

.article-shell-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 700px) 80px;
  gap: clamp(40px, 5vw, 72px);
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  align-items: start;
}

/* ---------- TOC sidebar (gauche, sticky) ---------- */
.article-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  font-family: var(--font-display);
}

.article-toc-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}

.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.article-toc-list a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 1px solid var(--border);
  color: var(--text-mute);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.2s ease, border-left-color 0.2s ease;
}

.article-toc-list a:hover { color: var(--text); }

.article-toc-list a.is-active {
  color: var(--text);
  border-left-color: var(--accent);
}

.article-toc-list li.is-h3 a {
  padding-left: 26px;
  font-size: 12px;
}

/* ---------- Actions sidebar (droite, sticky) ---------- */
.article-actions {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.article-actions-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 4px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.article-action-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              background 0.25s var(--ease-out);
}

.article-action-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.article-action-btn[data-copied="true"]::after {
  content: "Copié";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============================================================
   ARTICLE — Typographie du contenu
   ============================================================ */

.article-content {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  letter-spacing: -0.005em;
}

.article-content > * + * { margin-top: 22px; }
.article-content > h2 + p,
.article-content > h3 + p,
.article-content > h2 + ul,
.article-content > h2 + ol,
.article-content > h3 + ul,
.article-content > h3 + ol { margin-top: 18px; }

.article-content > h2 + h3 { margin-top: 28px; }

.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 64px 0 0;
  scroll-margin-top: 110px;
}

.article-content > *:first-child { margin-top: 0; }
.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 44px 0 0;
  scroll-margin-top: 110px;
}

.article-content p {
  max-width: 68ch;
  color: rgba(237, 237, 237, 0.88);
  margin: 0;
}

.article-content p strong {
  color: var(--text);
  font-weight: 500;
}

.article-content a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(245, 197, 66, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.article-content a:not(.btn):hover {
  text-decoration-color: var(--accent);
}

/* Lists */
.article-content ul,
.article-content ol {
  max-width: 68ch;
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-content li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
  color: rgba(237, 237, 237, 0.88);
}

.article-content li p { margin: 0; max-width: none; }

.article-content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.article-content ol { counter-reset: olcounter; }

.article-content ol > li {
  counter-increment: olcounter;
  padding-left: 36px;
}

.article-content ol > li::before {
  content: counter(olcounter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  line-height: 1.7;
}

/* Pullquote — phrase mise en valeur qui casse la colonne */
.article-content .pullquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 30ch;
  margin: 56px 0;
  padding: 0;
  position: relative;
}

.article-content .pullquote::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 22px;
}

/* Bloc "key point" — encadré editorial discret */
.article-content .key-point {
  margin: 48px 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  background: rgba(245, 197, 66, 0.03);
  display: grid;
  gap: 8px;
}

.article-content .key-point-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.article-content .key-point p {
  margin: 0;
  font-size: 16px;
  max-width: none;
}

/* ============================================================
   ARTICLE — CTA de fin
   ============================================================ */

.article-end-cta {
  padding: clamp(70px, 9vw, 120px) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}

.article-end-cta-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.article-end-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 24px;
}

.article-end-cta-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.article-end-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 18ch;
}

.article-end-cta p {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 55ch;
  margin: 0 0 36px;
}

.article-end-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.article-end-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-mute);
  text-decoration: none;
  padding: 14px 4px;
  transition: color 0.25s ease;
}

.article-end-cta-secondary:hover { color: var(--text); }

.article-end-cta-secondary svg {
  transition: transform 0.3s var(--ease-out);
}

.article-end-cta-secondary:hover svg {
  transform: translate(3px, -3px);
}

/* ============================================================
   ARTICLES SIMILAIRES (bas d'article)
   ============================================================ */

.related-articles {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
}

.related-articles-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.related-articles-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 28px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s var(--ease-spring);
}

.related-card:hover { transform: translateY(-4px); }

.related-card-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 22px;
}

.related-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.related-card:hover .related-card-cover img { transform: scale(1.04); }

.related-card-meta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 10px;
}

.related-card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  max-width: 22ch;
}

/* Carte "À venir" — placeholder pour articles futurs */
.related-card.is-soon { pointer-events: none; opacity: 0.5; }
.related-card.is-soon .related-card-cover {
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card.is-soon .related-card-cover-text {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   BLOG — Page de liste (blog/index.html)
   ============================================================ */

.blog-hero {
  padding: clamp(130px, 18vh, 200px) 0 clamp(36px, 5vw, 64px);
}

.blog-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 28px;
}

.blog-hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 14ch;
}

.blog-hero-title .muted {
  color: var(--text-dim);
  font-weight: 400;
}

.blog-hero-lede {
  font-family: var(--font);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  color: var(--text-mute);
  max-width: 52ch;
  margin: 0;
}

.blog-list {
  padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 12vw, 160px);
}

.blog-list-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: opacity 0.3s ease;
}

.blog-list-item:first-child {
  border-top: 1px solid var(--border);
}

.blog-list-item-cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-card);
}

.blog-list-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.blog-list-item:hover .blog-list-item-cover img {
  transform: scale(1.04);
}

.blog-list-item-body {
  display: flex;
  flex-direction: column;
}

.blog-list-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}

.blog-list-item-meta-dot {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

.blog-list-item-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 16px;
  max-width: 18ch;
}

.blog-list-item-lede {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 48ch;
  margin: 0 0 24px;
}

.blog-list-item-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.blog-list-item-read svg {
  transition: transform 0.3s var(--ease-out);
}

.blog-list-item:hover .blog-list-item-read svg {
  transform: translateX(5px);
}

/* "À venir" : carte placeholder dans la liste */
.blog-list-item.is-soon {
  pointer-events: none;
  opacity: 0.45;
}

.blog-list-item.is-soon .blog-list-item-cover {
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-list-item.is-soon .blog-list-item-cover-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette : on cache la TOC sticky (peu utile) et on garde les actions */
@media (max-width: 1100px) {
  .article-shell-grid {
    grid-template-columns: minmax(0, 720px) 60px;
    gap: 32px;
  }
  .article-toc { display: none; }
}

@media (max-width: 860px) {
  .article-shell-grid {
    grid-template-columns: minmax(0, 720px);
    gap: 0;
  }
  .article-actions { display: none; }

  .article-hero { padding: 100px 0 32px; }
  .article-cover { margin-top: 32px; }

  .article-content { font-size: 16.5px; line-height: 1.68; }
  .article-content h2 { margin-top: 52px; }
  .article-content h3 { margin-top: 36px; }
  .article-content .pullquote {
    font-size: 20px;
    margin: 40px 0;
  }
  .article-content .key-point { padding: 22px 24px; margin: 36px 0; }

  .article-end-cta { padding: 64px 0; }
  .article-end-cta-actions { gap: 8px; flex-direction: column; align-items: flex-start; }
  .article-end-cta-secondary { padding-left: 0; }

  .related-articles-grid { grid-template-columns: 1fr; gap: 32px; }

  .blog-hero { padding: 100px 0 32px; }
  .blog-list-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .article-eyebrow { gap: 8px; font-size: 11px; }
  .article-meta { font-size: 12px; gap: 8px 14px; }
  .article-author-avatar { width: 24px; height: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .read-progress-fill,
  .related-card,
  .related-card-cover img,
  .blog-list-item-cover img,
  .blog-list-item-read svg,
  .article-end-cta-secondary svg {
    transition: none !important;
    transform: none !important;
  }
}
