/* Website Manager — interface (éditeur, validation, connexion).
   V2 (2026-11-05) : identité hotecode (05-documentation/DESIGN_SYSTEM.md) — encre #111111, blanc, crème #F7F5F0 pour la
   scène d'aperçu, Geist / Geist Mono, filets 1 px, rayons 6 / 10 px, aucune ombre décorative, mode clair uniquement.
   Les anciens noms de jetons (forest, copper) sont conservés et pointent vers l'encre : aucune règle existante ne change
   de structure. Le site du client (iframe d'aperçu) ne reçoit RIEN de cette feuille : il garde sa charte.
   Charte V3.1 (cuivre / forêt du Domaine) : _backup/avant-v2-20261105/ui/wm.css */
@font-face { font-family: 'Geist'; src: url('/ui/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/ui/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #F7F5F0; --panel: #ffffff; --line: #E5E5E2; --line-strong: #CFCFCF;
  --ink: #111111; --ink-soft: #5B5B60; --ink-faint: #85858A;
  --forest: #111111; --forest-soft: #F5F5F3; --copper: #111111; --copper-dark: #111111; --copper-soft: #F5F5F3;
  --hover: #EEEEEE;
  --ok: #1F7A3A; --ok-soft: #EEF7F0; --warn: #B54708; --warn-soft: #FDF6EC; --bad: #B42318; --bad-soft: #FDF1F0;
  --radius: 10px; --radius-sm: 6px;
  --shadow: none;
  --shadow-float: 0 12px 32px -12px rgba(17,17,17,.22);
  --font: 'Geist', ui-sans-serif, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --serif: 'Geist', ui-sans-serif, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
:focus-visible { outline: 3px solid rgba(167,95,51,.45); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--ink-faint); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn--primary:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.btn--forest { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn--danger { color: var(--bad); border-color: #e3b9b1; }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: rgba(31,35,30,.06); border-color: transparent; }
.btn--sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink-soft); }
.icon-btn:hover { background: rgba(31,35,30,.07); }
.link { background: none; border: 0; padding: 0; color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

/* ---------- barre supérieure */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--panel);
  border-bottom: 1px solid var(--line); min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1.15; margin-right: 8px; }
.brand__name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.brand__sub { font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.topbar__spacer { flex: 1; }
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
select.select { max-width: 220px; min-height: 40px; padding: 6px 34px 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: transparent; padding: 7px 12px; cursor: pointer; font-size: 13px; color: var(--ink-soft); min-height: 38px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.status.is-dirty .status__dot { background: var(--copper); }
.menu { position: relative; }
.menu__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: none; z-index: 30; }
.menu.is-open .menu__list { display: block; }
.menu__list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; }
.menu__list button:hover { background: var(--bg); }

/* ---------- éditeur */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100vh - 64px); }
.stage { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding: 18px; }
.frame-wrap { position: relative; background: #fff; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; transform-origin: top center; }
.frame-wrap iframe { display: block; border: 0; background: #fff; }
.stage__label { position: absolute; left: 18px; bottom: 10px; font-size: 12px; color: var(--ink-faint); }
.panel { background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.panel__head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.panel__head h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.panel__head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.panel__body { padding: 16px 20px 28px; display: grid; gap: 18px; align-content: start; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.group > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::after { content: "›"; transform: rotate(90deg); color: var(--ink-faint); font-size: 18px; }
.group[open] > summary::after { transform: rotate(-90deg); }
.group__list { border-top: 1px solid var(--line); }
.fbtn { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 14px; cursor: pointer; }
.fbtn:last-child { border-bottom: 0; }
.fbtn:hover { background: var(--bg); }
.fbtn__kind { flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.fbtn__txt { min-width: 0; flex: 1; }
.fbtn__label { display: block; font-size: 13px; color: var(--ink-soft); }
.fbtn__val { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--copper-soft); color: var(--copper-dark); white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--neutral { background: #ece8df; color: var(--ink-soft); }
.badge--forest { background: var(--forest-soft); color: var(--forest); }

.field { display: grid; gap: 8px; }
.field > label, .field__label { font-weight: 600; font-size: 14px; }
.hint { font-size: 13px; color: var(--ink-soft); margin: 0; }
textarea.input, input.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; resize: vertical; }
textarea.input:focus, input.input:focus, .rich:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(167,95,51,.18); }
.rich { min-height: 64px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; white-space: pre-wrap; }
.count { font-size: 12px; color: var(--ink-faint); text-align: right; }
.count.is-over { color: var(--bad); font-weight: 600; }
.toolbar { display: flex; gap: 6px; }
.tool { min-width: 38px; min-height: 36px; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; }
.tool[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.tool--i { font-style: italic; font-family: var(--serif); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--copper); }
.swatch--none { background: repeating-linear-gradient(45deg, #fff 0 5px, #eee 5px 10px); }
.was { font-size: 13px; color: var(--ink-soft); background: var(--bg); border-radius: var(--radius-sm); padding: 8px 10px; }
.was strong { color: var(--ink); font-weight: 600; }
.notice { border-radius: var(--radius); padding: 12px 14px; font-size: 14px; background: var(--forest-soft); color: var(--forest); }
.notice--warn { background: var(--warn-soft); color: #5e3d00; }
.notice--bad { background: var(--bad-soft); color: var(--bad); }

/* images */
.imgbox { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #e9e4d8; cursor: crosshair; }
.imgbox img { display: block; width: 100%; height: 100%; object-fit: cover; }
.imgbox__dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--copper), 0 2px 6px rgba(0,0,0,.35); pointer-events: none; }
.imgrow { display: flex; gap: 8px; flex-wrap: wrap; }
.range { width: 100%; accent-color: var(--copper); }
.gal { display: grid; gap: 8px; }
.gal__item { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; }
.gal__item img { width: 76px; height: 54px; object-fit: cover; border-radius: 4px; display: block; }
.gal__meta { min-width: 0; font-size: 13px; }
.gal__meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.gal__btns { display: flex; gap: 4px; }

/* médiathèque */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--copper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { border: 2px solid transparent; border-radius: 8px; padding: 0; background: #e9e4d8; cursor: pointer; overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile:hover, .tile:focus-visible { border-color: var(--copper); }
.tile[aria-pressed="true"] { border-color: var(--forest); }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--ink-soft); background: var(--bg); }
.drop.is-over { border-color: var(--copper); background: var(--copper-soft); }

/* modales, toasts, listes */
.modal-back { position: fixed; inset: 0; background: rgba(20,26,22,.45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal--wide { width: min(980px, 100%); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.modal__body { padding: 18px 20px; overflow-y: auto; display: grid; gap: 14px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 10px; z-index: 200; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--bad); }
.toast--ok { background: var(--ok); }
.list { display: grid; gap: 10px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--panel); display: grid; gap: 8px; }
.card__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.card h3 { font-size: 16px; }
.muted { color: var(--ink-soft); font-size: 13px; }
ul.summary { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- validation */
.admin { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 64px); }
.side { border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; }
.side__filters { padding: 12px; border-bottom: 1px solid var(--line); display: flex; gap: 6px; flex-wrap: wrap; }
.sub { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 14px 16px; cursor: pointer; }
.sub:hover { background: var(--bg); }
.sub[aria-current="true"] { background: var(--copper-soft); }
.sub > span { display: block; margin-top: 2px; }
.sub > span.sub__top { display: flex; margin-top: 0; }
.sub__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.sub__n { font-weight: 700; }
.main { overflow-y: auto; padding: 22px 26px 40px; }
.main h1 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.diff { width: 100%; border-collapse: collapse; font-size: 14px; }
.diff th, .diff td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.diff th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 600; }
.diff .old { color: var(--bad); text-decoration: line-through; text-decoration-color: rgba(155,47,34,.4); }
.diff .new { color: var(--ok); }
.diff img { width: 150px; height: 100px; object-fit: cover; border-radius: 6px; display: block; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare__col h3 { font-size: 14px; margin-bottom: 8px; }
.compare__frame { height: 640px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; position: relative; }
.compare__frame iframe { border: 0; transform-origin: 0 0; position: absolute; top: 0; left: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { border-left: 3px solid var(--line-strong); padding: 2px 0 2px 12px; }
.section { display: grid; gap: 12px; margin-top: 22px; }
.section > h2 { font-size: 17px; }
.empty { padding: 40px; text-align: center; color: var(--ink-soft); }

/* ---------- connexion */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.login__box { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.login__box h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .stage { height: 62vh; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .admin { grid-template-columns: 1fr; height: auto; }
  .side { max-height: 40vh; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 8px 12px; }
  .topbar .btn { padding: 6px 10px; }
  .main { padding: 16px; }
}
.table-wrap { overflow-x: auto; }
.diff figure { margin: 0; max-width: 160px; }
@media (max-width: 1500px) { .field-inline > span:first-child, .status #status-t { font-size: 12px; } .brand__sub { display: none; } }

/* ======================================================================= V3 (2026-11-03) : éditeur visuel complet */
.devbar { display: flex; align-items: center; gap: 10px; padding: 6px 16px; background: #5e3d00; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.devbar strong { font-weight: 700; }
body.is-dev .editor { height: calc(100vh - 64px - 31px); }
.topbar .btn--forest:hover { background: #2b2b2b; }
.ptabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.ptabs button { border: 0; background: none; padding: 12px 8px; font-weight: 600; font-size: 14px; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; }
.ptabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--copper); }
.ptabs button:disabled { opacity: .45; cursor: default; }
.kicker { margin: 0 0 4px !important; font-size: 12px !important; letter-spacing: .05em; text-transform: uppercase; color: var(--copper-dark) !important; font-weight: 600; }
.chip { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--panel); padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--forest); }
.chip:hover { background: var(--forest-soft); }
.input--search { margin-bottom: 4px; }
.badge--soft { background: #ece8df; color: var(--ink-soft); font-weight: 500; }
.fbtn--hidden .fbtn__val { color: var(--ink-faint); font-style: italic; }
.seg--wrap { flex-wrap: wrap; }
.seg--wrap button { flex: 1 1 auto; }
.style-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; gap: 10px; }
.style-box > summary { cursor: pointer; list-style: none; }
.style-box > summary::-webkit-details-marker { display: none; }
.style-box > summary::after { content: " ›"; color: var(--ink-faint); }
.style-box[open] > summary { margin-bottom: 4px; }
.count__warn { color: var(--warn); font-weight: 600; }
.rich--multi { min-height: 88px; }
.items { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 8px; background: #fff; }
.item.is-current { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(167,95,51,.14); }
.item--h { background: var(--bg); }
.item__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.item__btns { display: inline-flex; gap: 4px; }
.item__btns .tool { min-width: 32px; min-height: 30px; }
.tool--del { color: var(--bad); }
.tool:disabled { opacity: .35; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.measure:empty { display: none; }
.measure { display: grid; gap: 8px; }
.notice--ok { background: var(--ok-soft); color: var(--ok); }
.swatch--low { opacity: .45; outline: 2px dashed var(--bad); outline-offset: 2px; }
.bgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bg { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.bg[aria-pressed="true"] { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(167,95,51,.18); }
.bg__chip { grid-row: span 2; width: 34px; height: 34px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.bg--none .bg__chip { background: repeating-linear-gradient(45deg, #fff 0 5px, #eee 5px 10px); }
.bg__name { font-weight: 600; font-size: 14px; }
.bg small { color: var(--ink-faint); font-size: 12px; }
.gal__meta .is-missing { color: var(--bad); font-style: italic; }
.card--row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.h-sm { font-size: 15px; margin: 6px 0 8px; }
.res { margin-top: 12px; }
.stage.is-loading::after { content: "Mise à jour de l’aperçu…"; position: absolute; top: 26px; left: 50%; transform: translateX(-50%); background: var(--forest); color: #fff;
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; box-shadow: var(--shadow); }
@media (max-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr) 360px; } }
.topbar { gap: 8px; flex-wrap: nowrap; }
.topbar .btn { padding: 6px 12px; min-height: 38px; font-size: 13.5px; }
.topbar .seg button { padding: 7px 10px; }
@media (max-width: 1750px) { .field-inline > span, .brand__sub { display: none; } select.select { max-width: 190px; } .status #status-t { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 1350px) { .topbar { flex-wrap: wrap; } }

/* ======================================================================= V3.1 (2026-11-03) */
@font-face { font-family: 'WM Playfair'; src: url('/apercu/reference/assets/fonts/playfair-normal.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'WM Glacial'; src: url('/apercu/reference/assets/fonts/glacial-indifference-regular.woff2') format('woff2'); font-display: swap; }
.devbar--bad { background: var(--bad); }
.chip--sm { margin: 0; padding: 4px 10px; font-size: 12.5px; color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.srow { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 6px 10px; }
.srow > .hint { font-weight: 600; color: var(--ink); }
.srow.is-off { opacity: .8; }
.srow__why { grid-column: 2; font-size: 12.5px; color: var(--ink-faint); line-height: 1.4; }
.srow .srow__why:first-child { grid-column: auto; }
.toolbar .srow__why { align-self: center; margin-left: 4px; }
.srow__font, .srow__color { justify-content: flex-start; gap: 8px; width: 100%; font-weight: 600; }
.srow__font { font-family: var(--serif); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.switch input { width: 18px; height: 18px; accent-color: var(--forest); }
.cp { display: grid; gap: 12px; }
.cp__now { display: flex; align-items: center; gap: 12px; }
.cp__chip { display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cp__chip--big { width: 44px; height: 44px; border-radius: 10px; }
.cp__chip--none { background: repeating-linear-gradient(45deg, #fff 0 5px, #e6e1d6 5px 10px); }
.cp__fams { display: flex; flex-wrap: wrap; gap: 6px; }
.cp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cp__grid--quick { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.cp__sw { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left;
  padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; min-height: 48px; }
.cp__sw .cp__chip { grid-row: span 2; width: 30px; height: 30px; }
.cp__sw:hover { border-color: var(--ink-faint); }
.cp__sw.is-cur { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(167,95,51,.16); }
.cp__sw.is-off { opacity: .42; cursor: not-allowed; background: repeating-linear-gradient(135deg, #fff 0 8px, #f4f1ea 8px 16px); }
.cp__name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.cp__hex { font: 12px ui-monospace, Consolas, monospace; color: var(--ink-faint); }
.cp__hexrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.cp__hexrow label { font-weight: 600; font-size: 14px; }
.cp__hexin { max-width: 130px; font-family: ui-monospace, Consolas, monospace; }
.cp__msg:empty { display: none; }
.fp__dom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fp__list { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.fp__item { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.fp__item:hover { border-color: var(--ink-faint); }
.fp__item[aria-selected="true"] { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(167,95,51,.16); }
.fp__name { font-size: 22px; line-height: 1.2; }
.fp__meta { font-size: 12.5px; color: var(--ink-faint); }
.fp--serif .fp__name { font-family: 'WM Playfair', Georgia, serif; }
.fp--sans .fp__name { font-family: 'WM Glacial', system-ui, sans-serif; }
.fp--site .fp__name { font-size: 16px; font-weight: 600; }
.is-nofont { color: var(--ink-faint); }
.up { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; text-align: center; border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: #fbf9f4; cursor: pointer; transition: border-color .15s, background .15s; }
.up:hover, .up.is-over { border-color: var(--copper); background: var(--copper-soft); }
.up__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--copper-dark); background: var(--copper-soft); }
.up__title { font-size: 18px; font-family: var(--serif); }
.up .hint { max-width: 52ch; }
.up__queue { display: grid; gap: 8px; margin-top: 12px; }
.up__row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.up__th { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: #eee; }
.up__info { display: grid; gap: 4px; min-width: 0; }
.up__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up__bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.up__bar span { display: block; height: 100%; width: 0; background: var(--copper); transition: width .2s; }
.up__st { font-size: 13px; color: var(--ink-soft); }
.up__row.is-ok .up__bar span { background: var(--ok); }
.up__row.is-ok .up__st { color: var(--ok); }
.up__row.is-bad .up__bar span { background: var(--bad); width: 100% !important; }
.up__row.is-bad .up__st { color: var(--bad); font-weight: 600; }
.dest { border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; background: #fff; }
.dest__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dest__label { margin: 0; font-weight: 600; }
.dest__url { font: 12.5px ui-monospace, Consolas, monospace; background: var(--bg); padding: 4px 8px; border-radius: 4px; word-break: break-all; }
.dest__lock { color: var(--ink-soft); }
#destbox:empty { display: none; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; background: #fbf9f4; }
.empty-state ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; display: grid; gap: 4px; }
.hint.is-ok { color: var(--ok); font-weight: 600; }
@media (max-width: 1100px) { .fp__dom { grid-template-columns: 1fr; } }
/* V3.1 : barre supérieure plus compacte (bouton « Pied de page » ajouté) */
.topbar .brand__name { font-size: 16px; }
.topbar .seg button { padding: 7px 9px; font-size: 12.5px; white-space: nowrap; }
.topbar #device { flex: none; }
.topbar .status { min-width: 0; }
.topbar .status #status-t { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1750px) { .topbar .brand { max-width: 150px; } .topbar .btn { padding: 6px 10px; } }
.srow-fixed { display: grid; gap: 8px; }
.srow-fixed__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-off { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; border: 1px dashed var(--line-strong); color: var(--ink-faint); }
.srow-fixed .srow__why { grid-column: auto; }


/* ================================================================== V2 hotecode (2026-11-05) */
body { font-size: 14px; font-feature-settings: 'ss01'; background: #fff; }
:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.btn { min-height: 36px; font-size: 13.5px; font-weight: 500; padding: 6px 14px; }
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: 1; background: #F5F5F3; border-color: var(--line); color: var(--ink-faint); }
.btn--primary, .btn--forest, .topbar .btn--forest { background: #111; border-color: #111; color: #fff; }
.btn--primary:hover, .btn--forest:hover, .topbar .btn--forest:hover { background: #353535; border-color: #353535; }
.btn--ghost:hover { background: var(--hover); }
.btn--danger { color: var(--bad); border-color: var(--bad); }
.btn--danger:hover { background: var(--bad-soft); }
.link { color: var(--ink); }
.menu__list, .modal { box-shadow: var(--shadow-float); }
.modal { border-radius: 10px; border: 1px solid var(--line); }
.modal-back { background: rgba(17,17,17,.42); }
.frame-wrap { box-shadow: none; border: 1px solid var(--line); border-radius: 6px; }
.badge { border-radius: 4px; font-weight: 500; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.notice--ok { background: var(--ok-soft); color: var(--ok); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--bad { background: var(--bad-soft); color: var(--bad); }
.chip { border-radius: 6px; }
.item.is-current, .bg[aria-pressed="true"] { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
textarea.input:focus, input.input:focus, .rich:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.10); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111; }
.imgbox__dot { box-shadow: 0 0 0 2px #111; }
.kicker { color: var(--ink-soft) !important; font-family: var(--mono); font-weight: 500; font-size: 11px !important; letter-spacing: .08em; }
.panel__head h2, .modal__head h2 { font-size: 17px; letter-spacing: -.01em; }
.toast { background: #111; color: #fff; }
.toast--error { background: #111; color: #fff; box-shadow: inset 4px 0 0 var(--bad); }
.toast--ok { background: #111; color: #fff; box-shadow: inset 4px 0 0 #3fb26a; }
.stage.is-loading::after { background: #111; border-radius: 6px; }
.status__dot { background: var(--ok); border-radius: 0; width: 7px; height: 7px; }
.status.is-dirty .status__dot { background: var(--warn); }
.seg button[aria-pressed="true"] { background: #111; color: #fff; }

/* barre supérieure : logotype officiel, produit, puis le site (bloc distinct) */
.topbar { min-height: 56px; padding: 8px 14px; gap: 10px; background: #fff; }
.v2-logo { display: inline-flex; align-items: center; gap: 10px; padding-right: 12px; border-right: 1px solid var(--line); }
.v2-logo img { display: block; height: 22px; width: auto; }
.v2-logo__product { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.topbar .brand__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .brand__sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }
.v2-portal { font-size: 13px; color: var(--ink); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; white-space: nowrap; }
.v2-portal:hover { border-color: #111; }
.v2-undo { display: inline-flex; gap: 2px; }
.v2-undo .btn { min-width: 32px; padding: 4px 8px; font-size: 16px; }

/* éditeur : navigation | aperçu (sur crème) | propriétés */
.wm-v2 .editor { grid-template-columns: 76px minmax(0, 1fr) 400px; height: calc(100vh - 56px); }
.wm-v2.is-dev .editor { height: calc(100vh - 56px - 31px); }
.wm-v2 .stage { background: var(--bg); }
.v2-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-right: 1px solid var(--line); background: #fff; overflow-y: auto; }
.v2-nav button { display: grid; justify-items: center; gap: 4px; padding: 9px 4px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: 11.5px; color: var(--ink-soft); }
.v2-nav button:hover { background: var(--hover); color: var(--ink); }
.v2-nav button[aria-current="true"] { background: #111; color: #fff; }
.v2-nav__i { font-size: 17px; line-height: 1; }
.panel { border-left: 1px solid var(--line); background: #fff; }
.v2-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.v2-list > * { border-bottom: 1px solid var(--line); }
.v2-list > *:last-child { border-bottom: 0; }
.v2-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; background: #fff; border: 0; text-align: left; cursor: pointer; font-size: 14px; color: inherit; text-decoration: none; }
.v2-row:hover { background: #F5F5F3; }
.v2-row[aria-current="true"] { box-shadow: inset 3px 0 0 #111; font-weight: 600; }
.v2-row small { color: var(--ink-soft); font-size: 12px; }
.v2-row--static { cursor: default; }
.v2-row--static:hover { background: #fff; }
.v2-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 6px 0 -6px; }
.v2-medias { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.v2-medias figure { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #F5F5F3; }
.v2-medias img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.v2-medias figcaption { font-size: 11px; padding: 4px 6px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-off { font-size: 13px; color: var(--ink-soft); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 14px; }
.v2-off strong { color: var(--ink); }

/* page d'erreur d'ouverture (/sso) */
.wm-msg { display: grid; place-items: center; min-height: 100vh; background: var(--bg); }
.wm-msg main { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; max-width: 460px; display: grid; gap: 12px; }
.wm-msg h1 { font-size: 20px; }

@media (max-width: 1100px) {
  .wm-v2 .editor { grid-template-columns: 1fr; height: auto; }
  .v2-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .v2-nav button { min-width: 72px; }
  .v2-logo__product { display: none; }
}
@media (max-width: 640px) {
  .v2-logo { border-right: 0; padding-right: 0; }
  .topbar .brand { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* V2 : [hidden] toujours respecté (la règle .devbar { display: flex } affichait le bandeau de développement à tous, V3.1) */
[hidden] { display: none !important; }
/* V2 : barre supérieure compacte — toutes les commandes tiennent à 1440 px */
.wm-v2 .topbar { flex-wrap: nowrap; gap: 8px; }
.wm-v2 .topbar .field-inline > span:first-child { display: none; }
.wm-v2 select.select { max-width: 170px; min-height: 36px; }
.wm-v2 .seg button { padding: 6px 9px; min-height: 34px; }
.wm-v2 .topbar .brand__sub { display: none; }
.wm-v2 .topbar .brand__name { max-width: 170px; }
.wm-v2 .status #status-t { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
@media (max-width: 1600px) { .v2-logo__product { display: none; } .wm-v2 .topbar .brand__name { max-width: 130px; } }
@media (max-width: 1350px) { .wm-v2 .topbar { flex-wrap: wrap; } }
.wm-v2 .topbar .btn { padding: 6px 11px; }
.wm-v2 select.select { max-width: 150px; }
.wm-v2 .topbar .brand__name { max-width: 140px; }
.v2-portal { padding: 6px 8px; }
@media (max-width: 1600px) { .wm-v2 #device button[data-w="375"] { display: none; } }   /* petit téléphone : au-delà de 1600 px seulement */
.wm-v2 .topbar .status { flex: none; }
.wm-v2 .status #status-t { max-width: 96px; }
.wm-v2 .topbar { gap: 6px; }
.v2-ico { display: none; }
@media (max-width: 1600px) { .wm-v2 #footer-btn .v2-txt { display: none; } .wm-v2 #footer-btn .v2-ico { display: inline; } }
.wm-v2 .editor { grid-template-columns: 84px minmax(0, 1fr) 400px; }
.v2-nav button { font-size: 11px; }
@media (max-width: 1100px) { .wm-v2 .editor { grid-template-columns: 1fr; } }

/* ======================================================================= Constructeur de sites (2026-11-05)
   Même identité que la V2 (encre #111, filets 1 px, rayons 6 / 10 px, Geist, mode clair) : seules des pièces nouvelles. */
.wb-modes button { font-weight: 600; }
.wb-modes button[aria-pressed="true"] { background: #111; color: #fff; }
@media (max-width: 1500px) { .wm-v2 #device button[data-w="820"] { display: none; } }
.seg--sm button { padding: 5px 9px; min-height: 30px; font-size: 12.5px; }
.seg--full { display: flex; width: 100%; }
.seg--full button { flex: 1; }
.lbl { font-weight: 600; font-size: 13px; }
.wb-field { gap: 6px; }
.wb-field .lbl, .wb-field > label { font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.counter { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.wb-row { display: flex; gap: 8px; align-items: center; }
.wb-row > .field { flex: 1; }
.wb-row-sb { display: flex; justify-content: space-between; gap: 8px; }
.actions--left { justify-content: flex-start; }
.icon-btn--sm { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
.icon-btn--sm:disabled { opacity: .3; cursor: default; }
.wb-range-row { display: flex; align-items: center; gap: 10px; }
.wb-range { flex: 1; accent-color: #111; }
.wb-range-row output { font-family: var(--mono); font-size: 12px; min-width: 52px; text-align: right; color: var(--ink-soft); }
.wb-url { display: flex; align-items: center; gap: 4px; }
.wb-url .input { flex: 1; }

/* palette de composants et modèles */
.wb-palette { display: grid; gap: 14px; }
.wb-palette__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.wb-palette__grid--wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.wb-tile { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; }
.wb-tile:hover, .wb-tile:focus-visible { border-color: #111; }
.wb-tile__i { font-size: 20px; line-height: 1; }
.wb-tile--tpl { justify-items: start; text-align: left; padding: 12px 14px; }
.wb-tile--tpl small { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.wb-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; cursor: grab; }
.wb-chip:hover { border-color: #111; }
.wb-chip span { font-size: 13px; }

/* arborescence de la page */
.wb-tree, .wb-tree__blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wb-tree__blocks { margin: 4px 0 2px 18px; padding-left: 8px; border-left: 1px solid var(--line); }
.wb-tree__row { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; }
.wb-tree__row:hover { border-color: var(--line-strong); background: #FAFAF8; }
.wb-tree__row.is-sel { border-color: #111; box-shadow: inset 3px 0 0 #111; }
.wb-tree__row.is-hidden .wb-tree__l { opacity: .45; text-decoration: line-through; }
.wb-tree__row--legacy { background: #F7F5F0; }
.wb-tree__row--section { font-weight: 600; }
.wb-tree__row.is-drag { opacity: .4; }
.wb-tree__row.is-drop-b, .wb-page.is-drop-b { box-shadow: inset 0 3px 0 #b54708; }
.wb-tree__row.is-drop-a { box-shadow: inset 0 -3px 0 #b54708; }
.wb-tree__grip { cursor: grab; color: var(--ink-faint); padding: 0 2px; }
.wb-tree__i { width: 20px; text-align: center; color: var(--ink-soft); flex: none; }
.wb-tree__l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.wb-tree__a { display: inline-flex; gap: 1px; flex: none; }
.wb-tree__add { margin: 2px 0 6px 26px; font-size: 12.5px; }
.wb-tree__cols { display: grid; gap: 4px; margin: 2px 0 2px 26px; }
.wb-tree__colh { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

/* pages */
.wb-pages { display: grid; gap: 4px; }
.wb-page { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.wb-page.is-sel { border-color: #111; }
.wb-page__main { flex: 1; min-width: 0; display: grid; text-align: left; background: none; border: 0; padding: 2px 0; cursor: pointer; }
.wb-page__main strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-page__main small { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.badge--soft { background: #F0EFEC; color: var(--ink-soft); font-weight: 500; }

/* listes (cartes, questions, liens de menu) */
.wb-items { display: grid; gap: 6px; }
.wb-item { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.wb-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 12px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.wb-item > summary::-webkit-details-marker { display: none; }
.wb-item[open] > summary { border-bottom: 1px solid var(--line); }
.wb-item__a { display: inline-flex; gap: 1px; }
.wb-item__b { display: grid; gap: 12px; padding: 12px; }

/* médias */
.wb-media { display: flex; gap: 10px; align-items: center; }
.wb-thumb { width: 84px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #F5F5F3; flex: none; }
.wb-thumb--empty, .wb-thumb--doc { display: grid; place-items: center; font-size: 11px; color: var(--ink-soft); padding: 4px; overflow: hidden; text-align: center; word-break: break-all; }
.wb-media__a { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-crop { position: relative; display: inline-block; max-width: 100%; user-select: none; touch-action: none; outline-offset: 3px; }
.wb-crop__img { display: block; max-width: 100%; max-height: 60vh; }
.wb-crop__box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5); cursor: move; }
.wb-crop__hd { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; background: #fff; border: 2px solid #111; border-radius: 3px; cursor: nwse-resize; }

/* couleurs */
.wb-sws { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wb-sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); cursor: pointer; padding: 0; }
.wb-sw[aria-pressed="true"] { outline: 2px solid #111; outline-offset: 2px; }
.wb-colorpick { width: 34px; height: 28px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px; background: #fff; cursor: pointer; }
.wb-tcs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wb-tc { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.wb-tc input { width: 34px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }

/* groupes de styles */
.wb-sg { border: 1px solid var(--line); border-radius: 8px; }
.wb-sg > summary { padding: 9px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.wb-sg[open] > summary { border-bottom: 1px solid var(--line); }
.wb-sg__b { display: grid; gap: 12px; padding: 12px; }
.wb-cmp { display: grid; gap: 10px; margin-top: 10px; }
.wb-check { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #FAFAF8; }

/* constructeur : le panneau ne déborde jamais ; actions des lignes visibles au survol, au clavier ou sur la sélection */
.panel__body { min-width: 0; }
.wb-tree, .wb-tree__blocks, .wb-pages, .wb-items { grid-template-columns: minmax(0, 1fr); }
.wb-tree li { min-width: 0; }
.wb-tree__row .wb-tree__a, .wb-page .wb-tree__a { opacity: 0; transition: opacity .12s; }
.wb-tree__row:hover .wb-tree__a, .wb-tree__row:focus-within .wb-tree__a, .wb-tree__row.is-sel .wb-tree__a,
.wb-page:hover .wb-tree__a, .wb-page:focus-within .wb-tree__a, .wb-page.is-sel .wb-tree__a { opacity: 1; }
@media (hover: none) { .wb-tree__row .wb-tree__a, .wb-page .wb-tree__a { opacity: 1; } }
.wb-tree__add { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
