/* Boîte à outils : feuille de style unique, thème sombre et clair, sans dépendance.
   Les fonds reprennent ceux du portfolio : image d'accueil dans les bandeaux, fond sombre qui défile
   lentement, photos très claires en filigrane pour le thème clair. */

@font-face { font-family: lato; src: url(../fonts/lato/Lato-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: oswald; src: url(../fonts/oswald/Oswald-Regular.ttf) format('truetype'); font-display: swap; }

:root {
	--bg: #05090D;
	--bg2: #0A131C;
	--panel: rgba(13, 22, 32, 0.82);
	--panel2: rgba(22, 34, 48, 0.9);
	--text: #E7EEF3;
	--dim: #94a3ae;
	--hair: rgba(255, 255, 255, 0.1);
	--border: rgba(2, 136, 209, 0.32);
	--acc: #0288d1;
	--acc-lt: #4FC3F7;
	--acc-text: #4FC3F7;
	--on-acc: #ffffff;
	--bar: #2E2E2E;
	--ok: #3dd68c;
	--warn: #f5a524;
	--bad: #ff6369;
	--ok-bg: rgba(61, 214, 140, 0.1);
	--warn-bg: rgba(245, 165, 36, 0.1);
	--bad-bg: rgba(255, 99, 105, 0.1);
	--info-bg: rgba(2, 136, 209, 0.12);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--mono: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	color-scheme: dark;
}
:root[data-theme="light"] {
	--bg: #f4f6f8;
	--bg2: #ffffff;
	--panel: rgba(255, 255, 255, 0.93);
	--panel2: #f1f4f7;
	--text: #18212b;
	--dim: #55626f;
	--hair: #e1e6eb;
	--border: rgba(2, 119, 189, 0.35);
	--acc: #0277bd;
	--acc-lt: #0288d1;
	--acc-text: #01639c;
	--ok: #18794e;
	--warn: #946800;
	--bad: #c62a2f;
	--ok-bg: #e6f6ee;
	--warn-bg: #fff4d6;
	--bad-bg: #ffeceb;
	--info-bg: #e6f3fb;
	--shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: lato, system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.55;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
[hidden] { display: none !important; }
a { color: var(--acc-text); }
h1, h2, h3 { font-family: oswald, lato, sans-serif; font-weight: 400; letter-spacing: 0.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
code, kbd, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--acc-lt); outline-offset: 2px; border-radius: 4px; }
#toolTitle:focus, #main:focus { outline: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- fond de page ---------- */
body::before {
	content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	/* voile sombre et neutre sur l'image, pour que le bandeau reste la seule zone « photo » lumineuse */
	background-image: linear-gradient(rgba(6, 10, 16, 0.64), rgba(6, 10, 16, 0.64)), url(../img/dark_bg.png); background-size: cover; background-repeat: no-repeat; background-position: center;
}
[data-theme="light"] body::before { animation: none; background-repeat: no-repeat; background-position: center; background-image: url(../img/img12.jpg); opacity: 0.9; }
[data-theme="light"] body[data-view="generator"]::before { background-image: url(../img/img8.jpg); }
[data-theme="light"] body[data-view="photo"]::before { background-image: url(../img/img14.jpg); }
[data-theme="light"] body[data-view="qr"]::before { background-image: url(../img/img16.jpg); }

/* ---------- barre du haut ---------- */
.tb-bar {
	position: sticky; top: 0; z-index: 40;
	display: flex; align-items: center; gap: 12px;
	padding: 0 16px; min-height: 52px;
	background: var(--bar); color: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
	border-bottom: 3px solid #06B6D4;
}
.tb-back { color: #fff; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; transition: background 0.15s; }
.tb-back:hover { background: rgba(255, 255, 255, 0.1); }
.tb-brand { font-family: oswald, sans-serif; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-decoration: none; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.tb-sitenav { display: flex; gap: 4px; margin-left: auto; margin-right: 6px; }
.tb-sitenav a { color: #d7dee4; text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.tb-sitenav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tb-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 34px; padding: 0 9px;
	border-radius: 6px; border: 1px solid rgba(79, 195, 247, 0.5);
	background: transparent; color: #4FC3F7; cursor: pointer;
	font: 700 11px var(--mono); letter-spacing: 0.06em; transition: background 0.15s, border-color 0.15s;
}
.tb-iconbtn:hover { background: rgba(79, 195, 247, 0.14); border-color: #4FC3F7; }
.tb-iconbtn svg { width: 17px; height: 17px; }

.tb-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--acc-lt); z-index: 60; opacity: 0; transition: width 0.25s var(--ease), opacity 0.3s; }
.tb-progress.on { opacity: 1; width: 72%; transition: width 6s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.1s; }
.tb-progress.done { opacity: 0; width: 100%; }

/* ---------- barre des outils ---------- */
.tb-rail {
	position: sticky; top: 55px; z-index: 30;
	display: flex; gap: 6px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none;
	background: rgba(10, 19, 28, 0.92); border-bottom: 1px solid var(--hair);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
[data-theme="light"] .tb-rail { background: rgba(255, 255, 255, 0.94); }
.tb-rail::-webkit-scrollbar { display: none; }
.tb-rail a {
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none;
	padding: 7px 12px; border-radius: 6px; border: 1px solid transparent;
	color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 700;
	transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.tb-rail a:hover { color: var(--text); background: var(--info-bg); }
.tb-rail a[aria-current="page"] { color: var(--acc-text); border-color: var(--border); background: var(--info-bg); }
.tb-rail a svg { width: 16px; height: 16px; }
.tb-rail .tb-railsep { width: 1px; background: var(--hair); margin: 4px 4px; flex: none; }

/* ---------- mise en page ---------- */
main { flex: 1; width: 100%; }
.tb-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
/* grands écrans : la page s'élargit avec la fenêtre au lieu de laisser des vides de chaque côté */
@media (min-width: 1400px) {
	.tb-wrap { max-width: min(1560px, 88vw); }
	.tb-band .tb-lead { max-width: 760px; }
	.tb-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
	.tb-cols { gap: 24px; }
}

.tb-view > .tb-wrap { padding-top: 30px; padding-bottom: 64px; }

/* Bandeau : toujours sombre, avec l'image d'accueil du portfolio et une pluie de caractères discrète */
.tb-band {
	position: relative; overflow: hidden; color: #E7EEF3;
	background: #0A131C url(../img/Home.png) center 30% / cover no-repeat;
	border-bottom: 1px solid rgba(2, 136, 209, 0.4);
}
.tb-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5, 9, 13, 0.94) 0%, rgba(5, 9, 13, 0.84) 46%, rgba(6, 22, 44, 0.62) 100%); }
.tb-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; }
.tb-bandgrid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; padding-top: 46px; padding-bottom: 46px; }
.tb-toolband { background-position: center 62%; }
.tb-toolband .tb-bandgrid { padding-top: 30px; padding-bottom: 32px; }
.tb-eyebrow { font: 700 12px var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: #4FC3F7; margin-bottom: 10px; }
.tb-band h1 { font-size: clamp(30px, 5vw, 48px); color: #fff; }
.tb-toolband h1 { font-size: clamp(26px, 4vw, 40px); }
.tb-band .tb-lead { color: #b9c6d1; max-width: 640px; margin-top: 12px; font-size: 17px; }
.tb-privacy {
	display: flex; gap: 12px; align-items: flex-start;
	margin-top: 22px; padding: 14px 16px; max-width: 720px;
	background: rgba(2, 136, 209, 0.14); border: 1px solid rgba(2, 136, 209, 0.4); border-radius: 6px; font-size: 15px; color: #dbe6ee;
}
.tb-privacy svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #4FC3F7; }
.tb-bandactions { margin-top: 18px; }
.tb-btn.onband { color: #4FC3F7; border-color: rgba(79, 195, 247, 0.45); }
.tb-btn.onband:hover { background: rgba(79, 195, 247, 0.12); border-color: #4FC3F7; }

.tb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; margin-bottom: 14px; color: #8fa1af; }
.tb-crumbs a { color: #4FC3F7; text-decoration: none; }
.tb-crumbs a:hover { text-decoration: underline; }
.tb-crumbs [aria-current] { color: #dbe6ee; }

/* Cadre à coins, comme le portrait de la page d'accueil du portfolio */
.tb-heroart { position: relative; width: 190px; height: 190px; display: grid; place-items: center; color: #4FC3F7; }
.tb-heroart::before, .tb-heroart::after { content: ''; position: absolute; width: 26px; height: 26px; border: 2px solid rgba(79, 195, 247, 0.75); }
.tb-heroart::before { left: 0; top: 0; border-right: none; border-bottom: none; }
.tb-heroart::after { right: 0; bottom: 0; border-left: none; border-top: none; }
.tb-heroart svg { width: 104px; height: 104px; stroke-width: 1.2; }
.tb-heroart svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tb-draw 1.5s var(--ease) 0.15s forwards; }
.tb-heroart .tb-artcap { position: absolute; left: 10px; bottom: 8px; font: 700 10px var(--mono); letter-spacing: 0.14em; color: rgba(79, 195, 247, 0.75); }
.tb-heroart.grid4 { grid-template-columns: 1fr 1fr; gap: 6px; padding: 26px; place-items: center; }
.tb-heroart.grid4 svg { width: 50px; height: 50px; stroke-width: 1.4; }
@keyframes tb-draw { to { stroke-dashoffset: 0; } }

/* ---------- accueil ---------- */
.tb-search { position: relative; max-width: 460px; margin-bottom: 6px; }
.tb-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.tb-search .tb-input { padding-left: 40px; padding-right: 44px; }
.tb-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--hair); color: var(--dim); background: var(--panel2); }

.tb-group { margin-top: 30px; }
.tb-group h2 { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); padding-bottom: 10px; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: baseline; }
.tb-group h2 small { font: 700 12px var(--mono); letter-spacing: 0.08em; color: var(--acc-text); }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; perspective: 1000px; }
.tb-card {
	position: relative; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
	padding: 20px 18px 18px; border-radius: 6px; text-decoration: none; color: var(--text);
	background: var(--panel); border: 1px solid var(--hair); border-top: 2px solid var(--border);
	transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
	transform-style: preserve-3d; will-change: transform;
}
.tb-card:hover { border-color: var(--acc); box-shadow: var(--shadow); }
.tb-card svg { width: 28px; height: 28px; color: var(--acc-text); }
.tb-card h3 { font-size: 19px; }
.tb-card p { color: var(--dim); font-size: 14.5px; }
.tb-card .tb-go { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--acc-text); font-weight: 700; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 6px; }
.tb-card .tb-go svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.tb-card:hover .tb-go svg { transform: translateX(4px); }
/* reflet discret qui suit le pointeur */
.tb-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 60%); }
[data-theme="light"] .tb-glare { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(2, 136, 209, 0.05) 0%, transparent 60%); }
.tb-card:hover .tb-glare { opacity: 1; }

