/* ============ WIKI ============ */
.wiki-shell { max-width: 1340px; margin: 0 auto; padding: 0 24px 90px; --sc: var(--c-cyan); }
.wiki-muted { color: var(--text-muted); font-size: 14px; }
.wiki-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

/* --- Barre du haut --- */
.wiki-topbar {
  position: sticky; top: 90px; z-index: 40; margin: 0 0 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 12px 16px; border-radius: 18px;
  background: oklch(0.13 0.05 285 / 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft); box-shadow: 0 10px 30px oklch(0 0 0 / 0.3);
}
.wiki-home-link { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: white; text-decoration: none; white-space: nowrap; }
.wiki-home-link:hover { color: var(--c-cyan); }

.wiki-search-form { position: relative; flex: 1 1 260px; min-width: 0; display: flex; align-items: center; }
.wiki-search-form input[type="search"] {
  width: 100%; padding: 11px 70px 11px 42px; border-radius: var(--radius-pill);
  background: var(--surface-3); border: 1px solid var(--border-soft); color: white; font: inherit; font-size: 14.5px;
}
.wiki-search-form input[type="search"]::placeholder { color: var(--text-muted); }
.wiki-search-form input[type="search"]:focus { outline: none; border-color: var(--c-cyan); box-shadow: 0 0 0 3px oklch(0.78 0.16 200 / 0.2); }
.wiki-search-icon { position: absolute; left: 15px; pointer-events: none; font-size: 15px; opacity: .8; }
.wiki-kbd { position: absolute; right: 12px; font-size: 11px; padding: 3px 8px; border-radius: 7px; background: oklch(1 0 0 / 0.08); border: 1px solid oklch(1 0 0 / 0.14); color: var(--text-secondary); font-family: inherit; pointer-events: none; }

.wiki-spaces { display: flex; gap: 8px; flex-wrap: wrap; }
.wiki-space-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border-soft); color: oklch(0.92 0.02 280 / 0.9);
  font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.wiki-space-pill:hover { border-color: var(--sc); color: white; }
.wiki-space-pill.is-active { background: color-mix(in oklch, var(--sc) 24%, transparent); border-color: var(--sc); color: white; }
.wiki-space-pill.is-soon { opacity: .55; cursor: default; }
.wiki-space-pill small { font-size: 10.5px; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }

/* --- Accueil --- */
.wiki-hero { position: relative; text-align: center; padding: 30px 12px 42px; }
.wiki-hero-glow { position: absolute; left: 50%; top: -30px; width: 900px; max-width: 100%; height: 340px; transform: translateX(-50%); background: radial-gradient(circle, oklch(0.7 0.16 220 / 0.28), transparent 70%); pointer-events: none; }
.wiki-hero h1 { position: relative; font-family: var(--font-display); font-size: 58px; font-weight: 700; margin: 6px 0 10px; color: white; text-shadow: 0 0 40px oklch(0.7 0.15 250 / 0.5); }
.wiki-hero p { position: relative; color: oklch(0.9 0.02 280 / 0.8); font-size: 17px; max-width: 580px; margin: 0 auto 26px; }
.wiki-search-big { position: relative; max-width: 640px; margin: 0 auto; }
.wiki-search-big input[type="search"] { padding: 17px 140px 17px 50px; font-size: 16px; box-shadow: 0 10px 40px oklch(0 0 0 / 0.35); }
.wiki-search-big .wiki-search-icon { left: 19px; font-size: 18px; }
.wiki-search-btn { position: absolute; right: 7px; padding: 11px 20px; border-radius: var(--radius-pill); border: none; cursor: pointer; background: linear-gradient(135deg, var(--c-cyan), var(--c-violet)); color: var(--bg-2); font-weight: 800; font-size: 14px; font-family: inherit; }
.wiki-search-btn:hover { filter: brightness(1.1); }
.wiki-chips { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.wiki-chip { padding: 8px 15px; border-radius: var(--radius-pill); background: oklch(1 0 0 / 0.06); border: 1px solid var(--border-soft); color: oklch(0.93 0.02 280); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .2s var(--ease); }
.wiki-chip:hover { background: oklch(0.7 0.16 220 / 0.2); border-color: var(--c-cyan); color: white; transform: translateY(-2px); }

.wiki-section { margin: 38px 0 0; }
.wiki-section-title { font-family: var(--font-display); font-size: 25px; font-weight: 600; color: white; margin: 0 0 16px; }
.wiki-section-title a { color: inherit; text-decoration: none; }
.wiki-section-title a:hover { color: var(--c-cyan); }

.wiki-space-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.wiki-space-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius-card); text-decoration: none; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in oklch, var(--sc) 16%, transparent), var(--surface-2) 60%);
  border: 1px solid color-mix(in oklch, var(--sc) 40%, transparent); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.wiki-space-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px color-mix(in oklch, var(--sc) 25%, transparent); }
