/* Wherigo Creator — feuille de style */
:root {
  --pri: #0e7c66; --pri-d: #095c4c; --acc: #e8590c; --bg: #f5f7f6; --card: #fff; --txt: #1d2b28;
  --muted: #6b7b77; --line: #dde5e2; --ok: #2b8a3e; --warn: #e67700; --err: #c92a2a; --info: #1971c2;
  --r: 10px; --sh: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif; color: var(--txt); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--pri); }
h1, h2, h3 { line-height: 1.25; margin: .2em 0 .6em; }
h1 small { font-size: .5em; color: var(--muted); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
img { max-width: 100%; }

/* --- barre supérieure --- */
.topbar { display: flex; align-items: center; gap: 1rem; padding: .55rem 1.2rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--txt); text-decoration: none; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: .9rem; flex: 1; }
.topbar nav a { text-decoration: none; color: var(--txt); padding: .3rem .1rem; border-bottom: 2px solid transparent; }
.topbar nav a.active, .topbar nav a:hover { border-color: var(--acc); }
.topbar nav a.btn-primary { color: #fff; border: 1px solid var(--pri); padding: .28rem .7rem; }
.topbar .spacer, .spacer { flex: 1; }
.langs a { font-size: .8rem; padding: .15rem .35rem !important; border: 1px solid var(--line) !important; border-radius: 4px; margin-left: 2px; }
.langs a.active { background: var(--pri); color: #fff; border-color: var(--pri) !important; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; margin-left: auto; cursor: pointer; }
.badge { background: var(--acc); color: #fff; border-radius: 99px; padding: 0 .45em; font-size: .75em; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .topbar { flex-wrap: wrap; }
  .topbar nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; }
  .topbar nav.open { display: flex; }
}

/* --- mise en page --- */
main.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.2rem 3rem; flex: 1; }
main.full { flex: 1; display: flex; flex-direction: column; }
.container.narrow, .narrow { max-width: 460px; margin: 1.5rem auto; }
.footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); background: #fff; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; box-shadow: var(--sh); margin-bottom: 1rem; }
.card.highlight { border-color: var(--acc); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.warn { color: var(--warn); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.grid-side { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .grid2, .grid-side { grid-template-columns: 1fr; } }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .2rem 0; }
.lead { font-size: 1.1rem; color: #3c4d49; }

/* --- boutons / formulaires --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .95rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--txt); font: inherit; text-decoration: none; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--pri); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--pri); color: #fff; border-color: var(--pri); }
.btn-primary:hover { background: var(--pri-d); }
.btn-success { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn-danger { background: #fff; color: var(--err); border-color: #f1c0c0; }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-small { padding: .28rem .6rem; font-size: .88rem; }
.btn-block { width: 100%; margin: .3rem 0; }
.linklike { background: none; border: 0; color: var(--pri); cursor: pointer; font: inherit; padding: .25rem 0; text-align: left; }
form.inline { display: inline; }
.form label, label.fld { display: block; margin-bottom: .8rem; font-weight: 500; }
.form label > input, .form label > select, .form label > textarea, label.fld input, label.fld select, label.fld textarea { display: block; width: 100%; margin-top: .25rem; }
input, select, textarea { font: inherit; padding: .48rem .6rem; border: 1px solid #c8d3cf; border-radius: 7px; background: #fff; color: var(--txt); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(14,124,102,.35); border-color: var(--pri); }
input[type=checkbox] { width: auto; margin: 0 .3rem 0 0; }
label.check { display: flex; align-items: center; gap: .2rem; font-weight: 400; margin: .5rem 0 .8rem; }
.form label.check > input, label.check > input[type=checkbox] { display: inline-block; width: auto; margin: 0 .35rem 0 0; flex: none; }
label.fld > span { display: block; font-size: .88rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; max-width: 260px; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .6rem 0; }
.inline-form input { width: auto; flex: 1; min-width: 160px; }
.searchbar { display: flex; gap: .5rem; margin-bottom: 1rem; }
.searchbar input { flex: 1; }
input.num { width: 80px; }

/* --- alertes / statuts --- */
.alert { padding: .7rem 1rem; border-radius: 8px; margin-bottom: .8rem; border: 1px solid; white-space: pre-line; }
.alert-success { background: #ebfbee; border-color: #b2f2bb; color: #1e5e2a; }
.alert-danger { background: #fff5f5; border-color: #ffc9c9; color: #8a1c1c; }
.alert-warning { background: #fff9db; border-color: #ffec99; color: #7a5300; }
.alert-info { background: #e7f5ff; border-color: #a5d8ff; color: #0b4f8a; }
.status { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.status-draft { background: #eef1f0; color: #55625f; }
.status-pending { background: #fff3bf; color: #8a5a00; }
.status-published { background: #d3f9d8; color: #2b6a37; }
.status-rejected { background: #ffe3e3; color: #a51d1d; }
.status-hidden { background: #e7e5f5; color: #4b3f8f; }
.level-badge { background: #fff4e6; color: #b34700; border-radius: 99px; padding: .1rem .6rem; font-size: .85rem; font-weight: 600; }

/* --- accueil --- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding: 1.5rem 0 2rem; }
.hero h1 { font-size: 2.3rem; }
.hero-img { width: 100%; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 2rem; }
.stats div { flex: 1; min-width: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; text-align: center; }
.stats strong { display: block; font-size: 1.8rem; color: var(--pri); }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .hero, .features { grid-template-columns: 1fr; } }
.cart-card { text-decoration: none; color: inherit; display: block; transition: .15s; position: relative; }
.cart-card:hover { transform: translateY(-2px); border-color: var(--pri); }
.cart-card small { color: var(--muted); }
.cart-head { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1rem; }
.cart-head .splash { width: 220px; border-radius: var(--r); }
.cart-row { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cart-row h3 { margin: 0 0 .2rem; }
.cart-row h3 a { text-decoration: none; color: var(--txt); }
.cart-row-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.note { background: #f8f9fa; border-left: 3px solid var(--acc); padding: .4rem .7rem; margin: .5rem 0 0; font-size: .9rem; }
.rights-list { padding-left: 1.1rem; }
.progress-row { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; align-items: center; font-size: .85rem; margin: .3rem 0; }
.progress { height: 8px; background: #eef1f0; border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--pri), var(--acc)); }

/* --- tableaux --- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; }
.table th, .table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #f1f5f4; font-size: .85rem; }
.table.compact td, .table.compact th { padding: .35rem .45rem; }
.table.compact input:not([type=checkbox]) { width: 100%; min-width: 70px; }
.table tr.banned { opacity: .5; }
.table td.actions { position: relative; }
details > summary { list-style: none; }
details .menu { position: absolute; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .8rem; box-shadow: var(--sh); z-index: 5; min-width: 220px; }
.subnav { display: flex; gap: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; flex-wrap: wrap; }

/* --- MFA --- */
.qr-wrap { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin: .8rem 0; }
#qrcode svg { width: 200px; height: 200px; background: #fff; }
.secret { font-size: 1.05rem; background: #f1f5f4; padding: .2rem .5rem; border-radius: 4px; }
pre.codes { background: #f8f9fa; padding: 1rem; columns: 2; font-size: 1.05rem; border-radius: 8px; }
ol.steps li { margin-bottom: 1rem; }

/* --- tutoriels --- */
.tuto-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
.tuto-toc { position: sticky; top: 70px; }
.tuto-toc ol { padding-left: 1.2rem; margin: 0; }
.tuto-toc li { margin: .3rem 0; }
.tuto-toc li.active a { font-weight: 700; color: var(--acc); }
.tuto h2 { margin-top: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.tuto figure { margin: 1.2rem 0; }
.tuto figure img { border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--sh); }
.tuto figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .3rem; }
.tuto .tip { background: #e6f4f1; border-left: 4px solid var(--pri); padding: .6rem .9rem; border-radius: 6px; margin: 1rem 0; }
.tuto .warn-box { background: #fff4e6; border-left: 4px solid var(--acc); padding: .6rem .9rem; border-radius: 6px; margin: 1rem 0; }
.tuto kbd { background: #eee; border: 1px solid #ccc; border-radius: 3px; padding: 0 .3rem; font-size: .85em; }
.tuto-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.tuto-num { position: absolute; top: .8rem; right: 1rem; font-size: 2rem; font-weight: 800; color: #e3ebe8; }
@media (max-width: 860px) { .tuto-layout { grid-template-columns: 1fr; } .tuto-toc { position: static; } }

/* --- éditeur --- */
.editor { display: flex; flex-direction: column; height: calc(100vh - 53px); min-height: 0; }
.ed-toolbar { display: flex; gap: .6rem; align-items: center; padding: .5rem 1rem; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed-title { font-size: 1.05rem; }
.save-state { font-size: .85rem; color: var(--muted); }
.save-state.ok { color: var(--ok); } .save-state.warn { color: var(--warn); } .save-state.err { color: var(--err); }
.ed-body { display: grid; grid-template-columns: 210px 1fr; flex: 1; min-height: 0; overflow: hidden; }
.ed-nav { background: #fbfcfc; border-right: 1px solid var(--line); padding: .6rem 0; overflow-y: auto; }
.ed-nav a { display: flex; gap: .5rem; align-items: center; padding: .5rem 1rem; text-decoration: none; color: var(--txt); border-left: 3px solid transparent; }
.ed-nav a:hover { background: #f1f5f4; }
.ed-nav a.active { background: #e6f4f1; border-left-color: var(--pri); font-weight: 600; }
.ed-nav a.locked { color: #aab4b1; }
.ed-nav .lbl { flex: 1; }
.ed-nav .cnt { background: #e3ebe8; border-radius: 99px; font-size: .75rem; padding: 0 .45rem; }
.ed-panel { padding: 1.2rem 1.5rem 4rem; overflow-y: auto; }
.ed-split { display: grid; grid-template-columns: 230px 1fr; gap: 1.2rem; align-items: start; }
.ed-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .4rem; position: sticky; top: 0; }
.ed-item { display: flex; justify-content: space-between; align-items: center; padding: .45rem .55rem; border-radius: 6px; cursor: pointer; gap: .3rem; }
.ed-item:hover { background: #f1f5f4; }
.ed-item.active { background: #e6f4f1; font-weight: 600; }
.ed-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-item-tools { display: none; gap: 2px; }
.ed-item:hover .ed-item-tools, .ed-item.active .ed-item-tools { display: flex; }
.ed-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; }
button.mini { border: 1px solid var(--line); background: #fff; border-radius: 5px; cursor: pointer; font-size: .78rem; padding: .05rem .4rem; line-height: 1.4; }
button.mini.danger:hover { background: var(--err); color: #fff; }
.map { height: 380px; border-radius: var(--r); border: 1px solid var(--line); z-index: 1; }
.map-small { height: 300px; }
.map.drawing { cursor: crosshair; outline: 3px solid var(--acc); }
.map-tools { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.vertex { background: #fff; border: 3px solid var(--acc); border-radius: 50%; }
.start-pin { font-size: 22px; }
.me-pin { background: #1971c2; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px rgba(25,113,194,.35); }
.event-block { border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .8rem; margin-bottom: .8rem; background: #fcfdfd; }
.event-title { font-weight: 600; margin-bottom: .4rem; color: var(--acc); }
.cmd-block { border: 1px dashed #c8d3cf; border-radius: var(--r); padding: .6rem .8rem; margin-bottom: .7rem; }
.cmd-block.else { background: #fff9f4; }
.cmd-head { display: flex; gap: .5rem; align-items: flex-end; }
.cmd-head label { flex: 1; margin-bottom: .4rem; }
.actions { display: flex; flex-direction: column; gap: .4rem; }
.actions.depth1, .actions.depth2, .actions.depth3 { border-left: 3px solid #d0ebff; padding-left: .5rem; }
.act { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; }
.act-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 600; color: #3c4d49; margin-bottom: .3rem; }
.act-tools { display: flex; gap: 2px; }
.act-body textarea, .act-body > select { width: 100%; }
.inline-fields { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .3rem; }
.inline-fields select, .inline-fields input { flex: 1; min-width: 120px; }
.branch { margin: .4rem 0 .2rem; }
.branch em { font-size: .82rem; color: var(--info); font-style: normal; font-weight: 600; }
select.add-action { max-width: 260px; border-style: dashed; color: var(--pri); }
.dropzone { border: 2px dashed #b9c8c3; border-radius: var(--r); padding: 1.2rem; text-align: center; background: #fff; margin-bottom: 1rem; }
.dropzone.over { border-color: var(--pri); background: #e6f4f1; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.media-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.media-card img { height: 110px; object-fit: contain; background: #f4f6f5; border-radius: 6px; }
.media-card audio { width: 100%; }
pre.lua { background: #1e2a27; color: #d7f5ec; padding: 1rem; border-radius: var(--r); max-height: 480px; overflow: auto; font-size: .82rem; }
@media (max-width: 860px) {
  .editor { height: auto; }
  .ed-body { grid-template-columns: 1fr; overflow: visible; }
  .ed-panel { overflow: visible; }
  .ed-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .ed-nav a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .ed-nav a.active { border-bottom-color: var(--pri); }
  .ed-split { grid-template-columns: 1fr; }
  .ed-list { position: static; }
}

/* --- lecteur --- */
.player { display: flex; flex-direction: column; flex: 1; height: calc(100vh - 52px); position: relative; }
.pl-top { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem; background: #fff; border-bottom: 1px solid var(--line); }
.pl-mode { font-size: .8rem; color: var(--muted); }
.pl-map { flex: 1 1 50%; min-height: 220px; z-index: 1; }
.pl-tabs { display: flex; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pl-tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: .6rem .2rem; font: inherit; font-size: .85rem; cursor: pointer; }
.pl-tabs button.active { border-color: var(--acc); font-weight: 600; }
.pl-tabs .cnt { background: #eef1f0; border-radius: 99px; padding: 0 .4rem; font-size: .75rem; }
.pl-list { flex: 1 1 35%; overflow-y: auto; background: #fff; }
.pl-row { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid #eef1f0; cursor: pointer; }
.pl-row:hover { background: #f8faf9; }
.pl-row .name { flex: 1; }
.pl-row .thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: #eef1f0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.pl-row .here { color: var(--ok); font-weight: 600; }
.arrow { display: inline-block; color: var(--acc); }
.pl-modal { position: absolute; inset: 0; background: rgba(15,30,26,.55); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 1rem; }
.pl-modal.hidden { display: none; }
.pl-dialog { background: #fff; border-radius: 14px; padding: 1.3rem; width: 100%; max-width: 480px; max-height: 90%; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.pl-img { display: block; max-height: 260px; margin: 0 auto .8rem; border-radius: 8px; }
.pl-text { margin-bottom: 1rem; font-size: 1.05rem; }
.pl-buttons { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.pl-buttons.col { flex-direction: column; }
.pl-input { width: 100%; font-size: 1.1rem; margin-bottom: .8rem; }
.pl-choices .btn { margin: .25rem 0; }

/* --- v0.0.2 : Lua --- */
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: #1e2a27; color: #d7f5ec; border-color: #1e2a27; tab-size: 4; width: 100%; }
textarea.code[readonly] { opacity: .85; }
.lua-name { float: right; margin: -.3rem 0 .3rem 1rem; font-size: .8rem; color: var(--muted); }
.lua-name code { background: #f1f5f4; padding: .05rem .35rem; border-radius: 4px; }

/* --- v0.0.3 : carte du lecteur, sauvegardes --- */
.pl-ctl { background: #fff; padding: .35rem .45rem; font-size: .85rem; min-width: 112px; }
.pl-ctl .alt-line { display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.pl-ctl .alt-val { font-weight: 600; flex: 1; }
.pl-ctl button { border: 1px solid var(--line); background: #fff; border-radius: 5px; cursor: pointer; width: 26px; height: 26px; line-height: 1; padding: 0; }
.pl-ctl button:hover { background: #e6f4f1; }
.pl-ctl .acc { font-size: .75rem; color: var(--muted); }
.pl-ctl .pad { display: grid; grid-template-columns: repeat(3, 26px); grid-template-rows: repeat(3, 26px); gap: 2px; justify-content: center; margin-top: .3rem; }
.pl-ctl .pad .n { grid-column: 2; grid-row: 1; } .pl-ctl .pad .w { grid-column: 1; grid-row: 2; }
.pl-ctl .pad .e { grid-column: 3; grid-row: 2; } .pl-ctl .pad .s { grid-column: 2; grid-row: 3; }
.pl-ctl [hidden] { display: none !important; }
.obj-pin { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #868e96; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 1px 4px rgba(0,0,0,.3); overflow: hidden; cursor: pointer; }
.obj-pin.reach { border-color: var(--acc); }
.obj-pin img { width: 100%; height: 100%; object-fit: cover; }
.me-pin { cursor: grab; }
.pl-cloud { font-size: .78rem; color: var(--muted); }
.pl-cloud.ok { color: var(--ok); } .pl-cloud.err { color: var(--err); }
.save-list { margin: .6rem 0; }
.save-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-top: 1px solid #eef1f0; }
.save-row .btn { margin-left: .25rem; }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* --- v0.0.4 : blocs de code, médias --- */
pre.lua.small { font-size: .78rem; max-height: 220px; margin: .4rem 0 0; padding: .6rem .8rem; }
.snip-param { display: flex; flex-direction: column; flex: 1; min-width: 130px; }
.snip-param small { color: var(--muted); }
.compat { display: flex; flex-wrap: wrap; gap: .25rem; }
.compat span { font-size: .72rem; border-radius: 99px; padding: .05rem .45rem; }
.badge-ok { background: #d3f9d8; color: #2b6a37; } .badge-warn { background: #ffe8cc; color: #a33f00; } .badge-info { background: #e7f5ff; color: #0b4f8a; }

/* --- v0.0.5 : logo --- */
.brand img { border-radius: 8px; }
.hero-art { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.hero-logo { width: 100%; max-width: 360px; }

/* Tables de données (0.0.6) */
.data-grid th { vertical-align: top; min-width: 140px; background: var(--bg-soft, #f4f7fb); }
.data-grid th input { font-weight: 600; }
.data-grid .col-tools { display: flex; gap: .3rem; align-items: center; margin-top: .25rem; font-weight: normal; }
.data-grid .col-tools code { font-size: .72rem; color: var(--muted); }
.data-grid .col-tools select { width: auto; padding: .1rem .3rem; font-size: .8rem; }
.data-grid td:last-child, .data-grid th:last-child { width: 1%; white-space: nowrap; }
.pl-choices { display: flex; flex-direction: column; gap: .4rem; margin-top: .6rem; }
.vig-try { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .4rem 0; padding: .4rem .5rem; background: var(--bg-soft, #eef5fc); border-radius: 6px; }
.vig-try input { flex: 1; min-width: 180px; }
.vig-out { font-size: .95rem; padding: .15rem .4rem; background: #fff; border-radius: 4px; min-width: 6rem; }
.inline-fields label.check { display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; width: auto; margin-right: 1rem; }
.inline-fields label.check input { width: auto; flex: none; min-width: 0; margin: 0; }
.warn-inline { background: #fff4e6; border-left: 3px solid #e8890c; padding: .35rem .6rem; border-radius: 4px; font-size: .85rem; margin: .4rem 0; }
.vig-note { display: block; color: #b25e00; margin: .2rem 0; }

/* Page « Fin » (0.0.8) : aperçu façon téléphone */
.end-phone { border: 8px solid #1d2733; border-radius: 22px; background: #fff; max-width: 300px; min-height: 360px; padding: 0 0 1rem; overflow: hidden; display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.end-phone-bar { background: #1c6fb8; color: #fff; font-weight: 600; font-size: .85rem; padding: .45rem .7rem; }
.end-phone img { max-width: 100%; align-self: center; max-height: 160px; object-fit: contain; }
.end-phone-text { white-space: pre-wrap; padding: 0 .8rem; font-size: .92rem; flex: 1; }
.end-phone .btn { align-self: center; min-width: 6rem; }
/* Blocs partagés (0.0.8) */
.chip { display: inline-block; background: #eef5fc; border: 1px solid #cfe2f5; border-radius: 999px; padding: .1rem .55rem; margin: .1rem 0; font-size: .85rem; }
.ok-text { color: #1e7a34; }
.err-text { color: #b3261e; }
/* Play Anywhere (0.0.9) */
.pa-box { background: #eef5fc; border: 1px solid #cfe2f5; border-radius: 8px; padding: .6rem .8rem; margin: .4rem 0 .8rem; }
.pa-box p { margin: .3rem 0; }
.var-insert { width: auto !important; flex: 0 0 auto !important; font-size: .85rem; }
/* Anti-triche (0.0.11) */
.cheat-box { margin-top: 2rem; padding: 1rem 1.2rem; border: 2px dashed #b25e00; border-radius: 10px; background: #fffaf3; }
.cheat-signals { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .6rem; }
.end-phone-cheat .end-phone-bar { background: #8a4b08; }
/* Brouillage (0.0.12) */
.obf-box { margin-top: 1.2rem; padding: .8rem 1rem; border: 1px solid #cfe2f5; border-radius: 8px; background: #f4f9ff; }
.obf-box h3 { margin-top: 0; }
.sc-box { margin: .4rem 0 .8rem 1.6rem; padding: .2rem 0 .2rem .9rem; border-left: 3px solid #cfe2f5; }
.sc-box h4 { margin: .7rem 0 .3rem; font-size: .95rem; }
.sc-lock { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .5rem; align-items: end; padding: .5rem; margin: .4rem 0; background: #fff; border: 1px dashed #cfe2f5; border-radius: 6px; }
.sc-keyrow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sc-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; background: #f4f6f8; width: auto !important; }
@media (max-width: 800px) { .sc-lock { grid-template-columns: 1fr; } }

/* Invitations */
.invite-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr); gap: 1rem; align-items: start; margin-bottom: 1.5rem; }
.invite-grid textarea { width: 100%; }
.invite-preview iframe { width: 100%; height: 720px; border: 1px solid #dde3ea; border-radius: 8px; background: #f1f4f8; }
@media (max-width: 900px) { .invite-grid { grid-template-columns: 1fr; } .invite-preview iframe { height: 600px; } }
.badge[class*="inv-"] { padding: .15em .6em; font-size: .85em; }
.badge.inv-pending { background: #e7f5ff; color: #0b4f8a; }
.badge.inv-accepted { background: #ebfbee; color: #1e5e2a; }
.badge.inv-expired, .badge.inv-cancelled { background: #f1f3f5; color: #6b7280; }
.invite-banner { display: flex; gap: .6rem; align-items: flex-start; }
.sc-endlock { background: #fff9db; border: 1px solid #ffe8a3; border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0 1rem; }
.sc-lock-ro { opacity: .85; }
/* carte des zones : occupe la hauteur disponible et reste visible pendant le défilement */
.zone-mapcol { position: sticky; top: 4.5rem; align-self: start; }
.map.map-zone { height: max(420px, calc(100vh - 230px)); }
@media (max-width: 900px) { .zone-mapcol { position: static; } .map.map-zone { height: 60vh; min-height: 320px; } }
/* le nom Lua flottant ne doit pas rétrécir la mise en page de l'élément (carte des zones comprise) */
.ed-detail > .grid2 { clear: both; }
/* erreurs du contrôle affichées après l'enregistrement */
.save-issues { position: fixed; top: 7.2rem; right: 1rem; z-index: 1000; width: min(440px, calc(100vw - 2rem)); background: #fff9db; border: 1px solid #ffe08a; border-left: 4px solid #e8590c; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: .7rem .9rem; font-size: .92rem; }
.save-issues-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: #7a3a00; }
.save-issues ul { margin: .4rem 0 .6rem 1.1rem; padding: 0; }
.save-issues li { margin: .2rem 0; }
.save-state.warn { cursor: pointer; text-decoration: underline dotted; }
/* glisser-déposer des actions */
.act-grip { cursor: grab; color: #9aa5a2; padding: 0 .25rem 0 0; font-size: 1rem; user-select: none; }
.act-grip:active { cursor: grabbing; }
.act.dragging { opacity: .45; }
.act.drop-before { box-shadow: 0 -3px 0 0 #2f8fdc; }
.act.drop-after { box-shadow: 0 3px 0 0 #2f8fdc; }
.actions.drop-end { outline: 2px dashed #2f8fdc; outline-offset: 2px; border-radius: 8px; }
body.act-dragging .actions select.add-action { pointer-events: none; }
body.act-dragging .actions { min-height: 2.6rem; }
/* lecteur : état des zones, légende, onglet Test de l'auteur */
.pl-row .zst { font-size: .85rem; white-space: nowrap; }
.pl-row .zst-proximity { color: #c2410c; font-weight: 600; }
.pl-row .zst-distant { color: #1864ab; }
.pl-legend { background: rgba(255,255,255,.92); border-radius: 6px; padding: .2rem .5rem; font-size: .78rem; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pl-leg-dash { display: inline-block; width: 18px; height: 0; border-top: 2px dashed #868e96; vertical-align: middle; }
.pl-test-help { padding: .5rem 1rem 0; margin: 0; }
.pl-test-opt { display: block; padding: .3rem 1rem .5rem; }
.pl-test-row { gap: .4rem; flex-wrap: wrap; }
.pl-test-row.off .name { color: #868e96; }
.tbadge { font-size: .75rem; border-radius: 99px; padding: .1rem .5rem; white-space: nowrap; }
.tbadge.yes { background: #ebfbee; color: #2b8a3e; }
.tbadge.no { background: #f1f3f5; color: #868e96; }
.pl-test-h { margin: .8rem 1rem .3rem; font-size: .9rem; }
.pl-log { padding: .25rem 1rem; font-size: .85rem; border-bottom: 1px solid #f1f3f5; }
.tuto-card h3 { padding-right: 2.8rem; }   /* le titre ne passe plus sous le numéro */
/* dupliquer une cartouche (Mes cartouches) */
.dup-box { display: inline-block; }
.dup-box > summary { list-style: none; cursor: pointer; }
.dup-box > summary::-webkit-details-marker { display: none; }
.dup-box[open] { display: block; flex-basis: 100%; }
.dup-form { margin-top: .5rem; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fafcfb; max-width: 28rem; }
.dup-form label { display: block; margin-bottom: .4rem; }
.dup-form small { display: block; } .dup-form button { margin-top: .5rem; }
/* « Si… » : conditions multiples, sinon si */
.cond-group { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.cond-group > strong { margin-bottom: .1rem; }
.cond-row { flex-wrap: wrap; width: 100%; }
.cond-row .cond-not { font-size: .8rem; font-weight: 600; color: #c92a2a; white-space: nowrap; }
.cond-join select { font-weight: 700; font-size: .8rem; padding: .1rem .4rem; width: auto; }
.elif-block { border-left: 3px solid #e8590c33; padding-left: .6rem; margin: .5rem 0; }
.elif-head { display: flex; gap: .5rem; align-items: flex-start; justify-content: space-between; }
/* membres : liste, fiche, données personnelles */
form.hidden { display: none; }
.members-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.members-filter input[type=search] { flex: 1 1 16rem; }
.members-filter select { width: auto; }
.table.members td { vertical-align: top; }
.member-grid .card { margin-bottom: 1rem; }
.btn-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.ban-card { border-color: #ffa8a8; background: #fff5f5; }
.danger-zone { margin-top: .8rem; }
.danger-zone > summary { list-style: none; cursor: pointer; display: inline-block; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone[open] form { margin-top: .6rem; padding: .7rem; border: 1px solid #ffc9c9; border-radius: 8px; background: #fff5f5; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .2rem 0; }
.nowrap { white-space: nowrap; }
.req { color: #c92a2a; }
.levels-table .level-names { min-width: 11rem; }
.levels-table .level-names details label { display: block; margin-top: .2rem; }
.levels-table input.tiny { width: 3.5rem; }
.add-level { max-width: 32rem; margin-top: 1rem; }
.privacy h3 { margin-top: 1.2rem; }
.narrow-wide { max-width: 50rem; margin: 0 auto; }
.block { display: block; margin: .3rem 0 .6rem; }
/* profils : photo, page publique */
.avatar { border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; flex: none; }
.avatar-ini { color: #fff; text-align: center; font-weight: 700; }
.member-head { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.member-head h1 { margin: 0 0 .3rem; }
.gc-links { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin: 1rem 0 .3rem; }
.stat-tiles .tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; display: flex; flex-direction: column; }
.stat-tiles .tile b { font-size: 1.8rem; color: var(--brand, #1c6fb8); }
.stat-tiles .tile span { color: #555; font-size: .9rem; }
.avatar-row { display: flex; gap: 1rem; align-items: flex-start; }
.member-title { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.author-link { text-decoration: underline; cursor: pointer; }
.readonly-area form, .readonly-area details { opacity: .55; pointer-events: none; }
/* contact */
.captcha-box { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin: .4rem 0; }
.captcha-box img { border: 1px solid var(--line); border-radius: 6px; background: #f5f8fa; }
.captcha-box label { flex: 1 1 9rem; }
.captcha-box input { text-transform: uppercase; letter-spacing: .15em; }
.contact-text { white-space: normal; background: #f8f9fa; border-radius: 8px; padding: .8rem 1rem; margin: .6rem 0 1rem; }
tr.unread td { font-weight: 600; }
/* commandes « utiliser avec », réglages avancés des zones */
.cmd-targets { margin: .4rem 0 .6rem; padding: .5rem .7rem; border: 1px dashed var(--line); border-radius: 8px; }
.tgt-list { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .3rem 0; }
.zone-advanced { margin-top: .6rem; }
.zone-advanced summary { cursor: pointer; color: #1c6fb8; font-size: .9rem; }
.alt-box { margin: .3rem 0; }
.alt-row { display: flex; justify-content: space-between; align-items: center; }
.alt-add { position: relative; overflow: hidden; }
.alt-add .alt-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pl-var-row { gap: .5rem; align-items: center; }
.pl-var-row .pl-var-input { width: 9rem; margin-left: auto; padding: .2rem .4rem; }
.pl-warn { color: #c2410c; font-weight: 600; }

/* cartouche multilingue (0.0.43) */
.ed-lang { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; }
.ed-lang select { padding: .15rem .3rem; }
.ed-translating .ed-lang select { background: #fff4d6; border-color: #e0a800; font-weight: 600; }
.tr-banner { background: #fff4d6; border: 1px solid #e0a800; border-radius: 6px; padding: .45rem .7rem; margin-bottom: .8rem; font-size: .9rem; }
.tr-field { background: #fffbea; }
.tr-field.tr-missing { border-color: #e0a800; box-shadow: inset 3px 0 0 #e0a800; }
.lang-box { border: 1px solid var(--border, #ddd); border-radius: 8px; padding: .6rem .9rem; margin: 1rem 0; }
.lang-box h3 { margin-top: 0; }
.lang-extra { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .4rem; }

/* annuler, recherche, copier-coller (0.0.44) */
.ed-undo { display: inline-flex; gap: .15rem; }
.ed-undo .btn { min-width: 2rem; font-size: 1.05rem; padding: .1rem .4rem; }
.ed-search { position: relative; }
.ed-search input { width: 9rem; padding: .25rem .5rem; font-size: .9rem; }
.ed-search-res { position: absolute; top: 100%; left: 0; z-index: 1200; width: 24rem; max-height: 60vh; overflow: auto; background: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: .3rem; }
.ed-search-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: .35rem .5rem; cursor: pointer; font: inherit; }
.ed-search-item:hover, .ed-search-item:focus { background: #eef6f3; }
.search-hit { outline: 3px solid #ffbf00; outline-offset: 1px; transition: outline-color 1s; }
.act-add-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ed-flash { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(1rem); background: #1f2d27; color: #fff; padding: .5rem 1rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 2000; max-width: 90vw; font-size: .9rem; }
.ed-flash.show { opacity: 1; transform: translateX(-50%); }
@media (max-width: 900px) { .ed-search input { width: 7rem; } .ed-search-res { width: 80vw; } }
.ed-lang[hidden], .ed-search-res[hidden] { display: none; }

/* traduction automatique (0.0.46) */
.tr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .45rem; }
.tr-field.tr-auto { background: #eef3ff; border-color: #7b93d6; box-shadow: inset 3px 0 0 #7b93d6; }
.mt { margin-top: .7rem; }
.tbl { border-collapse: collapse; width: 100%; margin: .6rem 0; font-size: .92rem; }
.tbl th, .tbl td { border: 1px solid var(--border, #d6dfda); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.tbl th { background: #f3f6f4; }
.tr-engines { border: 1px solid var(--border, #ddd); border-radius: 8px; padding: .4rem .8rem; margin-bottom: .6rem; }
.lang-box.locked { opacity: .85; }

/* lecteur de fichiers .gwc / .gwz (0.0.49) */
.wig-home { max-width: 760px; margin: 0 auto; }
.wig-drop { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 2rem 1rem; border: 2px dashed #9bb8aa; border-radius: 14px; background: #f6faf8; cursor: pointer; text-align: center; margin: 1rem 0; transition: background .2s; }
.wig-drop.over, .wig-drop:hover { background: #e6f2ec; border-color: #1f6f55; }
.wig-drop-ico { font-size: 2.4rem; }
.wig-recent-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid #eee; }
.wig-card h2 { margin: .4rem 0; }
.wig-splash-img { max-width: 100%; max-height: 260px; display: block; margin: 0 auto .5rem; border-radius: 8px; }
.wig-start { background: #f6faf8; border-radius: 8px; padding: .5rem .7rem; margin: .5rem 0; }
.wig-mode { display: flex; flex-wrap: wrap; gap: 1rem; margin: .8rem 0 .3rem; }
.pl-thumb { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; margin-right: .4rem; }
.pl-row.off { opacity: .55; }
.player[hidden], .wig-home[hidden] { display: none; }

/* zones : rond / carré centrés au clic, points libres (0.0.50) */
.vertex-mid { background: #fff; border: 2px solid #e8590c; border-radius: 50%; opacity: .55; }
.vertex-mid:hover { opacity: 1; }
.zone-center { font-size: 20px; line-height: 22px; text-align: center; color: #c92a2a; text-shadow: 0 0 3px #fff, 0 0 3px #fff; cursor: move; }
.zone-hint { background: #fff4d6; border: 1px solid #e0a800; border-radius: 6px; padding: .3rem .6rem; margin: 0 0 .4rem; }
.zone-radius { display: inline-flex; align-items: center; gap: .2rem; }
.zone-hint { min-height: 2.6em; }
.zone-hint.idle { background: transparent; border-color: transparent; color: #777; }

/* co-créateurs, don, cartouches modèles (0.0.51) */
.co-badge { font-size: .85rem; background: #e7f5ff; border: 1px solid #a5d8ff; border-radius: 999px; padding: .1rem .5rem; cursor: help; }
.tpl-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: #e7f5ff; border-bottom: 1px solid #a5d8ff; padding: .45rem 1rem; font-size: .92rem; }
.tpl-banner.tpl-admin { background: #fff4d6; border-color: #e0a800; }
.tpl-copy { display: flex; gap: .4rem; align-items: center; margin-left: auto; }
.tpl-copy input { width: 16rem; max-width: 50vw; padding: .25rem .5rem; }
.co-box, .give-box { margin-top: .4rem; }
.co-list { list-style: none; padding: 0; margin: .3rem 0; }
.co-list li { display: flex; align-items: center; gap: .4rem; padding: .15rem 0; }
.co-list form { display: inline; }
.co-line { font-size: .88rem; margin: .2rem 0 0; }
.tpl-section .card { border-left: 4px solid #339af0; }
.status-co { background: #e7f5ff; color: #1864ab; }
.status-tpl { background: #d0ebff; color: #1864ab; }
.btn[hidden], a.btn[hidden] { display: none !important; }
.tuto .tip-box { background: #e7f5ff; border-left: 4px solid #339af0; padding: .6rem .9rem; border-radius: 6px; margin: 1rem 0; }
.verify-resend { margin-top: .5rem; }

/* page « Jouer » : cartouches du site en bas (0.0.54) */
.site-carts { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid #e9ecef; }
.searchbar input[type=search] { min-width: 0; flex: 1 1 auto; }
.searchbar .btn { flex: 0 0 auto; }

/* lecteur de fichiers : repère du départ et boutons de la carte (0.0.55) */
.wig-startmk { font-size: 22px; line-height: 26px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.wig-mapbtns a { font-size: 16px; line-height: 30px; width: 30px; height: 30px; text-align: center; text-decoration: none; }

/* barre supérieure : le nom du site ne rétrécit plus sous le menu ; menu ☰ plus tôt pour un membre connecté (0.0.56) */
.brand { flex-shrink: 0; }
.topbar nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1180px) {
  body.logged .menu-toggle { display: block; }
  body.logged .topbar { flex-wrap: wrap; }
  body.logged .topbar nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; }
  body.logged .topbar nav.open { display: flex; }
}
.gwc-status { margin: .4rem 0; } .gwc-status.ok { color: #2b8a3e; } .gwc-status.err { color: #c92a2a; } .gwc-opts { background: #f1f3f5; border-radius: 6px; padding: .4rem .6rem; margin: .4rem 0; }
.check-row { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-bottom: .6rem; }

/* liste des membres (0.0.59) */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.member-card { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: inherit; padding: .6rem .8rem; }
.member-card:hover { border-color: #339af0; }
.member-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.member-main small { white-space: normal; }

/* lecteur : barre pour agrandir la carte (0.0.59) */
.pl-split { flex: 0 0 14px; background: #f1f3f5; border-top: 1px solid var(--line); cursor: row-resize; display: flex; align-items: center; justify-content: center; touch-action: none; }
.pl-split span { width: 48px; height: 4px; border-radius: 4px; background: #adb5bd; }
.pl-split:hover span, .pl-split:focus span { background: #339af0; }
body.pl-resizing { user-select: none; cursor: row-resize; }
body.pl-resizing .pl-map { pointer-events: none; }
/* traducteur d'une cartouche (0.0.59) */
.trl-banner { background: #f3f0ff; border-color: #b197fc; }
body.ed-tr-only .ed-list button, body.ed-tr-only .ed-add, body.ed-tr-only .map-tools { display: none; }
.status-trl { background: #f3f0ff; color: #5f3dc4; }

/* --- page Niveaux : parcours, mon niveau, tableau comparatif --- */
.lv-c0 { background: #e1f5ee; color: #085041; } .lv-c1 { background: #e6f1fb; color: #0c447c; }
.lv-c2 { background: #faeeda; color: #633806; } .lv-c3 { background: #eeedfe; color: #3c3489; }
.lv-c4 { background: #fbeaf0; color: #72243e; } .lv-c5 { background: #eaf3de; color: #27500a; }
.lv-c6 { background: #faece7; color: #712b13; } .lv-c7 { background: #f1efe8; color: #444441; }
.lv-bar .lv-c0 { background: #1d9e75; } .lv-bar .lv-c1 { background: #378add; } .lv-bar .lv-c2 { background: #ef9f27; } .lv-bar .lv-c3 { background: #7f77dd; }
.lv-bar .lv-c4 { background: #d4537e; } .lv-bar .lv-c5 { background: #639922; } .lv-bar .lv-c6 { background: #d85a30; } .lv-bar .lv-c7 { background: #888780; }
.lv-path { display: flex; align-items: flex-start; margin: 1.2rem 0 1.2rem; overflow-x: auto; padding: 6px 2px 4px; }
.lv-step { flex: 1 0 92px; text-align: center; min-width: 92px; }
.lv-ico { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.lv-step.here .lv-ico { outline: 3px solid var(--acc); outline-offset: 3px; }
.lv-name { font-weight: 600; font-size: .92rem; margin-top: .45rem; }
.lv-sub { font-size: .78rem; color: var(--muted); }
.lv-here { color: var(--acc); }
.lv-link { flex: 0 1 60px; min-width: 18px; border-top: 2px dashed var(--line); margin-top: 26px; }
.lv-link.done { border-top: 2px solid var(--pri); }
.lv-mine { border-left: 4px solid var(--acc); border-radius: 0 var(--r) var(--r) 0; }
.lv-mine-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem; font-size: 1.05rem; margin-bottom: .6rem; }
.lv-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: .7rem; }
.lv-metrics div { background: var(--bg); border-radius: 8px; padding: .5rem .7rem; }
.lv-metrics span { display: block; font-size: .75rem; color: var(--muted); }
.lv-metrics strong { font-size: 1.3rem; }
.lv-chip { display: inline-block; font-size: .78rem; padding: .12rem .6rem; border-radius: 99px; margin: .2rem .25rem 0 0; }
.lv-chip.on { background: #e3f4e6; color: #1e6b2f; }
.lv-chip.off { background: #eef1f0; color: #8a9692; }
.lv-next { font-size: .9rem; margin: 1rem 0 .4rem; }
.lv-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .8rem; color: var(--muted); }
.lv-bar { height: 8px; border-radius: 4px; background: #eef1f0; margin-top: .25rem; overflow: hidden; }
.lv-bar > div { height: 8px; border-radius: 4px; }
.lv-h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.lv-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .86rem; }
.lv-table th, .lv-table td { padding: .5rem .6rem; text-align: center; border-top: 1px solid var(--line); }
.lv-table thead th { border-top: 0; font-weight: 600; line-height: 1.3; }
.lv-table tbody th { text-align: left; font-weight: 500; color: var(--muted); white-space: nowrap; }
.lv-table td.lv-me { background: #fff6e6; }
.lv-table thead th.lv-me { box-shadow: inset 0 -3px 0 var(--acc); }
.lv-yes { color: var(--ok); font-weight: 700; } .lv-no { color: #b5c0bc; }
.lv-legend { margin-top: .5rem; }
@media (max-width: 640px) { .lv-metrics, .lv-bars { grid-template-columns: 1fr; } .lv-table tbody th { white-space: normal; } }

/* --- messages privés --- */
.member-card { justify-content: space-between; }
.member-link { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: inherit; min-width: 0; flex: 1; }
.pm-write { flex: none; }
.pm-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.pm-list { padding: .8rem; }
.pm-new details > summary { list-style: none; display: inline-block; margin-bottom: .6rem; }
.pm-new details > summary::-webkit-details-marker { display: none; }
.pm-new label { display: block; margin: .4rem 0; font-size: .85rem; }
.pm-new input, .pm-new textarea { width: 100%; }
.pm-convs { list-style: none; margin: .4rem 0; padding: 0; }
.pm-convs li a { display: block; padding: .5rem .55rem; border-radius: 8px; text-decoration: none; color: inherit; }
.pm-convs li a:hover { background: var(--bg); }
.pm-convs li.active a { background: #e7f3f0; }
.pm-convs li.unread strong { color: var(--pri-d); }
.pm-prev { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-date { display: block; font-size: .72rem; color: #9aa7a3; }
.pm-mailopt { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.pm-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: .6rem; }
.pm-head a { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; }
.pm-msgs { display: flex; flex-direction: column; gap: .5rem; max-height: 60vh; overflow-y: auto; padding: .3rem; }
.pm-msgs-mod { max-height: none; }
.pm-msg { max-width: 78%; }
.pm-msg.mine { align-self: flex-end; text-align: right; }
.pm-msg.theirs { align-self: flex-start; }
.pm-bubble { display: inline-block; text-align: left; padding: .5rem .75rem; border-radius: 14px; background: #eef1f0; white-space: normal; overflow-wrap: anywhere; }
.pm-msg.mine .pm-bubble { background: #d9efe9; }
.pm-msg.reported .pm-bubble { background: #ffe8cc; outline: 2px solid var(--warn); }
.pm-meta { font-size: .72rem; color: var(--muted); margin-top: .15rem; }
.pm-report { display: inline; }
.pm-report summary { display: inline; cursor: pointer; color: var(--muted); }
.pm-report form { margin-top: .3rem; text-align: left; }
.pm-reply { display: flex; gap: .5rem; align-items: flex-end; margin-top: .7rem; }
.pm-reply textarea { flex: 1; }
.pm-mod-actions { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
@media (max-width: 760px) { .pm-layout { grid-template-columns: 1fr; } .pm-msg { max-width: 92%; } }

/* pastille « nouveaux messages » : rouge, bien visible, aussi sur le bouton ☰ du téléphone */
.badge-pm { background: #e03131; color: #fff; font-weight: 700; min-width: 1.4em; display: inline-block; text-align: center; animation: pmPulse 2s ease-in-out 3; }
.menu-toggle { position: relative; }
.menu-toggle .badge-pm { position: absolute; top: -4px; right: -8px; font-size: .62rem; line-height: 1.5; }
@keyframes pmPulse { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .badge-pm { animation: none; } }

/* --- écran des noms lisibles après l'import --- */
.nm-tools { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; flex-wrap: wrap; }
.nm-tools input { max-width: 320px; }
.nm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.nm-table th, .nm-table td { padding: .35rem .5rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.nm-table td.num, .nm-table th.num { text-align: right; }
.nm-table input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
.nm-table input.nm-changed { border-color: var(--acc); background: #fff8ec; }
.nm-table input.nm-bad { border-color: #e03131; background: #fff5f5; }
.nm-err { display: block; color: #c92a2a; font-size: .75rem; min-height: 0; }
.nm-actions { margin-top: .8rem; }
.nm-revert { margin: 1rem 0; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.lua-name-inline { display: block; color: var(--muted); font-size: .75rem; margin-top: .15rem; }
.lua-name .mini, .lua-name-inline .mini { margin-left: .3rem; }

/* Version de la cartouche dans « Mes cartouches » */
.status-ver { background: #eef4fb; color: #1f5f99; font-variant-numeric: tabular-nums; text-transform: none; }