/* ---------- vue d'un outil ---------- */
.tb-tool { display: grid; gap: 18px; }
.tb-panel { background: var(--panel); border: 1px solid var(--hair); border-radius: 6px; padding: 20px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tb-panel > h2 { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc-text); margin-bottom: 14px; }
.tb-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tb-stack { display: grid; gap: 14px; }
.tb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tb-dim { color: var(--dim); }
.tb-small { font-size: 14px; }

.tb-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hair); }
.tb-pager a { display: grid; gap: 3px; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--hair); background: var(--panel); text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s var(--ease); }
.tb-pager a:hover { border-color: var(--acc); transform: translateY(-2px); }
.tb-pager a.next { text-align: right; grid-column: 2; }
.tb-pager a.all { grid-column: 1 / -1; text-align: center; }
.tb-pager small { font: 700 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc-text); }
.tb-pager strong { font: 400 18px oswald, sans-serif; letter-spacing: 0.02em; }

details.tb-more { border: 1px solid var(--hair); border-radius: 6px; background: var(--panel); }
details.tb-more > summary { cursor: pointer; padding: 13px 16px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
details.tb-more > summary::-webkit-details-marker { display: none; }
details.tb-more > summary::before { content: '+'; font-family: var(--mono); color: var(--acc-text); width: 14px; }
details.tb-more[open] > summary::before { content: '-'; }
details.tb-more > div { padding: 0 16px 16px 38px; color: var(--dim); font-size: 15px; display: grid; gap: 9px; animation: tb-fade 0.25s var(--ease); }
details.tb-more ul, .tb-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* ---------- formulaires ---------- */
label.tb-label, .tb-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.tb-input, .tb-select, .tb-textarea {
	width: 100%; padding: 11px 13px; border-radius: 6px;
	background: var(--bg2); color: var(--text);
	border: 1px solid var(--hair); font: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.tb-input:focus, .tb-select:focus, .tb-textarea:focus { border-color: var(--acc); outline: none; box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.22); }
.tb-input.mono, .tb-textarea.mono { font-family: var(--mono); font-size: 15px; }
.tb-textarea { min-height: 110px; resize: vertical; }
.tb-inputwrap { position: relative; }
.tb-inputwrap .tb-input { padding-right: 96px; }
.tb-inputwrap .tb-inside { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.tb-hint { font-size: 13.5px; color: var(--dim); margin-top: 7px; }

.tb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 16px; border-radius: 6px; cursor: pointer;
	background: var(--acc); color: var(--on-acc, #fff); border: 1px solid var(--acc);
	font: 700 14px lato, sans-serif; letter-spacing: 0.02em; text-decoration: none;
	transition: filter 0.15s, background 0.15s, border-color 0.15s, transform 0.1s;
}
.tb-btn:hover { filter: brightness(1.12); }
.tb-btn:active { transform: translateY(1px) scale(0.985); }
.tb-btn[disabled] { opacity: 0.5; cursor: not-allowed; filter: none; }
.tb-btn svg { width: 16px; height: 16px; }
.tb-btn.ghost { background: transparent; color: var(--acc-text); border-color: var(--border); }
.tb-btn.ghost:hover { background: var(--info-bg); filter: none; border-color: var(--acc); }
.tb-btn.small { padding: 6px 11px; font-size: 13px; }

.tb-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 15px; }
.tb-check input { width: 18px; height: 18px; accent-color: var(--acc); margin: 0; }
.tb-range { width: 100%; accent-color: var(--acc); }
.tb-rangehead { display: flex; justify-content: space-between; align-items: baseline; }
.tb-rangehead output { font: 700 18px var(--mono); color: var(--acc-text); }

.tb-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.tb-tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--dim); padding: 10px 14px; font: 700 14px lato, sans-serif; cursor: pointer; margin-bottom: -1px; transition: color 0.15s, border-color 0.2s; }
.tb-tab:hover { color: var(--text); }
.tb-tab[aria-selected="true"] { color: var(--acc-text); border-bottom-color: var(--acc); }