.wiki-space-card-icon { font-size: 34px; }
.wiki-space-card-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: white; }
.wiki-space-card-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.55; flex: 1; }
.wiki-space-card-foot { color: var(--sc); font-weight: 700; font-size: 13.5px; margin-top: 6px; }
.wiki-space-card.is-soon, .wiki-space-card.is-hint { opacity: .7; border-style: dashed; }

.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.wiki-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius-card-sm); text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--border-soft); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wiki-card:hover { transform: translateY(-3px); border-color: var(--c-cyan); box-shadow: 0 10px 28px oklch(0 0 0 / 0.3); }
.wiki-card-icon { font-size: 24px; }
.wiki-card-title { font-weight: 700; color: white; font-size: 16px; line-height: 1.3; }
.wiki-card-meta { font-size: 12px; color: var(--c-cyan); font-weight: 600; }
.wiki-card-desc { color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.wiki-card-rank .wiki-card-meta { color: var(--c-gold); font-size: 15px; }

.wiki-recent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4px 28px; }
.wiki-recent li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid oklch(0.4 0.05 280 / 0.25); }
.wiki-recent a { color: white; font-weight: 600; text-decoration: none; }
.wiki-recent a:hover { color: var(--c-cyan); }
.wiki-recent small { color: var(--text-muted); white-space: nowrap; font-size: 12px; }

.wiki-help-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 30px; border-radius: var(--radius-card); background: linear-gradient(120deg, oklch(0.3 0.12 300 / 0.5), oklch(0.25 0.1 230 / 0.4)); border: 1px solid var(--border-violet); }
.wiki-help-cta h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; color: white; }
.wiki-help-cta p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.wiki-help-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Mise en page 2/3 colonnes --- */
.wiki-layout { display: grid; gap: 28px; align-items: start; }
.wiki-layout-2 { grid-template-columns: 290px minmax(0, 1fr); }
.wiki-layout-3 { grid-template-columns: 290px minmax(0, 1fr) 230px; }
.wiki-main { min-width: 0; }

.wiki-sidebar { position: sticky; top: 170px; max-height: calc(100vh - 190px); overflow-y: auto; padding: 14px; border-radius: var(--radius-card-sm); background: var(--surface-2); border: 1px solid var(--border-soft); scrollbar-width: thin; }
.wiki-sidebar-head { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 8px; border-radius: 12px; text-decoration: none; background: color-mix(in oklch, var(--sc) 16%, transparent); border: 1px solid color-mix(in oklch, var(--sc) 35%, transparent); }
.wiki-sidebar-icon { font-size: 26px; }
.wiki-sidebar-head strong { display: block; color: white; font-size: 15px; }
.wiki-sidebar-head small { color: var(--text-muted); font-size: 12px; }
.wiki-cat { margin: 4px 0; }
.wiki-cat > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: white; font-weight: 700; font-size: 14px; }
.wiki-cat > summary::-webkit-details-marker { display: none; }
.wiki-cat > summary::after { content: '▸'; margin-left: 8px; color: var(--text-muted); transition: transform .2s var(--ease); font-size: 12px; }
.wiki-cat[open] > summary::after { transform: rotate(90deg); }
.wiki-cat > summary:hover { background: oklch(1 0 0 / 0.05); }
.wiki-cat-count { margin-left: auto; font-size: 11px; color: var(--text-muted); background: oklch(1 0 0 / 0.07); padding: 1px 8px; border-radius: 10px; }
.wiki-cat ul { list-style: none; margin: 2px 0 8px 14px; padding: 0 0 0 10px; border-left: 1px solid var(--border-soft); }
.wiki-cat li a { display: block; padding: 7px 10px; margin: 1px 0; border-radius: 8px; color: oklch(0.88 0.02 280 / 0.85); font-size: 13.5px; text-decoration: none; line-height: 1.35; }
.wiki-cat li a:hover { color: white; background: oklch(1 0 0 / 0.06); }
.wiki-cat li a.is-active { color: white; font-weight: 700; background: color-mix(in oklch, var(--sc) 22%, transparent); box-shadow: inset 3px 0 0 var(--sc); }

