/* Généré par outils/css-integre.py à partir de assets/devis.css : ne pas modifier ici.
   Version limitée au conteneur .nm, pour les pages affichées dans le site. */
/* Mise en page : bandeau sombre Niroline, puis un plan de travail clair en trois zones (pièce, configuration, devis). Un seul thème, voulu : celui des sections claires de niroline.ch. */
.nm {
  --ink: #221212; --paper: #ffffff; --mist: #eaf7fc; --mist-2: #d3e9f2;
  --text: #221212; --muted: #6f5f5f; --line: rgba(34,18,18,.13); --line-2: rgba(34,18,18,.32);
  --accent: #fd4819; --on-accent: #221212;
  --on-ink: #ffffff; --on-ink-muted: #cdbfbc; --ink-line: rgba(255,255,255,.16); --ink-soft: rgba(255,255,255,.09);
  --ok: #17703f; --warn: #8a5a00; --bad: #b3261e;
  --display: "NM Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "NM Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
.nm *, .nm *::before, .nm *::after { box-sizing: border-box; }
.nm { background: var(--paper); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.5; }
.nm .wrap { max-width: 1480px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.nm button, .nm input, .nm select, .nm textarea { font: inherit; color: inherit; }
.nm button { cursor: pointer; }
.nm :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nm h1, .nm h2, .nm h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.nm p { margin: 0; }
.nm .num { font-variant-numeric: tabular-nums; }
.nm .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nm .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nm .ic--plein { fill: currentColor; stroke: none; }
.nm .hint { font-size: 13px; color: var(--muted); }
.nm .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9999px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 15px; line-height: 1; padding: 15px 24px; }
.nm .btn:hover:not(:disabled) { filter: brightness(1.07); }
.nm .btn--ligne { background: transparent; color: var(--text); border-color: var(--line-2); padding: 11px 18px; font-size: 14px; }
.nm .btn--ligne:hover:not(:disabled) { border-color: var(--text); filter: none; }
.nm .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Bandeau */
.nm .bandeau { background: var(--ink); color: var(--on-ink); }
.nm .bandeau .wrap { padding-block: 20px 26px; display: flex; flex-direction: column; gap: 26px; }
.nm .marque { display: flex; align-items: center; gap: 14px; }
.nm a.marque { color: inherit; text-decoration: none; width: fit-content; }
.nm .marque .logo { height: 22px; width: auto; display: block; fill: currentColor; }
.nm .marque span { font-family: var(--display); font-size: 16px; padding-left: 14px; border-left: 1px solid var(--ink-line); color: var(--on-ink-muted); }
.nm .bandeau h1 { font-size: clamp(28px, 3.4vw, 40px); }

/* Grille */
.nm .grid { display: grid; gap: 32px 40px; grid-template-columns: minmax(0, 1fr); align-items: start; padding-block: 32px 112px; }
.nm .zone { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 840px) { .nm .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); } .nm .z-config { grid-column: 2; grid-row: 1 / span 2; } .nm .z-devis { grid-column: 1; } }
@media (min-width: 1240px) { .nm .grid { grid-template-columns: minmax(0, 1fr) 400px 330px; } .nm .z-config { grid-row: auto; } .nm .z-devis { grid-column: 3; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); max-height: calc(100dvh - 40px); overflow-y: auto; } }
.nm .zone h2 { font-size: 20px; }