.tb-drop {
	display: grid; place-items: center; gap: 10px; text-align: center;
	padding: 34px 18px; border: 2px dashed var(--border); border-radius: 6px;
	background: var(--bg2); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.2s var(--ease);
}
.tb-drop:hover, .tb-drop.over { border-color: var(--acc); background: var(--info-bg); }
.tb-drop.over { transform: scale(1.01); }
.tb-drop svg { width: 34px; height: 34px; color: var(--acc-text); transition: transform 0.25s var(--ease); }
.tb-drop:hover svg, .tb-drop.over svg { transform: translateY(-4px); }
.tb-drop strong { font-size: 17px; }

/* ---------- résultats ---------- */
.tb-note { display: flex; gap: 11px; padding: 12px 14px; border-radius: 6px; font-size: 15px; border: 1px solid var(--hair); background: var(--panel2); }
.tb-note::before { content: ''; flex: none; width: 4px; border-radius: 2px; background: var(--acc); }
.tb-note.ok { background: var(--ok-bg); border-color: transparent; } .tb-note.ok::before { background: var(--ok); }
.tb-note.warn { background: var(--warn-bg); border-color: transparent; } .tb-note.warn::before { background: var(--warn); }
.tb-note.bad { background: var(--bad-bg); border-color: transparent; } .tb-note.bad::before { background: var(--bad); }
.tb-note.info { background: var(--info-bg); border-color: transparent; }

.tb-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.tb-meter span { height: 8px; border-radius: 4px; background: var(--hair); transition: background 0.3s; }
.tb-meter[data-level="0"] span:nth-child(-n+1) { background: var(--bad); }
.tb-meter[data-level="1"] span:nth-child(-n+2) { background: var(--bad); }
.tb-meter[data-level="2"] span:nth-child(-n+3) { background: var(--warn); }
.tb-meter[data-level="3"] span:nth-child(-n+4) { background: var(--ok); }
.tb-meter[data-level="4"] span { background: var(--ok); }
.tb-verdict { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tb-verdict strong { font: 400 26px oswald, sans-serif; letter-spacing: 0.03em; }
.tb-verdict[data-level="0"] strong, .tb-verdict[data-level="1"] strong { color: var(--bad); }
.tb-verdict[data-level="2"] strong { color: var(--warn); }
.tb-verdict[data-level="3"] strong, .tb-verdict[data-level="4"] strong { color: var(--ok); }

.tb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb-table th, .tb-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tb-table th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.tb-table tr:last-child td { border-bottom: none; }
.tb-table td.num { font-family: var(--mono); white-space: nowrap; }
.tb-table .sub { display: block; color: var(--dim); font-size: 13.5px; }
.tb-scroll { overflow-x: auto; }

.tb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 7px 11px; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); max-width: 100%; }
.tb-chip b { font: 700 15px var(--mono); overflow-wrap: anywhere; }
.tb-chip span { font-size: 12.5px; color: var(--dim); }
button.tb-chip { cursor: pointer; color: var(--text); font: 400 13.5px var(--mono); overflow-wrap: anywhere; text-align: left; }
button.tb-chip.on { border-color: var(--acc); background: var(--info-bg); }
.tb-chip.bad { border-color: var(--bad); } .tb-chip.bad span { color: var(--bad); }
.tb-chip.warn { border-color: var(--warn); } .tb-chip.warn span { color: var(--warn); }
.tb-chip.ok { border-color: var(--ok); } .tb-chip.ok span { color: var(--ok); }

