/* ============================================================
   v2.css — Configurateur Fenêtres v2 (page unique, style FM)
   S'appuie sur le design system dorli (configurateur.css)
   ============================================================ */

.cfg-page.v2 { padding-top: var(--header-h); }

/* Header extras */
.v2-title { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; }
.v2-mode {
  color: var(--color-white); font-weight: 600; font-size: 0.8125rem;
  background: rgba(255,255,255,0.08); padding: 6px 14px; border-radius: var(--r-pill);
}

/* ── LAYOUT 3 colonnes ─────────────────────────────────────── */
.v2-layout {
  display: grid;
  grid-template-columns: 220px 1fr 740px;
  gap: 0;
  height: calc(100vh - var(--header-h)); /* hauteur fixe → chaque colonne scrolle seule */
  overflow: hidden;
  align-items: stretch;
}
/* colonnes à scroll indépendant (app-shell) : le devis peut défiler jusqu'au CTA */
.v2-rail, .v2-center, .v2-panel { overflow-y: auto; min-height: 0; }

/* ── RAIL catégories ───────────────────────────────────────── */
.v2-rail { background: var(--color-white); border-right: 1px solid var(--color-border); padding: 1.25rem 0.75rem; }
.v2-cats { display: flex; flex-direction: column; gap: 0.25rem; }
.v2-cat {
  display: flex; align-items: center; gap: 0.65rem;
  width: 100%; padding: 0.7rem 0.85rem;
  font: inherit; font-weight: 500; text-align: left;
  color: var(--color-dark); border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.v2-cat .v2-cat-ic { color: var(--color-text); display: flex; }
.v2-cat:hover:not(.disabled) { background: var(--color-bg); }
.v2-cat.active { background: var(--color-dark); color: var(--color-white); }
.v2-cat.active .v2-cat-ic { color: var(--color-white); }
.v2-cat.disabled { color: #b9b6b1; cursor: not-allowed; }
.v2-soon {
  margin-left: auto; font-style: normal; font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-text); background: var(--color-bg);
  padding: 2px 7px; border-radius: var(--r-pill);
}

/* ── CENTRE ────────────────────────────────────────────────── */
.v2-center { padding: 2rem 2.25rem; min-width: 0; }
.v2-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1.5rem; }
.v2-tab {
  padding: 0.7rem 1.1rem; font: inherit; font-weight: 600; color: var(--color-text);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.v2-tab.active { color: var(--color-dark); border-bottom-color: var(--color-teal); }

.v2-models { display: flex; gap: 1rem; margin-bottom: 2.25rem; }
.v2-models[hidden], .v2-openings[hidden] { display: none; }
.v2-model {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  width: 150px; padding: 1rem; background: var(--color-white);
  border: 1.5px solid var(--card-border); border-radius: var(--card-radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.v2-model:hover { border-color: var(--color-teal); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--color-teal), var(--shadow-md); }
.v2-model.selected { border-color: var(--color-teal); box-shadow: 0 0 0 1px var(--color-teal), 0 0 0 5px rgba(0,199,255,0.15); }
.v2-model-thumb { color: var(--color-dark); width: 56px; height: 56px; }
.v2-model-name { font-weight: 600; font-size: 0.9rem; }
.v2-model-sub { font-size: 0.75rem; color: var(--color-text); }

.v2-section-title {
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-text); margin-bottom: 1rem;
}
.v2-openings { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.875rem; }
.v2-opening {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem 0.5rem; background: var(--color-white);
  border: 1.5px solid var(--card-border); border-radius: var(--card-radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.v2-opening:hover { border-color: var(--color-teal); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--color-teal), var(--shadow-md); }
.v2-opening.selected { border-color: var(--color-teal); box-shadow: 0 0 0 1px var(--color-teal), 0 0 0 5px rgba(0,199,255,0.15); }
.v2-opening-picto {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.14em; color: var(--color-dark);
}
.v2-opening-picto { height: 76px; }
.v2-opening-picto img {
  height: 76px; width: auto; max-width: 100%; display: block; object-fit: contain;
  border: 1px solid var(--color-border); border-radius: 4px;
  transition: filter var(--t-fast);
}
.v2-opening:hover .v2-opening-picto img { filter: saturate(1.15); }
.v2-opening-label { font-size: 0.75rem; color: var(--color-text); text-align: center; line-height: 1.3; }
.v2-openings { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }

/* ── PANNEAU droit ─────────────────────────────────────────── */
.v2-panel {
  background: var(--color-white); border-left: 1px solid var(--color-border);
  padding: 1.5rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.25rem;
}
/* Onglets Tarif / Devis */
.v2-panel-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1.25rem; }
.v2-ptab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.7rem 0.2rem; margin-bottom: -1px;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--color-text);
  border-bottom: 2px solid transparent;
}
.v2-ptab:hover { color: var(--color-dark); }
.v2-ptab.active { color: var(--color-dark); border-bottom-color: var(--color-teal); }
.v2-ptab-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: #fff; background: var(--gradient-orange);
}
.v2-pane[hidden] { display: none; }
.v2-panel-head { display: flex; flex-direction: column; gap: 0.15rem; }
.v2-panel-eyebrow { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-teal); }
.v2-panel-ref { font-size: 1.05rem; font-weight: 600; color: var(--color-dark); }