.wiki-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.wiki-breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.wiki-breadcrumbs a:hover { color: var(--c-cyan); }
.wiki-breadcrumbs span:last-child { color: white; }

.wiki-space-head { display: flex; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--radius-card); margin-bottom: 8px; background: linear-gradient(120deg, color-mix(in oklch, var(--sc) 18%, transparent), var(--surface-2)); border: 1px solid color-mix(in oklch, var(--sc) 38%, transparent); }
.wiki-space-head-icon { font-size: 44px; }
.wiki-space-head h1 { font-family: var(--font-display); font-size: 34px; margin: 0 0 4px; color: white; }
.wiki-space-head p { margin: 0; color: var(--text-secondary); }

/* --- Article --- */
.wiki-article { position: relative; }
.wiki-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; pointer-events: none; }
.wiki-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-cyan), var(--c-magenta)); box-shadow: 0 0 10px var(--c-cyan); }
.wiki-article-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.wiki-article-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: color-mix(in oklch, var(--sc) 20%, transparent); border: 1px solid color-mix(in oklch, var(--sc) 45%, transparent); }
.wiki-article-head h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.12; margin: 0 0 8px; color: white; }
.wiki-lead { font-size: 17px; color: oklch(0.92 0.02 280 / 0.85); margin: 0 0 12px; line-height: 1.55; }
.wiki-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--text-muted); }

.wiki-content { color: oklch(0.93 0.015 280 / 0.92); font-size: 16px; line-height: 1.75; }
.wiki-content > :first-child { margin-top: 0; }
.wiki-content h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: white; margin: 46px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); scroll-margin-top: 170px; }
.wiki-content h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--c-cyan); margin: 30px 0 10px; scroll-margin-top: 170px; }
.wiki-content h4 { font-size: 16px; font-weight: 700; color: white; margin: 22px 0 8px; scroll-margin-top: 170px; }
.wiki-anchor { margin-left: 10px; opacity: 0; color: var(--text-muted); font-size: .7em; text-decoration: none; transition: opacity .15s; }
.wiki-content h2:hover .wiki-anchor, .wiki-content h3:hover .wiki-anchor, .wiki-content h4:hover .wiki-anchor { opacity: 1; }
.wiki-content p { margin: 0 0 16px; }
.wiki-content a { color: var(--c-cyan); text-decoration: underline; text-decoration-color: oklch(0.78 0.16 200 / 0.4); text-underline-offset: 3px; }
.wiki-content a:hover { text-decoration-color: var(--c-cyan); }
.wiki-content a.wiki-btn { text-decoration: none; }
.wiki-content strong { color: white; }
.wiki-content ul, .wiki-content ol { margin: 0 0 18px; padding-left: 26px; }
.wiki-content li { margin: 5px 0; }
.wiki-content li::marker { color: var(--c-cyan); }
.wiki-content hr { border: none; height: 1px; background: var(--border-soft); margin: 34px 0; }
.wiki-content blockquote { margin: 0 0 18px; padding: 10px 18px; border-left: 3px solid var(--c-violet); background: oklch(1 0 0 / 0.04); border-radius: 0 12px 12px 0; color: var(--text-secondary); }
.wiki-content blockquote p:last-child { margin-bottom: 0; }
.wiki-content mark { background: oklch(0.85 0.16 95 / 0.28); color: white; padding: 0 3px; border-radius: 4px; }
.wiki-content img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border-soft); margin: 8px 0; }
.wiki-content code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .88em; padding: 2px 7px; border-radius: 7px; background: oklch(0.2 0.06 285 / 0.9); border: 1px solid var(--border-soft); color: oklch(0.88 0.12 200); white-space: nowrap; }
.wiki-content code[data-copy], .wiki-content .wiki-cmd code { cursor: copy; }
.wiki-content p code, .wiki-content li code, .wiki-content td code { white-space: normal; }

.wiki-cmd { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: oklch(0.12 0.04 285 / 0.95); border: 1px solid var(--border-violet); position: relative; }
.wiki-cmd code { display: block; background: none; border: none; padding: 2px 0; font-size: 14.5px; color: var(--c-cyan); white-space: pre-wrap; }
.wiki-cmd code::before { content: '❯ '; color: var(--c-magenta); }
.wiki-cmd::after { content: 'Copier'; position: absolute; top: 10px; right: 12px; font-size: 11px; padding: 3px 9px; border-radius: 8px; background: oklch(1 0 0 / 0.08); color: var(--text-secondary); pointer-events: none; }
.wiki-cmd.is-copied::after { content: 'Copié ✓'; color: var(--c-green); }
.wiki-pre { margin: 0 0 18px; padding: 16px; border-radius: 14px; background: oklch(0.12 0.04 285 / 0.95); border: 1px solid var(--border-soft); overflow-x: auto; }
.wiki-pre code { background: none; border: none; padding: 0; white-space: pre; color: oklch(0.9 0.02 280); }

