/* === Same Game : hub /guides/ et guides ===
   La mise en page vient de article.css et blog.css partagés (hero-pitch, tableaux, FAQ) ;
   ici, les sections du hub et les mini-grilles des figures, aux couleurs du jeu
   (mêmes dégradés et même reflet que .cell.c1 à .c5 de same-game-solo.css). */

.cluster-section { margin-bottom: 44px; }
.cluster-section:last-child { margin-bottom: 20px; }
.cluster-header { margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.1)); }
.cluster-header h2 { margin: 0 0 4px; }
.cluster-header p { margin: 0; color: var(--texte-doux, #cbd5e1); }
.aucun-guide { text-align: center; color: var(--texte-doux, #cbd5e1); padding: 24px 0; }
.breadcrumb { margin-bottom: 16px; font-size: 0.85rem; color: var(--texte-doux, #cbd5e1); }
.breadcrumb a { color: var(--color-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.blog-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.blog-card h3 a { color: var(--color-accent); text-decoration: none; }
.blog-card h3 a:hover { color: var(--color-light); }

/* Figures : une ou deux mini-grilles côte à côte, puis la légende */
.sg-figure { margin: 22px 0 26px; text-align: center; }
.sg-etapes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.sg-fleche { font-size: 1.6rem; color: var(--color-light, #a78bfa); }
.sg-figure figcaption { margin-top: 12px; font-size: 0.88rem; line-height: 1.5; color: var(--texte-doux, #cbd5e1); text-align: left; }

.sg-mini {
  display: inline-grid;
  gap: 2px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}
.sg-cols-3 { grid-template-columns: repeat(3, 28px); }
.sg-cols-6 { grid-template-columns: repeat(6, 28px); }
.sg-b { width: 28px; height: 28px; border-radius: 5px; position: relative; }
.sg-vide { background: transparent; }
.sg-c1 { background: linear-gradient(145deg, #f87171, #dc2626); }
.sg-c2 { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.sg-c3 { background: linear-gradient(145deg, #4ade80, #16a34a); }
.sg-c4 { background: linear-gradient(145deg, #fde047, #ca8a04); }
.sg-c5 { background: linear-gradient(145deg, #c084fc, #9333ea); }
.sg-b:not(.sg-vide)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 55%);
}
/* Groupe mis en évidence, comme le survol dans le jeu */
.sg-surligne {
  filter: brightness(1.35) saturate(1.2);
  transform: scale(0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65), 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Grilles Facile (9 × 9) du guide de stratégie */
.sg-cols-9 { grid-template-columns: repeat(9, 28px); }
/* Partie commentée : une vignette par coup, blocs réduits */
.sg-film { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 14px; margin: 22px 0 26px; }
.sg-film .sg-figure { margin: 0; }
.sg-film figcaption { margin-top: 8px; font-size: 0.82rem; }
.sg-petit { gap: 1px; padding: 4px; border-radius: 8px; }
.sg-petit.sg-cols-9 { grid-template-columns: repeat(9, 17px); }
.sg-petit .sg-b, .sg-petit .sg-b:not(.sg-vide)::after { border-radius: 3px; }
.sg-petit .sg-b { width: 17px; height: 17px; }
.sg-petit .sg-surligne { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75), 0 0 6px rgba(255, 255, 255, 0.45); }

@media (max-width: 420px) {
  .sg-cols-3 { grid-template-columns: repeat(3, 22px); }
  .sg-cols-6 { grid-template-columns: repeat(6, 22px); }
  .sg-cols-9 { grid-template-columns: repeat(9, 22px); }
  .sg-b { width: 22px; height: 22px; }
  .sg-petit.sg-cols-9 { grid-template-columns: repeat(9, 17px); }
  .sg-petit .sg-b { width: 17px; height: 17px; }
}