/* ── Matrice « Tarif » (style maquette : cartes + teintes orange) ── */
.v2-tarif {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 18px; padding: 14px 14px 12px; box-shadow: var(--shadow-sm);
}
.v2-tarif-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.v2-tarif-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 700; color: var(--color-dark); }
.v2-tarif-title svg { width: 22px; height: 22px; }
.v2-tarif-badge {
  font-size: 1.05rem; font-weight: 700; color: var(--color-teal);
  background: rgba(0,199,255,0.12); padding: 4px 12px; border-radius: var(--r-pill);
}
.v2-tarif-grid { display: grid; gap: 9px 8px; align-items: stretch; }
.v2-tarif-colh { font-size: 0.7rem; font-weight: 600; color: var(--color-text); text-align: center; align-self: end; padding-bottom: 2px; }
.v2-tarif-rowlabel {
  display: flex; align-items: center; font-size: 0.78rem; font-weight: 600; color: var(--color-dark);
  padding: 0 12px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(0,199,255,0.20), rgba(0,199,255,0.05));
}
.v2-tarif-cell {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 6px 3px; font: inherit; font-weight: 700; font-size: 0.82rem;
  white-space: nowrap; color: var(--color-dark); background: var(--color-bg);
  border: 1px solid transparent; border-radius: 12px;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.v2-tarif-cell:hover { background: rgba(0,199,255,0.10); }
.v2-tarif-cell.selected {
  background: var(--gradient-orange); color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,199,255,0.35);
}
.v2-tarif-check { display: none; width: 16px; height: 16px; margin-right: 5px; }
.v2-tarif-check svg { width: 16px; height: 16px; }
.v2-tarif-cell.selected .v2-tarif-check { display: inline-flex; }

/* Options verre : WarmEdge + Opalin côte à côte */
.v2-tarif-options { display: flex; gap: 10px; margin-top: 12px; }
.v2-tarif-opt {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--color-bg); border-radius: 14px; padding: 10px 12px;
}
.v2-tarif-opt-ic { width: 26px; height: 26px; flex-shrink: 0; }
.v2-tarif-opt-ic svg { width: 26px; height: 26px; }
.v2-tarif-opt-txt { flex: 1; line-height: 1.2; min-width: 0; }
.v2-tarif-opt-txt strong { display: block; font-size: 0.85rem; color: var(--color-dark); }
.v2-tarif-opt-txt small { font-size: 0.7rem; color: var(--color-text); }
.v2-tarif-opalin {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--color-bg); border-radius: 14px; padding: 12px 14px;
}
.v2-tarif-opalin-ic { width: 30px; height: 30px; flex-shrink: 0; }
.v2-tarif-opalin-ic svg { width: 30px; height: 30px; }
.v2-tarif-opalin-txt { flex: 1; line-height: 1.2; }
.v2-tarif-opalin-txt strong { display: block; font-size: 0.9rem; color: var(--color-dark); }
.v2-tarif-opalin-txt small { font-size: 0.72rem; color: var(--color-text); }
.v2-toggle {
  width: 46px; height: 26px; border-radius: var(--r-pill); background: #cfd2d6;
  position: relative; flex-shrink: 0; transition: background var(--t-base);
}
.v2-toggle span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: left var(--t-base); }
.v2-toggle.on { background: var(--color-teal); }
.v2-toggle.on span { left: 23px; }

/* Devis (panier) */
.v2-devis { margin-top: auto; border-top: 1px solid var(--color-border); padding-top: 1.25rem; }
.v2-devis-head { font-weight: 600; margin-bottom: 0.75rem; }
.v2-devis-count { color: var(--color-text); font-weight: 400; }
.v2-devis-empty { color: var(--color-text); font-size: 0.875rem; }
.v2-devis-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
/* Chaque ligne de devis = une card avec picto à gauche */
.v2-di {
  position: relative; display: flex; align-items: center; gap: 0.7rem; font-size: 0.8125rem;
  background: var(--color-white); border: 1.5px solid var(--color-border); border-radius: 14px;
  padding: 0.7rem 0.8rem; box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
}
.v2-di:hover { border-color: var(--color-teal); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--color-teal), var(--shadow-md); }
.v2-di-drag {
  flex-shrink: 0; cursor: grab; color: var(--color-text); font-size: 1rem; line-height: 1;
  padding: 2px 1px; user-select: none; letter-spacing: -2px;
}
.v2-di-drag:active { cursor: grabbing; }
.v2-di-picto {
  flex-shrink: 0; width: 58px; height: 66px; display: flex; align-items: center; justify-content: center;
  background: var(--color-bg); border-radius: 8px; overflow: hidden;
}
.v2-di-picto { cursor: pointer; transition: box-shadow var(--t-fast), background var(--t-fast); }
.v2-di-picto:hover { box-shadow: inset 0 0 0 2px var(--color-teal); }
.v2-di-picto img { max-width: 100%; max-height: 62px; width: auto; display: block; object-fit: contain; }
.v2-di-picto:empty, .v2-di-picto img[src=""] { display: none; }
.v2-di-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.v2-di-title { font-weight: 600; color: var(--color-dark); }
.v2-di-desc { color: var(--color-text); font-size: 0.72rem; line-height: 1.3; }
.v2-di-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.1rem; }
/* bouton Accessoires par fenêtre */
.v2-di-acc {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  font: inherit; font-size: 0.72rem; font-weight: 600; color: var(--color-teal);
  background: rgba(0,199,255,0.10); border-radius: var(--r-pill);
  transition: background var(--t-fast);
}
.v2-di-acc:hover { background: rgba(0,199,255,0.20); }
.v2-di-acc svg { flex-shrink: 0; }
.v2-di-qty { display: flex; align-items: center; gap: 0.4rem; }
.v2-qbtn {
  width: 22px; height: 22px; border-radius: 50%; font-size: 0.9rem; line-height: 1;
  background: var(--color-bg); color: var(--color-dark);
}
.v2-qbtn:hover { background: var(--color-border); }
.v2-di-price { font-weight: 700; white-space: nowrap; color: var(--color-dark); margin-left: auto; }
.v2-di-rm {
  position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  color: var(--color-text); font-size: 1rem; line-height: 1;
}
.v2-di-rm:hover { color: var(--color-error); background: rgba(220,38,38,0.08); }
/* états drag-and-drop */
.v2-di.dragging { opacity: 0.45; }
.v2-di.drag-over { border-color: var(--apple-select); box-shadow: 0 0 0 3px rgba(0,113,227,0.12); }
/* flash à l'ajout : fond orange → blanc (repère visuel du produit ajouté) */
@keyframes v2-di-added {
  0%   { background: rgba(0,199,255,0.55); border-color: var(--color-teal); box-shadow: 0 0 0 4px rgba(0,199,255,0.30); }
  60%  { background: rgba(0,199,255,0.18); border-color: rgba(0,199,255,0.5); }
  100% { background: var(--color-white); border-color: var(--color-border); box-shadow: var(--shadow-sm); }
}
.v2-di--added { animation: v2-di-added 2.4s ease-out; }
@media (prefers-reduced-motion: reduce) { .v2-di--added { animation: none; } }
.v2-trow { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.35rem; font-size: 0.95rem; }
.v2-trow.v2-ttc strong { color: var(--color-teal); font-size: 1.3rem; font-weight: 700; }
.v2-devis-cta { width: 100%; margin-top: 1rem; }

