/* Kbizam : thème sombre contrasté, accents néon. Polices système uniquement. */
:root {
  --bg: #080a10;
  --bg2: #0c1018;
  --panel: #111621;
  --panel2: #161c2a;
  --line: #222b3d;
  --text: #eef2f8;
  --mute: #9aa5ba;
  --lime: #c8ff2e;
  --cyan: #38e8ff;
  --pink: #ff4fb0;
  --danger: #ff6b6b;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r: 14px;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
#contenu { min-height: 60vh; }

/* ----- En-tête ----- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(8, 10, 16, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 9px; }
.wm { font: 800 1.3rem/1 var(--mono); letter-spacing: -0.04em; }
.wm em { font-style: normal; color: var(--lime); }
.menu { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 auto 0 8px; }
.menu a { color: var(--mute); text-decoration: none; font-size: .93rem; padding: 7px 12px; border-radius: 999px; }
.menu a:hover { color: var(--text); background: var(--panel2); }
.bar-cta { background: var(--lime); color: #0a0d05; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 9px 16px; border-radius: 10px; white-space: nowrap; }
.bar-cta:hover { background: #fff; color: #000; }
@media (max-width: 820px) {
  .bar-in { padding: 10px 16px; }
  .bar-cta { margin-left: auto; }
  .menu { order: 3; width: 100%; margin: 0; gap: 2px 4px; }
  .menu a { padding: 6px 10px; font-size: .88rem; }
}

/* ----- Blocs communs ----- */
.block, .page-head, .prose, .hero, .strip { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.block { padding-top: 56px; padding-bottom: 56px; }
.block.alt { max-width: none; padding-left: 0; padding-right: 0; background: var(--bg2); border-block: 1px solid var(--line); }
.block.alt > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.block-head { margin-bottom: 28px; max-width: 720px; }
.block-head h2, .split h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.block-head p:last-child { color: var(--mute); margin: 12px 0 0; }
.eyebrow { font: 700 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--lime); margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: #cfd7e6; max-width: 720px; }
.more { margin: 24px 0 0; font-weight: 600; }
.body-text { color: #cfd7e6; margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split > div > h2 { margin-bottom: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .block { padding-top: 40px; padding-bottom: 40px; } }

/* ----- Héros ----- */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 56px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -40px 0 auto 30%; height: 380px; background: radial-gradient(closest-side, rgba(200, 255, 46, .14), transparent); pointer-events: none; z-index: -1; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .8rem/1 var(--mono); color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin: 0 0 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); font-weight: 800; }
.hero h1 mark { background: none; color: var(--lime); }
.hero .lead { margin: 22px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn { display: inline-block; background: var(--lime); color: #0a0d05; font-weight: 800; text-decoration: none; padding: 14px 22px; border-radius: 12px; box-shadow: 0 0 0 0 rgba(200, 255, 46, .5); transition: box-shadow .2s, transform .2s; }
.btn:hover { background: #fff; color: #000; box-shadow: 0 8px 30px rgba(200, 255, 46, .25); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); background: transparent; }
.byline { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: .85rem; margin: 0; }
.byline img { border-radius: 50%; flex: none; object-fit: cover; }
.byline a { color: var(--text); }
.console { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(200, 255, 46, .06); }
.console-head { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.console-head span { width: 10px; height: 10px; border-radius: 50%; background: #2a3347; }
.console-head span:first-child { background: var(--pink); }
.console-head span:nth-child(2) { background: #ffd23d; }
.console-head span:nth-child(3) { background: var(--lime); }
.console-head p { margin: 0 0 0 auto; font: .72rem var(--mono); color: var(--mute); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.kpis div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.kpis dt { font: .72rem var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.kpis dd { margin: 6px 0 0; font: 800 1.45rem/1.1 var(--mono); color: var(--lime); overflow-wrap: anywhere; }
.kpis div:nth-child(2) dd { color: var(--cyan); }
.kpis div:nth-child(3) dd { color: var(--pink); }
.kpis div:nth-child(4) dd { color: var(--text); font-size: 1.1rem; }
.console-foot { font-size: .85rem; color: var(--mute); margin: 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; } }

/* ----- Bandeau de chiffres ----- */
.strip { padding-top: 0; padding-bottom: 8px; }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.strip li { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.strip li:last-child { border-right: 0; }
.strip b { display: block; font: 800 1.9rem/1 var(--mono); color: var(--lime); }
.strip span { color: var(--mute); font-size: .88rem; }
@media (max-width: 700px) { .strip ul { grid-template-columns: 1fr 1fr; } .strip li:nth-child(2) { border-right: 0; } .strip li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ----- Grilles et cartes ----- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: stretch; }
.grid > li { display: flex; min-width: 0; }
.grid.niches { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.sites { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.grid.tools.tight { grid-template-columns: 1fr; }
@media (max-width: 520px) { .grid.niches { grid-template-columns: 1fr 1fr; gap: 10px; } .grid.sites, .grid.tools { grid-template-columns: 1fr; } }
@media (max-width: 340px) { .grid.niches { grid-template-columns: 1fr; } }

.niche { --c: var(--lime); flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 16px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: var(--r); transition: transform .15s, border-color .15s, background .15s; }
.niche:hover { transform: translateY(-3px); background: var(--panel2); border-color: var(--c); color: var(--text); }
.n-top { display: flex; justify-content: space-between; align-items: center; }
.n-idx { font: 700 .8rem var(--mono); color: var(--c); }
.niche i { font-style: normal; font-size: 1.4rem; }
.niche b { font-size: 1.05rem; line-height: 1.25; margin-top: auto; }
.n-count { font: .78rem var(--mono); color: var(--mute); }

.tcard { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 190px; padding: 20px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: transform .15s, border-color .15s; }
.tcard:hover { transform: translateY(-3px); border-color: var(--lime); color: var(--text); }
.tcard b { font-size: 1.08rem; line-height: 1.25; }
.t-short { color: var(--mute); font-size: .92rem; }
.tcard em { margin-top: auto; font: 700 .85rem var(--mono); font-style: normal; color: var(--lime); }
.t-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #1a2310; border: 1px solid rgba(200, 255, 46, .4); color: var(--lime); font: 800 1.15rem var(--mono); flex: none; }
.t-ico.big { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 14px; }
.grid.tight .tcard { min-height: 0; }

.site { --c: var(--lime); flex: 1; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 12px; transition: background .15s, transform .15s; }
.site:hover { background: var(--panel2); transform: translateX(2px); color: var(--text); }
.mono { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); color: var(--c); font: 800 1rem var(--mono); }
.s-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.s-body b { font: 600 .92rem/1.3 var(--mono); overflow-wrap: anywhere; }
.s-body small { color: var(--mute); font-size: .76rem; }
.go { color: var(--mute); font-size: 1.1rem; flex: none; }
.site:hover .go { color: var(--c); }

.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.finder label { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.finder input { flex: 1 1 240px; max-width: 380px; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; border-radius: 10px; font: inherit; }
.finder input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 255, 46, .15); }
.finder p { margin: 0; color: var(--mute); font-size: .88rem; }
li[hidden] { display: none !important; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.steps li::before { content: "0" counter(s); display: block; font: 800 2.2rem/1 var(--mono); color: var(--lime); margin-bottom: 14px; }
.steps b { font-size: 1.15rem; }
.steps p { color: var(--mute); margin: 8px 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ----- FAQ ----- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq details[open] { border-color: rgba(200, 255, 46, .4); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 700 1.3rem var(--mono); color: var(--lime); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #cfd7e6; margin: 0 0 16px; }

/* ----- En-têtes de page ----- */
.page-head { --c: var(--lime); padding-top: 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line); position: relative; }
.page-head::after { content: ""; position: absolute; left: 20px; bottom: -1px; width: 120px; height: 3px; background: var(--c); }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; }
.page-head .lead { margin: 16px 0 18px; }
.page-head .eyebrow { color: var(--c); }
.ph-row { display: flex; align-items: center; gap: 18px; margin: 18px 0 6px; flex-wrap: wrap; }
.ph-row > div { flex: 1; min-width: 200px; }
.ph-emoji { display: grid; place-items: center; width: 64px; height: 64px; font-size: 2rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--c); flex: none; }
.ph-count { margin: 0; text-align: right; }
.ph-count b { display: block; font: 800 2.4rem/1 var(--mono); color: var(--c); }
.ph-count span { color: var(--mute); font-size: .85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .85rem; color: var(--mute); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current] { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chips span { font: 600 .78rem var(--mono); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }
.portrait { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; border: 2px solid var(--c); }
.linkbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

/* ----- Atelier de calcul ----- */
.bench { max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; }
.bench h2 { font-size: 1.15rem; margin-bottom: 18px; font-family: var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.bench form, .result-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.result-wrap { position: sticky; top: 76px; border-color: rgba(200, 255, 46, .3); background: linear-gradient(180deg, #131a12, var(--panel) 40%); }
.field { margin-bottom: 16px; }
.field[hidden] { display: none; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #cfd7e6; }
.field input, .field select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 1rem var(--mono); min-height: 46px; }
.field select { font-family: var(--sans); }
.field input:focus, .field select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 255, 46, .15); }
.res { margin: 0; display: grid; gap: 8px; }
.res > div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.res dt { color: var(--mute); font-size: .88rem; flex: 1 1 160px; }
.res dd { margin: 0; font: 700 1.02rem var(--mono); text-align: right; flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; }
.res .main { border-color: var(--lime); background: #151d0c; }
.res .main dd { color: var(--lime); font-size: 1.4rem; }
.res .code dd { text-align: left; font-size: .85rem; color: var(--cyan); flex-basis: 100%; word-break: break-all; }
.copy { margin-top: 12px; background: var(--lime); color: #0a0d05; border: 0; font: 800 .9rem var(--sans); padding: 11px 18px; border-radius: 10px; cursor: pointer; }
.copy:hover { background: #fff; }
.err { color: var(--danger); background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .4); border-radius: 10px; padding: 14px; margin: 0; }
.rnote { color: var(--mute); font-size: .88rem; margin: 12px 0 0; }
.warn { color: var(--mute); font-size: .85rem; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.warn b { color: #ffd23d; }
@media (max-width: 900px) { .bench { grid-template-columns: 1fr; } .result-wrap { position: static; } .bench form, .result-wrap { padding: 18px; } }

/* ----- Pages de texte ----- */
.prose { max-width: 820px; padding-top: 36px; padding-bottom: 64px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #cfd7e6; }
.prose .grid { margin: 18px 0; }
.facts { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.facts dt { background: var(--panel); color: var(--mute); font-size: .88rem; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 2px; } .facts dd { padding-top: 0; } }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.links a { display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 70px; color: var(--text); overflow-wrap: anywhere; }
.links a:hover { border-color: var(--cyan); }
.links span { color: var(--mute); font-size: .82rem; }
.plain { display: grid; gap: 6px; }
.plain a { display: inline-block; padding: 2px 0; }
.note { color: var(--mute); font-size: .92rem; margin-top: 28px; }

/* ----- Pied de page ----- */
.foot { border-top: 1px solid var(--line); background: #05070b; margin-top: 40px; overflow: hidden; }
.foot-top { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 12px; }
.foot-big { margin: 0; font: 800 clamp(3.4rem, 16vw, 9rem)/.9 var(--mono); letter-spacing: -0.06em; color: #121826; user-select: none; }
.foot-big em { font-style: normal; color: var(--lime); opacity: .85; }
.foot-tag { color: var(--mute); margin: 10px 0 0; }
.foot-grid { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot-about p { color: var(--mute); font-size: .9rem; margin-top: 14px; }
.foot h3 { font: 700 .75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--lime); margin-bottom: 14px; }
.foot li { margin-bottom: 8px; }
.foot li a { color: #cfd7e6; text-decoration: none; font-size: .92rem; }
.foot li a:hover { color: var(--lime); }
.foot-bottom { max-width: var(--wrap); margin: 0 auto; padding: 18px 20px 32px; border-top: 1px solid var(--line); }
.foot-bottom p { margin: 0; color: var(--mute); font-size: .8rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ----- Ajouts : navigation, annuaire interactif, guides, variantes, intégration ----- */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu { align-items: center; }
details.dd { position: relative; }
details.dd summary { list-style: none; cursor: pointer; color: var(--mute); font-size: .93rem; padding: 7px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
details.dd summary::-webkit-details-marker { display: none; }
details.dd summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
details.dd summary:hover, details.dd[open] summary { color: var(--text); background: var(--panel2); }
details.dd ul { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
details.dd li a { display: block; padding: 9px 12px; border-radius: 8px; color: #cfd7e6; text-decoration: none; font-size: .92rem; }
details.dd li a:hover { background: var(--panel2); color: var(--lime); }
@media (max-width: 820px) { details.dd ul { position: static; margin-top: 4px; box-shadow: none; } details.dd { flex-basis: 100%; } }

.finder { flex-direction: column; align-items: stretch; gap: 14px; }
.f-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.f-search label { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .f-btn { font: 600 .85rem var(--sans); color: #cfd7e6; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.chip:hover, .f-btn:hover { border-color: var(--cyan); color: var(--text); }
.chip[aria-pressed="true"] { background: #1a2310; border-color: var(--lime); color: var(--lime); }
.f-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.f-btn { border-radius: 10px; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r); padding: 18px; color: var(--mute); }
.favs { background: var(--panel); border: 1px solid rgba(200, 255, 46, .3); border-radius: var(--r); padding: 18px; margin-bottom: 22px; }
.favs h3 { font-size: 1.05rem; margin-bottom: 14px; }
.favs h3 span { color: var(--mute); font: 600 .85rem var(--mono); }
.fav-foot { margin: 14px 0 0; color: var(--mute); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.has-fav .site { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
.fav { flex: none; width: 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 0 12px 12px 0; color: var(--mute); font-size: 1.25rem; cursor: pointer; }
.fav:hover { color: var(--lime); background: var(--panel2); }
.fav[aria-pressed="true"] { color: var(--lime); }

.tcard.gcard { border-left: 3px solid var(--c, var(--cyan)); min-height: 0; }
.guide h2 { margin-top: 30px; }
.guide p { margin-bottom: .9em; }
.check { display: grid; gap: 8px; margin: 10px 0 0; }
.check li { position: relative; padding: 12px 14px 12px 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.check li::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: var(--lime); font: 800 1rem var(--mono); }
.plainlist { display: grid; gap: 8px; margin-top: 14px; }
.plainlist a { display: block; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.plainlist a:hover { border-color: var(--lime); color: var(--lime); }
.kv { display: grid; gap: 6px; margin-top: 16px; }
.kv li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 9px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
.kv span { color: var(--mute); }
.kv b { font-family: var(--mono); overflow-wrap: anywhere; text-align: right; }
.embed-box { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.embed-box h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.code-area { width: 100%; background: var(--bg); color: var(--cyan); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: .82rem/1.5 var(--mono); resize: vertical; }
.code-area:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 255, 46, .15); }
.embed-actions { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.embed-actions .copy { margin: 0; }
@media (max-width: 860px) { .embed-box { grid-template-columns: 1fr; gap: 20px; } }

/* ----- Page intégrable : mise en page minimale ----- */
body.embed { background: var(--bg); }
.embed-main { max-width: 760px; margin: 0 auto; padding: 16px; }
.embed-main h1 { font-size: 1.25rem; margin-bottom: 14px; }
.embed-main form, .embed-main .result-wrap { position: static; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; background-image: none; }
.embed-main .result-wrap h2 { font-size: .95rem; margin-bottom: 12px; }
.powered { text-align: right; margin: 0; font-size: .85rem; }

@media print { .bar, .foot, .skip { display: none !important; } body { background: #fff; color: #000; } }

/* correctifs mobile : longues adresses et tableaux */
.res dd, .body-text, .main.code, .result-wrap { overflow-wrap: anywhere; min-width: 0; }
.conv-tablewrap { position: relative; max-width: 100%; }
.split > * { min-width: 0; }
