/* « STEP proposé » : la maquette 3D du projet en miniature (js/step/propose.js).
   Feuille autonome : elle sert dans CAD, dans Développés et, par js/step/pastille.js, dans Imbrications et son Devis,
   qui n'ont pas css/app.css — d'où les couleurs de repli et les boutons décrits ici. */
.step-propose { flex: 0 0 auto; box-sizing: border-box; border-top: 1px solid var(--bord, #d9dee5); padding: 8px 12px 10px; background: var(--panneau, #fff);
  display: flex; flex-direction: column; font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texte, #1d2530); text-align: left; }
.step-propose[hidden] { display: none; }
.step-propose *, .step-propose *::before { box-sizing: border-box; }
.step-tete { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.step-propose h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 6px; color: var(--accent, #c2410c); }
.step-propose button { font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--bord, #d9dee5); background: #fff; color: var(--texte, #1d2530); cursor: pointer; width: auto; }
.step-propose button.primaire { background: var(--accent, #c2410c); border-color: var(--accent, #c2410c); color: #fff; }
.step-propose button:hover { filter: brightness(1.08); }
.step-propose button[disabled] { opacity: .6; cursor: default; }
.step-projet { font-size: 11.5px; color: var(--doux, #66717f); margin: -4px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-projet:empty { display: none; }
.step-vue { position: relative; height: 150px; border: 1px solid var(--bord, #d9dee5); border-radius: 6px; overflow: hidden; background: #eef1f5; cursor: grab; }
.step-vue canvas { position: absolute; inset: 0; }
.step-vue .recadrer { position: absolute; left: 4px; bottom: 4px; z-index: 4; }
.step-vue .vide { padding: 8px; font-size: 12px; color: var(--doux, #66717f); }
.step-vue .contexte-perdu { position: absolute; inset: 30% 6% auto; z-index: 5; background: #fff7ed; border: 1px solid #ea580c; color: #9a3412; padding: 6px; border-radius: 6px; font-size: 11.5px; text-align: center; }
.step-propose .note { margin: 6px 0 4px; font-size: 11.5px; line-height: 1.35; color: var(--doux, #66717f); }
.step-propose .note:empty { display: none; }
.step-propose .boutons { display: flex; gap: 6px; margin: 2px 0 0; }
.step-assembler { margin-top: 6px; align-self: flex-start; }
.step-assembler[hidden], .step-bilan[hidden] { display: none; }
.step-bilan { font-size: 11.5px; color: var(--doux, #66717f); margin: 0 0 6px; }
.step-bilan summary { cursor: pointer; }
.step-bilan ul { margin: 4px 0; padding-left: 16px; max-height: 110px; overflow: auto; }
/* hors de CAD, quand la page n'a pas de colonne pour elle : pastille en bas à droite (à gauche, elle couvrirait le
   bouton « Lancer l'imbrication »), qu'on replie */
.step-propose.flottant { position: fixed; right: 12px; bottom: 12px; width: 236px; z-index: 40; border: 1px solid var(--bord, #d9dee5); border-radius: 10px; box-shadow: 0 6px 24px rgba(15,23,32,.22); }
.step-propose.replie:not(.grand) > :not(.step-tete) { display: none; }
.step-propose.replie:not(.grand) { padding-bottom: 6px; width: auto; }
.step-propose.replie:not(.grand) h2 { margin: 0; }
/* en grand, au milieu de l'écran */
.step-fond { position: fixed; inset: 0; background: rgba(15,23,32,.45); z-index: 1100; }
.step-propose.grand { position: fixed; inset: 5vh 6vw; width: auto; z-index: 1101; border: 1px solid var(--bord, #d9dee5); border-radius: 10px; padding: 14px 18px; box-shadow: 0 12px 40px rgba(15,23,32,.35); }
.step-propose.grand .step-vue { flex: 1 1 auto; height: auto; min-height: 0; }
.step-propose.grand .note, .step-propose.grand .step-bilan { font-size: 13px; }
.step-propose.grand .step-bilan ul { max-height: 22vh; }
.step-message { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 1300; background: #1d2530; color: #fff; padding: 8px 14px; border-radius: 8px; font: 13px system-ui, sans-serif; max-width: 80vw; }
