/* Automatisations — canvas Klintt. Cotes relevées sur la référence (px natifs = px de la réf. × 4/3). */
:root {
  --fond: #121212;
  --j: #eef27a; --v: #79e0a0; --r: #e4606a; --bl: #7db6ea;
  --bleu: #4190f9;
  --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 3.5 20.4 10.4l-7.6 2.4-2.4 7.6z' fill='%23f2f2f2' stroke='%23141414' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 4, default;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fond); color: #e6e6e6; font-family: var(--font); font-weight: 300; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: hidden; user-select: none; -webkit-user-select: none; }
body, button { cursor: var(--fleche); }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; }
textarea, input { font: inherit; color: inherit; }
svg { display: block; }
i[class^="ic-"] { display: block; flex: none; }
i[class^="ic-"] svg { width: 100%; height: 100%; }

/* coins continus : le fond SVG se glisse derrière le contenu */
[data-sq] { position: relative; isolation: isolate; }
.sq-fond { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; overflow: visible; }

#app { position: fixed; inset: 0; overflow: hidden; }

/* ───── canvas (points tous les 22,4 px, comme la référence) */
#canvas { position: absolute; inset: 0; background-color: var(--fond); background-image: radial-gradient(circle, #2b2b2b 1.2px, transparent 1.45px); background-size: 22.4px 22.4px; touch-action: none; }
#canvas.main, #canvas.main * { cursor: grab !important; }
#canvas.glisse, #canvas.glisse * { cursor: grabbing !important; }
#monde { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
#monde.anime { transition: transform .6s cubic-bezier(.3,.7,.2,1); }
#monde.range .carte { transition: left .55s cubic-bezier(.3,.7,.2,1), top .55s cubic-bezier(.3,.7,.2,1); }
#fils { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
#fils .fil { fill: none; stroke: #4d4d4d; stroke-width: 1.33; }
#fils .prise { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; }
#fils .fil.trace { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: tracer .65s cubic-bezier(.4,0,.2,1) forwards; }
#fils .fil.choisi { stroke: #bdbdbd; }
#fils .fil.survol { stroke: #6a6a6a; }
#fils .fil.provisoire { stroke: #8a8a8a; stroke-dasharray: 4 4; }
@keyframes tracer { to { stroke-dashoffset: 0; } }

.lueur { position: absolute; border-radius: 50%; pointer-events: none; transition: opacity .6s ease; }