/* ── MODAL dimensions ──────────────────────────────────────── */
.v2-modal[hidden] { display: none; }
.v2-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; }
.v2-modal-backdrop { position: absolute; inset: 0; background: rgba(11,12,15,0.5); }
.v2-modal-panel {
  position: relative; width: min(440px, 92vw); background: var(--color-white);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.v2-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--color-border); }
.v2-modal-header h3 { font-size: 1.05rem; font-weight: 600; }
.v2-modal-close { font-size: 1.5rem; line-height: 1; color: var(--color-text); }
.v2-modal-body { padding: 1.5rem; }
.v2-modal-op { font-weight: 600; margin-bottom: 1rem; color: var(--color-dark); }
.v2-dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.v2-dim-layout { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.5rem 0 0.25rem; }
.v2-dim-h { flex-shrink: 0; }
.v2-dim-center { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
/* Inputs de cote : taille/police unifiées (4 chiffres lisibles) sur tout le modal */
#dimW, #dimH, .v2-dim-col-input, .v2-dim-single input {
  font-size: 0.82rem; text-align: center; height: 34px; padding: 4px 6px;
}
#dimW, #dimH { width: 76px; }
.v2-dim-single input { width: 110px; align-self: center; }
.v2-dim-picto-stage { position: relative; width: 150px; line-height: 0; }
.v2-dim-picto-stage[hidden] { display: none; }
.v2-dim-picto {
  width: 100%; height: auto; max-height: 210px; display: block;
  border: 1.5px solid var(--color-border); border-radius: 6px; background: #fff;
}
.v2-dim-picto[hidden] { display: none; }
.v2-dim-splitters { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.v2-dim-splitter {
  position: absolute; top: 0; bottom: 0; width: 28px; padding: 0; transform: translateX(-50%);
  pointer-events: auto; touch-action: none; cursor: ew-resize; outline: 0;
}
.v2-dim-splitter::before {
  content: ''; position: absolute; top: 16%; bottom: 5%; left: 50%; width: 2px; transform: translateX(-50%);
  background: rgba(0,199,255,0.48); border-radius: 2px; transition: width 150ms ease, background 150ms ease;
}
.v2-dim-splitter span {
  position: absolute; left: 50%; top: 55%; width: 13px; height: 34px; transform: translate(-50%,-50%);
  border: 2px solid #fff; border-radius: 8px; background: var(--color-teal); box-shadow: 0 2px 8px rgba(11,12,15,0.22);
}
.v2-dim-splitter:hover::before, .v2-dim-splitter:focus-visible::before { width: 3px; background: var(--color-teal); }
/* Largeurs par vantail : rangée sous le picto, même largeur (150px), 1 cellule/colonne */
.v2-dim-cols { display: flex; gap: 3px; width: 150px; margin-top: 3px; }
.v2-dim-cols:empty { display: none; }
.v2-dim-col-input {
  flex: 1; width: 100%; min-width: 0; padding: 4px 2px; text-align: center;
  font: inherit; font-size: 0.82rem; height: 34px;
  border: 1px solid var(--card-border); border-radius: 5px; background: #fff;
}
.v2-dim-col-input:focus { outline: 2px solid var(--apple-select); outline-offset: 1px; }
.v2-panel-width { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.v2-panel-width span { color: var(--color-text); font-size: 0.58rem; font-weight: 600; line-height: 1.2; text-align: center; }
.v2-panel-width .v2-dim-col-input { width: 100%; }
/* Imposte / allège / hauteur sol */
.v2-dim-extra { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.v2-dim-extra:empty { display: none; }
.v2-dim-single { font-size: 0.75rem; font-weight: 600; color: var(--color-text); display: flex; flex-direction: column; gap: 0.3rem; width: 260px; }
.v2-modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--color-border); background: var(--color-bg); }

/* Tuile "Autres ouvertures" + modal composites */
.v2-opening-more .v2-opening-picto { color: var(--color-text); }
.v2-modal-wide { width: 90vw; max-width: 90vw; }
.v2-more-tabs { display: flex; gap: 0.25rem; padding: 0 1.5rem; border-bottom: 1px solid var(--color-border); }
.v2-more-tab {
  padding: 0.8rem 1.1rem; font: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--color-text); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.v2-more-tab:hover { color: var(--color-dark); }
.v2-more-tab.active { color: var(--color-dark); border-bottom-color: var(--color-teal); }
.v2-more-loading, .v2-more-empty { color: var(--color-text); padding: 1rem 0; }
.v2-more-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 0.75rem; max-height: 62vh; overflow-y: auto; padding: 0.25rem;
}
.v2-more-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.4rem; background: var(--color-white);
  border: 1.5px solid var(--card-border); border-radius: 10px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.v2-more-tile:hover { border-color: var(--color-teal); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--color-teal), var(--shadow-md); }