.tb-output {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 16px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--border);
}
.tb-output .value { flex: 1 1 240px; font: 700 clamp(17px, 2.6vw, 23px) var(--mono); overflow-wrap: anywhere; line-height: 1.4; animation: tb-fade 0.25s var(--ease); }
.tb-output .value .d { color: var(--acc-text); } .tb-output .value .s { color: var(--warn); }
.tb-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; margin: 0; }
.tb-kv dt { color: var(--dim); } .tb-kv dd { margin: 0; overflow-wrap: anywhere; }
.tb-big { font: 400 30px oswald, sans-serif; }

.tb-toast {
	position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
	background: var(--acc); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 14px;
	opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease); z-index: 70; box-shadow: var(--shadow);
}
.tb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer.tb-foot { border-top: 1px solid var(--hair); padding: 22px 0; color: var(--dim); font-size: 14px; background: var(--panel); }
.tb-footgrid { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; }
.tb-footlinks { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- apparitions ---------- */
@keyframes tb-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tb-reveal { opacity: 0; }
.tb-reveal.in { animation: tb-rise 0.55s var(--ease) both; animation-delay: var(--delay, 0s); }
.tb-band .tb-bandgrid > div:first-child > * { animation: tb-rise 0.6s var(--ease) both; }
.tb-band .tb-bandgrid > div:first-child > *:nth-child(2) { animation-delay: 0.06s; }
.tb-band .tb-bandgrid > div:first-child > *:nth-child(3) { animation-delay: 0.12s; }
.tb-band .tb-bandgrid > div:first-child > *:nth-child(4) { animation-delay: 0.18s; }
.tb-heroart { animation: tb-fade 0.7s var(--ease) both; }

/* Passage d'une vue à l'autre (navigateurs récents) */
::view-transition-old(root) { animation: 0.18s var(--ease) both tb-vt-out; }
::view-transition-new(root) { animation: 0.28s var(--ease) both tb-vt-in; }
@keyframes tb-vt-out { to { opacity: 0; } }
@keyframes tb-vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- outil photo ---------- */
.ph-head { align-items: flex-start; flex-wrap: nowrap; gap: 14px; }
.ph-preview { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hair); flex: none; background: var(--bg2); }
.ph-name { overflow-wrap: anywhere; font-size: 17px; }
.ph-findings { margin: 0; display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 0; border-top: 1px solid var(--hair); }
.ph-findings dt, .ph-findings dd { margin: 0; padding: 11px 10px; border-bottom: 1px solid var(--hair); }
.ph-findings dt { font-weight: 700; padding-left: 14px; border-left: 4px solid var(--warn); }
.ph-findings dt.ph-bad { border-left-color: var(--bad); }

/* ---------- documents (aperçu du contenu) ---------- */
.dc-icon { width: 96px; height: 96px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); color: var(--acc-text); }
.dc-icon svg { width: 34px; height: 34px; }
.dc-preview { display: grid; gap: 18px; padding-top: 6px; border-top: 1px solid var(--hair); }
.dc-frame { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--hair); border-radius: 6px; background: #fff; }
.dc-text { display: grid; gap: 10px; font-size: 15.5px; line-height: 1.55; max-width: 76ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-text h2 { font-size: 22px; margin-top: 8px; } .dc-text h3 { font-size: 18px; margin-top: 6px; } .dc-text h4 { font-size: 16px; }
.dc-text ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.dc-text p { margin: 0; }
.dc-del { color: var(--bad); text-decoration: line-through; background: var(--bad-bg); border-radius: 3px; padding: 0 2px; }
.dc-ins { color: var(--ok); text-decoration: underline; }
.dc-hidden { background: var(--warn-bg); color: inherit; outline: 1px dashed var(--warn); border-radius: 3px; padding: 0 3px; }
.dc-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 10px; font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--bad-bg); color: var(--bad); vertical-align: middle; }
.dc-tabs .tb-btn.on { border-color: var(--acc); background: var(--info-bg); }
.dc-sheetwrap { max-height: 60vh; overflow: auto; border: 1px solid var(--hair); border-radius: 6px; }
.dc-sheet { font-size: 14px; }
.dc-sheet th { position: sticky; top: 0; background: var(--panel2); z-index: 1; }
.dc-sheet th.num, .dc-sheet td:first-child { font-family: var(--mono); color: var(--dim); }
.dc-sheet td { white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.dc-sheet tr.dc-hidrow td, .dc-sheet tr.dc-hidrow th { background: var(--warn-bg); color: var(--warn); }
.dc-sheet th.dc-hidcol { color: var(--warn); }
.dc-slide { padding: 12px 14px; border: 1px solid var(--hair); border-radius: 6px; background: var(--panel2); }
.dc-slide.hidden-slide { border-color: var(--bad); }
.dc-slide h3 { margin: 0 0 6px; font-size: 16px; }
.dc-notes { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--warn); background: var(--warn-bg); border-radius: 0 6px 6px 0; }
.dc-notes strong { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn); margin-bottom: 4px; }
.dc-invisible { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--bad); border-radius: 6px; background: var(--bad-bg); }
.dc-invisible h3 { margin: 0; font-size: 17px; color: var(--bad); }
.dc-inv h4 { margin: 0 0 4px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.dc-inv p { margin: 0 0 4px; overflow-wrap: anywhere; }
.dc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.dc-gallery figure { margin: 0; display: grid; gap: 4px; }
.dc-gallery img { width: 100%; height: 120px; object-fit: contain; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); }
.dc-gallery figcaption { overflow-wrap: anywhere; }

