/* === Guide Règles du démineur — CSS spécifique === */

/* Mini-grilles d'exemple */
.grille-demo {
  display: inline-grid;
  gap: 2px;
  background: #1e293b;
  padding: 8px;
  border-radius: 8px;
  margin: 16px auto;
  border: 1px solid var(--line-forte);
}

.grille-demo-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}

.grille-demo-wrap figure {
  text-align: center;
  margin: 0;
}

.grille-demo-wrap figcaption {
  font-size: 0.82rem;
  color: var(--texte-doux);
  margin-top: 8px;
  max-width: 220px;
}

.case {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  border-radius: 3px;
}

.case.cachee {
  background: linear-gradient(145deg, var(--texte-faible), #334155);
  border: 1px solid #1e293b;
}

.case.revele {
  background: var(--texte-doux);
  color: #0f172a;
}

.case.vide {
  background: var(--texte-doux);
}

.case.c1 {
  color: #1d4ed8;
}

.case.c2 {
  color: #15803d;
}

.case.c3 {
  color: #b91c1c;
}

.case.c4 {
  color: #6d28d9;
}

.case.c5 {
  color: #7c2d12;
}

.case.mine {
  background: #fecaca;
  color: #991b1b;
  font-size: 1rem;
}

.case.drapeau {
  background: linear-gradient(145deg, var(--texte-faible), #334155);
  border: 1px solid #1e293b;
  font-size: 0.95rem;
}

/* Callout d'avertissement */
.callout {
  background: var(--surface-2);
  border-left: 3px solid #d2973a;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
}

.callout strong {
  color: #d2973a;
}
