/* ===========================================================
   guides.css — pages /guides/
   Chargé APRÈS formation-fiche.css, dont il réutilise
   .fiche-section, .fiche-lead, .fiche-faq, .fiche-avertissement.
   Ne définit que ce qui n'existe pas déjà : sommaire, tableaux,
   liste de l'index et bloc « à lire ensuite ».
   =========================================================== */

/* ── Sommaire ─────────────────────────────────────────────── */

.guide-toc {
  background: var(--purple-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 32px 0 8px;
}

.guide-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.guide-toc ol {
  margin: 0;
  padding-left: 20px;
}

.guide-toc li {
  margin-bottom: 7px;
  color: var(--text-muted);
}

.guide-toc li:last-child { margin-bottom: 0; }

.guide-toc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.guide-toc a:hover {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* ── Tableaux ─────────────────────────────────────────────── */

/* Le conteneur scrolle horizontalement plutôt que la page :
   sur mobile, un tableau à 3 colonnes déborde toujours. */
.guide-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.guide-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.guide-table th,
.guide-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.guide-table thead th {
  background: var(--purple-bg);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: none;
}

.guide-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.guide-table a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Listes ordonnées de guide ────────────────────────────── */

/* .fiche-programme est stylée pour des modules à titre ; ici les
   items sont du texte courant, on rend la puce numérotée native. */
.guide-ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 16px 0;
}

.guide-ol > li {
  margin-bottom: 11px;
  padding: 0;
  background: none;
  border: none;
  line-height: 1.7;
}

.guide-ol > li:last-child { margin-bottom: 0; }

/* ── À lire ensuite ───────────────────────────────────────── */

.guide-related {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-related li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.guide-related li:last-child { border-bottom: none; }

.guide-related a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

.guide-related a:hover { text-decoration: underline; }

/* ── Index /guides/ ───────────────────────────────────────── */

.guide-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.guide-card h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.guide-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.guide-card h2 a:hover { color: var(--purple); }

.guide-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.guide-card-meta {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 860px) {
  .guide-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Réglages hérités ─────────────────────────────────────── */

/* Les guides utilisent des <h3> à l'intérieur des sections, ce que
   les fiches formation ne font pas : formation-fiche.css ne les
   stylise donc pas. */
.fiche-section > h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}

.fiche-section > p a,
.fiche-section li a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