/* Page « comme dans le logiciel » : fond blanc et texte noir dans les deux thèmes, comme une feuille imprimée */
.dc-pagewrap { overflow-x: auto; padding: 18px; background: #2a3540; border-radius: 6px; }
[data-theme="light"] .dc-pagewrap { background: #c9cfd6; }
.dc-page { box-sizing: border-box; max-width: 100%; margin: 0 auto; background: #fff; color: #000; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28); line-height: 1.18; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; overflow-wrap: anywhere; white-space: pre-wrap; tab-size: 8; display: flex; flex-direction: column; }
.dc-page a { color: #0563C1; }
.dc-pagebody { flex: 1; }
.dc-pagehead, .dc-pagefoot { color: #444; font-size: 0.9em; }
.dc-pagehead { margin: -1.5em 0 1.5em; padding-bottom: 0.3em; border-bottom: 1px dashed #bbb; }
.dc-pagefoot { margin: 1.5em 0 -1.5em; padding-top: 0.3em; border-top: 1px dashed #bbb; }
.dc-par { margin: 0 0 8pt; font-weight: inherit; }
.dc-par.dc-h { line-height: 1.15; margin: 12pt 0 4pt; font-family: inherit; letter-spacing: 0; text-transform: none; }
.dc-marker { display: inline-block; text-indent: 0; }
.dc-img { max-width: 100%; height: auto; vertical-align: text-bottom; }
.dc-tblwrap { overflow-x: auto; margin: 0 0 8pt; }
.dc-tbl { border-collapse: collapse; max-width: 100%; table-layout: fixed; }
.dc-tbl td, .dc-tbl th { padding: 2pt 5pt; vertical-align: top; text-align: left; font-weight: inherit; }
.dc-tbl.bordered td, .dc-tbl.bordered th { border: 1px solid #000; }
.dc-tbl .dc-par:last-child { margin-bottom: 0; }
.dc-pagebreak { display: flex; align-items: center; gap: 10px; margin: 14pt 0; color: #888; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.dc-pagebreak::before, .dc-pagebreak::after { content: ""; flex: 1; border-top: 1px dashed #999; }
.dc-fnref { color: #0563C1; font-size: 0.7em; }
.dc-footnotes { margin-top: 1.5em; padding-top: 0.4em; border-top: 1px solid #000; width: 40%; min-width: 180px; font-size: 0.85em; }
.dc-fn { display: flex; gap: 4px; }
.dc-fn > sup { flex: none; }
.dc-fn .dc-par { margin: 0; }
.dc-page .dc-del { background: #fde7e9; color: #b3261e; }
.dc-page .dc-ins { color: #0a7a2f; }
.dc-page .dc-hidden { background: #fff3cd; outline-color: #b8860b; }
/* feuilles de calcul : cellules mises en forme */
.dc-sheet { border-collapse: collapse; font: 11pt Calibri, Carlito, "Segoe UI", Arial, sans-serif; background: #fff; color: #000; }
.dc-sheet td, .dc-sheet th { border: 1px solid #d4d4d4; padding: 2px 6px; }
.dc-sheet thead th, .dc-sheet th.num { background: #f3f3f3; color: #444; font-weight: 400; text-align: center; font-family: var(--mono); font-size: 12px; }
.dc-sheet thead th { position: sticky; top: 0; z-index: 1; }
.dc-sheet td { white-space: pre; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.dc-sheet tr.dc-hidrow td, .dc-sheet tr.dc-hidrow th { background: #fff3cd; color: #8a6d00; }
.dc-sheet th.dc-hidcol { color: #b8860b; }
/* diapositives : formes positionnées, texte proportionnel à la largeur (cqw) */
.dc-slidebox { container-type: inline-size; position: relative; width: 100%; max-width: 960px; overflow: hidden; border: 1px solid var(--hair); border-radius: 4px; color: #000; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; line-height: 1.2; }
.dc-shape { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; padding: 0.6cqw 0.9cqw; }
.dc-shape > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dc-spara { margin: 0 0 0.4cqw; overflow-wrap: anywhere; white-space: pre-wrap; }
.dc-stbl { border-collapse: collapse; width: 100%; }
.dc-stbl td { border: 1px solid #999; padding: 0.3cqw 0.6cqw; }
/* carte d'un fichier : bouton « retirer » en haut à droite */
.ph-card { position: relative; padding-top: 44px; }
.ph-remove { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* ---------- outil chiffrer ---------- */
.cb-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 6px; background: var(--bg2); }
.cb-file > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cb-file svg { flex: none; color: var(--acc-text); }
.cb-name { overflow-wrap: anywhere; }
.cb-or { margin: -4px 0; text-align: center; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.cb-block { min-height: 150px; font-size: 13px; line-height: 1.45; white-space: pre; overflow-x: auto; }
.cb-working { align-items: center; }
.cb-spin { width: 16px; height: 16px; flex: none; border: 2px solid var(--hair); border-top-color: var(--acc); border-radius: 50%; animation: cb-spin 0.8s linear infinite; }
@keyframes cb-spin { to { transform: rotate(360deg); } }

/* ---------- outil lien sûr ---------- */
.lk-input { min-height: 72px; font-family: var(--mono); font-size: 14px; }
.lk-parts dd.lk-host { font: 700 16px var(--mono); color: var(--acc-text); overflow-wrap: anywhere; }
.lk-parts dd.mono { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.lk-hops { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.lk-hop .lk-hopsite { font-family: var(--mono); overflow-wrap: anywhere; }
.lk-hop.lk-bad .lk-hopsite { color: var(--bad); } .lk-hop.lk-warn .lk-hopsite { color: var(--warn); }
.lk-follow h3 { margin: 0; font-size: 18px; }

/* ---------- outil envoyer un secret ---------- */
.sc-input { min-height: 120px; }
.sc-count { margin: -4px 0 0; text-align: right; }
.sc-opts { gap: 14px; }
.sc-link { font-size: 13.5px; }
.sc-ready h3 { margin: 0; font-size: 20px; }
.sc-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; }
.sc-read h3 { margin: 0; font-size: 20px; }

/* ---------- outil « que sait ce site de moi » ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ex-card { display: flex; flex-direction: column; gap: 12px; }
.ex-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.ex-title svg { color: var(--acc-text); flex: none; }
.ex-kv { grid-template-columns: minmax(120px, auto) 1fr; font-size: 14.5px; }
.ex-kv dt { display: flex; align-items: baseline; gap: 8px; }
.ex-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; position: relative; top: -1px; }
.ex-dot.warn { background: var(--warn); } .ex-dot.bad { background: var(--bad); }
.ex-fp { font: 700 17px var(--mono); letter-spacing: 0.08em; color: var(--acc-text); }
.ex-explain { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hair); display: grid; gap: 6px; font-size: 14px; color: var(--dim); }
.ex-explain p { margin: 0; } .ex-explain strong { color: var(--text); }

/* ---------- questionnaire ---------- */
.qz-head { display: grid; gap: 8px; }
.qz-meta { justify-content: space-between; align-items: center; }
.qz-chip { display: inline-block; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--hair); background: var(--bg2); color: var(--dim); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.qz-bar { height: 8px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.qz-bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--acc); transition: width 0.35s var(--ease); }
.qz-bar.bad span { background: var(--bad); } .qz-bar.warn span { background: var(--warn); } .qz-bar.ok span { background: var(--ok); }
.qz-question { margin: 4px 0 0; font-size: 21px; line-height: 1.3; text-wrap: balance; }
.qz-question:focus { outline: none; }
.qz-options { display: grid; gap: 8px; }
.qz-opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 11px 13px; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); color: var(--text); font: 400 15px lato, sans-serif; line-height: 1.4; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.qz-opt:hover { border-color: var(--acc); }
.qz-opt.on { border-color: var(--acc); background: var(--info-bg); }
.qz-opt:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.qz-letter { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair); font: 700 12px var(--mono); color: var(--dim); }
.qz-opt.on .qz-letter { background: var(--acc); border-color: var(--acc); color: #fff; }
.qz-why { padding: 11px 14px; border-radius: 6px; border-left: 4px solid var(--warn); background: var(--warn-bg); }
.qz-why.bad { border-left-color: var(--bad); background: var(--bad-bg); } .qz-why.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.qz-why p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.qz-whylabel { font-size: 13px; color: var(--dim); }
.qz-nav { justify-content: space-between; }
.qz-nav .small { margin-left: auto; }
.qz-score { color: var(--text); }
.qz-themes { margin: 0; display: grid; gap: 10px; }
.qz-themes dt { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.qz-themes dt b { font-family: var(--mono); font-weight: 400; color: var(--dim); }
.qz-themes dt b.bad { color: var(--bad); } .qz-themes dt b.warn { color: var(--warn); } .qz-themes dt b.ok { color: var(--ok); }
.qz-themes dd { margin: 4px 0 0; }
.qz-prios { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
.qz-prios li { line-height: 1.5; }
.qz-prios li::marker { font-weight: 700; color: var(--acc-text); }
.qz-prios strong { display: block; }
.qz-prios p { margin: 2px 0 8px; }

/* ---------- bilan de sécurité d'un site ---------- */
.st-summary .st-h { margin: 6px 0 0; font-size: 17px; }
.st-score { color: var(--text); }
.st-prios { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.st-prios li::marker { font-weight: 700; color: var(--acc-text); }
.st-prios strong { display: block; }
.st-prios p { margin: 2px 0 0; color: var(--dim); font-size: 14.5px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.st-group { display: flex; flex-direction: column; gap: 10px; }
.st-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.st-why { margin: 0; font-size: 14px; }
.st-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-check { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--hair); }
.st-checkbody { display: grid; gap: 4px; min-width: 0; font-size: 14.5px; }
.st-checkbody strong { font-weight: 600; }
.st-fix { margin: 0; color: var(--dim); font-size: 14px; }
.st-raw summary { font-size: 12.5px; color: var(--dim); cursor: pointer; }
.st-raw code { display: block; margin-top: 4px; font-size: 12.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 5px; background: var(--dim); }
.st-dot.ok { background: var(--ok); } .st-dot.warn { background: var(--warn); } .st-dot.bad { background: var(--bad); } .st-dot.info { background: var(--acc); }
.st-g-bad .st-title { color: var(--bad); } .st-g-warn .st-title { color: var(--warn); }

/* ---------- outil usurpation de domaine ---------- */
.dm-score { font-family: var(--mono); color: var(--dim); }
.dm-meter { height: 8px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.dm-meter span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--acc); transition: width 0.4s var(--ease); }
.dm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dm-card { display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--dim); }
.dm-card.dm-ok { border-left-color: var(--ok); } .dm-card.dm-warn { border-left-color: var(--warn); } .dm-card.dm-bad { border-left-color: var(--bad); } .dm-card.dm-info { border-left-color: var(--acc); }
.dm-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; }
.dm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); flex: none; }
.dm-dot.dm-ok { background: var(--ok); } .dm-dot.dm-warn { background: var(--warn); } .dm-dot.dm-bad { background: var(--bad); } .dm-dot.dm-info { background: var(--acc); }
.dm-findings { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.dm-f { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.dm-f svg { flex: none; margin-top: 3px; color: var(--dim); }
.dm-f.dm-ok svg { color: var(--ok); } .dm-f.dm-warn svg { color: var(--warn); } .dm-f.dm-bad svg { color: var(--bad); }
.dm-raw summary { font-size: 13px; color: var(--dim); cursor: pointer; }
.dm-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; margin: 6px 0 0; }
.dm-todos h3 { margin: 0; font-size: 18px; }
.dm-todolist { margin: 0; padding-left: 22px; display: grid; gap: 16px; }
.dm-todolist li::marker { font-weight: 700; color: var(--acc-text); }
.dm-todo strong { display: block; font-size: 16px; }
.dm-todo p { margin: 4px 0 8px; line-height: 1.5; }
.dm-rec { gap: 4px 12px; }
.dm-rec dd { display: grid; gap: 6px; justify-items: start; }

/* ---------- outil en-têtes d'e-mail ---------- */
.mh-input { min-height: 160px; font-size: 13px; line-height: 1.4; white-space: pre; overflow: auto; }
.mh-card h3 { margin: 0; font-size: 18px; }
.mh-cols { align-items: start; }
.mh-kv { grid-template-columns: minmax(130px, auto) 1fr; font-size: 14.5px; }
.mh-kv dd { overflow-wrap: anywhere; }
.mh-domain { font-weight: 700; color: var(--text); }
.mh-domain.on { color: var(--acc-text); font-size: 1.1em; }
.mh-auth { padding: 10px 12px; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); }
.mh-auth.mh-ok { background: var(--ok-bg); } .mh-auth.mh-bad { background: var(--bad-bg); } .mh-auth.mh-warn { background: var(--warn-bg); } .mh-auth.mh-info { background: var(--info-bg); }
.mh-authhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.mh-authhead strong { font-family: var(--mono); letter-spacing: 0.06em; }
.mh-result { font-family: var(--mono); text-transform: uppercase; font-size: 13px; }
.mh-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; position: relative; top: -1px; }
.mh-dot.ok { background: var(--ok); } .mh-dot.warn { background: var(--warn); } .mh-dot.bad { background: var(--bad); } .mh-dot.info { background: var(--acc); }
.mh-auth .tb-hint { margin-top: 4px; }
.mh-hops { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.mh-hop.first { padding-left: 8px; border-left: 3px solid var(--acc); }
.mh-hopline { overflow-wrap: anywhere; line-height: 1.45; }
.mh-hopfrom { font-weight: 700; }
.mh-delay { font-family: var(--mono); } .mh-delay.warn { color: var(--warn); font-weight: 700; }
.mh-first { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 10px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--info-bg); color: var(--acc-text); }
.mh-findings li.mh-f-bad { color: var(--bad); } .mh-findings li.mh-f-warn { color: var(--warn); } .mh-findings li.mh-f-ok { color: var(--ok); }

/* ---------- outil jeton JWT ---------- */
.jw-input { min-height: 96px; font-size: 13px; overflow-wrap: anywhere; }
.jw-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.jw-card h3 { margin: 0; font-size: 17px; }
.jw-json { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 40vh; overflow: auto; }
.jw-dates { font-size: 13.5px; }
.jw-sig { display: block; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; color: var(--dim); }
.jw-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jw-f { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.jw-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--dim); }
.jw-dot.ok { background: var(--ok); } .jw-dot.warn { background: var(--warn); } .jw-dot.bad { background: var(--bad); } .jw-dot.info { background: var(--acc); }
.jw-key { min-height: 56px; font-size: 13px; }
.jw-key.jw-masked { -webkit-text-security: disc; color: transparent; text-shadow: 0 0 7px var(--text); }

/* ---------- outil empreintes ---------- */
.hs-algos { gap: 8px 18px; }
.hs-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 6px; background: var(--bg2); }
.hs-file > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.hs-file svg { flex: none; color: var(--acc-text); }
.hs-name { overflow-wrap: anywhere; }
.hs-bar { height: 8px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.hs-bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--acc); transition: width 0.2s linear; }
.hs-table td:first-child { white-space: nowrap; width: 1%; }
.hs-digest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hs-digest code { font: 14px var(--mono); overflow-wrap: anywhere; color: var(--acc-text); flex: 1 1 260px; }
.hs-key { padding: 10px 12px; border-left: 3px solid var(--acc); background: var(--info-bg); border-radius: 0 6px 6px 0; }

/* ---------- calculateur CVSS ---------- */
.cv-main strong { font-variant-numeric: tabular-nums; }
.cv-sevline { margin: -4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.cv-sev { font: 700 15px lato, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.cv-none .cv-sev { color: var(--dim); } .cv-low .cv-sev { color: var(--ok); } .cv-medium .cv-sev { color: var(--warn); } .cv-high .cv-sev, .cv-critical .cv-sev { color: var(--bad); }
.cv-chip b { font-variant-numeric: tabular-nums; }
.cv-chip.cv-low b { color: var(--ok); } .cv-chip.cv-medium b { color: var(--warn); } .cv-chip.cv-high b, .cv-chip.cv-critical b { color: var(--bad); }
.cv-vector { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.cv-group { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--hair); }
.cv-group:first-of-type { border-top: none; padding-top: 0; }
.cv-head { display: flex; align-items: baseline; gap: 8px; }
.cv-head code { font-size: 12px; }
.cv-help { margin: 0; }
.cv-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-opt { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); color: var(--text); font: 400 14px lato, sans-serif; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.cv-opt b { font: 700 12px var(--mono); color: var(--dim); }
.cv-opt:hover { border-color: var(--acc); }
.cv-opt.on { border-color: var(--acc); background: var(--info-bg); }
.cv-opt.on b { color: var(--acc-text); }
.cv-opt:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.cv-section h4 { margin: 8px 0 0; font-size: 15px; }

/* ---------- outil sous-réseaux ---------- */
.sn-head { font-size: clamp(18px, 3vw, 24px); overflow-wrap: anywhere; }
.sn-kv { grid-template-columns: minmax(150px, auto) 1fr; align-items: center; }
.sn-val { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sn-copy { padding: 3px 7px; }
.sn-binwrap { display: grid; gap: 8px; }
.sn-bin { font: 15px var(--mono); letter-spacing: 0.06em; overflow-x: auto; white-space: nowrap; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); }
.sn-group { display: inline-block; }
.sn-bit { font-weight: 400; }
.sn-bit.net { color: var(--acc-text); font-weight: 700; }
.sn-bit.host { color: var(--dim); }
.sn-sep { font-style: normal; color: var(--dim); padding: 0 3px; }
.sn-table td.mono, .sn-table td.tb-dim { white-space: nowrap; }
.sn-tablewrap { max-height: 50vh; overflow: auto; }

/* ---------- outil Modbus ---------- */
.mb-input { min-height: 72px; font-size: 14px; letter-spacing: 0.04em; }
.mb-opts { gap: 14px; }
button.mb-ex { cursor: pointer; text-align: left; }
.mb-meta { gap: 8px; }
.mb-check.ok { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.mb-check.bad { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.mb-plain h3, .mb-plain + .tb-panel h3 { margin: 0; font-size: 18px; }
.mb-table { font-size: 13.5px; }
.mb-table th { white-space: nowrap; }
.mb-table td.mono { font-family: var(--mono); white-space: nowrap; }
.mb-bytes { letter-spacing: 0.06em; }
.mb-bin { letter-spacing: 0.08em; }
.mb-meaning { min-width: 220px; }
.mb-table tr.mb-ok td { background: var(--ok-bg); }
.mb-table tr.mb-bad td { background: var(--bad-bg); color: var(--bad); }
.mb-pair { display: grid; gap: 2px; font-size: 13px; }
.mb-pair small { color: var(--dim); }
.mb-coils { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-coil { display: inline-grid; justify-items: center; gap: 2px; min-width: 58px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); font-family: var(--mono); }
.mb-coil b { font-size: 14px; }
.mb-coil small { font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.mb-coil.on { border-color: var(--ok); background: var(--ok-bg); } .mb-coil.on small { color: var(--ok); }
.mb-warnings li { color: var(--warn); }

/* ---------- atelier du testeur ---------- */
.wk-area { min-height: 110px; }
.wk-out { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; min-height: 44px; }
.wk-out.bad { border-color: var(--bad); }
.wk-marked mark { background: var(--warn-bg); color: inherit; outline: 1px solid var(--warn); border-radius: 2px; }
.wk-groups td, .wk-groups th { white-space: pre-wrap; overflow-wrap: anywhere; }
.wk-diff .wk-add { color: var(--ok); background: var(--ok-bg); display: block; }
.wk-diff .wk-del { color: var(--bad); background: var(--bad-bg); display: block; }
.wk-side { border-collapse: collapse; width: 100%; font: 13px var(--mono); }
.wk-side td { padding: 2px 8px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; border-bottom: 1px solid var(--hair); }
.wk-side .wk-n { width: 1%; color: var(--dim); text-align: right; user-select: none; }
.wk-side .wk-cell { width: 49%; }
.qr-snap { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--hair); display: block; }
.wk-chg { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.wk-side .wk-del { background: var(--bad-bg); } .wk-side .wk-add { background: var(--ok-bg); } .wk-side .wk-empty { background: var(--panel2); }
.wk-h { margin: 6px 0 0; font-size: 16px; }
.wk-kv dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
button.wk-chip { cursor: pointer; color: var(--text); }
button.wk-chip b { font-weight: 400; font-size: 13px; }
button.wk-chip:hover { border-color: var(--acc); }
.ph-findings dd { display: grid; gap: 6px; overflow-wrap: anywhere; }
.ph-findings .tb-hint { margin-top: 0; }
.ph-value { font-family: var(--mono); font-size: 14.5px; }
.ph-thumb { max-width: 160px; max-height: 160px; border-radius: 6px; border: 1px solid var(--hair); }
.ph-cell { overflow-wrap: anywhere; }

/* ---------- outil QR code ---------- */
.qr-canvas { width: 100%; max-width: 330px; height: auto; image-rendering: pixelated; border-radius: 6px; border: 1px solid var(--hair); justify-self: center; background: #fff; }
.qr-content { margin: 0; padding: 12px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--hair); font: 14px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.qr-site { font: 700 clamp(20px, 3.4vw, 28px) var(--mono); overflow-wrap: anywhere; color: var(--text); }
.qr-findings li.qr-f-bad { color: var(--bad); }
.qr-findings li.qr-f-warn { color: var(--warn); }
.qr-findings li.qr-f-info { color: var(--dim); }
.qr-color { width: 64px; height: 38px; padding: 2px; border-radius: 6px; border: 1px solid var(--hair); background: var(--bg2); cursor: pointer; }
.qr-video { width: 100%; max-height: 60vh; border-radius: 6px; background: #000; }

/* ---------- petits écrans ---------- */
@media (max-width: 860px) {
	.tb-sitenav { display: none; }
	.tb-brand { margin-right: auto; }
	.tb-heroart { display: none; }
	.tb-bandgrid { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 34px; }
}
@media (max-width: 760px) {
	.tb-view > .tb-wrap { padding-top: 22px; padding-bottom: 48px; }
	.tb-cols { grid-template-columns: 1fr; }
	.tb-panel { padding: 16px; }
	.tb-brand { font-size: 16px; }
	.tb-back span { display: none; }
	.tb-pager { grid-template-columns: 1fr; }
	.tb-pager a.next { grid-column: 1; text-align: left; }
	.tb-kbd { display: none; }
}
@media (max-width: 620px) {
	.ph-findings { grid-template-columns: 1fr; }
	.ph-findings dt { border-bottom: none; padding-bottom: 2px; }
	.ph-preview { width: 72px; height: 72px; }
	.dc-pagewrap { padding: 8px; }
	.ph-remove span { display: none; }
	.ex-grid { grid-template-columns: 1fr; }
	.ex-kv { grid-template-columns: 1fr; gap: 2px 0; }
	.ex-kv dd { margin-bottom: 6px; }
	.qz-question { font-size: 18px; }
	.qz-nav { flex-direction: column; align-items: stretch; }
	.qz-nav .small { margin-left: 0; }
	.st-grid { grid-template-columns: 1fr; }
	.dm-grid { grid-template-columns: 1fr; }
	.sn-kv { grid-template-columns: 1fr; gap: 2px 0; }
	.sn-kv dd { margin-bottom: 8px; }
	.sn-bin { font-size: 13px; }
	.wk-side .wk-cell { width: auto; }
	.mh-kv { grid-template-columns: 1fr; gap: 2px 0; }
	.mh-kv dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
	html { scroll-behavior: auto; }
	.tb-rain { display: none; }
	.cb-spin { animation: none; border-top-color: var(--hair); }
	.tb-reveal { opacity: 1; }
	.tb-heroart svg path { stroke-dashoffset: 0; }
}
@media print {
	.tb-bar, .tb-rail, .tb-foot, .tb-pager, .tb-btn, .tb-rain, .tb-search { display: none !important; }
	body { background: #fff; color: #000; }
	body::before { display: none; }
}
