/* ════════════════════════════════════════════════════════
   aide.css — styles spécifiques à la page « Guide utilisateur — Maintenance Turbines LM2500 »
   (extraits de l'ancien <style> en ligne de aide.html)
════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   STYLES PAGE D'AIDE
════════════════════════════════════════════════════════ */

/* ── Sommaire latéral (table des matières) ── */
.aide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .aide-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

/* Table des matières fixe pendant le scroll */
.toc {
  position: sticky;
  top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-size: 0.72rem;
}

.toc-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0 4px 8px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.5;
}

.toc a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc a.sub {
  padding-left: 20px;
  font-size: 0.68rem;
  color: #3d4155;
}

.toc a.sub:hover { color: var(--muted); border-left-color: var(--muted); }

/* ── Section de contenu ── */
.aide-section {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}

/* ── Titre de section principal ── */
.aide-h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Titre de sous-section ── */
.aide-h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  margin: 24px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Paragraphe standard ── */
.aide-p {
  font-size: 0.8rem;
  line-height: 1.85;
  color: #b0b4c8;
  margin-bottom: 12px;
}

/* ── Bloc de formule mathématique ── */
.formule {
  background: #0a0b0e;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  margin: 14px 0;
  color: #e8eaf0;
}

.formule .comment {
  color: #3d4155;
}

.formule .highlight {
  color: var(--accent);
  font-weight: 700;
}

/* ── Bloc d'exemple pratique ── */
.exemple {
  background: rgba(74,222,128,0.04);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.exemple-titre {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exemple p {
  font-size: 0.78rem;
  line-height: 1.8;
  color: #b0b4c8;
  margin-bottom: 8px;
}

.exemple p:last-child { margin-bottom: 0; }

/* ── Bloc d'avertissement / attention ── */
.alerte {
  background: rgba(251,146,60,0.06);
  border: 1px solid rgba(251,146,60,0.25);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.78rem;
  line-height: 1.8;
  color: #b0b4c8;
}

.alerte strong { color: #fb923c; }

/* ── Tableau de données ── */
.aide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin: 14px 0;
}

.aide-table th {
  text-align: left;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.aide-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(42,45,56,0.6);
  color: #b0b4c8;
  line-height: 1.5;
}

.aide-table tr:last-child td { border-bottom: none; }
.aide-table tr:hover td { background: rgba(255,255,255,0.01); }

/* ── Badge coloré inline ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-vert    { background: rgba(74,222,128,0.15);  color: #4ade80; }
.badge-jaune   { background: rgba(253,224,71,0.15);  color: #fde047; }
.badge-orange  { background: rgba(251,146,60,0.15);  color: #fb923c; }
.badge-rouge   { background: rgba(248,113,113,0.15); color: #f87171; }
.badge-bleu    { background: rgba(96,165,250,0.15);  color: #60a5fa; }
.badge-violet  { background: rgba(167,139,250,0.15); color: #a78bfa; }
.badge-gris    { background: rgba(71,85,105,0.2);    color: #94a3b8; }

/* ── Séparateur visuel entre grandes sections ── */
.section-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Matrice de risque miniature ── */
.mini-matrix {
  display: grid;
  grid-template-columns: repeat(6, 36px);
  gap: 2px;
  margin: 14px 0;
}

.mini-cell {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ── Étapes numérotées ── */
.etapes { margin: 14px 0; }

.etape {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.etape-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.etape-content {
  font-size: 0.78rem;
  line-height: 1.8;
  color: #b0b4c8;
}

.etape-content strong { color: var(--text); }

/* ── Lexique (termes clés) ── */
.lexique-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(42,45,56,0.6);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  font-size: 0.78rem;
}

.lexique-item:last-child { border-bottom: none; }

.lexique-terme {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
}

.lexique-def {
  color: #b0b4c8;
  line-height: 1.7;
}

/* ── Carte de résumé (encadré synthèse) ── */
.synthese {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 16px 0;
}

.synthese-titre {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── Numéro de page de section (grand chiffre décoratif) ── */
.section-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  color: #2a2d38;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
