/* WeldVisions — styles propres au module Projets et soudures (projets.js).
   Chargé après styles.css, dont il reprend les jetons (--navy-900, --accent, --radius…)
   et le gabarit de ligne du carnet (.carnet-acces / .ca-*). Rien ici ne redéfinit une
   classe existante, sauf l'indicateur d'espace de la barre du haut, devenu un bouton. */

/* ── Indicateur d'espace actif (barre du haut) ───────────────────
   Même pastille qu'avant, mais cliquable : elle ouvre le sélecteur d'espace. */
button.brand-tag { font-family: inherit; background: none; cursor: pointer; min-height: 32px; }
button.brand-tag:active { background: rgba(255, 255, 255, .08); }
.brand-tag.atelier { color: var(--accent); border-color: rgba(34, 211, 238, .45); }

/* ── Cartes de liste : projet, soudure, entrée depuis l'accueil ── */
.pj-carte { display: flex; align-items: center; gap: 12px; text-align: left; }
.pj-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; background: linear-gradient(140deg, var(--navy-700), var(--accent-strong)); color: #fff; }
.pj-ic svg { width: 20px; height: 20px; }
.pj-txt { flex: 1; min-width: 0; }
.pj-txt b { display: block; font-size: 15px; font-weight: 700; color: var(--heading, var(--navy-900)); overflow-wrap: anywhere; }
.pj-txt small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.pj-go { flex-shrink: 0; color: var(--muted); }
.pj-go svg { width: 18px; height: 18px; }
.pj-statut { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); flex-shrink: 0; }
.pj-entree { margin-top: 10px; }

.pj-desc { font-size: 14px; line-height: 1.5; color: var(--text); margin-top: 10px; white-space: pre-line; overflow-wrap: anywhere; }

/* Ce qui viendra à la prochaine étape : visible, mais clairement pas encore là. */
.pj-a-venir { border-style: dashed; background: var(--surface-2); }
.pj-a-venir b { display: block; font-size: 15px; color: var(--heading, var(--navy-900)); margin-bottom: 4px; }

/* ── Formulaires ─────────────────────────────────────────────────── */
.pj-textarea { width: 100%; min-height: 84px; padding: 12px; resize: vertical; font-family: inherit; font-size: 16px; line-height: 1.45;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.pj-textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: var(--focus); }

/* Liste déroulante + bouton « ajouter » sur la même ligne. */
.pj-select-plus { display: flex; gap: 8px; }
.pj-select-plus select { flex: 1; min-width: 0; }
.pj-plus { width: var(--tap); min-width: var(--tap); min-height: 48px; padding: 0; flex-shrink: 0; }
.pj-plus svg { width: 20px; height: 20px; }

/* ── Sélecteur d'espace (fenêtre du bas) ─────────────────────────── */
.pj-espaces { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.pj-espace { display: block; width: 100%; text-align: left; cursor: pointer; font-family: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius); padding: 12px 14px; min-height: var(--tap); }
.pj-espace.on { border-color: var(--accent-deep); background: #ecfeff; }
.pj-espace b { display: block; font-size: 15px; color: var(--heading, var(--navy-900)); }
.pj-espace small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.pj-bientot { margin-top: 8px; }

/* ── Soudeurs et WPS ─────────────────────────────────────────────── */
.pj-ref { min-height: var(--tap); }
.pj-ref small { color: var(--muted); font-weight: 500; }
.pj-actif { display: flex; align-items: center; }