/* Aperçu */
.nm .stage { position: relative; aspect-ratio: 5 / 4; max-width: 100%; max-height: 580px; min-height: 280px; width: 100%; background: radial-gradient(ellipse at 50% 35%, #ffffff, var(--mist-2)); overflow: hidden; }
.nm .stage canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.nm .filigrane { position: absolute; z-index: 0; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 54%; height: auto; fill: var(--ink); opacity: .07; pointer-events: none; }
.nm .stage.drop { outline: 2px dashed var(--accent); outline-offset: -10px; }
.nm .stage .vide { position: absolute; z-index: 2; inset: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px; color: var(--muted); }
.nm .stage .vide .ic { width: 40px; height: 40px; color: var(--accent); margin-bottom: 6px; }
.nm .stage .vide strong { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--text); }
.nm .outils { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 124px); }
.nm .outil { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 9999px; padding: 4px 11px; font-size: 13px; line-height: 1.5; }
.nm .outil input { width: 50px; border: 0; background: transparent; padding: 0; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.nm .outil input::-webkit-outer-spin-button, .nm .outil input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nm .outil select { border: 0; background: transparent; padding: 0; }
.nm button.outil[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.nm .diag { position: absolute; z-index: 2; top: 12px; right: 12px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 62%; }
.nm .diag li { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 9999px; padding: 5px 12px 5px 9px; font-size: 13px; line-height: 1.3; }
.nm .diag i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.nm .files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nm .file { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9999px; max-width: 100%; }
.nm .file[data-on="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.nm .file-b { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 4px 8px 14px; font-size: 14px; line-height: 1; min-width: 0; border-radius: 9999px; }
.nm .file-b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.nm .file-b .ic, .nm .file-x .ic, .nm .file-add .ic { width: 16px; height: 16px; }
.nm .file-x { display: inline-grid; place-items: center; background: none; border: 0; width: 32px; height: 32px; border-radius: 50%; opacity: .65; }
.nm .file-x:hover { opacity: 1; }
.nm .file-add { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px dashed var(--line-2); border-radius: 9999px; padding: 8px 14px; font-size: 14px; line-height: 1; }
.nm .file-add:hover { border-color: var(--accent); }
.nm #msg { font-size: 14px; color: var(--bad); }
.nm #msg:empty { display: none; }
.nm #msg.info { color: var(--muted); }
.nm .facts { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.nm .facts:empty { display: none; }
.nm .fact { display: flex; align-items: center; gap: 10px; }
.nm .fact .ic { width: 24px; height: 24px; color: var(--muted); }
.nm .fact b { display: block; font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.2; }
.nm .fact span { font-size: 12.5px; color: var(--muted); }
.nm .etat { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; border-radius: 9999px; padding: 6px 12px 6px 8px; margin-left: auto; }
.nm .etat .ic { width: 18px; height: 18px; }
.nm .etat.s-info { color: var(--text); background: var(--mist); } .nm .etat.s-ok { color: var(--ok); background: #e6f4ec; } .nm .etat.s-warn { color: var(--warn); background: #fdf1d7; } .nm .etat.s-bad { color: var(--bad); background: #fbe5e2; }

/* Configuration */
.nm #config { display: flex; flex-direction: column; gap: 22px; }
.nm .row { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nm .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; font-weight: 600; }
.nm .lbl span { font-weight: 400; color: var(--muted); text-align: right; }
.nm .techs { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.nm .tech { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 2px 10px; background: var(--paper); border: 1px solid var(--line); text-align: center; min-width: 0; }
.nm .tech .ic { width: 28px; height: 28px; margin-bottom: 2px; }
.nm .tech b { font-family: var(--display); font-weight: 500; font-size: 15px; line-height: 1.1; }
.nm .tech small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.nm .tech:hover:not(:disabled) { border-color: var(--line-2); }
.nm .tech[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--mist); }
.nm .tech[aria-pressed="true"] .ic { color: var(--accent); }
.nm .tech:disabled { opacity: .4; cursor: not-allowed; }
.nm .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.nm .pill { border: 1px solid var(--line-2); background: var(--paper); border-radius: 9999px; padding: 9px 15px; font-size: 14px; line-height: 1; }
.nm .pill:hover { border-color: var(--text); }
.nm .pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.nm .pill.barre { text-decoration: line-through; opacity: .55; background: var(--paper); border-color: var(--line-2); color: var(--text); }
.nm .pill.barre[aria-pressed="true"] { opacity: .85; border-color: var(--text); }
.nm .dots { display: flex; flex-wrap: wrap; gap: 12px; padding: 2px; }
.nm .dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); padding: 0; background: var(--c); }
.nm .dot[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.nm .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 9999px; background: var(--paper); }
.nm .seg button { border: 0; background: transparent; border-radius: 9999px; padding: 7px 4px; font-size: 13.5px; line-height: 1.2; text-align: center; font-variant-numeric: tabular-nums; min-width: 0; }
.nm .seg button small { display: block; font-size: 11.5px; color: var(--muted); }
.nm .seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.nm .seg button[aria-pressed="true"] small { color: var(--on-ink-muted); }
.nm .qrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nm .qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9999px; padding: 3px; }
.nm .qty button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; font-size: 20px; line-height: 1; }
.nm .qty button:hover { background: var(--mist); }
.nm .qty input { width: 50px; text-align: center; border: 0; background: transparent; font-size: 16px; font-variant-numeric: tabular-nums; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.nm .qty input::-webkit-outer-spin-button, .nm .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nm .qchips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 220px; min-width: 0; }
.nm .qchip { flex: 1 1 72px; white-space: nowrap; border: 1px solid var(--line); background: var(--paper); border-radius: 9999px; padding: 5px 6px; font-size: 13px; line-height: 1.2; text-align: center; font-variant-numeric: tabular-nums; }
.nm .qchip small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.nm .qchip:hover { border-color: var(--line-2); }
.nm .qchip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Devis */
.nm .devis { background: var(--mist); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.nm #quote { display: flex; flex-direction: column; gap: 18px; }
.nm .qlines { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.nm .qline { display: flex; justify-content: space-between; gap: 12px; }
.nm .qline span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm .qline span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nm .tot { display: flex; flex-direction: column; gap: 2px; }
.nm .tot span { font-size: 13.5px; font-weight: 600; }
.nm .tot strong { font-family: var(--display); font-weight: 500; font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; }
.nm .tot small { font-size: 13px; color: var(--muted); }
.nm .pick { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 9999px; padding: 0 14px; }
.nm .pick select { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 14px; }
.nm .quand { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nm .quand .ic { color: var(--accent); }
.nm .quand b { font-weight: 600; }
.nm #recap, .nm #recap-zone, .nm .client { display: flex; flex-direction: column; gap: 10px; }
.nm .client input:not([type="checkbox"]):not([type="file"]) { width: 100%; background: var(--paper); border: 1px solid var(--line-2); padding: 10px 12px; font-size: 14px; }
.nm .client .deux { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.nm .client .coche { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; }
.nm .client .coche input { margin-top: 2px; flex: none; }
.nm .client input[type="file"] { font-size: 13px; max-width: 100%; }
.nm .client .err { color: var(--bad); font-size: 13px; } .nm .client .err:empty { display: none; }
.nm #recap textarea { width: 100%; min-height: 180px; background: var(--paper); border: 1px solid var(--line-2); padding: 10px; font-size: 12.5px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; line-height: 1.45; resize: vertical; }

/* Orientation, options, commande */
.nm .vue-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.nm .vue-actions .ic { width: 16px; height: 16px; }
.nm .tourner { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.nm .vue-actions .tourner .outil { padding: 3px 9px; min-width: 30px; justify-content: center; }
.nm .dot-plus { height: 30px; border-radius: 9999px; padding: 0 11px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; }
.nm .dot-plus:hover { border-color: var(--text); }
.nm .consigne { position: absolute; z-index: 2; top: 12px; left: 12px; margin: 0; background: var(--ink); color: var(--on-ink); border-radius: 9999px; padding: 6px 14px; font-size: 13px; }
.nm .stage.choix canvas { cursor: crosshair; }
.nm #remarque { width: 100%; background: var(--paper); border: 1px solid var(--line-2); padding: 10px 12px; font-size: 14px; resize: vertical; min-height: 64px; }
.nm .actions { display: flex; flex-direction: column; gap: 10px; }
.nm .lien { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--text); font-size: 14px; text-decoration: underline; text-underline-offset: .2em; align-self: flex-start; text-align: left; }
.nm .lien .ic { width: 17px; height: 17px; }
.nm .liens { display: flex; flex-direction: column; gap: 2px; }
.nm .paiement { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nm .paiement legend { padding: 0; margin-bottom: 8px; width: 100%; }
.nm .securise { display: inline-flex; gap: 4px; align-items: center; color: var(--ok); font-weight: 500; }
.nm .securise .ic { width: 15px; height: 15px; }
.nm .moyen { display: grid; grid-template-columns: auto 22px minmax(0, 1fr); column-gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line-2); padding: 10px 12px; cursor: pointer; }
.nm .moyen input { grid-row: 1 / span 2; margin: 0; accent-color: var(--ink); }
.nm .moyen .ic { grid-row: 1 / span 2; width: 22px; height: 22px; }
.nm .moyen b { font-weight: 600; font-size: 14px; } .nm .moyen small { grid-column: 3; font-size: 12.5px; color: var(--muted); }
.nm .moyen:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.nm #confirm { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.nm #confirm h3 { font-size: 20px; }
.nm .etapes { list-style: none; margin: 0; padding: 0; counter-reset: e; display: flex; flex-direction: column; gap: 10px; }
.nm .etapes li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; counter-increment: e; }
.nm .etapes li::before { content: counter(e); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; }

/* Aperçu des documents A4 */
.nm .doc { position: fixed; inset: 0; z-index: 60; background: rgba(34,18,18,.74); display: flex; flex-direction: column; }
.nm .doc-barre { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; background: var(--ink); color: var(--on-ink); padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.nm .doc-barre b { font-family: var(--display); font-weight: 500; font-size: 18px; }
.nm .doc-barre .hint { color: var(--on-ink-muted); }
.nm .doc-barre .sp { flex: 1; }
.nm .doc-barre .btn--ligne { color: var(--on-ink); border-color: var(--ink-line); }
.nm .doc-barre .btn--ligne:hover:not(:disabled) { border-color: var(--on-ink); }
.nm .doc-pages { flex: 1; overflow: auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nm .cadre { flex: none; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.nm .feuille { width: 794px; min-height: 1123px; background: #fff; color: #221212; font: 400 11px/1.45 var(--body); padding: 46px 50px 36px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; transform-origin: top left; }
.nm .feuille h1, .nm .feuille h2, .nm .feuille h3, .nm .feuille h4, .nm .feuille h5, .nm .feuille p { margin: 0; }
.nm .f-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid #221212; }
.nm .f-tete img { height: 26px; width: auto; display: block; }
.nm .f-tete .svc { margin-top: 8px; color: #6f5f5f; }
.nm .f-titre { text-align: right; }
.nm .f-titre h1 { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -.02em; }
.nm .f-meta { display: grid; grid-template-columns: auto auto; gap: 2px 14px; justify-content: end; margin: 6px 0 0; }
.nm .f-meta dt { color: #6f5f5f; } .nm .f-meta dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.nm .f-adr { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nm .f-lbl { font: 600 9px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #c2390f; margin-bottom: 4px; }
.nm .f-piece { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; border: 1px solid #e3dcdc; padding: 12px; }
.nm .f-piece > img, .nm .f-piece > .f-img { width: 150px; height: 112px; object-fit: cover; background: #f3f7f9; display: block; }
.nm .f-piece h3 { font: 500 14px/1.2 var(--display); margin-bottom: 6px; }
.nm .f-specs { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 2px 10px; margin: 0; }
.nm .f-specs dt { color: #6f5f5f; white-space: nowrap; } .nm .f-specs dd { margin: 0; overflow-wrap: anywhere; }
.nm .f-specs .large { grid-column: 2 / -1; }
.nm .f-table { grid-column: 1 / -1; width: 100%; border-collapse: collapse; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.nm .feuille .f-table th { font: 600 8.5px/1.4 var(--body); text-transform: uppercase; letter-spacing: .06em; color: #6f5f5f; text-align: left; border-bottom: 1px solid #221212; padding: 4px 6px; white-space: nowrap; }
.nm .feuille .f-table td { padding: 4px 6px; border-bottom: 1px solid #eee6e6; white-space: normal; }
.nm .feuille .f-table .r { text-align: right; white-space: nowrap; }
.nm .feuille .f-table tr.st td { font-weight: 600; border-bottom: 0; }
.nm .f-total { margin-left: auto; width: 320px; display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; font-variant-numeric: tabular-nums; }
.nm .f-total dt { color: #6f5f5f; } .nm .f-total dd { margin: 0; text-align: right; }
.nm .f-total .gros { font: 500 18px/1.2 var(--display); color: #221212; border-top: 2px solid #221212; padding-top: 6px; margin-top: 4px; }
.nm .f-cond { display: flex; flex-direction: column; gap: 4px; color: #4d3f3f; font-size: 10px; }
.nm .f-pied { margin-top: auto; border-top: 1px solid #e3dcdc; padding-top: 8px; font-size: 9px; color: #6f5f5f; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nm .f-specimen { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font: 500 120px/1 var(--display); color: rgba(253,72,25,.09); pointer-events: none; white-space: nowrap; }
.nm .qrbill { margin: 0 -50px -36px; height: 397px; border-top: 1px dashed #000; display: grid; grid-template-columns: 234px 560px; font-family: Arial, Helvetica, sans-serif; color: #000; background: #fff; flex: none; }
.nm .qr-recu { border-right: 1px dashed #000; padding: 19px; display: flex; flex-direction: column; font-size: 10.7px; line-height: 1.3; }
.nm .qr-pay { padding: 19px; display: grid; grid-template-columns: 196px minmax(0, 1fr); column-gap: 6px; font-size: 13.3px; line-height: 1.3; }
.nm .qrbill h4 { font-size: 14.7px; font-weight: 700; margin: 0 0 16px; }
.nm .qr-recu h5 { font-size: 8px; font-weight: 700; margin: 0 0 1px; }
.nm .qr-pay h5 { font-size: 10.7px; font-weight: 700; margin: 0 0 1px; }
.nm .qr-bloc { margin-bottom: 11px; }
.nm .qr-code { width: 174px; height: 174px; display: block; margin-bottom: 16px; }
.nm .qr-mt { display: grid; grid-template-columns: auto auto; gap: 0 22px; justify-content: start; }
.nm .qr-vide { border: 1px solid #000; }
.nm .qr-coin { margin-top: auto; align-self: flex-end; font-size: 8px; font-weight: 700; }

/* Niro : bouton flottant et fenêtre de chat */
.nm .niro-fab { position: fixed; z-index: 40; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--on-ink); border: 0; border-radius: 9999px; padding: 8px 20px 8px 8px; font-family: var(--display); font-size: 16px; box-shadow: 0 8px 28px rgba(34,18,18,.28); }
.nm .niro-fab-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.1; text-align: left; }
.nm .niro-fab-txt b { font-weight: 500; }
.nm .niro-fab-txt small { font-family: var(--body); font-size: 12.5px; color: var(--on-ink-muted); }
.nm .ava { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); flex: none; }
.nm .ava .ic { width: 22px; height: 22px; }
.nm .ava--p { width: 28px; height: 28px; } .nm .ava--p .ic { width: 15px; height: 15px; }
.nm .niro { position: fixed; z-index: 50; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 40px)); height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--ink); color: var(--on-ink); box-shadow: 0 16px 48px rgba(34,18,18,.36); }
@media (max-width: 560px) { .nm .niro { inset: 0; width: auto; height: auto; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); } }
.nm .niro > header { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--ink-line); }
.nm .niro > header div { flex: 1; min-width: 0; line-height: 1.25; }
.nm .niro > header b { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; }
.nm .niro > header small { font-size: 12.5px; color: var(--on-ink-muted); }
.nm .niro-x { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--on-ink); }
.nm .niro-x:hover { background: var(--ink-soft); }
.nm .fil { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.nm .tour { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.nm .tour.u { justify-content: flex-end; }
.nm .bulle { max-width: 86%; padding: 10px 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 16px; }
.nm .tour.a .bulle { background: var(--ink-soft); border-bottom-left-radius: 4px; }
.nm .tour.u .bulle { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.nm .bulle .attente { color: var(--on-ink-muted); }
.nm .bulle .err { display: block; color: #ffb4a8; margin-top: 4px; }
.nm .bulle .appl { margin-top: 10px; display: block; width: 100%; background: transparent; color: var(--on-ink); border: 1px solid var(--ink-line); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; text-align: left; line-height: 1.35; }
.nm .bulle .appl:hover:not(:disabled) { border-color: var(--accent); }
.nm .bulle .appl:disabled { opacity: .6; cursor: default; }
.nm .sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.nm .sugg button { background: transparent; color: var(--on-ink); border: 1px solid var(--ink-line); border-radius: 9999px; padding: 7px 12px; font-size: 13px; text-align: left; line-height: 1.2; }
.nm .sugg button:hover:not(:disabled) { border-color: var(--accent); }
.nm .sugg button:disabled { opacity: .5; cursor: not-allowed; }
.nm .saisie { display: flex; gap: 8px; align-items: flex-end; padding: 12px 12px 8px 16px; border-top: 1px solid var(--ink-line); }
.nm .saisie textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 120px; background: var(--ink-soft); color: var(--on-ink); border: 1px solid transparent; border-radius: 20px; padding: 10px 14px; resize: none; font-size: 14.5px; line-height: 1.4; }
.nm .saisie textarea::placeholder { color: var(--on-ink-muted); }
.nm .saisie textarea:disabled { opacity: .5; }
.nm .saisie button { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.nm .saisie button:disabled { opacity: .5; cursor: not-allowed; }
.nm .niro-liens { padding: 0 16px 10px; }
.nm .niro-liens button { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--on-ink); border: 0; padding: 4px 0; font-size: 13.5px; text-decoration: underline; text-underline-offset: .2em; }
.nm .niro-liens .ic { width: 17px; height: 17px; }
.nm .contact { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ink-line); font-size: 13.5px; }
.nm .contact p span { user-select: all; white-space: nowrap; font-weight: 500; }
.nm .contact input { width: 100%; background: var(--ink-soft); color: var(--on-ink); border: 1px solid transparent; border-radius: 20px; padding: 9px 14px; font-size: 14px; }
.nm .contact input::placeholder { color: var(--on-ink-muted); }
.nm .contact .err { color: #ffb4a8; } .nm .contact .err:empty { display: none; }
.nm .contact .bas { display: flex; gap: 14px; align-items: center; }
.nm .contact .btn { padding: 11px 18px; font-size: 14px; }
.nm .contact .lien { background: none; border: 0; color: var(--on-ink-muted); padding: 0; font-size: 13.5px; text-decoration: underline; }
.nm .niro-mot { position: fixed; z-index: 45; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: min(330px, calc(100vw - 40px)); background: var(--ink); color: var(--on-ink); padding: 14px 14px 14px 16px; box-shadow: 0 12px 36px rgba(34,18,18,.32); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; font-size: 14px; line-height: 1.45; }
.nm .niro-mot .btn { grid-column: 2; justify-self: start; padding: 10px 16px; font-size: 14px; }
.nm .niro-mot .niro-x { width: 28px; height: 28px; margin: -4px -4px 0 0; }
.nm .niro .note { font-size: 11.5px; color: var(--on-ink-muted); padding: 0 16px 12px; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .nm .niro.pense > header .ava .ic { animation: tourne 2.4s linear infinite; }
  .nm .tech, .nm .pill, .nm .seg button, .nm .qchip, .nm .btn, .nm .file { transition: border-color .15s, background-color .15s, color .15s; }
}

/* Réglages atelier */
.nm .atelier { background: var(--mist); border-top: 1px solid var(--line); }
.nm .atelier .wrap { padding-block: 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.nm .atelier h2 { font-size: 24px; }
.nm .atools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nm .agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 32px; align-items: start; }
.nm .ablock { min-width: 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.nm .ablock h3 { font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nm .ablock h3 label { font-family: var(--body); font-size: 13px; letter-spacing: 0; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.nm .flds { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.nm .flds label, .nm .flds dt { color: var(--muted); } .nm .flds dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.nm .inp { display: inline-flex; align-items: center; gap: 6px; }
.nm .inp input, .nm .atelier td input { width: 92px; background: var(--paper); border: 1px solid var(--line-2); padding: 5px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.nm .inp em { font-style: normal; font-size: 12px; color: var(--muted); min-width: 52px; }
.nm .tw { overflow-x: auto; }
.nm table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.nm th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.nm td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.nm td.r, .nm th.r { text-align: right; }
.nm .formule { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; background: var(--paper); padding: 10px 12px; overflow-x: auto; white-space: pre; border: 1px solid var(--line); margin: 0; }
.nm footer .wrap { padding-block: 20px 100px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.nm footer .fin { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nm footer button { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: .2em; font-size: 13px; }