.wiki-ip { display: inline-flex; flex-direction: column; gap: 4px; margin: 0 0 18px; padding: 16px 22px; border-radius: 16px; cursor: copy; position: relative; background: linear-gradient(135deg, oklch(0.3 0.13 300 / 0.55), oklch(0.26 0.1 230 / 0.5)); border: 1px solid var(--border-violet); }
.wiki-ip-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); }
.wiki-ip code { font-size: 22px; background: none; border: none; color: white; padding: 0; font-weight: 700; cursor: copy; }
.wiki-ip.is-copied::after { content: 'Copié ✓'; position: absolute; right: 14px; top: 14px; color: var(--c-green); font-size: 12px; font-weight: 700; }

.wiki-table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: 14px; border: 1px solid var(--border-soft); }
.wiki-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
.wiki-table th { text-align: left; padding: 12px 14px; background: oklch(0.22 0.07 285 / 0.9); color: white; font-weight: 700; white-space: nowrap; }
.wiki-table td { padding: 11px 14px; border-top: 1px solid oklch(0.4 0.05 280 / 0.25); vertical-align: top; }
.wiki-table tbody tr:nth-child(even) { background: oklch(1 0 0 / 0.025); }
.wiki-table tbody tr:hover { background: oklch(0.7 0.16 220 / 0.07); }

.wiki-callout { display: flex; gap: 14px; margin: 0 0 20px; padding: 16px 18px; border-radius: 14px; border: 1px solid; border-left-width: 4px; }
.wiki-callout-icon { font-size: 20px; line-height: 1.5; }
.wiki-callout-body { flex: 1; min-width: 0; }
.wiki-callout-body > :last-child { margin-bottom: 0; }
.wiki-callout-title { font-weight: 800; color: white; margin-bottom: 4px; }
.wiki-callout-info { background: oklch(0.7 0.14 230 / 0.12); border-color: oklch(0.7 0.14 230 / 0.5); }
.wiki-callout-tip { background: oklch(0.8 0.15 95 / 0.1); border-color: oklch(0.8 0.15 95 / 0.5); }
.wiki-callout-warn { background: oklch(0.75 0.16 60 / 0.12); border-color: oklch(0.75 0.16 60 / 0.55); }
.wiki-callout-danger { background: oklch(0.65 0.21 25 / 0.12); border-color: oklch(0.65 0.21 25 / 0.55); }
.wiki-callout-success { background: oklch(0.75 0.17 145 / 0.12); border-color: oklch(0.75 0.17 145 / 0.5); }

.wiki-steps { margin: 0 0 22px; counter-reset: wikistep; }
.wiki-steps-title { font-weight: 800; color: white; margin-bottom: 10px; font-family: var(--font-display); font-size: 18px; }
.wiki-steps ol { list-style: none; margin: 0; padding: 0; }
.wiki-steps li { position: relative; margin: 0; padding: 4px 0 20px 54px; counter-increment: wikistep; border-left: 2px solid oklch(0.7 0.16 220 / 0.3); margin-left: 17px; padding-left: 38px; }
.wiki-steps li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.wiki-steps li::before { content: counter(wikistep); position: absolute; left: -17px; top: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--bg-2); background: linear-gradient(135deg, var(--c-cyan), var(--c-violet)); box-shadow: 0 0 16px oklch(0.7 0.16 240 / 0.5); }

.wiki-details { margin: 0 0 18px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--surface-2); }
.wiki-details summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: white; }
.wiki-details[open] summary { border-bottom: 1px solid var(--border-soft); }
.wiki-details-body { padding: 14px 18px 4px; }