.v2-more-tile img { height: 83px; width: auto; display: block; border: 1px solid var(--color-border); border-radius: 4px; }
.v2-more-tile span { font-size: 0.7rem; color: var(--color-text); text-align: center; }

/* ── Coulissants : familles, matériaux et variantes fabricables ── */
.v2-sliding-panel { max-height: 90vh; overflow-y: auto; }
.v2-sliding-note { margin: 0.2rem 0 0; max-width: 760px; color: var(--color-text); font-size: 0.75rem; line-height: 1.35; }
.v2-sliding-toolbar { display: flex; align-items: flex-end; gap: 1.5rem; padding: 0 1.5rem; border-bottom: 1px solid var(--color-border); }
.v2-sliding-materials { display: flex; gap: 0.4rem; padding: 0.75rem 0; flex-shrink: 0; }
.v2-sliding-material {
  padding: 0.5rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--r-pill);
  color: var(--color-text); background: var(--color-white); font: inherit; font-size: 0.78rem; font-weight: 600;
}
.v2-sliding-material:hover:not([disabled]) { border-color: var(--color-teal); color: var(--color-dark); }
.v2-sliding-material.active { color: var(--color-white); border-color: var(--color-dark); background: var(--color-dark); }
.v2-sliding-material[disabled] { opacity: 0.35; cursor: not-allowed; }
.v2-sliding-tabs { flex: 1; padding: 0; border-bottom: 0; }
.v2-sliding-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.v2-sliding-tile { min-height: 176px; padding: 0.8rem; }
.v2-more-tile.v2-sliding-tile img { width: 100%; max-width: 250px; height: 112px; object-fit: contain; border: 0; border-radius: 0; }
.v2-sliding-tile strong { font-size: 0.78rem; font-weight: 600; color: var(--color-dark); text-align: center; }

