/* Guide d'utilisation de la plateforme */
.guide-hero { background: linear-gradient(135deg, #0f2b46 0%, #091b2e 100%); color: #fff; padding: var(--space-16) 0 var(--space-12); text-align: center; }
.guide-hero .container { display: flex; flex-direction: column; align-items: center; }
.guide-hero h1 { color: #fff; margin: 0 auto var(--space-4); font-size: clamp(1.9rem, 4.5vw, 3rem); }
.guide-hero p { color: rgba(255, 255, 255, 0.88); max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.6; }
.guide-hero .section-label { color: #ffc078; background: rgba(245, 166, 35, 0.12); border-color: rgba(245, 166, 35, 0.35); }
.guide-hero .guide-search-empty { margin-top: 1rem; font-size: 0.92rem; }
.guide-hero .guide-search-empty a { color: #ffc078; }
.guide-search { display: flex; align-items: center; gap: 0.6rem; width: min(620px, 100%); margin: var(--space-8) auto 0; padding: 0.35rem 1rem; background: #fff; border-radius: var(--radius-full); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.guide-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: #0f172a; padding: 0.7rem 0; }
.guide-search:focus-within { box-shadow: 0 0 0 3px var(--color-secondary), 0 10px 30px rgba(0, 0, 0, 0.25); }

.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-10); align-items: start; padding-top: var(--space-10); padding-bottom: var(--space-16); }
.guide-toc { position: sticky; top: calc(var(--header-height) + var(--nav-height) + 16px); max-height: calc(100vh - var(--header-height) - var(--nav-height) - 32px); overflow-y: auto; padding: 1rem 1.1rem; border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--border-subtle); }
.guide-toc-title { margin: 0 0 0.5rem; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.guide-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.25rem; }
.guide-toc a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; line-height: 1.4; }
.guide-toc a:hover, .guide-toc a.is-active { color: var(--text-primary); font-weight: 700; }

.guide-sec { padding: var(--space-8) 0; border-bottom: 1px solid var(--border-subtle); scroll-margin-top: calc(var(--header-height) + var(--nav-height) + 16px); }
.guide-sec:first-child { padding-top: 0; }
.guide-sec:last-child { border-bottom: 0; }
.guide-sec[hidden] { display: none; }
.guide-sec h2 { margin: 0 0 0.75rem; font-size: 1.6rem; }
.guide-sec h3 { margin: 1.25rem 0 0.5rem; font-size: 1.1rem; font-family: var(--font-sans); }
.guide-sec p, .guide-sec li { color: var(--text-secondary); line-height: 1.7; font-size: 0.98rem; }
.guide-sec a { color: var(--accent-text); font-weight: 600; }
.guide-list, .guide-steps { padding-left: 1.3rem; margin: 0.5rem 0; display: grid; gap: 0.45rem; }
.guide-list { list-style: disc; }
.guide-steps, .guide-path ol, .guide-toc ol { list-style: decimal; }
.guide-steps li::marker { font-weight: 800; color: var(--color-secondary); }
.guide-tip, .guide-warn { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: var(--radius-md); font-size: 0.93rem !important; }
.guide-tip { background: rgba(14, 165, 233, 0.08); border: 1px solid rgba(14, 165, 233, 0.3); }
.guide-warn { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.45); color: var(--text-primary) !important; }
kbd { display: inline-block; padding: 0.05rem 0.4rem; border-radius: 5px; border: 1px solid var(--border-subtle); border-bottom-width: 2px; background: var(--surface-soft); font-family: inherit; font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }

.guide-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.guide-path { padding: 1.1rem 1.2rem; border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.guide-path h3 { margin: 0 0 0.5rem; font-size: 1.02rem; }
.guide-path ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.guide-path li { font-size: 0.92rem; }

.guide-admin details, .guide-faq details { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-raised); margin-bottom: 0.5rem; }
.guide-admin summary, .guide-faq summary { padding: 0.8rem 1rem; font-weight: 700; color: var(--text-primary); cursor: pointer; }
.guide-admin details > p, .guide-admin details > ul, .guide-faq details > p { margin: 0; padding: 0 1rem 0.9rem 1rem; }
.guide-admin details > ul { padding-left: 2.2rem; display: grid; gap: 0.35rem; }
.guide-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius-lg); background: var(--accent-surface); }
.guide-contact p { margin: 0; }
mark.guide-hit { background: rgba(245, 166, 35, 0.35); color: inherit; border-radius: 3px; padding: 0 2px; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .guide-toc { position: static; max-height: none; }
  .guide-toc ol { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}
@media (max-width: 480px) { .guide-toc ol { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .guide-search, .guide-toc, .guide-contact .btn, .skip-to-content { display: none !important; }
  .guide-hero { background: none; color: #000; padding: 0 0 1rem; }
  .guide-hero h1, .guide-hero p { color: #000 !important; }
  .guide-layout { display: block; padding: 0; }
  .guide-admin details, .guide-faq details { break-inside: avoid; }
}