.wiki-linklist { list-style: none; padding: 0; margin: 0 0 16px; }
.wiki-linklist li { padding: 8px 0; border-bottom: 1px solid oklch(0.4 0.05 280 / 0.25); }
.wiki-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0 0 16px; }
.wiki-stats div { text-align: center; padding: 16px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.wiki-stats strong { display: block; font-family: var(--font-display); font-size: 28px; color: white; }
.wiki-stats span { font-size: 12.5px; color: var(--text-muted); }

.wiki-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.wiki-tags a { font-size: 12.5px; padding: 4px 12px; border-radius: var(--radius-pill); background: oklch(1 0 0 / 0.05); color: var(--text-secondary); text-decoration: none; border: 1px solid var(--border-soft); }
.wiki-tags a:hover { color: white; border-color: var(--c-cyan); }

.wiki-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 34px 0 0; padding: 18px 22px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.wiki-feedback strong { color: white; }
.wiki-feedback-actions { display: flex; gap: 10px; }
.wiki-fb-btn { padding: 9px 18px; border-radius: var(--radius-pill); cursor: pointer; background: oklch(1 0 0 / 0.06); border: 1px solid var(--border-soft); color: white; font: inherit; font-size: 14px; font-weight: 600; }
.wiki-fb-btn:hover { border-color: var(--c-cyan); }
.wiki-fb-btn.is-picked { background: oklch(0.7 0.16 220 / 0.25); border-color: var(--c-cyan); }
.wiki-feedback-msg { color: var(--c-green); font-size: 13.5px; }

.wiki-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.wiki-prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-soft); text-decoration: none; }
.wiki-prevnext a:hover { border-color: var(--c-cyan); }
.wiki-prevnext small { color: var(--text-muted); font-size: 12px; }
.wiki-prevnext span { color: white; font-weight: 700; }
.wiki-next { text-align: right; grid-column: 2; }

/* --- Sommaire de la page --- */
.wiki-toc-col { position: sticky; top: 170px; align-self: start; }
.wiki-toc { padding: 16px; border-radius: var(--radius-card-sm); background: var(--surface-2); border: 1px solid var(--border-soft); max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: thin; }
.wiki-toc-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; font-weight: 700; }
.wiki-toc ul, .wiki-toc-inline ul { list-style: none; margin: 0; padding: 0; }
.wiki-toc a { display: block; padding: 5px 10px; border-left: 2px solid transparent; color: var(--text-secondary); font-size: 13px; text-decoration: none; line-height: 1.4; }
.wiki-toc a:hover { color: white; }
.wiki-toc a.is-active { color: var(--c-cyan); border-left-color: var(--c-cyan); font-weight: 700; background: oklch(0.78 0.16 200 / 0.07); }
.wiki-toc .lv3 a { padding-left: 22px; font-size: 12.5px; }
.wiki-toc-inline { display: none; margin-bottom: 20px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--surface-2); }
.wiki-toc-inline summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: white; }
.wiki-toc-inline ul { padding: 0 16px 12px; }
.wiki-toc-inline a { display: block; padding: 6px 0; color: var(--c-cyan); text-decoration: none; font-size: 14px; }
.wiki-toc-inline .lv3 a { padding-left: 16px; color: var(--text-secondary); }

/* --- Recherche : page --- */
.wiki-searchpage h1 { font-family: var(--font-display); font-size: 36px; color: white; margin: 8px 0 16px; }
.wiki-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.wiki-results { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wiki-results a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-soft); text-decoration: none; }
.wiki-results a:hover { border-color: var(--c-cyan); transform: translateX(3px); }
.wiki-result-path { font-size: 12px; color: var(--c-cyan); font-weight: 600; }
.wiki-result-title { font-weight: 700; font-size: 17px; color: white; }
.wiki-result-snippet { color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }

.wiki-empty { text-align: center; padding: 80px 20px; }
.wiki-empty-inline { padding: 40px 20px; }
.wiki-empty-icon { font-size: 56px; margin-bottom: 8px; }
.wiki-empty h1, .wiki-empty h2 { font-family: var(--font-display); color: white; margin: 0 0 8px; }
.wiki-empty p { color: var(--text-secondary); margin: 0 auto 20px; max-width: 460px; }