/* ── Volets roulants : configuration coffre + aperçu vivant ── */
.v2-roller-openings { grid-template-columns: repeat(4, minmax(135px, 190px)); }
.v2-roller-openings .v2-opening-picto { height: 96px; }
.v2-roller-openings .v2-opening-picto img { height: 96px; border: 0; border-radius: 0; }
.v2-roller-model-thumb { color: var(--color-dark); }
.v2-roller-panel { width: min(1080px, 96vw); height: min(780px, 94vh); max-height: 94vh; overflow: hidden; display: flex; flex-direction: column; }
.v2-roller-kicker { display: block; margin-bottom: 3px; color: var(--color-teal); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.v2-roller-config { display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(390px, 0.9fr); flex: 1; min-height: 0; }
.v2-roller-preview-wrap {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 2.25rem;
  overflow: hidden; background: #f2efeb; border-right: 1px solid var(--color-border);
}
.v2-roller-preview-wrap::before {
  content: ''; position: absolute; inset: 24px; pointer-events: none;
  border: 1px solid rgba(75,85,99,0.13); border-radius: 20px;
}
.v2-roller-preview-tag {
  position: absolute; top: 38px; left: 38px; z-index: 1; padding: 5px 10px;
  border: 1px solid rgba(75,85,99,0.16); border-radius: var(--r-pill); background: rgba(255,255,255,0.78);
  color: var(--color-text); font-size: 0.68rem; font-weight: 600; backdrop-filter: blur(8px);
}
.v2-roller-preview-stage { position: relative; z-index: 0; width: min(440px, 88%); height: 500px; line-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.v2-roller-preview { width: 100%; height: 100%; object-fit: contain; transition: opacity 180ms ease, transform 260ms cubic-bezier(0.16,1,0.3,1); }
.v2-roller-preview:active { transform: scale(0.985); }
.v2-roller-preview-splitters { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
.v2-roller-preview-splitter {
  position: absolute; inset-block: 0; width: 52px; padding: 0; transform: translateX(-50%);
  pointer-events: auto; touch-action: none; cursor: ew-resize;
}
.v2-roller-preview-splitter::before {
  content: ''; position: absolute; top: 19%; bottom: 5%; left: 50%; width: 2px; transform: translateX(-50%);
  border-radius: 2px; background: rgba(0,199,255,0.58); transition: width 150ms ease, background 150ms ease;
}
.v2-roller-preview-splitter span {
  position: absolute; top: 55%; left: 50%; width: 15px; height: 42px; transform: translate(-50%,-50%);
  border: 2px solid #fff; border-radius: 9px; background: var(--color-teal); box-shadow: 0 3px 10px rgba(11,12,15,0.24);
}
.v2-roller-preview-splitter:hover::before, .v2-roller-preview-splitter:focus-visible::before { width: 4px; background: var(--color-teal); }
.v2-roller-preview-splitter.dragging::before { width: 5px; background: var(--color-teal); }
.v2-roller-preview-splitter.dragging span { transform: translate(-50%,-50%) scale(1.12); box-shadow: 0 4px 14px rgba(11,12,15,0.3); }
.v2-roller-preview-stage[data-panels="2"] .v2-roller-preview-splitter::before { top: 4%; bottom: 4%; }
.v2-roller-preview-stage[data-panels="3"] .v2-roller-preview-splitter::before { top: 14%; bottom: 14%; }
.v2-roller-preview-stage[data-panels="4"] .v2-roller-preview-splitter::before { top: 22%; bottom: 22%; }
.v2-roller-controls { display: flex; flex-direction: column; gap: 1.05rem; padding: 1.5rem 1.7rem; overflow-y: auto; overscroll-behavior: contain; }
.v2-roller-panel > .v2-modal-header, .v2-roller-panel > .v2-modal-footer { flex-shrink: 0; }
.v2-roller-control-head { display: flex; align-items: flex-start; gap: 0.7rem; }
.v2-roller-control-head > div { display: flex; flex-direction: column; gap: 2px; }
.v2-roller-control-head strong { font-size: 0.84rem; color: var(--color-dark); }
.v2-roller-control-head small { color: var(--color-text); font-size: 0.7rem; line-height: 1.35; }
.v2-roller-step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; color: var(--color-teal); background: rgba(0,199,255,0.11); font-size: 0.62rem; font-weight: 700; }
.v2-roller-switch {
  display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 0.8rem; width: 100%; padding: 0.8rem;
  border: 1px solid var(--color-border); border-radius: 12px; text-align: left; background: var(--color-white);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.v2-roller-switch:hover { border-color: var(--color-teal); }
.v2-roller-switch:active { transform: scale(0.985); }
.v2-roller-switch > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.v2-roller-switch strong { color: var(--color-dark); font-size: 0.8rem; }
.v2-roller-switch small { color: var(--color-text); font-size: 0.67rem; line-height: 1.3; }
.v2-roller-switch-track { position: relative; width: 42px; height: 24px; border-radius: var(--r-pill); background: #d7d9dc; transition: background 180ms ease; }
.v2-roller-switch-track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(11,12,15,0.18); transition: transform 220ms cubic-bezier(0.16,1,0.3,1); }
.v2-roller-switch.on .v2-roller-switch-track { background: var(--color-teal); }
.v2-roller-switch.on .v2-roller-switch-track i { transform: translateX(18px); }
.v2-roller-box-group { display: flex; flex-direction: column; gap: 0.7rem; transition: opacity 180ms ease; }
.v2-roller-box-group.disabled { opacity: 0.34; }
.v2-roller-boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
.v2-roller-box { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0.55rem 0.25rem; border: 1px solid var(--color-border); border-radius: 9px; background: #fff; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.v2-roller-box:hover:not(:disabled) { border-color: var(--color-teal); }
.v2-roller-box:active:not(:disabled) { transform: scale(0.96); }
.v2-roller-box strong { font-size: 0.74rem; color: var(--color-dark); }
.v2-roller-box span { font-size: 0.58rem; color: var(--color-text); }
.v2-roller-box.active { color: #fff; border-color: var(--color-dark); background: var(--color-dark); }
.v2-roller-box.active strong, .v2-roller-box.active span { color: #fff; }
.v2-roller-dim-group, .v2-roller-wire-group { display: flex; flex-direction: column; gap: 0.7rem; }
.v2-roller-total-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.v2-roller-total-dims label { position: relative; display: flex; flex-direction: column; gap: 4px; color: var(--color-text); font-size: 0.64rem; font-weight: 600; }
.v2-roller-total-dims input { width: 100%; height: 38px; padding: 0 32px 0 10px; border: 1px solid var(--color-border); border-radius: 9px; color: var(--color-dark); background: #fff; font: inherit; font-size: 0.76rem; }
.v2-roller-total-dims label > span { position: absolute; right: 10px; bottom: 11px; color: var(--color-text); font-size: 0.62rem; }
.v2-roller-total-dims input:focus, .v2-roller-panel-widths input:focus { outline: 2px solid var(--apple-select); outline-offset: 1px; }
.v2-roller-panel-widths { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 0.4rem; }
.v2-roller-panel-widths label { display: flex; flex-direction: column; gap: 3px; color: var(--color-text); font-size: 0.6rem; font-weight: 600; }
.v2-roller-panel-widths label > span:last-child { position: relative; display: block; }
.v2-roller-panel-widths input { width: 100%; height: 34px; padding: 0 25px 0 7px; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-dark); background: #fff; font: inherit; font-size: 0.7rem; }
.v2-roller-panel-widths i { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: var(--color-text); font-size: 0.55rem; font-style: normal; }
.v2-roller-drag-hint { color: var(--color-teal); font-size: 0.62rem; line-height: 1.35; }
.v2-roller-summary { padding-top: 0.85rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 3px; }
.v2-roller-summary span { color: var(--color-text); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.07em; }
.v2-roller-summary strong { color: var(--color-dark); font-size: 0.8rem; }

/* Choix du câble dans le modal dimensions */
.v2-modal-panel.v2-dim-roller-panel { width: min(680px, 94vw); }
.v2-dim-roller-panel .v2-dim-picto-stage { width: 270px; }
.v2-dim-roller-panel .v2-dim-picto { max-height: 255px; object-fit: contain; }
.v2-dim-roller-panel .v2-dim-cols { width: 270px; gap: 5px; }
.v2-wire-config { width: 100%; padding: 0.85rem; border-top: 1px solid var(--color-border); }
.v2-wire-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.65rem; }
.v2-wire-head span { font-size: 0.78rem; font-weight: 700; color: var(--color-dark); }
.v2-wire-head small { font-size: 0.65rem; color: var(--color-text); }
.v2-wire-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0.65rem; }
.v2-wire-group { display: flex; flex-direction: column; gap: 0.35rem; }
.v2-wire-group > span { font-size: 0.64rem; font-weight: 600; color: var(--color-text); }
.v2-wire-group > div { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 9px; background: var(--color-bg); }
.v2-dim-choice { min-height: 31px; padding: 0.35rem 0.45rem; border-radius: 7px; color: var(--color-text); font-size: 0.68rem; font-weight: 600; }
.v2-dim-choice:hover { color: var(--color-dark); }
.v2-dim-choice.active { color: #fff; background: var(--color-dark); }

@media (max-width: 900px) {
  .v2-sliding-toolbar { align-items: stretch; flex-direction: column; gap: 0; }
  .v2-sliding-tabs { width: 100%; overflow-x: auto; }
  .v2-sliding-grid { grid-template-columns: 1fr; }
  .v2-roller-config { grid-template-columns: 1fr; }
  .v2-roller-panel { overflow-y: auto; }
  .v2-roller-config { max-height: none; }
  .v2-roller-preview-wrap { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .v2-roller-preview-stage { width: min(360px, 92%); height: 280px; }
  .v2-roller-controls { overflow: visible; }
  .v2-wire-grid { grid-template-columns: 1fr; }
}

/* ── MODAL ACCESSOIRES (catégories · produits · recherche) ── */
.v2-acc-panel { width: 60vw; max-width: 60vw; display: flex; flex-direction: column; max-height: 88vh; }
.v2-acc-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border);
}
.v2-acc-titles { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
.v2-acc-titles h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); }
.v2-acc-for { font-size: 0.72rem; color: var(--color-text); }
.v2-acc-search { position: relative; flex: 1; display: flex; align-items: center; max-width: 460px; margin-left: auto; }
.v2-acc-search svg { position: absolute; left: 12px; color: var(--color-text); pointer-events: none; }
.v2-acc-search input {
  width: 100%; padding: 0.6rem 0.9rem 0.6rem 2.3rem; font: inherit; font-size: 0.9rem;
  border: 1.5px solid var(--card-border); border-radius: var(--r-pill); background: var(--color-bg);
}
.v2-acc-search input:focus { outline: none; border-color: var(--color-teal); background: #fff; }
.v2-acc-body { display: flex; min-height: 0; flex: 1; height: 62vh; }
.v2-acc-cats { width: 210px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid var(--color-border); padding: 0.6rem; }
.v2-acc-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; padding: 0.6rem 0.75rem; margin-bottom: 2px; text-align: left;
  font: inherit; font-size: 0.85rem; font-weight: 500; color: var(--color-dark);
  border-radius: var(--r-sm); transition: background var(--t-fast);
}
.v2-acc-cat:hover { background: var(--color-bg); }
.v2-acc-cat.active { background: var(--gradient-orange); color: #fff; }
.v2-acc-cat em { font-style: normal; font-size: 0.68rem; font-weight: 700; opacity: 0.7; }
.v2-acc-cat.active em { opacity: 0.9; }
.v2-acc-products {
  flex: 1; overflow-y: auto; padding: 0.85rem 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.v2-acc-product {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer;
  padding: 0.8rem 1rem; background: var(--color-white);
  border: 1.5px solid var(--color-border); border-radius: 12px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.v2-acc-product:hover { border-color: var(--color-teal); box-shadow: 0 0 0 1px var(--color-teal), var(--shadow-md); }
.v2-acc-product.added { border-color: var(--color-teal); background: rgba(0,199,255,0.06); box-shadow: 0 0 0 1px var(--color-teal); }
.v2-acc-prod-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.v2-acc-prod-main strong { font-size: 0.9rem; font-weight: 600; color: var(--color-dark); line-height: 1.25; }
.v2-acc-prod-desc { font-size: 0.76rem; color: var(--color-text); line-height: 1.35; }
.v2-acc-prod-cat { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-teal); }
.v2-acc-prod-right { flex-shrink: 0; display: flex; align-items: center; gap: 0.85rem; }
.v2-acc-prod-price { font-weight: 700; font-size: 0.95rem; color: var(--color-teal); white-space: nowrap; }
.v2-acc-add {
  font-size: 0.72rem; font-weight: 600; color: var(--color-teal); white-space: nowrap;
  background: rgba(0,199,255,0.10); padding: 5px 11px; border-radius: var(--r-pill);
}
.v2-acc-product:hover .v2-acc-add { background: rgba(0,199,255,0.18); }
.v2-acc-product.added .v2-acc-add { background: var(--gradient-orange); color: #fff; }
.v2-acc-empty { color: var(--color-text); padding: 1.5rem 0; text-align: center; }

/* Accessoires listés sous la fenêtre dans le devis */
.v2-di-accs { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.v2-di-accs li { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; color: var(--color-text); background: var(--color-bg); border-radius: 7px; padding: 3px 4px 3px 9px; }
.v2-di-acc-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-di-acc-p { font-weight: 600; color: var(--color-dark); white-space: nowrap; }
.v2-di-acc-rm { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; color: var(--color-text); font-size: 0.9rem; line-height: 1; }
.v2-di-acc-rm:hover { color: var(--color-error); background: rgba(220,38,38,0.10); }

/* ════════ Responsive ≤1280px ════════
   Sidebar tarif compacte (moins de padding) + pictos ouvertures -25%
   → plus de place pour le panneau central. Placé en fin de fichier pour
   l'emporter sur les règles de base (même spécificité). */
@media (max-width: 1280px) {
  .v2-layout { grid-template-columns: 200px 1fr 540px; }
  .v2-center { padding: 1.25rem 1.25rem; }
  .v2-tarif { padding: 10px 10px 8px; border-radius: 14px; }
  .v2-tarif-head { margin-bottom: 10px; }
  .v2-tarif-grid { gap: 6px 5px; }
  .v2-tarif-cell { min-height: 34px; padding: 4px 2px; font-size: 0.74rem; border-radius: 9px; }
  .v2-tarif-rowlabel { padding: 0 8px; font-size: 0.72rem; border-radius: 9px; }
  .v2-tarif-colh { font-size: 0.64rem; }
  .v2-openings { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.6rem; }
  .v2-opening { padding: 0.7rem 0.4rem; }
  .v2-opening-picto { height: 57px; }
  .v2-opening-picto img { height: 57px; }
  .v2-acc-panel { width: 75vw; max-width: 75vw; } /* modal accessoires plus large sur petits écrans */
}
/* single-col mobile — APRÈS le bloc 1280 pour rester prioritaire <1100 */
@media (max-width: 1100px) {
  .v2-layout { grid-template-columns: 1fr; height: auto; overflow: visible; } /* scroll page normal */
  .v2-rail, .v2-center, .v2-panel { overflow-y: visible; }
}

/* ════════ VUE DEVIS ÉDITABLE (« Voir le devis » — design facture) ════════ */
.v2-devis-see { background: #fff; }
.v2-quote-panel {
  position: relative; z-index: 1; width: min(1080px, 94vw); max-height: 92vh; overflow-y: auto;
  background: var(--color-bg); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.v2-quote-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
  background: rgba(255,255,255,0.9); color: var(--color-dark); box-shadow: var(--shadow-sm);
}
.v2-quote-close:hover { background: #fff; }
.q-loading { padding: 3rem; text-align: center; color: var(--color-text); }
/* header sombre + liseré orange */
.q-top { background: var(--color-dark); color: #fff; padding: 30px 34px 26px; border-bottom: 8px solid var(--color-teal); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.q-brand strong { display: block; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.04em; line-height: 0.95; }
.q-brand span { display: block; color: rgba(255,255,255,0.68); margin-top: 6px; font-size: 0.9rem; }
.q-meta { text-align: right; font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.q-devis-word { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; }
.q-issue { color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.q-content { padding: 26px 34px 34px; }
/* blocs client / émetteur */
.q-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.q-party { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 16px 18px; font-size: 0.9rem; }
.q-party h4 { margin: 0 0 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--color-teal); }
.q-party > div { margin-bottom: 3px; }
.q-muted { color: var(--color-text); font-size: 0.82rem; }
.q-presta-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 14px; }
.q-presta-head h3 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--color-dark); }
.q-presta-head span { font-size: 0.8rem; color: var(--color-text); }
/* fiches produit */
.q-fiches { display: flex; flex-direction: column; gap: 12px; }
.q-fiche { position: relative; display: grid; grid-template-columns: 132px 1fr 168px; gap: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; }
.q-num-badge { position: absolute; top: 10px; left: 12px; font-size: 0.72rem; font-weight: 800; color: var(--color-teal); }
.q-fiche-img { display: flex; align-items: center; justify-content: center; background: var(--color-bg); border-radius: 10px; min-height: 132px; overflow: hidden; }
.q-fiche-img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.q-fiche-body { min-width: 0; }
.q-fiche-type { margin-bottom: 10px; }
.q-fiche-type strong { font-size: 1.02rem; font-weight: 700; color: var(--color-dark); }
.q-specs { display: flex; flex-direction: column; gap: 7px; }
.q-spec { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; font-size: 0.86rem; }
.q-spec-duo { display: contents; } /* desktop : chaque spec garde sa propre ligne */
.q-spec > label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text); }
.q-opts { display: flex; gap: 14px; }
.q-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--color-dark); cursor: pointer; }
.q-select { font: inherit; font-size: 0.86rem; padding: 4px 8px; border: 1.5px solid var(--card-border); border-radius: 7px; background: #fff; color: var(--color-dark); cursor: pointer; max-width: 100%; }
.q-select:focus { outline: none; border-color: var(--color-teal); }
/* valeur éditable (clic → input + ✓) */
.q-edit { cursor: pointer; border-bottom: 1px dashed var(--card-border); font-weight: 600; color: var(--color-dark); padding: 0 1px; }
.q-num { font-variant-numeric: tabular-nums; }
.q-edit:hover { border-bottom-color: var(--color-teal); color: var(--color-teal); }
.q-ph { color: #b9b6b1; font-style: italic; font-weight: 400; }
.q-editing { display: inline-flex; align-items: center; gap: 4px; }
.q-input { width: 88px; font: inherit; font-size: 0.86rem; padding: 3px 6px; border: 1.5px solid var(--color-teal); border-radius: 6px; }
.q-ok, .q-cancel { width: 24px; height: 24px; border-radius: 6px; font-size: 0.85rem; line-height: 1; flex-shrink: 0; }
.q-ok { background: #16a34a; color: #fff; font-weight: 700; }
.q-ok:hover { background: #15803d; }
.q-cancel { background: var(--color-bg); color: var(--color-text); }
.q-cancel:hover { background: var(--color-border); }
/* accessoires dans la fiche */
.q-accs { margin-top: 12px; border-top: 1px dashed var(--color-border); padding-top: 10px; }
.q-accs ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.q-accs li { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--color-text); }
.q-acc-n { flex: 1; min-width: 0; }
.q-acc-p { font-weight: 600; color: var(--color-dark); }
.q-acc-rm { width: 18px; height: 18px; border-radius: 50%; color: var(--color-text); font-size: 0.9rem; line-height: 1; }
.q-acc-rm:hover { color: var(--color-error); background: rgba(220,38,38,0.10); }
.q-add-acc { font-size: 0.75rem; font-weight: 600; color: var(--color-teal); background: rgba(0,199,255,0.10); padding: 4px 10px; border-radius: var(--r-pill); }
.q-add-acc:hover { background: rgba(0,199,255,0.20); }
/* bloc prix par fiche */
.q-price { border-left: 1px solid var(--color-border); padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.q-price-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--color-text); }
.q-price-row strong { color: var(--color-dark); }
.q-price-total { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--color-border); font-size: 1.15rem; font-weight: 800; color: var(--color-teal); text-align: right; }
/* bas : notes + totaux */
.q-bottom { display: grid; grid-template-columns: 1fr 320px; gap: 18px; margin-top: 22px; align-items: start; }
.q-notes { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 16px 18px; }
.q-notes h4 { margin: 0 0 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--color-teal); }
.q-totals { background: var(--color-dark); color: #fff; border-radius: 10px; padding: 18px 20px; }
.q-trow { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.q-trow strong { color: #fff; }
.q-ttc { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 1.05rem; }
.q-ttc strong { color: var(--color-teal); font-size: 1.35rem; font-weight: 800; }
.q-doc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) {
  .q-parties, .q-bottom { grid-template-columns: 1fr; }
  .q-fiche { grid-template-columns: 110px 1fr; }
  .q-price { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--color-border); padding-left: 0; padding-top: 12px; }
}
/* ── Mobile plein écran : document devis tactile ── */
@media (max-width: 620px) {
  .v2-quote-modal { align-items: stretch; justify-content: stretch; }
  .v2-quote-panel { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .v2-quote-close { top: 8px; margin: 8px 8px 0 0; width: 40px; height: 40px; }
  .q-top { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 18px 18px; padding-right: 56px; }
  .q-brand strong { font-size: 30px; }
  .q-meta { text-align: left; }
  .q-content { padding: 18px 16px 28px; }
  .q-fiche { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .q-fiche-img { min-height: 150px; }
  .q-fiche-img img { max-height: 200px; }
  .q-num-badge { position: static; margin-bottom: 4px; }
  .q-spec { grid-template-columns: 1fr; gap: 3px; }
  .q-spec > label { font-size: 0.66rem; }
  /* Couleur + Vitrage côte à côte sur mobile (demande Mihai) */
  .q-spec-duo { display: flex; gap: 10px; }
  .q-spec-duo .q-spec { flex: 1; min-width: 0; }
  .q-select { width: 100%; padding: 10px 12px; font-size: 0.95rem; }  /* cibles tactiles */
  .q-chk { padding: 6px 0; font-size: 0.9rem; }
  .q-opts { gap: 18px; flex-wrap: wrap; }
  .q-edit { padding: 4px 3px; }
  .q-input { width: 110px; padding: 8px 8px; font-size: 0.95rem; }
  .q-ok, .q-cancel { width: 34px; height: 34px; font-size: 1rem; }
  .q-price { padding-top: 14px; }
  .q-price-total { font-size: 1.3rem; }
  .q-doc-actions { flex-direction: column-reverse; }
  .q-doc-actions .btn { width: 100%; justify-content: center; padding: 14px; }
  .q-add-acc { display: inline-block; padding: 8px 14px; }
  .q-acc-rm { width: 26px; height: 26px; }
}
