/* ===== BLOG / ARTICLES — Tarot League ===== */
/* Thème sombre + or, cohérent avec regles.html / faq.html */

/* Sélecteur de langue FR/EN */
.lang-switch {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 60;
  display: flex;
  gap: 6px;
}
.lang-switch button {
  background: rgba(13, 13, 26, 0.85);
  border: 1px solid #2a2a4a;
  color: #c9a84c;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.lang-switch button:hover { border-color: #c9a84c; }
.lang-switch button.active { background: #c9a84c; color: #1a1a2e; border-color: #c9a84c; }

.blog-body {
  background: #0d0d1a;
  color: #e0d5c1;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
}

/* Fil d'Ariane */
nav.breadcrumb {
  background: #111125;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: #a09070;
}
nav.breadcrumb a { color: #c9a84c; text-decoration: none; }
nav.breadcrumb a:hover { text-decoration: underline; }
nav.breadcrumb span { margin: 0 6px; }

/* En-tête d'article / d'index */
.post-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 70px 20px 46px;
  text-align: center;
  border-bottom: 2px solid #c9a84c;
}
.post-header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.3rem;
  color: #c9a84c;
  margin: 0 0 12px;
  line-height: 1.2;
}
.post-header p { color: #a09070; font-size: 1.1rem; margin: 0; }
.post-meta { color: #6f6850; font-size: 0.85rem; margin-top: 14px; }

/* Conteneur */
.post-container { max-width: 820px; margin: 0 auto; padding: 40px 20px 80px; }

/* Sommaire */
.toc {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 22px 28px;
  margin-bottom: 38px;
}
.toc h2 { font-family: 'Cinzel', serif; color: #c9a84c; font-size: 1.05rem; margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; }
.toc a { color: #c9a84c; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Titres */
h2.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #c9a84c;
  border-bottom: 1px solid #2a2a4a;
  padding-bottom: 10px;
  margin: 46px 0 18px;
}
h3.sub-title { font-family: 'Cinzel', serif; font-size: 1.12rem; color: #e0d5c1; margin: 28px 0 12px; }

/* Texte */
.post-container p { line-height: 1.8; color: #c8bfa8; margin: 0 0 16px; }
.post-container ul, .post-container ol { line-height: 1.8; color: #c8bfa8; margin: 0 0 18px; padding-left: 22px; }
.post-container li { margin: 4px 0; }
.post-container a { color: #c9a84c; }
strong { color: #e0d5c1; }

/* Encadré info */
.info-box {
  background: #1a1a2e;
  border-left: 4px solid #c9a84c;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.info-box strong { color: #c9a84c; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; margin: 20px 0 30px; }
th {
  background: #1a1a2e;
  color: #c9a84c;
  font-family: 'Cinzel', serif;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #c9a84c;
}
td { padding: 10px 16px; border-bottom: 1px solid #2a2a4a; color: #c8bfa8; }
tr:nth-child(even) td { background: #12122a; }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  border: 2px solid #c9a84c;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 50px 0 20px;
}
.cta-box h2 { font-family: 'Cinzel', serif; color: #c9a84c; margin: 0 0 12px; }
.cta-box p { color: #a09070; margin: 0 0 20px; }
.btn-primary {
  background: linear-gradient(135deg, #c9a84c, #e6c060);
  color: #1a1a2e;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; }

/* Articles liés */
.related { margin-top: 50px; border-top: 1px solid #2a2a4a; padding-top: 28px; }
.related h2 { font-family: 'Cinzel', serif; color: #c9a84c; font-size: 1.2rem; margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-card {
  display: block;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: #c9a84c; }
.related-card .rc-title { color: #c9a84c; font-family: 'Cinzel', serif; font-size: 1rem; margin-bottom: 6px; }
.related-card .rc-desc { color: #a09070; font-size: 0.85rem; line-height: 1.5; }

/* Grille d'index blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: #c9a84c; transform: translateY(-3px); }
.blog-card .bc-tag { color: #6ee89a; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.blog-card .bc-title { color: #c9a84c; font-family: 'Cinzel', serif; font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card .bc-desc { color: #c8bfa8; font-size: 0.92rem; line-height: 1.6; flex-grow: 1; }
.blog-card .bc-more { color: #e6c060; font-size: 0.85rem; margin-top: 14px; }

/* Pied de page */
footer.blog-footer {
  background: #0d0d1a;
  border-top: 1px solid #2a2a4a;
  text-align: center;
  padding: 24px;
  color: #606080;
  font-size: 0.85rem;
}
footer.blog-footer a { color: #c9a84c; text-decoration: none; margin: 0 10px; }

@media (max-width: 600px) {
  .post-header h1 { font-size: 1.7rem; }
  h2.section-title { font-size: 1.25rem; }
}
