/* =========================================================
   Riyata Studio — Blog & contenus longs
   S'appuie sur les tokens de /styles.css.
   ========================================================= */

/* CTA contact (partagé avec les pages outils) */
.tool-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 44px);
  flex-wrap: wrap;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 55%),
    var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.tool-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.tool-cta-body { position: relative; max-width: 60ch; }
.tool-cta-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 8px 0;
  line-height: 1.2;
  color: var(--text-0);
}
.tool-cta-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.tool-cta .btn { position: relative; flex: none; }

.content-intro {
  padding: clamp(112px, 14vw, 168px) 0 clamp(28px, 5vw, 52px);
  border-bottom: 1px solid var(--border-1);
}
.content-head { max-width: 800px; display: grid; gap: var(--s-4); }
.content-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.content-title em { font-style: italic; font-weight: 400; color: var(--accent); }

/* Liste d'articles */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(18px, 2.6vw, 28px);
  padding: clamp(36px, 6vw, 64px) 0;
}
.post-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 40px -18px var(--accent-glow); }
.post-card .pc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.post-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.18; color: var(--text-0); }
.post-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.post-card .pc-meta { font-size: 12.5px; color: var(--text-3); font-family: var(--font-mono); margin-top: 4px; }

/* Article */
.post { max-width: 752px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 9vw, 96px); }
.post-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; margin-bottom: var(--s-5); }
.post-back:hover { color: var(--accent); }
.post-back svg { width: 14px; height: 14px; }
.post-kicker { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.post h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 12px 0 16px;
}
.post-byline { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-3); font-size: 13px; font-family: var(--font-mono); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border-1); margin-bottom: var(--s-6); }

.post-body { font-size: 16.5px; line-height: 1.75; color: var(--text-1); }
.post-body > * + * { margin-top: var(--s-5); }
.post-body h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 500; line-height: 1.2; margin-top: var(--s-8); letter-spacing: -0.01em; }
.post-body h3 { font-size: 19px; font-weight: 600; margin-top: var(--s-6); color: var(--text-0); }
.post-body p { color: var(--text-1); }
.post-body strong { color: var(--text-0); font-weight: 600; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body ul, .post-body ol { padding-left: 22px; display: grid; gap: 8px; }
.post-body li { color: var(--text-1); }
.post-body li::marker { color: var(--text-3); }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--text-2);
  font-style: italic;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text-1);
}
.post-body pre {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.post-body pre code { background: none; padding: 0; }
.post-callout {
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text-2);
}
.post-callout strong { color: var(--text-0); }

/* Glossaire */
.glossary-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: clamp(24px, 4vw, 40px) 0 0; }
.glossary-nav a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.glossary-nav a:hover { color: var(--accent); border-color: var(--accent); }
.glossary { padding: clamp(28px, 5vw, 52px) 0 clamp(56px, 9vw, 96px); display: grid; gap: var(--s-4); }
.glossary-group { scroll-margin-top: 100px; }
.glossary-group > .gl-letter {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.gl-term {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: var(--s-3);
  scroll-margin-top: 100px;
}
.gl-term dt { font-size: 16px; font-weight: 600; color: var(--text-0); margin-bottom: 6px; }
.gl-term dd { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.gl-term dd a { color: var(--accent); }
