/* Articles du blog Wordle (versions réécrites) : même rendu que le gabarit
   historique des articles, sorti de la page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif; min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #e0e0e0; padding: 32px 16px;
}
.container { max-width: 760px; margin: 0 auto; }
.back-link {
  display: inline-block; margin-bottom: 24px; color: #818cf8;
  text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.2s;
}
.back-link:hover { color: #a78bfa; }
.article-card {
  background: rgba(20, 20, 35, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px; padding: 40px 32px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.article-meta { font-size: 0.8rem; color: #64748b; margin-bottom: 16px; font-weight: 600; }
h1 {
  font-size: 1.9rem; font-weight: 800; margin-bottom: 24px; line-height: 1.3;
  background: linear-gradient(90deg, #a78bfa, #818cf8, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
h2 { font-size: 1.3rem; font-weight: 700; color: #c4b5fd; margin: 32px 0 12px; }
h3 { font-size: 1.05rem; font-weight: 700; color: #a5b4fc; margin: 20px 0 8px; }
p { font-size: 0.95rem; line-height: 1.7; color: #cbd5e1; margin-bottom: 16px; }
ul, ol { padding: 0; margin-bottom: 16px; list-style: none; }
li { font-size: 0.92rem; color: #cbd5e1; padding: 4px 0 4px 20px; position: relative; line-height: 1.6; }
li::before { content: '\2022'; color: #818cf8; position: absolute; left: 4px; }
ol { counter-reset: ol-counter; }
ol li { counter-increment: ol-counter; }
ol li::before { content: counter(ol-counter) '.'; color: #818cf8; font-weight: 700; }
strong { color: #e2e8f0; }
a.link { color: #a5b4fc; }
.wordle-exemple { display: flex; gap: 6px; justify-content: center; margin: 20px 0; }
.wordle-exemple .case {
  width: 44px; height: 44px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff;
}
.case.vert { background: #22c55e; }
.case.jaune { background: #eab308; }
.case.gris { background: #64748b; }
.legende-exemple { text-align: center; font-size: 0.85rem; color: #94a3b8; margin: -10px 0 18px; }
.tableau-donnees { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.9rem; }
.tableau-donnees th, .tableau-donnees td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left; color: #cbd5e1; vertical-align: top; }
.tableau-donnees th { color: #c4b5fd; font-weight: 700; }
.tableau-donnees td:first-child { font-weight: 700; color: #e2e8f0; letter-spacing: 0.04em; }
.article-nav { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.88rem;
  font-weight: 700; padding: 10px 20px; border-radius: 10px; text-decoration: none;
  color: #fff; background: linear-gradient(135deg, #7c3aed, #6366f1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); transition: transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}
footer { text-align: center; font-size: 0.78rem; color: #64748b; margin-top: 24px; }
footer a { color: #818cf8; text-decoration: none; }
@media (max-width: 480px) {
  .article-card { padding: 28px 18px; border-radius: 18px; }
  h1 { font-size: 1.5rem; }
  .wordle-exemple .case { width: 36px; height: 36px; font-size: 1.1rem; }
  .tableau-donnees { font-size: 0.8rem; }
  .tableau-donnees th, .tableau-donnees td { padding: 6px 5px; }
}

/* Liens du bloc « À lire aussi » (a-lire-aussi.php) : même couleur dans tous les états,
   comme lorsqu'elle était écrite dans la balise. */
a.ala-lien,
a.ala-lien:visited,
a.ala-lien:hover,
.article-card a.ala-lien,
.article-card a.ala-lien:visited,
.article-card a.ala-lien:hover {
  color: #818cf8;
  text-decoration: none;
}
