/* Généré par outils/css-integre.py à partir de assets/machine.css : ne pas modifier ici.
   Version limitée au conteneur .nm, pour les pages affichées dans le site. */
/* Configurateur de machines : reprend la page de devis (devis.css) et ajoute un registre plus industriel :
   repères techniques en petites capitales, plaque de configuration, cotes, marquage d'atelier. */
.nm .mc-micro { font: 600 10.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nm .mc-bandeau .wrap { gap: 18px; padding-block: 20px 30px; }
.nm .mc-haut { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nm .mc-demande { padding: 11px 18px; font-size: 14px; }
.nm .mc-sous { max-width: 70ch; color: var(--on-ink-muted); font-size: 15px; }
.nm .mc-chiffres { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ink-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; }
.nm .mc-chiffres b { display: block; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; color: var(--on-ink); }
.nm .mc-chiffres span { font-size: 13px; color: var(--on-ink-muted); }

/* Aperçu 3D */
.nm .mc-stage { aspect-ratio: 4 / 3; max-height: 640px; background: radial-gradient(ellipse at 50% 30%, #ffffff, var(--mist-2)); }
.nm .mc-stage .filigrane { top: 22%; width: 46%; }
.nm .mc-statut { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); margin: 0; background: var(--ink); color: var(--on-ink); border-radius: 9999px; padding: 6px 14px 6px 11px; font-size: 13px; font-variant-numeric: tabular-nums; }
.nm .mc-statut span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm .mc-statut i { width: 9px; height: 9px; border-radius: 50%; background: #2bd46a; flex: none; box-shadow: 0 0 0 3px rgba(43,212,106,.25); }
.nm .mc-statut[data-c="warn"] i { background: #ffa21a; box-shadow: 0 0 0 3px rgba(255,162,26,.25); }
.nm .mc-cotes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.nm .mc-cotes span { position: absolute; left: 0; top: 0; background: var(--paper); border: 1px solid var(--ink); padding: 2px 7px; font: 600 11.5px/1.3 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nm .sans-3d::after { content: "L’aperçu 3D demande WebGL, indisponible sur cet appareil."; position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.nm .mc-ref { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nm .mc-ref code, .nm .mc-plaque code { font: 500 12.5px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* Configuration */
.nm #mc-config { display: flex; flex-direction: column; gap: 26px; }
.nm .mc-etape > .lbl b { display: inline-flex; align-items: center; gap: 9px; }
.nm .mc-etape > .lbl i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: var(--ink); color: var(--on-ink); font: 600 11.5px/1 var(--body); font-variant-numeric: tabular-nums; }
.nm .mc-gammes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nm .mc-gamme { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 10px 11px; background: var(--paper); border: 1px solid var(--line); text-align: left; min-width: 0; }
.nm .mc-gamme .ic { width: 28px; height: 28px; margin-bottom: 4px; }
.nm .mc-gamme b { font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.15; }
.nm .mc-gamme small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.nm .mc-gamme .mc-vol { margin-top: auto; padding-top: 6px; font: 500 11px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.nm .mc-gamme .mc-des { font-size: 12px; font-weight: 600; }
.nm .mc-gamme:hover { border-color: var(--line-2); }
.nm .mc-gamme[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--mist); }
.nm .mc-gamme[aria-pressed="true"] .ic { color: var(--accent); }
.nm .mc-format { display: flex; flex-direction: column; gap: 8px; }
.nm .mc-format label { display: grid; grid-template-columns: 92px minmax(0, 1fr) 76px; align-items: center; gap: 10px; font-size: 13px; }
.nm .mc-format input { width: 100%; accent-color: var(--accent); }
.nm .mc-format output { text-align: right; font-variant-numeric: tabular-nums; }
.nm .mc-ajout { color: var(--text); background: var(--mist); padding: 8px 10px; }
.nm .mc-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.nm .mc-opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.nm .mc-opt b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.nm .mc-opt small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.nm .mc-opt em { display: block; font-style: normal; font-size: 12px; color: var(--warn); margin-top: 2px; }
.nm .mc-prix { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.nm .mc-dech { display: flex; flex-direction: column; gap: 6px; }
.nm .mc-carte-opt { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); text-align: left; }
.nm .mc-carte-opt .ic { width: 24px; height: 24px; }
.nm .mc-carte-opt b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.nm .mc-carte-opt small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.nm .mc-carte-opt:hover { border-color: var(--line-2); }
.nm .mc-carte-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--mist); }
.nm .mc-carte-opt[aria-pressed="true"] .ic { color: var(--accent); }
.nm .mc-sous-lbl { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.nm .mc-etape .pick { border-radius: 9999px; }

/* Offre */
.nm .mc-plaque { display: flex; flex-direction: column; gap: 4px; background: var(--ink); color: var(--on-ink); padding: 14px 16px; border-left: 4px solid var(--accent); }
.nm .mc-plaque .mc-micro { color: var(--on-ink-muted); }
.nm .mc-plaque b { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.2; }
.nm .mc-plaque code { color: var(--on-ink-muted); }
.nm .mc-st { font-weight: 600; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.nm .mc-leasing { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: baseline; background: var(--paper); padding: 10px 12px; }
.nm .mc-leasing span { font-size: 13px; font-weight: 600; } .nm .mc-leasing b { font-family: var(--display); font-weight: 500; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.nm .mc-leasing small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.nm .mc-h3 { font-size: 18px; }
.nm .mc-offre .client textarea { width: 100%; background: var(--paper); border: 1px solid var(--line-2); padding: 10px 12px; font-size: 14px; resize: vertical; }
.nm #mc-confirm { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }

/* Blocs sous l'aperçu */
.nm .mc-bloc { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 6px; }
.nm .mc-bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nm .mc-bloc h2 { font-size: 22px; }
.nm .mc-fiche { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); margin: 0; font-size: 14px; }
.nm .mc-fiche dt, .nm .mc-fiche dd { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.nm .mc-fiche dt { color: var(--muted); padding-right: 14px; }
.nm .mc-fiche dd { overflow-wrap: anywhere; }
@media (max-width: 560px) { .nm .mc-fiche { grid-template-columns: minmax(0, 1fr); } .nm .mc-fiche dt { border-bottom: 0; padding-bottom: 0; font-size: 12.5px; } }
.nm .mc-prod-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }
.nm .mc-prod-champs label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.nm .mc-prod-champs select { width: 100%; border: 1px solid var(--line-2); border-radius: 9999px; background: var(--paper); padding: 9px 12px; font-size: 14px; color: var(--text); }
.nm .mc-n { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9999px; padding: 2px 4px 2px 14px; background: var(--paper); }
.nm .mc-n input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 7px 0; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.nm .mc-n input::-webkit-outer-spin-button, .nm .mc-n input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nm .mc-n span { padding: 0 10px 0 4px; font-size: 13px; color: var(--muted); }
.nm .mc-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.nm .mc-kpi > div { background: var(--paper); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nm .mc-kpi span { font: 600 10.5px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nm .mc-kpi b { font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.nm .mc-kpi small { font-size: 12px; color: var(--muted); }
.nm .mc-appliquer { align-self: flex-start; }
.nm .mc-comps { display: flex; flex-direction: column; gap: 14px; }
.nm .mc-leg { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
.nm .mc-leg span { display: inline-flex; align-items: center; gap: 6px; }
.nm .mc-leg i { width: 14px; height: 8px; background: var(--accent); }
.nm .mc-leg i.c { background: #b8b0ae; }
.nm .mc-comp { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.nm .mc-comp > span { font-weight: 600; }
.nm .mc-comp > div { display: flex; align-items: center; gap: 8px; }
.nm .mc-comp > div i { display: block; height: 14px; background: var(--accent); min-width: 2px; }
.nm .mc-comp > div.c i { background: #b8b0ae; }
.nm .mc-comp > div b { font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nm .mc-comp small { color: var(--ok); font-size: 12.5px; font-weight: 500; }
.nm .mc-note { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Choix du devis */
.nm .mc-modal { position: fixed; inset: 0; z-index: 70; background: rgba(34,18,18,.72); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.nm .mc-modal-boite { position: relative; width: min(760px, 100%); background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.nm .mc-modal-boite h2 { font-size: clamp(24px, 3vw, 32px); }
.nm .mc-modal-x { position: absolute; top: 12px; right: 12px; color: var(--text); }
.nm .mc-modal-x:hover { background: var(--mist); }
.nm .mc-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 6px 0; }
.nm .mc-carte { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line-2); background: var(--paper); color: var(--text); text-align: left; text-decoration: none; font-size: 14px; line-height: 1.45; }
.nm .mc-carte .ic { width: 34px; height: 34px; color: var(--accent); }
.nm .mc-carte b { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.15; }
.nm .mc-carte span { color: var(--muted); }
.nm .mc-carte em { font-style: normal; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 13.5px; }
.nm .mc-carte em::after { content: " →"; color: var(--accent); }
.nm .mc-carte:hover { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--mist); }
.nm .mc-f-fiche { grid-template-columns: 170px minmax(0, 1fr); }
@media (prefers-reduced-motion: no-preference) { .nm .mc-gamme, .nm .mc-carte-opt, .nm .mc-carte { transition: border-color .15s, background-color .15s; } }
@media (max-width: 560px) { .nm .mc-stage { aspect-ratio: 1 / 1; } .nm .mc-gammes { gap: 4px; } .nm .mc-gamme { padding: 10px 8px; } }

/* Ferme de production */
.nm .mc-ferme { background: var(--ink); color: var(--on-ink); }
.nm .mc-ferme .wrap { padding-block: 44px 52px; display: flex; flex-direction: column; gap: 18px; }
.nm .mc-ferme .mc-micro { color: var(--on-ink-muted); }
.nm .mc-ferme h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 6px; }
.nm .mf-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.nm .mf-tete > div:first-child { max-width: 64ch; min-width: 0; }
.nm .mf-sous { color: var(--on-ink-muted); font-size: 15px; margin-top: 10px; }
.nm .mf-vue { flex: 0 1 560px; min-width: 0; border-color: var(--ink-line); background: transparent; }
.nm .mf-vue button { color: var(--on-ink); }
.nm .mf-vue button small { color: var(--on-ink-muted); }
.nm .mf-vue button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.nm .mf-vue button[aria-pressed="true"] small { color: var(--ink); }
.nm .mf-stage { position: relative; aspect-ratio: 16 / 9; min-height: 320px; max-height: 720px; width: 100%; overflow: hidden; background: #e8f0f4; }
.nm .mf-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.nm .mf-horloge { position: absolute; z-index: 2; top: 12px; left: 12px; margin: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--text); border-radius: 9999px; padding: 6px 14px 6px 11px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nm .mf-horloge i { width: 10px; height: 10px; border-radius: 50%; background: #f2c230; box-shadow: 0 0 0 3px rgba(242,194,48,.3); }
.nm .mf-horloge[data-nuit="1"] { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink-line); }
.nm .mf-horloge[data-nuit="1"] i { background: #cfd8ff; box-shadow: 0 0 0 3px rgba(207,216,255,.25); }
.nm .mf-actions { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; gap: 6px; }
.nm .mf-actions .outil { color: var(--text); }
.nm .mf-compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.nm .mf-compteurs > div { background: var(--ink); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nm .mf-compteurs span { font: 600 10.5px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); }
.nm .mf-compteurs b { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.nm .mf-compteurs small { font-size: 12.5px; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.nm .mf-note { font-size: 12.5px; color: var(--on-ink-muted); max-width: 90ch; }
@media (max-width: 700px) { .nm .mf-stage { aspect-ratio: 4 / 5; } .nm .mf-vue { flex-basis: 100%; } .nm .mf-compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nm .mf-compteurs b { font-size: 24px; } }

/* Page « Demander un devis » (templates/demande.php) */
.nm .mc-page { padding-block: 40px 80px; display: flex; flex-direction: column; gap: 16px; }
.nm .mc-page > * { max-width: 900px; }
.nm .mc-page-titre { font-size: clamp(26px, 3vw, 34px); }