/* --- Palette de recherche (Ctrl+K) --- */
.wiki-palette { position: fixed; inset: 0; z-index: 500; display: none; align-items: flex-start; justify-content: center; padding: 11vh 16px 16px; background: oklch(0.05 0.03 285 / 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wiki-palette.is-open { display: flex; }
.wiki-palette-box { width: 100%; max-width: 680px; max-height: 76vh; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: oklch(0.16 0.05 285 / 0.98); border: 1px solid var(--border-violet); box-shadow: 0 30px 80px oklch(0 0 0 / 0.6); }
.wiki-palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.wiki-palette-input input { flex: 1; background: none; border: none; outline: none; color: white; font: inherit; font-size: 17px; min-width: 0; }
.wiki-palette-input input::placeholder { color: var(--text-muted); }
.wiki-palette-filters { display: flex; gap: 8px; padding: 10px 20px; flex-wrap: wrap; border-bottom: 1px solid oklch(0.4 0.05 280 / 0.25); }
.wiki-palette-filters button { padding: 4px 12px; border-radius: var(--radius-pill); font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text-secondary); background: oklch(1 0 0 / 0.05); border: 1px solid var(--border-soft); }
.wiki-palette-filters button.is-active { color: white; border-color: var(--c-cyan); background: oklch(0.7 0.16 220 / 0.2); }
.wiki-palette-list { overflow-y: auto; padding: 8px; flex: 1; }
.wiki-palette-item { display: block; padding: 11px 14px; border-radius: 12px; text-decoration: none; cursor: pointer; }
.wiki-palette-item.is-selected, .wiki-palette-item:hover { background: oklch(0.7 0.16 220 / 0.18); }
.wiki-palette-item .p-path { display: block; font-size: 11.5px; color: var(--c-cyan); font-weight: 600; margin-bottom: 2px; }
.wiki-palette-item .p-title { display: block; color: white; font-weight: 700; font-size: 15.5px; }
.wiki-palette-item .p-snip { display: block; color: var(--text-secondary); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.wiki-palette-item mark { background: oklch(0.85 0.16 95 / 0.3); color: white; border-radius: 3px; padding: 0 2px; }
.wiki-palette-empty { padding: 30px 20px; text-align: center; color: var(--text-secondary); }
.wiki-palette-foot { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-muted); }
.wiki-palette-foot kbd { font-family: inherit; background: oklch(1 0 0 / 0.08); border: 1px solid var(--border-soft); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }

/* --- Tiroir mobile --- */
.wiki-drawer-toggle { display: none; position: fixed; bottom: 18px; left: 18px; z-index: 90; padding: 12px 20px; border-radius: var(--radius-pill); border: 1px solid var(--border-violet); background: linear-gradient(135deg, var(--c-cyan), var(--c-violet)); color: var(--bg-2); font: inherit; font-weight: 800; box-shadow: 0 10px 30px oklch(0 0 0 / 0.5); cursor: pointer; }

@media (max-width: 1180px) {
  .wiki-layout-3 { grid-template-columns: 270px minmax(0, 1fr); }
  .wiki-toc-col { display: none; }
  .wiki-toc-inline { display: block; }
}
@media (max-width: 900px) {
  .wiki-shell { padding: 0 14px 80px; }
  .wiki-layout-2, .wiki-layout-3 { grid-template-columns: minmax(0, 1fr); }
  .wiki-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 88vw); max-height: none; z-index: 400; border-radius: 0 20px 20px 0; padding-top: 80px; transform: translateX(-105%); transition: transform .28s var(--ease); background: oklch(0.14 0.05 285 / 0.98); }
  .wiki-sidebar.is-open { transform: none; box-shadow: 0 0 0 100vmax oklch(0 0 0 / 0.55); }
  .wiki-drawer-toggle { display: inline-flex; }
  .wiki-topbar { position: static; padding: 10px 12px; }
  .wiki-home-link { display: none; }
  .wiki-spaces { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .wiki-spaces::-webkit-scrollbar { display: none; }
  .wiki-hero h1 { font-size: 40px; }
  .wiki-article-head h1 { font-size: 30px; }
  .wiki-article-icon { width: 52px; height: 52px; font-size: 26px; }
  .wiki-content h2 { font-size: 23px; scroll-margin-top: 150px; }
  .wiki-content h3 { scroll-margin-top: 150px; }
  .wiki-prevnext { grid-template-columns: 1fr; }
  .wiki-next { grid-column: auto; text-align: left; }
  .wiki-kbd { display: none; }
  .wiki-search-form input[type="search"] { padding-right: 18px; }
  .wiki-search-big input[type="search"] { padding-right: 130px; }
}
@media (max-width: 480px) {
  .wiki-hero h1 { font-size: 34px; }
  .wiki-hero p { font-size: 15px; }
  .wiki-search-big input[type="search"] { padding: 14px 108px 14px 44px; font-size: 14px; }
  .wiki-search-big .wiki-search-icon { left: 15px; }
  .wiki-search-btn { padding: 9px 14px; font-size: 13px; }
  .wiki-help-cta { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiki-card, .wiki-chip, .wiki-space-card, .wiki-sidebar { transition: none; }
  .wiki-card:hover, .wiki-chip:hover, a.wiki-space-card:hover { transform: none; }
}