/* ───── cartes */
.carte { position: absolute; left: 0; top: 0; color: #ececec; }
.carte.glisse { z-index: 5; }
.carte .tete { display: flex; align-items: center; white-space: nowrap; font-size: 11.3px; font-weight: 400; color: #ececec; }
.carte .tete .t { overflow: hidden; text-overflow: ellipsis; }
.point { width: 6.13px; height: 6.13px; border-radius: 50%; flex: none; background: #fff; }
.point.j { background: var(--j); } .point.v { background: var(--v); } .point.r { background: var(--r); } .point.b { background: var(--bl); }
.prise-sortie { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; z-index: 4; cursor: crosshair !important; }
.prise-sortie::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.33px solid rgba(255,255,255,0); transition: border-color .12s; }
.prise-sortie:hover::after, .prise-sortie.actif::after { border-color: rgba(255,255,255,.5); }

.ports { display: flex; flex-direction: column; gap: 4px; font-size: 11.2px; color: #a6a6a6; }
.ports .l { display: flex; align-items: center; gap: 8.93px; height: 13.33px; white-space: nowrap; }
.ports.d { align-items: flex-end; }

/* champ (menu déroulant) */
.champ { display: flex; align-items: center; height: 36px; padding: 0 12px 0 10.67px; font-size: 11.2px; font-weight: 400; color: #e6e6e6; white-space: nowrap; cursor: pointer; }
.champ .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s; }
.champ .val .pre { color: #9a9a9a; font-weight: 300; }
.champ i.ic-caret { width: 13.33px; height: 13.33px; margin-left: 6px; color: #fff; }
.champ:hover .val { color: #fff; }
.champ.fixe { cursor: default; color: #bdbdbd; }
.champ.fixe:hover .val { color: #bdbdbd; }
.champ.vide .val { color: #8a8a8a; font-weight: 300; }
.champ input { all: unset; flex: 1; min-width: 0; font-size: 11.4px; font-weight: 300; color: #e6e6e6; cursor: text; user-select: text; -webkit-user-select: text; }
.champ input::placeholder { color: #8a8a8a; }

/* carte « Quand » (style « Model ») */
.k-quand { width: 237.33px; }
.k-quand .tete { height: 40px; padding-left: 20.93px; gap: 12.93px; }
.k-quand .panneau { position: relative; z-index: 1; margin: 0 5.33px 7.33px; padding: 15.33px 9.33px 7.33px 8px; display: flex; flex-direction: column; gap: 6px; }
.k-quand .ports { padding-right: 7.6px; margin-bottom: 10px; }
.k-quand .champ { height: 37.33px; }

/* cartes vertes / rouges (style « Positive / Negative ») */
.k-vert, .k-rouge { width: 238.67px; }
.k-vert .tete, .k-rouge .tete { height: 42.67px; padding: 0 15.6px; gap: 10.27px; }
.k-vert .tete .point:last-child, .k-rouge .tete .point:last-child { margin-left: auto; }
.carte .corps { padding: 0 9.33px 8.67px; display: flex; flex-direction: column; gap: 8px; }
.corps .lab { padding: 4px 6.67px 0; font-size: 11.5px; color: #b4b4b4; }
.corps .champ { height: 36px; font-size: 11.4px; padding-left: 9.33px; }
.texte-msg { padding: 5px 6.67px 3px; font-size: 11.5px; line-height: 14.67px; color: #b4b4b4; outline: none; min-height: 33px; white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text; cursor: text; }
.texte-msg:focus { color: #dadada; }
.texte-msg .var { display: inline; padding: 0.5px 4px; margin: 0 1px; border-radius: 4px; background: #3c3c3c; color: #ececec; font-weight: 400; white-space: nowrap; }
.texte-msg.ecrit::after { content: ""; display: inline-block; width: 1px; height: 11px; background: #fff; margin-left: 1px; vertical-align: -1px; animation: clign .8s steps(1) infinite; }
@keyframes clign { 50% { opacity: 0; } }

/* choix segmenté */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 36px; padding: 3.33px; }
.seg button { position: relative; z-index: 1; min-width: 0; font-size: 11px; font-weight: 400; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; transition: color .14s; }
.seg button:hover { color: #cfcfcf; }
.seg button.on { color: #f2f2f2; }
.seg .curseur-seg { position: absolute; top: 3.33px; bottom: 3.33px; left: 0; z-index: 0; transition: transform .22s cubic-bezier(.3,.7,.2,1), width .22s; }

/* puces */
.puces { display: flex; flex-wrap: wrap; gap: 6px; padding: 1px 0 0; }
.puce { height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 11px; font-size: 11px; font-weight: 400; color: #e2e2e2; white-space: nowrap; }
.puce.fixe { color: #9a9a9a; padding-right: 11px; }
.puce .x { width: 9.33px; height: 9.33px; color: #8a8a8a; cursor: pointer; }
.puce .x:hover { color: #fff; }
.puce.ajout { color: #8a8a8a; padding: 0 11px 0 8px; gap: 5px; cursor: pointer; }
.puce.ajout i { width: 13px; height: 13px; }
.puce.ajout:hover { color: #e2e2e2; }
.puce.choix { cursor: pointer; padding-right: 11px; }
.puce.choix.off { color: #6a6a6a; }
.puce.nait { animation: naitre .35s cubic-bezier(.2,.8,.2,1) both; }

/* carte action (style « Image Generator ») */
.k-action { width: 241.33px; }
.k-action .tete { height: 38.67px; padding-left: 22.27px; gap: 12.93px; }
.k-action .panneau { position: relative; z-index: 1; margin: 0 6.67px 4px; padding: 13.33px 6.67px 10px 14.67px; }
.k-action .entrees { display: flex; justify-content: space-between; padding: 0 8.93px 0 0.93px; }
.k-action .rangs { display: flex; flex-direction: column; gap: 7.6px; margin-top: 23.6px; }
.rang { display: grid; grid-template-columns: 1fr 106.67px; align-items: center; column-gap: 6px; height: 35.47px; }
.rang > .lab { padding: 0; font-size: 11px; color: #a2a2a2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rang .champ { height: 35.47px; font-size: 11px; font-weight: 300; color: #e2e2e2; padding: 0 10px 0 10.67px; }
.rang .champ i.ic-caret { margin-left: 4px; }
.rang .champ.bouton { justify-content: center; font-weight: 400; color: #e6e6e6; }
.pas { display: grid; grid-template-columns: 19.33px 56px 20.67px; column-gap: 5.33px; height: 35.47px; }
.pas > button, .pas > .n { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #e2e2e2; }
.pas > button i { width: 12px; height: 12px; color: #fff; }
.pas > button:active { transform: scale(.92); }
.pas > button.off i { color: #555; }
.rang .inter { justify-self: end; margin-right: 2px; }
.rang .bientot { justify-self: end; font-size: 10.6px; font-weight: 500; color: #7a7a7a; padding-right: 8px; }

.inter { width: 34px; height: 20px; border-radius: 10px; background: #3a3a3a; position: relative; flex: none; transition: background .16s; cursor: pointer; }
.inter::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #cfcfcf; transition: transform .18s cubic-bezier(.3,.7,.2,1), background .16s; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.inter.on { background: var(--bleu); }
.inter.on::after { transform: translateX(14px); background: #fff; }

/* carte aperçu (style « Preview Image ») */
.k-apercu { width: 296px; height: 422.67px; }
.k-apercu .tete-ext { position: absolute; left: 14.27px; top: -25.67px; height: 14px; display: flex; align-items: center; gap: 10.27px; font-size: 11.3px; font-weight: 400; color: #e6e6e6; white-space: nowrap; }
.k-apercu .entree { position: absolute; left: 14.27px; top: 15.67px; height: 14px; display: flex; align-items: center; gap: 7.47px; font-size: 10.5px; color: #a8a8a8; white-space: nowrap; }
.k-apercu .entree .h { position: absolute; left: 170px; color: #8a8a8a; }
.k-apercu .photo { position: absolute; left: 8px; top: 44px; width: 280px; height: 372px; z-index: 1; background: #1a1a1a; }
.photo .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .5s ease; }
.photo .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0) 36%, rgba(14,14,14,.4) 60%, rgba(14,14,14,.84) 100%); }
.photo .legende { position: absolute; left: 18.67px; right: 18.67px; bottom: 17.33px; }
.photo .legende .t { font-size: 12px; font-weight: 300; color: #fff; margin-bottom: 12px; }
.photo .legende .d { font-size: 10.6px; line-height: 16.8px; color: #f4eeee; }
.photo .legende .d b { font-weight: 500; color: #fff; }
.photo .legende .d s { color: #b4aaaa; }
.photo .legende .d .var-v { color: #fff; font-weight: 400; }
.photo .vignettes { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.vignette { position: relative; width: 36px; height: 36px; background-size: cover; background-position: center; cursor: pointer; transition: transform .15s, opacity .2s; }
.vignette:hover { transform: translateY(-1px); }
.vignette.passee { opacity: .3; }
.vignette.actuelle { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9); }
.photo .vignettes .coche { position: absolute; right: 3px; bottom: 3px; width: 13px; height: 13px; display: flex; align-items: center; justify-content: center; color: #121212; }
.photo .vignettes .coche i { width: 9px; height: 9px; }
.photo .rien { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #8a8a8a; }
.photo .evt { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); font-size: 10px; font-weight: 500; color: #fff; padding: 6px 10px; background: rgba(16,16,16,.5); border-radius: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo .evt + .evt { top: 44px; }

.outils { position: absolute; left: -17.33px; top: 446.67px; width: 330.67px; height: 52px; display: flex; align-items: center; padding: 0 0 0 11.33px; }
.outils .ob { height: 36px; display: flex; align-items: center; justify-content: center; color: #8a8a8a; }
.outils .ob:nth-child(2) { width: 35.33px; } .outils .ob:nth-child(3) { width: 36.67px; margin-left: 3.97px; } .outils .ob:nth-child(4) { width: 36px; margin-left: 4.67px; } .outils .ob:nth-child(5) { width: 38px; margin-left: 4.67px; }
.outils .ob:hover { color: #d6d6d6; }
.outils .ob i { width: 16px; height: 16px; }
.outils .grp { margin-left: 3.33px; width: 146.67px; height: 36px; display: flex; align-items: center; padding: 0 0 0 10.67px; font-size: 10.6px; font-weight: 500; color: #dcdcdc; white-space: nowrap; }
.outils .grp .sel { display: flex; align-items: center; gap: 5px; height: 36px; cursor: pointer; }
.outils .grp .sel:hover { color: #fff; }
.outils .grp .sel i { width: 9.33px; height: 9.33px; color: #b0b0b0; }
.outils .grp .sep { width: 1.07px; height: 30.67px; background: #101010; margin: 0 10px; flex: none; }
.outils .grp .fin { margin-left: auto; margin-right: 4px; width: 30px; height: 36px; display: flex; align-items: center; justify-content: center; color: #8a8a8a; }
.outils .grp .fin:hover { color: #fff; }
.outils .grp .fin.ok { color: var(--v); }
.outils .grp .fin i { width: 16px; height: 16px; }

/* en-tête de groupe (« Prompt » + « Generate ») */
.tete-groupe { position: absolute; left: 15.6px; top: -38.67px; height: 24.67px; width: 218px; display: flex; align-items: center; gap: 12.27px; font-size: 11.3px; font-weight: 400; color: #e6e6e6; white-space: nowrap; }
.pille { position: absolute; left: 150.67px; top: 0; height: 24.67px; display: flex; align-items: center; gap: 2px; padding: 0 9px 0 5px; font-size: 9.6px; font-weight: 500; color: #123b20; white-space: nowrap; }
.pille i { width: 14.67px; height: 14.67px; color: #123b20; }
.pille:active { transform: scale(.96); }

/* carte pointillée « ajouter » */
.k-ajout { width: 238.67px; height: 144px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 11.3px; font-weight: 400; color: #9a9a9a; cursor: pointer; }
.k-ajout i { width: 22px; height: 22px; color: #9a9a9a; }
.k-ajout:hover, .k-ajout:hover i { color: #e6e6e6; }

/* apparition et travail d'Otto */
.nait { animation: naitre .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes naitre { from { opacity: 0; transform: translateY(10px) scale(.965); } to { opacity: 1; transform: none; } }
.lueur-travail { opacity: 0; }
.travaille .lueur-travail { animation: respire 1.6s ease-in-out infinite; }
@keyframes respire { 0%, 100% { opacity: .9; } 50% { opacity: .4; } }
.attend .val, .attend .pas .n, .attend .texte-msg, .attend .puces, .attend .seg button, .attend .seg .curseur-seg, .attend .inter { opacity: 0; }
.attend .val, .attend .pas .n, .attend .texte-msg, .attend .puces, .attend .seg button { transition: none; }

/* ───── interface fixe */
.ui { position: absolute; z-index: 20; }
.b:where(:not(.point)) { height: 38.67px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 10.6px; font-weight: 500; color: #e8e8e8; white-space: nowrap; flex: none; }
.b:active { transform: scale(.975); }
.b[data-sq="bouton2"] { color: #dcdcdc; }
.b:hover > .sq-fond path:first-child { fill: #2a2a2a; }
.b[data-sq="blanc"]:hover > .sq-fond path:first-child { fill: #ececec; }
.b.actif > .sq-fond path:first-child { fill: #252525; }
.b.actif { color: #f2f2f2; }
.ico { width: 37.33px; padding: 0; }

#haut { left: 0; right: 0; top: 21.33px; height: 38.67px; pointer-events: none; }
#haut > * { pointer-events: auto; }
#logo { position: absolute; left: 28px; top: 6px; width: 30px; height: 27px; display: flex; align-items: center; justify-content: center; }
#logo svg { width: 27.5px; height: 24.6px; }
#onglets-g { position: absolute; left: 86.67px; top: 0; display: flex; gap: 5.33px; }
#onglets-g .b { min-width: 86.67px; padding: 0 16px; }
#onglets-g .nb { margin-left: 7px; min-width: 16px; height: 16px; padding: 0 4.5px; border-radius: 8px; background: #e8e8e8; color: #141414; font-size: 9.6px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
#onglets-g .nb:empty { display: none; }
#centre { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; gap: 8px; }
#prec i, #suiv i { width: 12px; height: 12px; color: #a0a0a0; }
#prec.off i, #suiv.off i { color: #4a4a4a; }
#onglets-c { display: flex; gap: 8px; }
.onglet { padding: 0 20px 0 26px; min-width: 121.33px; gap: 12px; color: #e8e8e8; }
.onglet.inactif { color: #8c8c8c; }
.onglet.inactif > .sq-fond path:first-child { fill: #1b1b1b; }
.onglet .x { width: 9.33px; height: 9.33px; color: #8d8d8d; display: flex; }
.onglet .x:hover { color: #fff; }
.onglet .x i { width: 100%; height: 100%; }
#droite { position: absolute; right: 26.67px; top: 0; display: flex; }
#droite > * + * { margin-left: 5.33px; }
#droite #file { margin-left: 1.33px; }
#droite #fermer { margin-left: 12px; }
#plus i { width: 14.67px; height: 16px; color: #d0d0d0; }
#fermer i { width: 16px; height: 16px; color: #d0d0d0; }
#cas i, #nav i { width: 17.33px; height: 17.33px; color: #c8c8c8; }
#file { padding: 0 6px 0 2.67px; gap: 0; }
#file .in { height: 33.33px; padding: 0 14px 0 9.33px; display: flex; align-items: center; gap: 10.67px; font-size: 11.8px; font-weight: 500; color: #ececec; }
#file .in i { width: 20px; height: 20px; color: #e8e8e8; }
#file .in:hover i { color: #fff; }
#file .in.court i { color: var(--v); }
#file .fl { width: 30px; height: 33.33px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: #a8a8a8; }
#file .fl i { width: 10.67px; height: 10.67px; margin: -1px 0; }
#file .fl:hover { color: #fff; }

#rang2 { left: 0; right: 0; top: 88px; height: 40px; pointer-events: none; }
#rang2 > * { pointer-events: auto; }
#boutiques { position: absolute; left: 32px; top: 4px; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 15px 0 12px; font-size: 10.6px; font-weight: 500; color: #e6e6e6; }
#boutiques .avs { display: flex; }
#boutiques .av { width: 22.67px; height: 22.67px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
#boutiques .av + .av { margin-left: -3px; box-shadow: 0 0 0 1.5px #262626; }
#boutiques:hover { color: #fff; }
#titre { position: absolute; left: 50%; top: 0; height: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; font-size: 11.8px; color: #8c8c8c; white-space: nowrap; }
#titre .etat { width: 6.13px; height: 6.13px; border-radius: 50%; background: #565656; transition: background .3s, box-shadow .3s; }
#titre.allumee .etat { background: var(--v); box-shadow: 0 0 6px rgba(121,224,160,.55); }
#phrase em { font-style: normal; color: #d6d6d6; }
#actions { position: absolute; right: 25.33px; top: 0; display: flex; gap: 5.33px; }
#actions .b { height: 40px; font-size: 11.6px; gap: 8.5px; }
#allumer { padding: 0 18px 0 15px; color: #1a1a1a; min-width: 102.67px; }
#allumer i { width: 17.33px; height: 17.33px; color: #1a1a1a; }
#partager { padding: 0 17px 0 13px; color: #e8e8e8; min-width: 118.67px; }
#partager i { width: 18.67px; height: 18.67px; color: #e0e0e0; }

#zoom { right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 7.33px; }
#zoom .b { width: 38px; height: 36.67px; }
#zoom .b i { width: 15.33px; height: 15.33px; color: #9a9a9a; }
#zoom .b:hover i { color: #e0e0e0; }
#zoom .b.on i { color: #fff; }

.stats { bottom: 35.33px; font-size: 11.6px; line-height: 20.8px; color: #a0a0a0; white-space: nowrap; pointer-events: none; }
#stats-g { left: 32px; }
#stats-d { right: 26.67px; text-align: right; }

/* ───── barre d'Otto (style du chat de la référence) */
#otto { left: 50%; bottom: 36.67px; transform: translateX(-50%); width: 338.67px; }
#otto-boite { width: 338.67px; height: 132px; }
#otto-zone { position: absolute; left: 1.33px; top: 1.33px; width: 336px; height: 76px; padding: 14.4px 16px 0 16px; display: flex; flex-direction: column; }
#otto-zone .lab { display: flex; align-items: center; gap: 4px; height: 10px; font-size: 7.6px; color: #9a929e; margin-bottom: 6px; }
#otto-zone .lab i { width: 9px; height: 9px; color: #b9b0bc; }
#otto.travaille #otto-zone .lab i { animation: tourne 1.4s linear infinite; color: #fff; }
@keyframes tourne { to { transform: rotate(360deg); } }
#otto-texte { display: block; width: 100%; height: 34px; margin: 0; padding: 0; border: 0; outline: 0; resize: none; background: none; font-size: 10.05px; line-height: 16px; font-weight: 300; color: #d9d2dc; caret-color: #fff; overflow: hidden; user-select: text; -webkit-user-select: text; cursor: text; }
#otto-texte::placeholder { color: #8f8592; }
#otto-barre .blanc { position: absolute; left: 28px; top: 83.33px; width: 39.33px; height: 38px; display: flex; align-items: center; justify-content: center; color: #151515; }
#otto-barre .blanc i { width: 16.67px; height: 16.67px; }
#otto-barre .blanc:active { transform: scale(.95); }
#otto-barre .ob { position: absolute; top: 83.33px; width: 34px; height: 38px; display: flex; align-items: center; justify-content: center; color: #b4b4b4; }
#otto-barre .ob i { width: 15.33px; height: 15.33px; }
#otto-barre .ob:hover, #otto-barre .ob.on { color: #fff; }
#o-modeles { left: 74px; } #o-blocs { left: 116.67px; } #o-annuler { left: 159.33px; }
#o-tester { left: 231.33px; } #o-reglages { left: 275.33px; }
#otto-barre .sep { position: absolute; left: 212.67px; top: 89.33px; width: 1.2px; height: 25.33px; background: #4a4a4a; }

/* bulle d'Otto, au-dessus de la barre */
#bulle { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(6px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
#bulle.vue { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
#bulle .in { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 7px 0 15px; font-size: 11.3px; font-weight: 400; color: #ececec; }
#bulle .in > i { width: 13px; height: 13px; color: var(--v); }
#bulle .b { height: 32px; padding: 0 13px; font-size: 10.6px; }
#bulle .b[data-sq="blanc"] { color: #1a1a1a; }
#bulle .b i { width: 14px; height: 14px; }

/* idées (barre vide) */
#idees { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); display: flex; gap: 6px; transition: opacity .2s, transform .2s; }
#idees .b { height: 32px; padding: 0 13px; font-size: 10.6px; color: #d6d6d6; }
#idees .b i { width: 12px; height: 12px; color: #9a9a9a; }
#idees.cache { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(6px); }

/* curseur d'Otto */
#curseur-otto { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
#curseur-otto.vu { opacity: 1; }
#curseur-otto svg { position: absolute; left: -4px; top: -4px; }
#curseur-otto .et { position: absolute; left: 13px; top: 20px; height: 22px; padding: 0 9px; display: flex; align-items: center; font-size: 9.8px; font-weight: 600; color: #fff; white-space: nowrap; }

/* ───── flottants : menus, panneaux, bulles d'aide, toasts */
#couche { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
#couche > * { pointer-events: auto; }
.menu { position: absolute; min-width: 168px; max-width: 320px; padding: 5.33px; opacity: 0; transform: translateY(-4px) scale(.985); transform-origin: top left; transition: opacity .12s, transform .12s; }
.menu.vu { opacity: 1; transform: none; }
.menu .it { position: relative; height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 11px; font-size: 11px; font-weight: 400; color: #dcdcdc; cursor: pointer; white-space: nowrap; border-radius: 8.67px; }
.menu .it:hover { background: rgba(255,255,255,.065); color: #fff; }
.menu .it > i { width: 14px; height: 14px; color: #a0a0a0; }
.menu .it .ok { margin-left: auto; width: 12px; height: 12px; color: #fff; opacity: 0; }
.menu .it.on .ok { opacity: 1; }
.menu .it .sous { margin-left: auto; padding-left: 14px; font-size: 10px; color: #7a7a7a; }
.menu .it.off { color: #666; cursor: default; }
.menu .it.off:hover { background: none; }
.menu .titre-m { padding: 7px 11px 5px; font-size: 9.6px; font-weight: 500; color: #7c7c7c; }
.menu .filet { height: 1.07px; background: #2a2a2a; margin: 4px 6px; }

.volet { position: absolute; left: 32px; top: 76px; width: 356px; max-height: calc(100% - 290px); display: flex; flex-direction: column; opacity: 0; transform: translateY(-6px); transition: opacity .16s, transform .16s; }
.volet.vu { opacity: 1; transform: none; }
.volet .ent { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 18px; font-size: 12px; font-weight: 500; color: #f0f0f0; flex: none; }
.volet .ent .b { height: 32px; margin-left: auto; padding: 0 13px; font-size: 10.6px; }
.volet .ent .b i { width: 13px; height: 13px; }
.volet .liste { overflow: auto; padding: 0 8px 10px; scrollbar-width: none; }
.volet .liste::-webkit-scrollbar { display: none; }
.volet .bloc-t { padding: 12px 10px 6px; font-size: 9.6px; font-weight: 500; color: #7c7c7c; }
.ligne-a { position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px; cursor: pointer; border-radius: 12px; }
.ligne-a:hover { background: rgba(255,255,255,.04); }
.ligne-a.actuelle { background: rgba(255,255,255,.055); }
.ligne-a .ic { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex: none; color: #d6d6d6; }
.ligne-a .ic i { width: 16px; height: 16px; }
.ligne-a .tx { flex: 1; min-width: 0; }
.ligne-a .n { font-size: 11.3px; font-weight: 400; color: #ececec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-a .m { margin-top: 3px; font-size: 10px; color: #8a8a8a; white-space: nowrap; }
.ligne-a .m.dem { color: #e8d36a; }
.ligne-a .fl { width: 12px; height: 12px; color: #6a6a6a; }
.journal .jl { display: flex; gap: 12px; padding: 10px; align-items: flex-start; border-radius: 12px; cursor: pointer; }
.journal .jl:hover { background: rgba(255,255,255,.035); }
.journal .jl .h { width: 46px; flex: none; font-size: 10px; color: #8a8a8a; padding-top: 1px; line-height: 14px; }
.journal .jl .c { flex: 1; min-width: 0; }
.journal .jl .c .n { font-size: 11.3px; color: #ececec; font-weight: 400; }
.journal .jl .c .m { font-size: 10px; color: #9a9a9a; margin-top: 3px; }
.journal .jl .vs { display: flex; gap: 5px; margin-top: 8px; }
.journal .jl .vs span { width: 30px; height: 30px; background-size: cover; background-position: center; }
.journal .jl .vs span.passee { opacity: .3; }
.valider .art { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; cursor: pointer; }
.valider .art:hover { background: rgba(255,255,255,.04); }
.valider .art .ph { width: 40px; height: 40px; background-size: cover; background-position: center; flex: none; }
.valider .art .tx { flex: 1; min-width: 0; }
.valider .art .n { font-size: 11.3px; color: #ececec; font-weight: 400; }
.valider .art .m { font-size: 10px; color: #8a8a8a; margin-top: 3px; }
.valider .art .ck { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: #121212; flex: none; }
.valider .art .ck i { width: 12px; height: 12px; }
.valider .art.non .ck i { opacity: 0; }
.valider .art.non .n { color: #8a8a8a; }
.valider .pied { display: flex; gap: 6px; padding: 10px 10px 4px; }
.valider .pied .b { flex: 1; height: 36px; }
.valider .pied .b[data-sq="blanc"] { color: #1a1a1a; }
.valider .vide-p { padding: 26px 10px 30px; text-align: center; font-size: 11.3px; color: #9a9a9a; }

#biblio { position: absolute; left: 50%; bottom: 186px; width: 640px; transform: translateX(-50%) translateY(6px); padding: 14px 12px 10px; opacity: 0; transition: opacity .16s, transform .16s; }
#biblio.vu { opacity: 1; transform: translateX(-50%); }
#biblio .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#biblio .col-t { display: flex; align-items: center; gap: 8px; padding: 0 8px 8px; font-size: 10.6px; font-weight: 500; color: #9a9a9a; }
#biblio .bloc { position: relative; height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 10px; margin-bottom: 4px; font-size: 11px; font-weight: 400; color: #dcdcdc; cursor: grab; white-space: nowrap; }
#biblio .bloc:hover { color: #fff; }
#biblio .bloc:hover > .sq-fond path:first-child { fill: #282828; }
.fantome { position: absolute; z-index: 80; pointer-events: none; opacity: .94; height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 12px; font-size: 11px; font-weight: 400; color: #fff; white-space: nowrap; }

.tip { position: absolute; z-index: 90; height: 26px; display: flex; align-items: center; padding: 0 9px; font-size: 10.4px; font-weight: 500; color: #ececec; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.tip.vu { opacity: 1; }

.toast { position: absolute; left: 50%; top: 148px; transform: translateX(-50%) translateY(-6px); opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none !important; }
.toast.vu { opacity: 1; transform: translateX(-50%); }
.toast .in { height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 16px 0 13px; font-size: 11.3px; font-weight: 400; color: #ececec; white-space: nowrap; }
.toast .in i { width: 14px; height: 14px; color: var(--v); }

/* fenêtres étroites : la référence est faite pour 1440 px */
@media (max-width: 1180px) {
  #onglets-g .b { min-width: 0; padding: 0 12px; }
  #titre { display: none; }
}

/* ───── ajouts du moteur */
.carte .tete { position: relative; z-index: 1; }
.carte.pas-la { visibility: hidden; }
.cache-v { opacity: 0 !important; }
.puce, .texte-msg, .pas .val { transition: opacity .28s ease; }
.seg button { transition: color .14s, opacity .28s; }
.seg .curseur-seg { transition: transform .22s cubic-bezier(.3,.7,.2,1), width .22s, opacity .28s; }
.inter { transition: background .16s, opacity .28s; }
.flash { animation: flash 1.1s ease; }
@keyframes flash { 0% { filter: brightness(2) saturate(1.3); } 100% { filter: none; } }
#canvas.anime { transition: background-size .6s cubic-bezier(.3,.7,.2,1), background-position .6s cubic-bezier(.3,.7,.2,1); }
.stats b { font-weight: 400; color: #d8d8d8; margin-left: 4px; }
.legende.re { animation: naitre .45s cubic-bezier(.2,.8,.2,1) both; }
.photo .img.part { opacity: 0; }
#allumer.off { opacity: .35; pointer-events: none; }
#allumer .lb, #partager .lb { pointer-events: none; }
#biblio .bloc .point { flex: none; }
#biblio .col-t .point { flex: none; }
.carte .lueur-travail { left: 14%; top: -10px; width: 72%; height: 34px; background: #8f84a8; filter: blur(16px); }
.k-apercu .lueur-travail { top: 30px; }
.vignette { flex: none; }
.journal .jl .vs span { display: block; }
.menu .it .nb-cas { width: 16px; flex: none; font-size: 9.6px; font-weight: 600; color: #6a6a6a; }
.menu .it.on .nb-cas { color: #fff; }
.carte .champ.otto-vu > .sq-fond path:first-child { fill: #22252c; }
#otto-texte:focus::placeholder { color: #a79dab; }
