/* Fiche d’un plugin : onglets « Le plugin » / « Documentation », et la documentation (site/assets/docs/<slug>.html). */
.tabs { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.tabs button { padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--haze); font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.tabs button:hover { color: var(--mist); }
.tabs button[aria-selected="true"] { background: var(--ember); color: #fff; }
.tabs button:focus-visible { outline: 2px solid var(--ember-text); outline-offset: 2px; }

/* La documentation prend toute la largeur (les schémas restent lisibles) ; l’achat reste sur l’onglet « Le plugin ». */
.doc-open .product { grid-template-columns: minmax(0, 1fr); }
.doc-open .side { display: none; }
.doc { min-width: 0; }
.doc > p, .doc > ul, .doc > ol, .doc > h2, .doc > h3, .doc > .tip { max-width: 80ch; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 46px 0 12px; scroll-margin-top: 20px; }
.doc h3 { margin: 28px 0 8px; font: 600 16px/1.35 var(--f-display); color: var(--bone); }
.doc p, .doc li { color: var(--label, #D9C6C8); }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc b { color: var(--bone); }
.doc .toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.doc .toc li { margin: 0; }
.doc .toc a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mist); font: 500 12px/1 var(--f-mono); text-decoration: none; }
.doc .toc a:hover { border-color: var(--ember); }
.doc .tip { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--ember); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.03); }
.doc .tip p { margin: 0; }

/* Tableaux des réglages : défilent seuls sur téléphone, la page ne déborde jamais. */
.doc .table { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font: 500 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--haze); background: rgba(255,255,255,.03); }
.doc td:first-child { font: 600 13px/1.5 var(--f-mono); color: var(--bone); white-space: nowrap; }
.doc td:nth-child(2) { font: 500 13px/1.5 var(--f-mono); color: var(--haze); white-space: nowrap; }

/* Schémas : tracés en SVG, couleurs de la charte ; sur un écran étroit, le schéma défile dans son cadre. */
.doc figure { margin: 20px 0 26px; }
.doc .sch-frame { overflow-x: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(120% 120% at 50% 0%, rgba(var(--acc-lo), .22), transparent 70%), #0B0607; }
.doc figure svg { display: block; width: 100%; min-width: 640px; height: auto; }
.doc figcaption { margin-top: 10px; font-size: 14px; color: var(--haze); }
.sch { font-family: var(--f-mono); font-size: 13px; }
.sch text { fill: var(--mist); }
.sch .t2 { fill: var(--haze); font-size: 11px; }
.sch .ta { fill: var(--ember-text); }
.sch .tb { font-weight: 700; font-size: 13px; }
.sch .w { fill: none; stroke: var(--haze); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.sch .wa { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sch .wd { fill: none; stroke: var(--haze); stroke-width: 1.2; stroke-dasharray: 4 4; }
.sch .wg { fill: none; stroke: rgba(255,210,214,.12); stroke-width: 1; }
.sch .b { fill: rgba(255,255,255,.035); stroke: rgba(255,210,214,.42); stroke-width: 1.3; }
.sch .ba { fill: rgba(var(--acc), .14); stroke: var(--ember); stroke-width: 1.5; }
.sch .zone { fill: none; stroke: rgba(255,210,214,.22); stroke-width: 1; stroke-dasharray: 6 5; }
.sch .dot { fill: var(--haze); }
.sch .dota { fill: var(--ember); }
.sch .fill { fill: rgba(var(--acc), .18); stroke: none; }
.sch .arr { fill: var(--haze); }
.sch .arra { fill: var(--ember); }
