/* blog.css - Styles partages des articles de blog SansMasque */
/* Charge en plus de common.css */

/* ── Reading progress bar ── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e84393, #fd79a8);
  width: 0;
  z-index: 1000;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Article hero (sombre, gradient) ── */
.article-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2046 60%, #3b1f5b 100%);
  padding: 48px 20px 40px;
  text-align: center;
}
.article-hero .tag {
  display: inline-block;
  background: rgba(232,67,147,.2);
  color: var(--accent-light);
  font-size: .7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 14px;
}
.article-hero .meta {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
}
.article-hero .hero-back {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color .15s;
}
.article-hero .hero-back:hover { color: white; }

/* ── Article body ── */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.article-body h2 .h2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #e84393, #6c5ce7);
  color: white;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(232,67,147,.3);
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #333;
  margin: 24px 0 8px;
}
.article-body .intro::first-letter {
  font-size: 3.4rem;
  font-weight: 900;
  float: left;
  line-height: 1;
  padding: 4px 10px 0 0;
  color: var(--accent);
  font-family: Georgia, serif;
}
.article-body .intro { font-size: 1rem; }
.article-body p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid rgba(232,67,147,.3);
  font-weight: 800;
  transition: border-color .15s;
}
.article-body p a:hover { border-color: var(--accent); }
.article-body li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid rgba(232,67,147,.3);
}
.article-body p {
  font-size: .95rem;
  font-weight: 600;
  color: #555;
  line-height: 1.85;
  margin-bottom: 16px;
}
.article-body strong { color: var(--text); }
.article-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.article-body li {
  font-size: .95rem;
  font-weight: 600;
  color: #555;
  line-height: 1.85;
  margin-bottom: 6px;
}

/* ── Article highlight box (variantes) ── */
.article-highlight {
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .92rem;
  font-weight: 700;
  color: #444;
  line-height: 1.7;
}
.article-highlight.example {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-left-color: #00b894;
}
.article-highlight.tip {
  background: linear-gradient(135deg, #fffbeb, #fefce8);
  border-left-color: #f9ca24;
}
.article-highlight.keyfact {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-left-color: #6c5ce7;
}

/* ── Tableau des profils / types / phases ── */
.profils-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .88rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.profils-table thead {
  background: linear-gradient(135deg, #e84393, #6c5ce7);
  color: white;
}
.profils-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.profils-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.6;
  background: #fff;
}
.profils-table tbody tr:last-child td { border-bottom: none; }
.profils-table tbody tr:hover td { background: #faf5f8; }

/* ── Glossaire ── */
.glossary {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}
.glossary dt {
  font-weight: 800;
  color: var(--accent);
  margin-top: 14px;
  font-size: .95rem;
}
.glossary dt:first-of-type { margin-top: 0; }
.glossary dd {
  margin: 4px 0 0 0;
  color: #555;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.65;
}

/* ── FAQ accordeon ── */
.faq-block { margin: 20px 0; }
.faq-block details {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq-block details[open] { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.faq-block summary {
  padding: 14px 18px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .95rem;
  line-height: 1.4;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}
.faq-block details[open] summary::after { content: '−'; }
.faq-block details > p {
  padding: 0 18px 16px;
  color: #555;
  font-weight: 600;
  line-height: 1.75;
  font-size: .9rem;
  margin: 0;
}

/* ── Grille finale des quiz ── */
.quiz-grid-block { margin: 36px 0 24px; }
.quiz-grid-final {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.quiz-grid-final a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  transition: all .15s;
  color: var(--text);
}
.quiz-grid-final a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232,67,147,.15);
  border-color: rgba(232,67,147,.3);
}
.qcard-emoji { font-size: 1.8rem; margin-bottom: 6px; line-height: 1; }
.qcard-title {
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
}
.qcard-duree {
  font-size: .7rem;
  font-weight: 700;
  color: #999;
}

/* ── Articles connexes ── */
.related-articles { margin: 32px 0 24px; }
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.related-articles-grid a {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
  border: 1px solid rgba(232,67,147,.15);
  border-radius: 12px;
  text-decoration: none;
  transition: all .15s;
}
.related-articles-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232,67,147,.15);
}
.ra-tag {
  font-size: .7rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.ra-title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .article-body { padding: 28px 16px 40px; }
  .article-body h2 { font-size: 1.15rem; margin: 24px 0 10px; gap: 8px; }
  .article-body h2 .h2-badge { width: 24px; height: 24px; font-size: .72rem; }
  .article-body .intro::first-letter { font-size: 2.8rem; padding: 2px 8px 0 0; }
  .profils-table { font-size: .8rem; }
  .profils-table th, .profils-table td { padding: 10px 10px; }
  .quiz-grid-final { grid-template-columns: repeat(2, 1fr); }
  .related-articles-grid { grid-template-columns: 1fr; }
}

/* ── Article CTA (footer de l'article) ── */
.article-cta {
  background: var(--bg-dark, #1a1a2e);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin: 36px 0;
}
.article-cta p {
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
  font-size: .95rem;
  font-weight: 600;
}
.article-cta a {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: .92rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s;
}
.article-cta a:hover { opacity: .9; }

/* ── Article share (fin d'article — rendu par rfRenderShareBar) ── */
.article-share {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
  border: 1px solid rgba(232,67,147,.15);
  border-radius: 16px;
  text-align: center;
}
.article-share-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text, #2d3436);
  margin-bottom: 10px;
}
.article-share-desc {
  font-size: .85rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 14px;
}
