/* styles-re.css — Configurateur « Soumission RE » (tuiles catalogue QuickBooks). Préfixe .re-* */

/* Conteneur principal des vues (JF, 7 nov. 2026 : « aucun espace perdu ») : toute la largeur disponible, marges de 28 px, plafond 1920 px
   seulement pour les écrans ultra larges. Les paragraphes gardent une largeur de lecture (.re-sub), pas les tableaux ni les grilles. */
.re-app { font-family: "Inter", system-ui, -apple-system, sans-serif; color: var(--r26-ink, #1e293b); padding: 16px 28px 48px; max-width: 1920px; margin: 0 auto; box-sizing: border-box; }
.re-app .re-sub, .re-app .re-panel > p, .rc-repo-sous-titre { max-width: 92ch; }
.re-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.re-sync { font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
.re-link { background: none; border: 0; color: var(--r26-accent, #3b82f6); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

.re-stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.re-step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-card, #fff); font: inherit; font-size: 13px; font-weight: 600; color: var(--r26-ink-2, #475569); cursor: pointer; }
.re-step.active { background: var(--r26-primary, #0a2540); color: #fff; border-color: var(--r26-primary, #0a2540); }
.re-step.muted:not(.active) { opacity: .55; }
.re-step-num { width: 20px; height: 20px; border-radius: 50%; background: rgba(59,130,246,.15); color: var(--r26-accent, #3b82f6); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.re-step.active .re-step-num { background: rgba(255,255,255,.2); color: #fff; }

.re-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .re-main { grid-template-columns: 1fr; } .re-side { position: static !important; } }

.re-panel { background: var(--r26-card, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: var(--r26-radius-lg, 16px); padding: 24px; box-shadow: var(--r26-shadow-sm, 0 1px 2px rgba(15,23,42,.04)); }
.re-panel h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.re-sub { margin: 0 0 18px; color: var(--r26-ink-2, #475569); font-size: 14px; }
.re-muted { color: var(--r26-ink-3, #94a3b8); font-size: 13px; }
.re-loading { color: var(--r26-ink-2, #475569); }
.re-alert { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.re-alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.re-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.re-field { display: flex; flex-direction: column; gap: 6px; }
.re-field.span, .re-dropzone.span { grid-column: 1 / -1; }
.re-field-label { font-size: 12px; font-weight: 600; color: var(--r26-ink-2, #475569); text-transform: uppercase; letter-spacing: .04em; }
.re-field-hint { font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
.re-field input, .re-field select, .re-field textarea, .re-search { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; background: #fff; color: inherit; }
.re-field input:focus, .re-field select:focus, .re-field textarea:focus, .re-search:focus { outline: 2px solid rgba(59,130,246,.35); border-color: var(--r26-accent, #3b82f6); }
.re-typeahead { position: relative; }
.re-typeahead input { width: 100%; box-sizing: border-box; }
.re-typeahead-list { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; box-shadow: var(--r26-shadow-lg, 0 18px 40px rgba(10,37,64,.08)); overflow: hidden; }
.re-typeahead-item { padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.re-typeahead-item span { color: var(--r26-ink-3, #94a3b8); font-size: 12px; }
.re-typeahead-item:hover { background: var(--r26-primary-50, #eef3fb); }

.re-presets { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; }
.re-preset { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-bg, #f8fafc); font: inherit; cursor: pointer; min-width: 190px; }
.re-preset b { font-size: 13px; }
.re-preset span { font-size: 11px; color: var(--r26-ink-3, #94a3b8); }
.re-preset:hover { border-color: var(--r26-accent, #3b82f6); }
.re-preset.on { background: var(--r26-primary, #0a2540); color: #fff; border-color: var(--r26-primary, #0a2540); }
.re-preset.on span { color: rgba(255,255,255,.7); }

.re-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.re-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.re-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--r26-line, #e2e8f0); background: #fff; font: inherit; font-size: 12px; font-weight: 600; color: var(--r26-ink-2, #475569); cursor: pointer; }
.re-chip.on { background: var(--r26-accent, #3b82f6); border-color: var(--r26-accent, #3b82f6); color: #fff; }
.re-search { min-width: 260px; flex: 1 1 260px; }

.re-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.re-tiles.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.re-tile { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--r26-line, #e2e8f0); border-radius: 14px; background: #fff; overflow: hidden; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.re-tile:hover { border-color: var(--r26-accent, #3b82f6); box-shadow: var(--r26-shadow, 0 4px 14px rgba(10,37,64,.06)); transform: translateY(-1px); }
.re-tile.on { border-color: var(--r26-success, #10b981); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.re-tile-img { width: 100%; height: 110px; object-fit: contain; background: #f8fafc; padding: 8px; box-sizing: border-box; }
.re-tile-ph { height: 110px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.9); background: linear-gradient(135deg, #0a2540, #1a6fc4); }
.re-tile-ph.f-tesla { background: linear-gradient(135deg, #111827, #dc2626); }
.re-tile-ph.f-solaire { background: linear-gradient(135deg, #b45309, #f59e0b); }
.re-tile-ph.f-fox { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.re-tile-ph.f-sigenergy { background: linear-gradient(135deg, #064e3b, #10b981); }
.re-tile-ph.f-lux { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.re-tile-ph.f-batterie_mo { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.re-tile-ph.f-entree { background: linear-gradient(135deg, #334155, #64748b); }
.re-tile-ph.f-borne { background: linear-gradient(135deg, #155e75, #06b6d4); }
.re-tile-ph.f-subventions { background: linear-gradient(135deg, #166534, #22c55e); }
.re-tile-body { padding: 10px 12px 6px; flex: 1; }
.re-tile-name { font-size: 13px; font-weight: 600; line-height: 1.3; min-height: 34px; }
.re-tile-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; gap: 8px; }
.re-tile-price { font-weight: 800; font-size: 14px; color: var(--r26-primary, #0a2540); }
.re-tile-fam { font-size: 11px; color: var(--r26-ink-3, #94a3b8); white-space: nowrap; }
.re-tile-add { margin: 0 12px 12px; text-align: center; font-size: 12px; font-weight: 600; color: var(--r26-accent, #3b82f6); border: 1px dashed rgba(59,130,246,.5); border-radius: 8px; padding: 6px; }
.re-qty { display: flex; margin: 0 12px 12px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; overflow: hidden; }
.re-qty button { flex: 0 0 34px; border: 0; background: var(--r26-bg, #f8fafc); font-size: 18px; cursor: pointer; color: var(--r26-ink, #1e293b); }
.re-qty button:hover { background: var(--r26-primary-50, #eef3fb); }
.re-qty input { flex: 1; width: 40px; min-width: 0; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.re-qty input::-webkit-outer-spin-button, .re-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.re-dropzone { position: relative; border: 2px dashed var(--r26-line, #e2e8f0); border-radius: 14px; min-height: 180px; display: flex; align-items: center; justify-content: center; background: var(--r26-bg, #f8fafc); cursor: pointer; overflow: hidden; }
.re-dropzone:hover { border-color: var(--r26-accent, #3b82f6); }
.re-dropzone img { max-width: 100%; max-height: 420px; display: block; }
.re-dropzone-empty { text-align: center; display: flex; flex-direction: column; gap: 4px; color: var(--r26-ink-2, #475569); padding: 24px; }
.re-dropzone-empty span { font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
.re-dropzone .re-btn.small { position: absolute; top: 10px; right: 10px; }

.re-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.re-kpis > div { background: var(--r26-primary-50, #eef3fb); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.re-kpis b { font-size: 18px; color: var(--r26-primary, #0a2540); }
.re-kpis span { font-size: 12px; color: var(--r26-ink-2, #475569); }

.re-group { margin-bottom: 16px; }
.re-group-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--r26-ink-2, #475569); padding: 6px 0; border-bottom: 2px solid var(--r26-line, #e2e8f0); }
.re-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.re-table td { padding: 8px 6px; border-bottom: 1px solid var(--r26-line, #e2e8f0); vertical-align: top; }
.re-table td.nom { width: 50%; font-weight: 600; }
.re-table td.nom .desc { font-weight: 400; color: var(--r26-ink-3, #94a3b8); font-size: 12px; margin-top: 2px; }
.re-table td.qty input { width: 64px; } .re-table td.prix input { width: 110px; }
.re-table td input { font: inherit; padding: 6px 8px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; text-align: right; }
.re-table td.montant { text-align: right; font-weight: 700; white-space: nowrap; }
.re-table td.del button { border: 0; background: none; color: var(--r26-ink-3, #94a3b8); font-size: 18px; cursor: pointer; }
.re-table td.del button:hover { color: var(--r26-danger, #ef4444); }
.re-checks { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.re-checks label { display: flex; gap: 8px; align-items: center; }

.re-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.re-actions-right { display: flex; gap: 10px; }
.re-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--r26-line, #e2e8f0); background: #fff; color: var(--r26-ink, #1e293b); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.re-btn:hover:not(:disabled) { border-color: var(--r26-accent, #3b82f6); }
.re-btn.primary { background: var(--r26-primary, #0a2540); color: #fff; border-color: var(--r26-primary, #0a2540); }
.re-btn.primary:hover:not(:disabled) { background: var(--r26-primary-700, #0f3358); }
.re-btn:disabled { opacity: .5; cursor: not-allowed; }
.re-btn.small { padding: 6px 10px; font-size: 12px; }
.re-badge { font-size: 10px; background: #f59e0b; color: #fff; border-radius: 999px; padding: 2px 6px; }

.re-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.re-side-card { background: var(--r26-card, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 14px; padding: 14px 16px; }
.re-side-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--r26-ink-3, #94a3b8); margin-bottom: 8px; }
.re-side-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.re-side-row.muted { color: var(--r26-ink-3, #94a3b8); }
.re-side-row.green { color: #166534; }
.re-side-row.total { border-top: 1px solid var(--r26-line, #e2e8f0); margin-top: 6px; padding-top: 8px; font-size: 15px; }
.re-side-row.net { border-top: 1px dashed var(--r26-line, #e2e8f0); margin-top: 6px; padding-top: 8px; font-size: 15px; color: var(--r26-primary, #0a2540); }

/* Thème sombre (styles-dark.css pose [data-theme="dark"]) */
:root[data-theme="dark"] .re-panel, :root[data-theme="dark"] .re-side-card, :root[data-theme="dark"] .re-tile, :root[data-theme="dark"] .re-step, :root[data-theme="dark"] .re-chip, :root[data-theme="dark"] .re-btn, :root[data-theme="dark"] .re-preset, :root[data-theme="dark"] .re-typeahead-list { background: #0f1b2d; color: #e2e8f0; border-color: #1e2d44; }
:root[data-theme="dark"] .re-field input, :root[data-theme="dark"] .re-field select, :root[data-theme="dark"] .re-field textarea, :root[data-theme="dark"] .re-search, :root[data-theme="dark"] .re-table td input, :root[data-theme="dark"] .re-qty input { background: #0b1526; color: #e2e8f0; border-color: #1e2d44; }
:root[data-theme="dark"] .re-tile-img, :root[data-theme="dark"] .re-dropzone, :root[data-theme="dark"] .re-kpis > div, :root[data-theme="dark"] .re-qty button { background: #132238; }
:root[data-theme="dark"] .re-tile-price, :root[data-theme="dark"] .re-kpis b, :root[data-theme="dark"] .re-side-row.net { color: #93c5fd; }
:root[data-theme="dark"] .re-app { color: #e2e8f0; }

/* ───────── Parcours guidé : cartes de choix ───────── */
.re-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.re-section { margin: 22px 0 6px; }
.re-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.re-section-num { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--r26-primary, #0a2540); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.re-section-title { font-size: 16px; font-weight: 800; }
.re-section-sub { font-size: 13px; color: var(--r26-ink-2, #475569); }
.re-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.re-choices.three { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.re-choices.four { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.re-choice { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--r26-line, #e2e8f0); border-radius: 16px; background: #fff; overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.re-choice:hover { transform: translateY(-2px); box-shadow: var(--r26-shadow-lg, 0 18px 40px rgba(10,37,64,.08)); border-color: var(--r26-accent, #3b82f6); }
.re-choice.on { border-color: var(--r26-success, #10b981); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.re-choice-visual { height: 120px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--re-tone-a, #0a2540), var(--re-tone-b, #1a6fc4)); }
.re-choice-visual img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.re-choice-visual img.logo { max-height: 60%; background: #fff; border-radius: 10px; padding: 10px 14px; }
.re-choice-mark { font-size: 40px; font-weight: 900; color: rgba(255,255,255,.85); }
.re-choice.tone-navy { --re-tone-a: #0a2540; --re-tone-b: #1a6fc4; }
.re-choice.tone-blue { --re-tone-a: #1e3a8a; --re-tone-b: #3b82f6; }
.re-choice.tone-amber { --re-tone-a: #b45309; --re-tone-b: #fbbf24; }
.re-choice.tone-green { --re-tone-a: #064e3b; --re-tone-b: #10b981; }
.re-choice.tone-cyan { --re-tone-a: #155e75; --re-tone-b: #22d3ee; }
.re-choice.tone-red { --re-tone-a: #111827; --re-tone-b: #dc2626; }
.re-choice.tone-orange { --re-tone-a: #7c2d12; --re-tone-b: #f97316; }
.re-choice.tone-violet { --re-tone-a: #4c1d95; --re-tone-b: #a78bfa; }
.re-choice.tone-gray { --re-tone-a: #334155; --re-tone-b: #94a3b8; }
.re-choice-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.re-choice-title { font-weight: 800; font-size: 14px; line-height: 1.25; }
.re-choice-sub { font-size: 12px; color: var(--r26-ink-2, #475569); line-height: 1.35; }
.re-choice-price { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
.re-choice-price b { font-size: 15px; color: var(--r26-primary, #0a2540); }
.re-choice-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--r26-success, #10b981); font-weight: 900; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .12s; }
.re-choice.on .re-choice-check { opacity: 1; }
.re-inline-check { display: flex; gap: 8px; align-items: center; font-size: 12px; margin-top: 8px; padding: 8px; background: var(--r26-primary-50, #eef3fb); border-radius: 8px; }
.re-slider-row { margin-top: 14px; padding: 14px 16px; background: var(--r26-primary-50, #eef3fb); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.re-slider-row label { font-size: 13px; font-weight: 600; }
.re-slider-row label b { font-size: 18px; margin: 0 4px; }
.re-slider-row input[type=range] { width: 100%; accent-color: var(--r26-accent, #3b82f6); }
.re-slider-kpis { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--r26-ink-2, #475569); }
.re-mode { display: inline-flex; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 999px; overflow: hidden; }
.re-mode button { border: 0; background: #fff; padding: 7px 14px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--r26-ink-2, #475569); }
.re-mode button.on { background: var(--r26-primary, #0a2540); color: #fff; }
:root[data-theme="dark"] .re-choice { background: #0f1b2d; border-color: #1e2d44; }
:root[data-theme="dark"] .re-slider-row, :root[data-theme="dark"] .re-inline-check { background: #132238; }
:root[data-theme="dark"] .re-choice-price b { color: #93c5fd; }

/* ───────── Page Catalogue (admin) ───────── */
.re-admin { font-family: "Inter", system-ui, sans-serif; padding: 16px 28px 48px; max-width: 1920px; box-sizing: border-box; margin: 0 auto; color: var(--r26-ink, #1e293b); }
.re-admin h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.re-admin-tabs { display: flex; gap: 8px; margin: 14px 0; }
.re-admin table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; overflow: hidden; }
.re-admin th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--r26-ink-3, #94a3b8); padding: 10px 10px; border-bottom: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-bg, #f8fafc); }
.re-admin td { padding: 8px 10px; border-bottom: 1px solid var(--r26-line, #e2e8f0); vertical-align: middle; }
.re-admin td input[type=number] { width: 64px; } .re-admin td select, .re-admin td input { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; }
.re-admin-thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: contain; background: var(--r26-bg, #f8fafc); border: 1px solid var(--r26-line, #e2e8f0); display: block; }
.re-admin-thumb.empty { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--r26-ink-3, #94a3b8); cursor: pointer; }
.re-admin .re-btn.small { padding: 5px 10px; font-size: 12px; }
.re-preset-editor { background: #fff; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.re-preset-editor .re-grid2 { margin-bottom: 10px; }
.re-preset-lines { display: flex; flex-direction: column; gap: 6px; }
.re-preset-line { display: grid; grid-template-columns: 1fr 70px 32px; gap: 8px; align-items: center; font-size: 13px; }
.re-saved { color: #166534; font-size: 12px; }

.re-toolbar-extra { max-width: 1920px; margin: 10px auto -8px; padding: 0 28px; box-sizing: border-box; display: flex; justify-content: flex-end; }

/* ───────── Tableau de bord RE ───────── */
.re-dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.re-dash-head h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.re-dash-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.re-kpis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.re-kpi { background: var(--r26-card, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 118px; position: relative; overflow: hidden; }
.re-kpi.navy { background: var(--r26-primary, #0a2540); color: #fff; border-color: var(--r26-primary, #0a2540); }
.re-kpi.navy .re-kpi-label, .re-kpi.navy .re-kpi-sub { color: rgba(255,255,255,.7); }
.re-kpi.good .re-kpi-value { color: #059669; }
.re-kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--r26-ink-3, #94a3b8); }
.re-kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.re-kpi-sub { font-size: 12px; color: var(--r26-ink-2, #475569); }
.re-spark { margin-top: auto; align-self: flex-end; }
.re-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.re-dash .re-panel { padding: 16px 18px; }
.re-h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.re-h3 .re-muted { font-weight: 500; font-size: 11px; }
.re-bars { display: flex; flex-direction: column; gap: 6px; }
.re-bar-row { display: grid; grid-template-columns: 1fr 120px 44px; align-items: center; gap: 8px; font-size: 12px; }
.re-bar-k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-bar-track { height: 8px; background: var(--r26-bg, #f8fafc); border-radius: 999px; overflow: hidden; }
.re-bar-fill { height: 100%; border-radius: 999px; }
.re-bar-v { text-align: right; font-weight: 700; }
.re-donut-row { display: flex; gap: 18px; align-items: center; }
.re-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.re-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
:root[data-theme="dark"] .re-kpi { background: #0f1b2d; border-color: #1e2d44; color: #e2e8f0; }
:root[data-theme="dark"] .re-bar-track { background: #132238; }

/* Fiche « ce que le client a dit » (P6) */
.re-insight { margin: 16px 0 4px; border: 1.5px solid #a7f3d0; background: #ecfdf5; border-radius: 14px; padding: 12px 16px; }
.re-insight-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.re-insight p { margin: 0 0 8px; font-size: 13px; white-space: pre-line; }
.re-insight-sugg { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
:root[data-theme="dark"] .re-insight { background: #052e1f; border-color: #065f46; }

/* ── Adresse unique, Street View, pans de toit (2 nov. 2026) ── */
.re-adresse { position: relative; }
.re-adresse input { width: 100%; box-sizing: border-box; padding-right: 96px; }
.re-adresse-etat { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--r26-ink-3, #94a3b8); background: var(--r26-surface-2, #f1f5f9); border-radius: 999px; padding: 3px 8px; }
.re-adresse-etat.ok { color: #0f766e; background: #ccfbf1; }
.pac-container { z-index: 10000 !important; border-radius: 10px; font-family: inherit; }
.re-vue-adresse { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.re-vue-adresse img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--r26-line, #e2e8f0); background: #e2e8f0; }
.re-vue-adresse.compact img { aspect-ratio: 20 / 11; }
.re-inline { display: flex; gap: 8px; align-items: center; }
.re-inline input { flex: 1; }
.re-pans { border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; padding: 12px 14px; background: var(--r26-surface, #fff); display: flex; flex-direction: column; gap: 8px; }
.re-pans-head { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.re-pans-head span { color: var(--r26-ink-3, #94a3b8); flex: 1; }
.re-pan { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1.1fr 92px 32px; gap: 8px; align-items: center; }
.re-pan select, .re-pan input { width: 100%; box-sizing: border-box; font-size: 13px; }
.re-btn.small.ghost { background: transparent; border-color: transparent; color: var(--r26-ink-3, #94a3b8); }
@media (max-width: 900px) { .re-pan { grid-template-columns: 1fr 1fr; } .re-vue-adresse { grid-template-columns: 1fr; } }

/* ── Paramètres (P8) ── */
.re-parametres { display: flex; flex-direction: column; gap: 18px; max-width: 980px; }
.re-param .re-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.re-param .re-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--r26-ink-3, #94a3b8); padding: 8px 10px; border-bottom: 1px solid var(--r26-line, #e2e8f0); }
.re-param .re-table td { padding: 10px; border-bottom: 1px solid var(--r26-line, #eef2f7); }
.re-etat { color: var(--r26-ink-3, #94a3b8); font-size: 12.5px; flex: 1; }
.re-liste { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.5; }

/* ── Dashboard : ventes par produit et tendances (2 nov. 2026) ── */
.re-ventes { margin-bottom: 14px; }
.re-ventes-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 14px; }
.re-vente-tuile { border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; padding: 10px 12px; background: var(--r26-surface-2, #f8fafc); display: flex; flex-direction: column; gap: 3px; }
.re-vente-val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.re-vente-val small { font-size: 12px; font-weight: 600; color: var(--r26-ink-3, #94a3b8); letter-spacing: 0; }
.re-vente-sub { font-size: 11.5px; color: var(--r26-ink-2, #475569); }
.re-ventes-graph { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.re-ventes-svg { width: 100%; height: auto; max-height: 230px; }
.re-ventes-grid { stroke: var(--r26-line, #e2e8f0); stroke-width: 1; }
.re-ventes-axe { font-size: 10px; fill: var(--r26-ink-3, #94a3b8); }
.re-ventes-legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--r26-ink-2, #475569); }
.re-ventes-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.re-ventes-kits th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--r26-ink-3, #94a3b8); padding: 6px 8px; border-bottom: 1px solid var(--r26-line, #e2e8f0); }
.re-ventes-kits th.montant { text-align: right; }
:root[data-theme="dark"] .re-vente-tuile { background: #0b1627; border-color: #1e2d44; }

/* ── Clients v1.2 : sources unifiées, fiche, dossier (2 nov. 2026) ── */
.re-src-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.re-src { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--r26-surface-2, #f1f5f9); color: var(--r26-ink-2, #475569); }
.re-src.qbo { background: #dcfce7; color: #166534; } .re-src.sup { background: #dbeafe; color: #1e40af; } .re-src.ghl { background: #fef3c7; color: #92400e; } .re-src.aircall { background: #ede9fe; color: #5b21b6; }
.re-clients-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.re-clients-bar .re-search { flex: 1 1 320px; }
.re-table.re-clients .re-col-src { white-space: nowrap; } .re-table.re-clients .re-col-maj { white-space: nowrap; font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
.re-fiche .re-panel-head .re-src-badges { margin-top: 6px; }
.re-fiche-vue { margin: 4px 0 16px; }
.re-fiche-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.re-chez-nous-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding-top: 10px; }
.re-chez-nous-sys ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; font-size: 13.5px; }
.re-kpis.compact { grid-template-columns: repeat(3, auto); gap: 10px; }
.re-insight { background: var(--r26-primary-50, #eef3fb); border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-size: 13.5px; line-height: 1.5; }
.re-insight p { margin: 0 0 8px; }
.re-timeline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.re-timeline li { border-left: 3px solid var(--r26-line, #e2e8f0); padding: 2px 0 2px 12px; font-size: 13px; line-height: 1.45; }
.re-timeline li > .re-src { margin-right: 6px; }
.re-timeline li > div { margin-top: 3px; }
.re-dossier { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding-top: 10px; }
.re-fichier { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; font-size: 12px; }
.re-fichier img, .re-fichier-pdf { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-surface-2, #f1f5f9); }
.re-fichier-pdf { display: grid; place-items: center; font-weight: 800; color: #b91c1c; }
.re-fichier span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .re-fichier small { color: var(--r26-ink-3, #94a3b8); }
@media (max-width: 1000px) { .re-fiche-grid, .re-chez-nous-grid { grid-template-columns: 1fr; } }

/* ── Tâches GHL (2 nov. 2026) ── */
.re-taches { background: var(--r26-surface, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 14px; padding: 14px 16px; }
.re-taches-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.re-taches-sub { color: var(--r26-ink-3, #94a3b8); font-size: 12.5px; margin-left: 6px; }
.re-taches-actions { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.re-check { display: inline-flex; gap: 6px; align-items: center; color: var(--r26-ink-2, #475569); }
.re-taches-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.re-taches-liste li { padding: 9px 11px; border-radius: 10px; background: var(--r26-surface-2, #f8fafc); border-left: 3px solid transparent; }
.re-taches-liste li.retard { border-left-color: #f59e0b; }
.re-taches-liste li.urgent { border-left-color: #dc2626; background: rgba(220, 38, 38, .06); }
.re-tache-titre { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.re-tache-meta { display: flex; gap: 12px; font-size: 12px; color: var(--r26-ink-3, #94a3b8); margin-top: 3px; }
.re-tache-meta a { color: var(--r26-primary, #1a6fc4); text-decoration: none; }
.re-tache-corps { font-size: 12.5px; color: var(--r26-ink-2, #475569); margin-top: 4px; white-space: pre-line; }
.re-pastille { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; color: #fff; }
.re-pastille.rouge { background: #dc2626; } .re-pastille.orange { background: #f59e0b; }
.re-vide { color: var(--r26-ink-3, #94a3b8); font-size: 13px; padding: 8px 0; }

/* ── Dashboard : urgences du jour ── */
.re-urgences { background: linear-gradient(135deg, rgba(220,38,38,.08), rgba(245,158,11,.06)); border: 1px solid rgba(220,38,38,.25); border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.re-urgences-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.re-flamme { font-size: 18px; }
.re-urgences-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.re-urgence { background: var(--r26-surface, #fff); border-radius: 12px; padding: 10px 12px; border-left: 4px solid #f59e0b; }
.re-urgence.n3 { border-left-color: #dc2626; } .re-urgence.n2 { border-left-color: #f97316; } .re-urgence.n1 { border-left-color: #f59e0b; }
.re-urgence-titre { font-weight: 700; font-size: 13.5px; }
.re-urgence-sub { font-size: 12.5px; color: var(--r26-ink-2, #475569); margin-top: 2px; }
.re-panel-taches { grid-column: 1 / -1; padding: 0; border: none; background: transparent; }

/* ── Journal d'audit (Paramètres) ── */
.re-audit-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.re-audit-stats > div { background: var(--r26-surface-2, #f8fafc); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.re-audit-stats b { font-size: 20px; } .re-audit-stats span { font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
.re-audit-stats > div.alerte { background: rgba(220, 38, 38, .08); } .re-audit-stats > div.alerte b { color: #dc2626; }
.re-audit-liste { max-height: 480px; overflow: auto; font-size: 12.5px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; }
.re-audit-ligne { display: grid; grid-template-columns: 86px 80px 170px 1fr 1fr 1.4fr; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--r26-line, #eef2f7); align-items: center; }
.re-audit-ligne.avertissement { background: rgba(245, 158, 11, .08); } .re-audit-ligne.critique { background: rgba(220, 38, 38, .10); font-weight: 600; }
.re-audit-quand { color: var(--r26-ink-3, #94a3b8); font-variant-numeric: tabular-nums; }
.re-audit-src { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--r26-ink-3, #94a3b8); }
.re-audit-ev { font-weight: 600; } .re-audit-cible, .re-audit-acteur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--r26-ink-2, #475569); }
.re-audit-details { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--r26-ink-3, #94a3b8); font-family: ui-monospace, monospace; font-size: 11px; }
@media (max-width: 900px) { .re-audit-ligne { grid-template-columns: 1fr 1fr; } .re-audit-stats { grid-template-columns: 1fr 1fr; } }

/* ── Design solaire (Google Solar), phase 1 ── */
.re-design.span { grid-column: 1 / -1; }
.re-design { border: 1px solid var(--r26-line, #e2e8f0); border-radius: 14px; padding: 12px 14px; background: var(--r26-surface, #fff); display: flex; flex-direction: column; gap: 10px; }
.re-design-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.re-design-corps { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.re-design-carte { width: 100%; min-height: 380px; border-radius: 12px; background: #0b1b2b; overflow: hidden; }
.re-design-panneau { display: flex; flex-direction: column; gap: 10px; }
.re-design-meta { font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
.re-design-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.re-design-kpis > div { background: var(--r26-surface-2, #f8fafc); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.re-design-kpis b { font-size: 16px; } .re-design-kpis span { font-size: 11.5px; color: var(--r26-ink-3, #94a3b8); }
.re-design-pans { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.re-design-pan { display: grid; grid-template-columns: 18px 24px 1fr 32px; gap: 8px; align-items: center; font-size: 12.5px; padding: 5px 8px; border-radius: 8px; background: var(--r26-surface-2, #f8fafc); }
.re-design-pan.off { opacity: .5; }
.re-design-num { width: 22px; height: 22px; border-radius: 50%; background: #f59e0b; color: #fff; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.re-design-pan.off .re-design-num { background: #64748b; }
.re-design-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-alert.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
@media (max-width: 900px) { .re-design-corps { grid-template-columns: 1fr; } .re-design-carte { min-height: 280px; } }
.re-gmb-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 8px; }
@media (max-width: 900px) { .re-gmb-grid { grid-template-columns: 1fr 1fr; } }

/* ── Double authentification ── */
.re-mfa-ecran { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--r26-bg, #f1f5f9); padding: 20px; }
.re-mfa-carte { background: var(--r26-surface, #fff); border-radius: 18px; padding: 28px 30px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(10, 37, 64, .12); }
.re-mfa-code { font-size: 26px; letter-spacing: .35em; text-align: center; font-family: ui-monospace, monospace; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.re-mfa-bloc { margin-bottom: 12px; }
.re-mfa-titre { margin-bottom: 6px; font-size: 13.5px; }
.re-mfa-enrol { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.re-mfa-qr svg, .re-mfa-qr img { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 6px; box-sizing: border-box; }
.re-pastille.verte { background: #059669; }
.re-sep { border: none; border-top: 1px solid var(--r26-line, #e2e8f0); margin: 12px 0; }
.re-btn.ghost { background: transparent; border-color: transparent; color: var(--r26-ink-2, #475569); }
@media (max-width: 700px) { .re-mfa-enrol { grid-template-columns: 1fr; } }

/* ── Pipelines GHL (phase 1, lecture seule) ── */
.re-pipe-onglets { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.re-pipe-onglets button { border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-surface, #fff); color: var(--r26-ink-2, #475569); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.re-pipe-onglets button.on { background: var(--r26-primary, #1a6fc4); border-color: var(--r26-primary, #1a6fc4); color: #fff; font-weight: 700; }
.re-pipe-filtres { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.re-pipe-filtres input { min-width: 240px; } .re-pipe-filtres select { max-width: 220px; }
.re-pipe-corps { display: flex; gap: 14px; align-items: flex-start; }
/* Pipelines : une colonne par étape en largeur fluide ; toutes visibles sur bureau, défilement seulement sous 150 px par colonne */
.re-pipe-board { display: grid; grid-template-columns: repeat(var(--re-pipe-n, 4), minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 10px; flex: 1; min-width: 0; align-items: start; }
.re-pipe-col { min-width: 0; background: var(--r26-surface-2, #f1f5f9); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.re-pipe-col-head { display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 8px; font-size: 13px; }
.re-pipe-col-head span { color: var(--r26-ink-3, #94a3b8); font-size: 12px; }
.re-pipe-col-corps { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.re-pipe-vide { color: var(--r26-ink-3, #94a3b8); font-size: 12px; text-align: center; padding: 14px 0; }
.re-pipe-carte { min-width: 0; background: var(--r26-surface, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-left: 3px solid var(--r26-primary, #1a6fc4); border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.re-pipe-carte:hover { box-shadow: 0 6px 18px rgba(10, 37, 64, .08); }
.re-pipe-carte.on { outline: 2px solid var(--r26-primary, #1a6fc4); }
.re-pipe-carte.dormant { border-left-color: #f59e0b; }
.re-pipe-carte-haut, .re-pipe-carte-bas { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.re-pipe-nom { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.re-pipe-valeur, .re-pipe-age, .re-pipe-initiales { flex: 0 0 auto; white-space: nowrap; }
.re-pipe-source { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.re-pipe-col-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-pipe-initiales { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--r26-primary-50, #eef3fb); color: var(--r26-primary, #1a6fc4); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.re-pipe-valeur { font-weight: 700; font-size: 12.5px; }
.re-pipe-age { font-size: 11.5px; color: var(--r26-ink-3, #94a3b8); } .re-pipe-age.alerte { color: #b45309; font-weight: 700; }
.re-pipe-source { font-size: 10.5px; color: var(--r26-ink-3, #94a3b8); text-transform: uppercase; letter-spacing: .04em; }
.re-pipe-detail { flex: 0 0 320px; background: var(--r26-surface, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 10px; }
.re-pipe-detail-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .re-pipe-detail h3 { margin: 2px 0 0; font-size: 16px; }
.re-pipe-detail-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.re-pipe-detail-grille > div { display: flex; flex-direction: column; gap: 2px; background: var(--r26-surface-2, #f8fafc); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; }
.re-pipe-detail-grille span { font-size: 11px; color: var(--r26-ink-3, #94a3b8); }
.re-pipe-coord { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.re-pipe-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; } .re-pipe-detail-actions a.re-btn { text-decoration: none; }
@media (max-width: 900px) { .re-pipe-corps { flex-direction: column; } .re-pipe-detail { flex-basis: auto; position: static; width: 100%; box-sizing: border-box; } }
@media (max-width: 760px) { .re-pipe-board { grid-template-columns: minmax(0, 1fr); overflow-x: visible; } .re-pipe-col { max-height: none; } }

/* ── Messagerie GHL (phase 1, lecture seule) ── */
.re-msg-corps { display: grid; grid-template-columns: 340px 1fr; gap: 12px; height: calc(100vh - 160px); min-height: 420px; }
.re-msg-liste { background: var(--r26-surface, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 14px; overflow-y: auto; display: flex; flex-direction: column; }
.re-msg-liste > input { margin: 10px; }
.re-msg-item { padding: 10px 12px; border-top: 1px solid var(--r26-line, #eef2f7); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.re-msg-item:hover { background: var(--r26-surface-2, #f8fafc); } .re-msg-item.on { background: var(--r26-primary-50, #eef3fb); }
.re-msg-item.nonlu b { color: var(--r26-primary, #1a6fc4); }
.re-msg-item-haut { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .re-msg-item-haut span { color: var(--r26-ink-3, #94a3b8); font-size: 11.5px; white-space: nowrap; }
.re-msg-item-bas { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--r26-ink-2, #475569); }
.re-msg-canal { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: var(--r26-surface-2, #f1f5f9); border-radius: 999px; padding: 1px 6px; flex: 0 0 auto; }
.re-msg-apercu { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.re-msg-nonlu { background: #dc2626; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 1px 6px; }
.re-msg-fil { background: var(--r26-surface, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 14px; display: flex; flex-direction: column; min-height: 0; }
.re-msg-vide { margin: auto; color: var(--r26-ink-3, #94a3b8); }
.re-msg-fil-head { padding: 12px 14px; border-bottom: 1px solid var(--r26-line, #eef2f7); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.re-msg-fil-head a { color: var(--r26-primary, #1a6fc4); text-decoration: none; }
.re-msg-bulles { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.re-bulle { max-width: 72%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.re-bulle.client { align-self: flex-start; background: var(--r26-surface-2, #f1f5f9); border-bottom-left-radius: 4px; }
.re-bulle.raycom { align-self: flex-end; background: var(--r26-primary, #1a6fc4); color: #fff; border-bottom-right-radius: 4px; }
.re-bulle-sujet { font-weight: 700; margin-bottom: 2px; } .re-bulle-texte { white-space: pre-wrap; word-break: break-word; }
.re-bulle-meta { font-size: 10.5px; opacity: .7; margin-top: 4px; }
.re-bulle-pj a { font-size: 12px; margin-right: 8px; color: inherit; text-decoration: underline; }
.re-msg-repondre { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--r26-line, #eef2f7); } .re-msg-repondre input { flex: 1; }
@media (max-width: 900px) { .re-msg-corps { grid-template-columns: 1fr; height: auto; } .re-msg-liste { max-height: 40vh; } .re-msg-fil { min-height: 50vh; } }

/* ── Éditeur de panneaux sur le toit (design solaire phase 2) ── */
.re-editeur { margin-top: 12px; border-top: 1px dashed var(--r26-line, #e2e8f0); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.re-editeur-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.re-editeur-corps { display: grid; grid-template-columns: 260px 1fr; gap: 14px; }
.re-editeur-outils { display: flex; flex-direction: column; gap: 10px; }
.re-editeur-pans { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow: auto; }
.re-editeur-pan { display: grid; grid-template-columns: 24px 1fr 28px auto; gap: 6px; align-items: center; font-size: 12.5px; padding: 4px 6px; border-radius: 8px; background: var(--r26-surface-2, #f8fafc); }
.re-editeur-scene { position: relative; min-width: 0; }
.re-editeur-canvas { width: 100%; display: block; border-radius: 12px; background: #0b1b2b; cursor: crosshair; touch-action: none; }
.re-editeur-bandeau { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 8px; align-items: center; margin-top: 8px; }
.re-editeur-bandeau > div { background: var(--r26-surface-2, #f8fafc); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.re-editeur-bandeau b { font-size: 16px; } .re-editeur-bandeau span { font-size: 11.5px; color: var(--r26-ink-3, #94a3b8); }
@media (max-width: 900px) { .re-editeur-corps { grid-template-columns: 1fr; } .re-editeur-bandeau { grid-template-columns: 1fr 1fr; } }

/* ── Vue 3D du toit (three.js) ── */
.re-3d { border: 1px solid var(--r26-line, #e2e8f0); border-radius: 14px; background: var(--r26-surface, #fff); padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.re-3d-barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.re-3d-scene { position: relative; width: 100%; height: 70vh; min-height: 380px; border-radius: 12px; overflow: hidden; background: #e9f0f7; }
.re-3d-scene canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.re-3d-scene canvas:active { cursor: grabbing; }
.re-3d-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--r26-ink-2, #475569); padding: 20px; text-align: center; }
.re-3d-msg.erreur { color: #b91c1c; }
.re-3d-aide { font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
:root[data-theme="dark"] .re-3d-scene, :root:not([data-theme="light"]) .re-3d-scene.sombre { background: #0b1b2b; }
@media (max-width: 900px) { .re-3d-scene { height: 55vh; min-height: 300px; } }

/* ── Éditeur v2 : barre d'outils, soleil, encart, 3D ── */
.re-editeur-corps { grid-template-columns: 280px 1fr; }
.re-editeur-barre { display: flex; flex-wrap: wrap; gap: 6px; }
.re-editeur-barre .re-btn.on, .re-editeur-head .re-btn.on { background: var(--r26-primary, #1a6fc4); color: #fff; border-color: var(--r26-primary, #1a6fc4); }
.re-soleil.on { background: #facc15 !important; color: #3f2d00 !important; border-color: #eab308 !important; }
.re-editeur-marges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.re-editeur-marges label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--r26-ink-3, #94a3b8); text-transform: uppercase; letter-spacing: .04em; }
.re-editeur-marges input { width: 100%; box-sizing: border-box; }
.re-editeur-canvas.outil-obstacle, .re-editeur-canvas.outil-polygone, .re-editeur-canvas.outil-faite, .re-editeur-canvas.outil-mesure { cursor: crosshair; }
.re-editeur-3d { width: 100%; min-height: 420px; border-radius: 12px; overflow: hidden; background: #0b1b2b; }
.re-soleil-legende { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; background: rgba(11,27,43,.8); color: #fff; font-size: 11px; padding: 6px 10px; border-radius: 10px; }
.re-soleil-legende i { width: 110px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #3c3c42, #735028, #c89628, #facc15, #fff078); }
.re-soleil-legende small { color: #cbd5e1; margin-left: 6px; }
.re-soleil-encart { z-index: 50; pointer-events: none; background: rgba(11,27,43,.92); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 2px; min-width: 190px; }
.re-soleil-encart b { color: #facc15; }
.re-enc-titre { color: #7dd3fc; margin-bottom: 3px; }
.re-editeur-bandeau { grid-template-columns: repeat(5, 1fr) auto; }
@media (max-width: 900px) { .re-editeur-corps { grid-template-columns: 1fr; } .re-editeur-bandeau { grid-template-columns: 1fr 1fr; } }

/* ── Fiche client : maison (Street View + satellite) et dossier complet (3 nov. 2026) ── */
.re-maison { margin: 4px 0 16px; }
.re-maison .re-vue-adresse img { aspect-ratio: 16 / 9; }
.re-maison-ligne { display: flex; gap: 12px; align-items: center; font-size: 13px; margin-top: 8px; flex-wrap: wrap; }
.re-maison-ligne a { color: var(--r26-primary, #1a6fc4); text-decoration: none; font-weight: 600; }
.re-dossier2 { border: 1px dashed transparent; border-radius: 12px; transition: border-color .15s, background .15s; }
.re-dossier2.glisse { border-color: var(--r26-primary, #1a6fc4); background: var(--r26-primary-50, #eef3fb); }
.re-dossier2-barre { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.re-dossier2-filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.re-dossier2-filtres button { border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-surface, #fff); color: var(--r26-ink-2, #475569); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.re-dossier2-filtres button.on { background: var(--r26-ink, #0b1b2b); color: #fff; border-color: var(--r26-ink, #0b1b2b); }
.re-dossier2-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
/* Zone de dépôt du dossier (JF, 8 nov. 2026) : claire, grande cible, au clavier comme à la souris */
.re-depot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 112px; margin: 6px 0 12px; padding: 18px 16px; box-sizing: border-box; border: 2px dashed var(--r26-line, #cbd5e1); border-radius: 12px; background: var(--r26-surface-2, #f8fafc); color: var(--r26-ink-2, #475569); cursor: pointer; font: inherit; text-align: center; transition: border-color .15s, background .15s, color .15s; }
.re-depot:hover, .re-depot:focus-visible, .re-depot.actif, .re-dossier2.glisse .re-depot { border-color: var(--r26-primary, #1a6fc4); background: var(--r26-primary-50, #eef3fb); color: var(--r26-primary, #1a6fc4); outline: none; }
.re-depot:disabled { cursor: progress; opacity: .7; }
.re-depot-titre { font-weight: 700; font-size: 14px; color: var(--r26-ink, #0b1b2b); }
.re-depot-sous { font-size: 12px; }
.re-depot-note { margin: 0 0 4px; font-size: 12px; }
.re-vignette { position: relative; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; font-size: 12px; }
.re-vignette img, .re-vignette-doc { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-surface-2, #f1f5f9); }
.re-vignette-doc { display: grid; place-items: center; font-weight: 800; color: #b91c1c; font-size: 18px; letter-spacing: .06em; }
.re-vignette b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; } .re-vignette small { color: var(--r26-ink-3, #94a3b8); }
.re-vignette-src { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; color: #fff; background: #64748b; }
.re-vignette-src.email { background: #2563eb; } .re-vignette-src.ghl { background: #0d9488; } .re-vignette-src.qbo { background: #16a34a; } .re-vignette-src.manuel { background: #7c3aed; }
.re-3d-vues { flex-wrap: wrap; }
.re-3d-soleil { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--r26-ink-2, #475569); }
.re-3d-soleil label { display: inline-flex; align-items: center; gap: 6px; }
.re-3d-heure input[type=range] { width: 180px; }
.re-3d-encart { position: absolute; z-index: 5; pointer-events: none; background: rgba(15, 23, 42, .92); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.re-3d-encart b { font-size: 13.5px; }
.re-3d-legende { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #fff; background: rgba(15, 23, 42, .65); padding: 6px 10px; border-radius: 999px; }
.re-3d-legende i { width: 110px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #402a14, #96501a, #e6961e, #ffdc3c, #fffa96); }

/* ───────── Studio solaire (plein écran, portail sur body) — solaire-studio-re.jsx ───────── */
body.re-studio-ouvert { overflow: hidden; }
.re-studio { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: 64px 1fr; grid-template-columns: 80px 1fr 340px; grid-template-areas: "top top top" "rail scene side"; background: var(--r26-bg, #f3f5f9); color: var(--r26-ink, #0f172a); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 13px; }
.re-studio *, .re-studio *:before, .re-studio *:after { box-sizing: border-box; }
.re-studio-top { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--r26-card, #fff); border-bottom: 1px solid var(--r26-line, #e2e8f0); min-width: 0; }
.re-studio-top .spacer { flex: 1; }
.re-studio-brand { display: flex; align-items: center; gap: 10px; padding-right: 14px; border-right: 1px solid var(--r26-line, #e2e8f0); flex: none; }
.re-studio-brand .logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0a2540, #1e5bb8); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.re-studio-brand b { font-size: 14px; display: block; } .re-studio-brand span { display: block; font-size: 11px; color: var(--r26-ink-3, #94a3b8); margin-top: 1px; }
.re-studio-adresse { width: 200px; flex: none; min-width: 0; } .re-studio-adresse b, .re-studio-adresse span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .re-studio-adresse b { font-size: 13px; } .re-studio-adresse span { font-size: 11px; color: var(--r26-ink-3, #94a3b8); margin-top: 2px; }
.re-studio-kpis { display: flex; gap: 6px; flex: none; }
.re-studio-kpis > div { padding: 6px 11px; border-radius: 12px; background: var(--r26-bg, #f3f5f9); border: 1px solid var(--r26-line, #e2e8f0); min-width: 86px; }
.re-studio-kpis b { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -.01em; } .re-studio-kpis span { font-size: 10.5px; color: var(--r26-ink-3, #94a3b8); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.re-studio-kpis > div.hi { background: linear-gradient(180deg, #eaf3fc, #fff); border-color: #bfdbfe; } .re-studio-kpis > div.hi b { color: #1d4ed8; }
.re-studio-kpis > div.sun { background: linear-gradient(180deg, #fff7e6, #fff); border-color: #fde68a; } .re-studio-kpis > div.sun b { color: #b45309; }
.re-studio-conso { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 12px; border-radius: 12px; border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-card, #fff); flex: none; }
.re-studio-conso label { font-size: 10.5px; color: var(--r26-ink-3, #94a3b8); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; display: block; }
.re-studio-conso .in { display: flex; align-items: baseline; gap: 4px; } .re-studio-conso input { width: 64px; font: inherit; font-weight: 700; font-size: 15px; border: 0; border-bottom: 1.5px dashed #94a3b8; padding: 0; color: inherit; background: transparent; outline: none; border-radius: 0; } .re-studio-conso input:focus { border-bottom-color: #1d4ed8; } .re-studio-conso .in span { font-size: 12px; color: var(--r26-ink-2, #475569); }
.re-studio-conso .couv { text-align: center; padding-left: 10px; border-left: 1px solid var(--r26-line, #e2e8f0); } .re-studio-conso .couv b { display: block; font-size: 18px; color: #047857; line-height: 1.1; } .re-studio-conso .couv span { font-size: 10.5px; color: var(--r26-ink-3, #94a3b8); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.re-studio-seg { display: inline-flex; background: var(--r26-bg, #f3f5f9); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; padding: 3px; flex: none; }
.re-studio-seg button { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px; border: 0; background: transparent; border-radius: 9px; color: var(--r26-ink-2, #475569); cursor: pointer; } .re-studio-seg button.on { background: var(--r26-primary, #0a2540); color: #fff; } .re-studio-seg button:disabled { opacity: .4; cursor: not-allowed; }
.re-studio-tog { font: inherit; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-card, #fff); color: var(--r26-ink-2, #475569); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; flex: none; }
.re-studio-tog i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #fde68a 0 40%, #f59e0b 42% 55%, transparent 56%); box-shadow: 0 0 0 2px #fde68a inset; }
.re-studio-tog.on { background: #fff4d6; border-color: #fcd34d; color: #92400e; }
.re-studio-mois { font: inherit; font-size: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-card, #fff); color: inherit; }
.re-studio-fermer { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--r26-line, #e2e8f0); background: var(--r26-card, #fff); color: var(--r26-ink-2, #475569); font-size: 15px; cursor: pointer; flex: none; }
/* Rail d'outils */
.re-studio-rail { grid-area: rail; background: var(--r26-card, #fff); border-right: 1px solid var(--r26-line, #e2e8f0); display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 4px; position: relative; z-index: 2; }
.re-studio-outil { width: 66px; height: 62px; border-radius: 14px; border: 1px solid transparent; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; color: var(--r26-ink-2, #475569); font: inherit; position: relative; padding: 0; }
.re-studio-outil svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .re-studio-outil small { font-size: 10px; font-weight: 700; letter-spacing: .01em; }
.re-studio-outil.on { background: #eaf3fc; border-color: #bfdbfe; color: #1d4ed8; } .re-studio-outil:disabled { opacity: .4; cursor: not-allowed; } .re-studio-outil.fin { margin-top: auto; }
.re-studio-outil:not(:disabled):hover { background: var(--r26-bg, #f3f5f9); } .re-studio-outil.on:hover { background: #eaf3fc; }
.re-studio-outil .tip { position: absolute; left: 74px; top: 50%; transform: translateY(-50%); background: #0f172a; color: #fff; font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: 9px; white-space: nowrap; display: none; z-index: 20; pointer-events: none; }
.re-studio-outil .tip kbd { background: rgba(255,255,255,.15); border-radius: 4px; padding: 1px 5px; margin-left: 6px; font-family: inherit; font-size: 11px; }
.re-studio-outil:not(:disabled):hover .tip { display: block; }
.re-studio-rail .sep { width: 40px; height: 1px; background: var(--r26-line, #e2e8f0); margin: 6px 0; }
/* Scène */
.re-studio-scene { grid-area: scene; position: relative; background: #0b1220; overflow: hidden; min-width: 0; }
.re-studio-2d, .re-studio-3d, .re-studio-demo { position: absolute; inset: 0; width: 100%; height: 100%; }
.re-studio-2d.cache, .re-studio-3d.cache { display: none; }
.re-studio-canvas { display: block; position: absolute; inset: 0; cursor: crosshair; touch-action: none; } .re-studio-canvas.outil-selectionner { cursor: default; } .re-studio-canvas.outil-mesurer, .re-studio-canvas.outil-obstacle { cursor: crosshair; }
.re-studio-ov { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.re-studio-ov .voile { fill: rgba(6, 12, 24, .42); } .re-studio.sun .re-studio-ov .voile { fill: rgba(6, 12, 24, .5); }
.re-studio-ov .face { fill: rgba(255,255,255,.07); stroke: none; } .re-studio-ov .face.hov { fill: rgba(56,189,248,.14); } .re-studio-ov .face.sel { fill: rgba(56,189,248,.16); }
.re-studio.sun .re-studio-ov .face { fill: none; } .re-studio.sun .re-studio-ov .face.sel { fill: rgba(255,255,255,.12); }
.re-studio-ov .arbres circle { fill: rgba(74, 222, 128, .10); stroke: #86efac; stroke-width: 1.3; stroke-dasharray: 5 4; }
.re-studio-ov .faites line { stroke: #fde68a; stroke-width: 2.4; stroke-dasharray: 8 5; stroke-linecap: round; }
.re-studio-ov .obstacles .recul { fill: none; stroke: #fca5a5; stroke-width: 1; stroke-dasharray: 3 3; }
.re-studio-ov .obstacles .corps { fill: #1e293b; stroke: #fff; stroke-width: 1.2; } .re-studio-ov .obstacles .hach { fill: url(#re-studio-hach); stroke: none; }
.re-studio-ov .obstacles g.sel .corps { stroke: #38bdf8; stroke-width: 2.4; }
.re-studio-ov .lab circle { fill: #f59e0b; stroke: #fff; stroke-width: 1.6; } .re-studio-ov .lab text { fill: #1f1300; font-size: 11px; font-weight: 800; text-anchor: middle; font-family: Inter, system-ui, sans-serif; } .re-studio-ov .lab.sel circle { fill: #38bdf8; }
.re-studio-ov .cotes line { stroke: rgba(255,255,255,.8); stroke-width: 1; } .re-studio-ov .cotes text { fill: #fff; font-size: 10px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; font-family: Inter, system-ui, sans-serif; paint-order: stroke; stroke: rgba(6,12,24,.65); stroke-width: 3px; }
.re-studio-pointeur { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; background: rgba(250,204,21,.95); transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(250,204,21,.25); pointer-events: none; z-index: 5; }
.re-studio-bulle { position: absolute; z-index: 6; pointer-events: none; background: #fff; color: #0f172a; border-radius: 10px; padding: 8px 11px; font-size: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); white-space: nowrap; } .re-studio-bulle b { color: #1d4ed8; }
.re-studio-msg { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 6; background: rgba(15,23,42,.88); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 999px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 40px); }
.re-studio-msg .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fbbf24; animation: re-studio-spin .9s linear infinite; flex: none; }
@keyframes re-studio-spin { to { transform: rotate(360deg); } }
.re-studio-msg.err { background: #991b1b; border-radius: 14px; white-space: normal; text-align: center; line-height: 1.4; }
.re-studio-toast { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 7; background: #065f46; color: #fff; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; max-width: calc(100% - 40px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .re-studio-toast.info { background: rgba(15,23,42,.88); }
.re-studio-legende { position: absolute; left: 18px; top: 16px; z-index: 5; pointer-events: none; background: rgba(15,23,42,.78); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 11.5px; width: 196px; }
.re-studio-legende b { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.re-studio-legende > div { display: flex; align-items: center; gap: 8px; margin: 4px 0; } .re-studio-legende i { width: 28px; height: 0; border-top: 2.5px solid #e2e8f0; } .re-studio-legende i.f { border-color: #fde68a; border-width: 3px; } .re-studio-legende i.a { border-width: 1.8px; border-color: #fff; } .re-studio-legende i.n { border-color: #38bdf8; border-style: dashed; } .re-studio-legende i.t { border-color: #86efac; border-style: dashed; border-width: 1.5px; }
.re-studio-legende.soleil { width: 240px; } .re-studio-legende .bar { height: 10px; border-radius: 5px; margin: 6px 0 4px; background: linear-gradient(90deg, #2e1065 0%, #781c6d 30%, #cd3442 55%, #f57d15 75%, #fac41e 90%, #fff6aa 100%); display: block; } .re-studio-legende .ends { display: flex; justify-content: space-between; color: rgba(255,255,255,.75); } .re-studio-legende .note { display: block; margin-top: 6px; color: rgba(255,255,255,.75); line-height: 1.35; }
.re-studio-nord { position: absolute; right: 18px; top: 16px; width: 56px; height: 56px; border-radius: 50%; background: rgba(15,23,42,.72); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; z-index: 5; pointer-events: none; }
.re-studio-nord i { position: absolute; top: 5px; left: 50%; width: 0; height: 0; border: 7px solid transparent; border-bottom: 13px solid #ef4444; transform: translateX(-50%) translateY(-6px); }
.re-studio-echelle { position: absolute; left: 18px; bottom: 60px; color: #fff; font-size: 11.5px; font-weight: 700; z-index: 5; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.7); } .re-studio-echelle i { display: block; height: 7px; border: 2px solid #fff; border-top: 0; margin-top: 4px; }
.re-studio-recadrer { position: absolute; right: 18px; top: 82px; z-index: 5; font: inherit; font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(15,23,42,.72); color: #fff; cursor: pointer; }
.re-studio-curseur { position: absolute; z-index: 6; pointer-events: none; background: rgba(15,23,42,.92); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12px; min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.re-studio-curseur b { display: block; font-size: 17px; color: #fbbf24; } .re-studio-curseur span { display: block; color: rgba(255,255,255,.8); margin-top: 1px; }
.re-studio-curseur:before { content: ""; position: absolute; left: -8px; top: 18px; border: 6px solid transparent; border-right-color: rgba(15,23,42,.92); }
.re-studio-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5; pointer-events: none; background: rgba(15,23,42,.72); color: rgba(255,255,255,.92); font-size: 12px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; max-width: calc(100% - 36px); overflow: hidden; text-overflow: ellipsis; }
.re-studio-hint kbd { background: rgba(255,255,255,.14); border-radius: 4px; padding: 1px 5px; font-family: inherit; }
/* Vue 3D (composant Solaire3DRE habillé pour le studio : vues en haut à gauche, aide en haut à droite, soleil en bas) */
.re-studio-3d .re-3d { position: absolute; inset: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; display: block; }
.re-studio-3d .re-3d-scene { position: absolute; inset: 0; height: 100% !important; min-height: 0; border-radius: 0; }
.re-studio-3d .re-3d-barre { position: absolute; left: 18px; top: 16px; z-index: 5; display: flex; gap: 6px; } .re-studio-3d .re-3d-barre > div:first-child { display: none; }
.re-studio-3d .re-3d-vues { display: flex; gap: 6px; flex-wrap: wrap; }
.re-studio-3d .re-3d-vues .re-btn { font-size: 12.5px; font-weight: 700; padding: 8px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(15,23,42,.72); color: #fff; box-shadow: none; }
.re-studio-3d .re-3d-vues .re-btn.primary { background: #fff; color: #0a2540; border-color: #fff; }
.re-studio-3d .re-3d-aide { position: absolute; right: 18px; top: 16px; z-index: 5; max-width: 360px; background: rgba(15,23,42,.72); color: rgba(255,255,255,.9); font-size: 11.5px; line-height: 1.35; padding: 8px 12px; border-radius: 12px; }
.re-studio-3d .re-3d-soleil { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5; width: min(780px, calc(100% - 36px)); background: rgba(15,23,42,.84); color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 12.5px; }
.re-studio-3d .re-3d-soleil select { font: inherit; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 5px 8px; } .re-studio-3d .re-3d-soleil select option { color: #0f172a; }
.re-studio-3d .re-3d-heure input[type=range] { width: 220px; accent-color: #f59e0b; } .re-studio-3d .re-3d-heure b { color: #fbbf24; font-size: 13px; min-width: 52px; }
.re-studio-3d .re-3d-soleil .re-btn { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 8px 14px; background: #f59e0b; color: #1f1300; border: 0; box-shadow: none; } .re-studio-3d .re-3d-soleil .re-btn.primary { background: #fbbf24; color: #1f1300; }
.re-studio-3d .re-3d-soleil .re-muted { color: rgba(255,255,255,.8); margin-left: auto; text-align: right; font-size: 11.5px; line-height: 1.35; }
.re-studio-3d .re-3d-msg { color: #fff; font-size: 14px; } .re-studio-3d .re-3d-msg.erreur { color: #fecaca; }
/* Panneau droit */
.re-studio-side { grid-area: side; background: var(--r26-card, #fff); border-left: 1px solid var(--r26-line, #e2e8f0); display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.re-studio-side section { padding: 12px 16px; border-bottom: 1px solid var(--r26-line, #e2e8f0); } .re-studio-side section.pans { flex: 1; overflow: auto; min-height: 120px; }
.re-studio-side h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--r26-ink-3, #94a3b8); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.re-studio-side h4 a, .re-studio-lien { font: inherit; font-size: 11px; color: #1d4ed8; text-decoration: none; letter-spacing: 0; text-transform: none; font-weight: 700; background: #eaf3fc; border: 1px solid #bfdbfe; border-radius: 8px; padding: 4px 8px; cursor: pointer; white-space: nowrap; }
.re-studio-lien:disabled { opacity: .5; cursor: not-allowed; } .re-studio-lien.danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; } .re-studio-side h4 .h4-actions { display: flex; gap: 6px; align-items: center; }
.re-studio-side h4 .stock { letter-spacing: 0; text-transform: none; color: #047857; }
.re-studio-sv { height: 86px; border-radius: 12px; background: linear-gradient(180deg, #d9dee6, #bfc7d3); border: 1px solid var(--r26-line, #e2e8f0); display: grid; place-items: center; color: #475569; position: relative; overflow: hidden; }
.re-studio-sv:before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(15,23,42,.35)); z-index: 1; }
.re-studio-sv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .re-studio-sv span { position: absolute; left: 10px; bottom: 7px; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); z-index: 2; } .re-studio-sv em { position: absolute; right: 10px; bottom: 7px; color: #fff; font-size: 11px; font-style: normal; opacity: .85; z-index: 2; }
.re-studio-mesures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.re-studio-mesures div { background: var(--r26-bg, #f3f5f9); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; padding: 6px 8px; min-width: 0; } .re-studio-mesures b { display: block; font-size: 14px; white-space: nowrap; } .re-studio-mesures span { font-size: 10px; color: var(--r26-ink-3, #94a3b8); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.re-studio-modele { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; background: var(--r26-bg, #f3f5f9); cursor: pointer; }
.re-studio-modele .img { width: 56px; height: 38px; border-radius: 5px; background: linear-gradient(135deg, #0b2140, #1e3a68); border: 1px solid #94a3b8; position: relative; overflow: hidden; }
.re-studio-modele .img:after { content: ""; position: absolute; inset: 3px; background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.18) 8px 9px), repeating-linear-gradient(0deg, transparent 0 8px, rgba(255,255,255,.18) 8px 9px); }
.re-studio-modele b { font-size: 12.5px; display: block; } .re-studio-modele > div > span { font-size: 11px; color: var(--r26-ink-3, #94a3b8); display: block; margin-top: 2px; } .re-studio-modele .chev { font-size: 12px; color: var(--r26-ink-3, #94a3b8); }
.re-studio-modele select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; }
.re-studio-side .re-field select { font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; padding: 7px 10px; background: var(--r26-card, #fff); color: inherit; width: 100%; }
.re-studio-side .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; } .re-studio-side .re-field-label { font-size: 10.5px; }
.re-studio-pan { display: grid; grid-template-columns: 24px 1fr 72px 40px; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 10px; cursor: pointer; }
.re-studio-pan:hover, .re-studio-pan.hov { background: #f1f5f9; } .re-studio-pan.on { background: #eef6ff; } .re-studio-pan.sel { outline: 2px solid #38bdf8; outline-offset: -2px; }
.re-studio-pan .num { width: 22px; height: 22px; border-radius: 50%; background: #f59e0b; color: #1f1300; font-size: 11px; font-weight: 800; display: grid; place-items: center; } .re-studio-pan.sel .num { background: #38bdf8; }
.re-studio-pan .info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .re-studio-pan .info b { font-size: 12.5px; } .re-studio-pan .info span { font-size: 11px; color: var(--r26-ink-3, #94a3b8); margin-left: 6px; }
.re-studio-pan .acces { position: relative; height: 7px; background: #f1f5f9; border-radius: 4px; margin-top: -8px; } .re-studio-pan .acces i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #f59e0b, #fbbf24); } .re-studio-pan .acces span { position: absolute; left: 0; top: 9px; font-size: 10px; color: var(--r26-ink-2, #475569); font-weight: 700; }
.re-studio-pan .n { font-size: 14px; text-align: right; line-height: 1.05; } .re-studio-pan .n small { display: block; font-size: 9.5px; font-weight: 600; color: var(--r26-ink-3, #94a3b8); }
.re-studio-prod { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .re-studio-prod div { background: var(--r26-bg, #f3f5f9); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; padding: 7px 9px; min-width: 0; } .re-studio-prod b { display: block; font-size: 14px; white-space: nowrap; } .re-studio-prod span { font-size: 10px; color: var(--r26-ink-3, #94a3b8); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.re-studio-couv { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--r26-ink-2, #475569); white-space: nowrap; } .re-studio-couv .bar { flex: 1; height: 10px; border-radius: 5px; background: #f1f5f9; overflow: hidden; } .re-studio-couv .bar i { display: block; height: 100%; background: linear-gradient(90deg, #10b981, #34d399); }
.re-studio-side .actions { padding: 12px 16px; margin-top: auto; } .re-studio-side .actions .re-btn { width: 100%; justify-content: center; padding: 12px; font-size: 14px; box-shadow: 0 6px 16px rgba(10,37,64,.22); }
/* Bouton d'ouverture (étape Solaire) */
.re-studio-ouvrir { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .re-studio-ouvrir .re-muted { font-size: 12px; }
/* Thème sombre */
:root[data-theme="dark"] .re-studio-top, :root[data-theme="dark"] .re-studio-rail, :root[data-theme="dark"] .re-studio-side, :root[data-theme="dark"] .re-studio-conso, :root[data-theme="dark"] .re-studio-tog, :root[data-theme="dark"] .re-studio-fermer, :root[data-theme="dark"] .re-studio-mois, :root[data-theme="dark"] .re-studio-side .re-field select { background: #0f1b2d; color: #e2e8f0; border-color: #1e2d44; }
:root[data-theme="dark"] .re-studio-kpis > div, :root[data-theme="dark"] .re-studio-mesures div, :root[data-theme="dark"] .re-studio-prod div, :root[data-theme="dark"] .re-studio-modele, :root[data-theme="dark"] .re-studio-seg { background: #132238; border-color: #1e2d44; }
:root[data-theme="dark"] .re-studio-kpis > div.hi { background: #16304f; } :root[data-theme="dark"] .re-studio-kpis > div.sun { background: #3a2a0d; border-color: #78500d; }
:root[data-theme="dark"] .re-studio-pan:hover, :root[data-theme="dark"] .re-studio-pan.hov { background: #132238; } :root[data-theme="dark"] .re-studio-pan.on { background: #16304f; } :root[data-theme="dark"] .re-studio-outil.on { background: #16304f; border-color: #1e3a8a; color: #93c5fd; } :root[data-theme="dark"] .re-studio-outil:not(:disabled):hover { background: #132238; }
:root[data-theme="dark"] .re-studio-pan .acces, :root[data-theme="dark"] .re-studio-couv .bar { background: #1e2d44; }
@media (max-width: 1200px) { .re-studio { grid-template-columns: 72px 1fr 300px; } .re-studio-adresse { display: none; } .re-studio-kpis > div { min-width: 70px; } }
:root[data-theme="dark"] .re-3d-soleil { color: #cbd5e1; }
:root[data-theme="dark"] .re-3d-soleil select { background: #0b1526; color: #e2e8f0; border: 1px solid #1e2d44; border-radius: 6px; }

/* ── Fiche client : maison en attente et correction d'adresse ── */
.re-vue-attente { min-height: 160px; }
.re-vue-attente .re-vue-vide { display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 12px; border: 1px dashed var(--r26-line, #cbd5e1); background: var(--r26-surface-2, #f8fafc); color: var(--r26-ink-3, #94a3b8); font-size: 13px; padding: 16px; aspect-ratio: 20 / 11; }
.re-maison-corriger { margin-top: 8px; max-width: 560px; }

/* ── Tour de qualité CRM (4 nov. 2026) ── */

/* Fiche client, « Ce que le client a dit » : pastilles des sources d'interaction valides (aircall et ghl existent déjà) */
.re-src.email { background: #e0f2fe; color: #075985; }
.re-src.pocket { background: #fce7f3; color: #9d174d; }
.re-src.manuel { background: #f1f5f9; color: #334155; }
.re-src.autre { background: #f1f5f9; color: #64748b; }

/* Tableau de bord, « À traiter maintenant » : texte à gauche, bouton « Soumission » (préremplie avec la source du lead) à droite */
.re-urgence { display: flex; align-items: center; gap: 10px; }
.re-urgence-corps { flex: 1 1 auto; min-width: 0; }
.re-urgence-action { flex: 0 0 auto; white-space: nowrap; }

/* Tâches : lien « soumission » aligné avec les autres métadonnées */
.re-tache-meta .re-link { font-size: inherit; }

/* Pipelines : lien « effacer les filtres » dans la barre de filtres, colonne « Étape inconnue » (opportunités dont l'étape n'existe plus) */
.re-pipe-filtres .re-link { font-size: 12.5px; white-space: nowrap; }
.re-pipe-col.sans-etape .re-pipe-col-head b { color: var(--r26-ink-3, #94a3b8); }

/* Clients : message « aucun client » sur toute la largeur, lien pour effacer recherche et filtres */
.re-table.re-clients td[colspan] .re-link { margin-left: 4px; }

/* ───────── Studio : panneaux libres (déplacer, sélection multiple, barre flottante, menu, outil Toit) ───────── */
.re-studio-canvas.outil-selectionner { cursor: default; } .re-studio-canvas.outil-selectionner.deplace { cursor: grabbing; } .re-studio-canvas.outil-selectionner.refuse { cursor: not-allowed; } .re-studio-canvas.outil-toit { cursor: default; }
.re-studio-barre-sel { position: absolute; z-index: 7; transform: translate(-50%, 0); display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: rgba(15,23,42,.94); color: #fff; font-size: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; }
.re-studio-barre-sel span { color: rgba(255,255,255,.75); margin-right: 4px; }
.re-studio-barre-sel button, .re-studio-menu button { border: 0; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; }
.re-studio-barre-sel button:hover, .re-studio-menu button:hover { background: rgba(255,255,255,.24); }
.re-studio-barre-sel button.danger, .re-studio-menu button.danger { background: rgba(239,68,68,.75); } .re-studio-barre-sel button.danger:hover, .re-studio-menu button.danger:hover { background: #ef4444; }
.re-studio-menu { position: absolute; z-index: 8; display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 6px; border-radius: 12px; background: rgba(15,23,42,.96); box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.re-studio-menu button { text-align: left; border-radius: 8px; }
.re-studio-modele .img.glisser { cursor: grab; } .re-studio-modele .img.glisser:active { cursor: grabbing; }
.re-studio-kpis .hi.alerte b { color: #ef4444; }
.re-studio-curseur.panneau b { color: #7dd3fc; }
.re-studio-toit-ov { position: absolute; inset: 0; z-index: 5; }
.re-studio-toit-bientot { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); max-width: 420px; padding: 12px 16px; border-radius: 12px; background: rgba(15,23,42,.92); color: #fff; font-size: 13px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.re-studio-toit-bientot b { display: block; margin-bottom: 4px; } .re-studio-toit-bientot span { color: rgba(255,255,255,.8); }

/* ── Éditeur de toit (correction à la main du modèle, superposition du Studio) ── */
.re-toit-editeur { font-family: inherit; }
.re-toit-svg { user-select: none; }
.re-toit-svg.drag { cursor: grabbing; }
.re-toit-face { fill: rgba(255, 255, 255, 0.04); stroke: none; pointer-events: all; cursor: pointer; }
.re-toit-face.hov { fill: rgba(255, 255, 255, 0.10); }
.re-toit-face.sel { fill: rgba(59, 130, 246, 0.20); stroke: #3b82f6; stroke-width: 1.5; }
.re-toit-sommet { fill: #fff; stroke: #0b1b2b; stroke-width: 1.4; transition: r .08s; }
.re-toit-sommet:hover { fill: #ffd166; }
.re-toit-sommet.sel { fill: #3b82f6; stroke: #fff; stroke-width: 2; }
.re-toit-sommet.bouge { fill: #22c55e; stroke: #fff; }
.re-toit-poignee { fill: #3b82f6; stroke: #fff; stroke-width: 1.5; }
.re-toit-carte { background: rgba(11, 27, 43, 0.94); color: #fff; border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 10px 12px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); min-width: 190px; z-index: 5; }
.re-toit-carte b { display: block; font-size: 13px; margin-bottom: 2px; }
.re-toit-carte .re-toit-sub { display: block; color: #9fb3c8; font-size: 11px; margin: 2px 0 6px; }
.re-toit-carte label { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.re-toit-carte input[type=number], .re-toit-carte select { width: 84px; padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; font: inherit; }
.re-toit-carte .re-toit-boutons { display: flex; gap: 6px; margin-top: 6px; }
.re-toit-carte button { padding: 4px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; cursor: pointer; font: inherit; font-size: 12px; }
.re-toit-carte button:hover { background: rgba(255,255,255,0.22); }
.re-toit-barre { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: rgba(11, 27, 43, 0.86); color: #fff; border-radius: 10px; padding: 7px 11px; font-size: 12px; max-width: calc(100% - 20px); }
.re-toit-barre .re-toit-aide { color: #9fb3c8; font-size: 11px; }
.re-toit-barre .re-btn.small { padding: 3px 9px; font-size: 12px; }
.re-toit-msg { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: #b91c1c; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 12px; pointer-events: none; }
.re-toit-barre .re-toit-aimant { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.re-studio-modele .img.glisser { z-index: 2; } /* au-dessus du select invisible qui couvre la vignette : le glisser part bien de l'image */

/* ── Marque Raycom : logo et éclair (4 nov. 2026) ── */
/* ═══════════════════════════════════════════════════════════════════════
   styles-marque.css — Marque Raycom Électrique dans RAYCAST (à intégrer à styles-re.css).
   Variables de marque, éclair officiel (icons.jsx : EclairRaycom), logo (LogoRaycom),
   puces, pastilles d'état, badges RAYCAST, chargement. Aucune autre refonte visuelle.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --rc-bleu: #0a6fc8;        /* bleu Raycom : milieu du dégradé de l'éclair officiel */
  --rc-bleu-fonce: #0a3a8c;  /* bas de l'éclair */
  --rc-bleu-clair: #16c4f2;  /* pointe de l'éclair */
  --rc-eclair-uri: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20389%20696%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%2316c4f2%22%2F%3E%3Cstop%20offset%3D%22.36%22%20stop-color%3D%22%230894e2%22%2F%3E%3Cstop%20offset%3D%22.7%22%20stop-color%3D%22%230a5ab6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230a3a8c%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpolygon%20points%3D%22300%2C0%20195%2C288%20389%2C288%2078%2C696%20184%2C406%200%2C405%22%20fill%3D%22url%28%2523g%29%22%2F%3E%3C%2Fsvg%3E");
}

/* Éclair et logo (valeurs de base ; les composants posent aussi ces styles en ligne) */
.rc-eclair { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.rc-logo { display: block; width: auto; max-width: 100%; user-select: none; -webkit-user-drag: none; }

/* Barre latérale : logo complet (54 px) sur grand écran, éclair seul sur mobile */
.sidebar-logo { padding: 6px 8px 14px; }
.sidebar-logo .rc-marque-barre { height: 54px; }
.sidebar-logo .rc-marque-reduite { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
@media (max-width: 820px) { .sidebar-logo { padding: 0 8px 0 2px !important; } }

/* Bouton « Nouvelle soumission » : éclair bleu dans une pastille blanche */
.nav-cta-ico.rc-eclair-chip { background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 58, 140, .10); }
.re-btn.primary .rc-eclair, .re-pastille .rc-eclair, .re-src .rc-eclair { vertical-align: -0.1em; }

/* Badges « RAYCAST » des sources (clients, répertoire) */
.re-src.sup { background: #dbeafe; color: var(--rc-bleu-fonce); }
:root[data-theme="dark"] .re-src.sup { background: #16304f; color: #93c5fd; }

/* Puces des listes : éclair Raycom (Paramètres, Sécurité et Loi 25, et toute liste .rc-puces) */
.rc-puces { list-style: none; padding-left: 0; }
.rc-puces > li { position: relative; padding-left: 18px; }
.rc-puces > li::before { content: ""; position: absolute; left: 2px; top: .32em; width: 8px; height: 14px; background: var(--rc-eclair-uri) center / contain no-repeat; }

/* Marqueurs d'étapes : étape active du parcours (éclair blanc), têtes de colonnes du pipeline */
.re-step.active .re-step-num .rc-eclair { vertical-align: 0; }
.re-pipe-col-head b { display: inline-flex; align-items: center; }

/* Écran de connexion et écran MFA */
.rc-login-logo { height: 56px; }
.re-mfa-carte .rc-mfa-logo { align-self: flex-start; }

/* Paramètres : À propos de RAYCAST */
.rc-apropos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rc-apropos-texte { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.rc-apropos-texte b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; letter-spacing: .04em; }

/* Chargement : éclair qui pulse (FullscreenLoader et EclairChargement) */
@keyframes rc-eclair-pulse { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }
.rc-chargement { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .rc-chargement span { animation: none !important; } }

/* Vue en erreur (app.jsx) et filet de démarrage (index.html) : logo clair sur carte blanche */
.rc-vue-erreur .rc-logo, .rc-demarrage-echec img { height: 32px; }

/* ── Schéma unifilaire (schema-re.jsx, 5 nov. 2026) ── */
.rc-sch { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: var(--r26-surface-2, #f1f5f9); color: var(--r26-ink, #0f172a); font-family: inherit; }
.rc-sch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--r26-line, #e2e8f0); }
.rc-sch-brand { display: flex; align-items: center; gap: 10px; } .rc-sch-brand b { display: block; font-size: 15px; } .rc-sch-brand span { display: block; font-size: 12px; color: var(--r26-ink-3, #64748b); }
.rc-sch-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-sch-corps { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; }
.rc-sch-form, .rc-sch-droite { overflow: auto; background: #fff; border-right: 1px solid var(--r26-line, #e2e8f0); padding: 12px; }
.rc-sch-droite { border-right: 0; border-left: 1px solid var(--r26-line, #e2e8f0); }
.rc-sch-onglets { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.rc-sch-onglets button { border: 1px solid var(--r26-line, #e2e8f0); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; color: inherit; }
.rc-sch-onglets button.on { background: var(--rc-bleu, #0a6fc8); color: #fff; border-color: var(--rc-bleu, #0a6fc8); }
.rc-sch-bloc { display: flex; flex-direction: column; gap: 8px; }
.rc-sch-champ { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--r26-ink-3, #64748b); }
.rc-sch-champ input, .rc-sch-champ select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; background: #fff; color: var(--r26-ink, #0f172a); }
.rc-sch-champ input[type=checkbox] { width: 18px; height: 18px; }
.rc-sch-champ.faible input { border-color: #f59e0b; background: #fffbeb; }
.rc-sch-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-sch-analyse { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed var(--r26-line, #cbd5e1); border-radius: 10px; margin-bottom: 4px; }
.rc-sch-analyse p { margin: 0; font-size: 11.5px; }
.rc-sch-check { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.rc-sch-resume { font-size: 12px; color: var(--r26-ink-3, #64748b); padding-top: 6px; border-top: 1px solid var(--r26-line, #e2e8f0); }
.rc-sch-apercu { overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rc-sch-feuille { width: 100%; max-width: 1400px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .15); border-radius: 4px; }
.rc-sch-feuille svg { display: block; }
.rc-sch-aide { font-size: 11.5px; color: var(--r26-ink-3, #64748b); text-align: center; }
.rc-sch-actions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.rc-sch-legende b { display: block; font-size: 12px; margin-bottom: 6px; }
.rc-sch-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--r26-line, #f1f5f9); }
.rc-sch-item input { font: inherit; font-size: 12px; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; background: transparent; color: inherit; }
.rc-sch-item input:focus { border-color: var(--rc-bleu, #0a6fc8); background: #fff; }
.rc-sch-item span { font-size: 10px; color: var(--r26-ink-3, #94a3b8); }
.rc-sch-item.sel input { background: #eff6ff; } .rc-sch-item.off input { text-decoration: line-through; color: #94a3b8; }
.rc-sch-oeil { border: 0; background: transparent; cursor: pointer; color: var(--rc-bleu, #0a6fc8); font-size: 14px; }
.rc-sch-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #065f46; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 1300; max-width: 80vw; }
.rc-sch-toast.err { background: #991b1b; }
:root[data-theme="dark"] .rc-sch { background: #0b1526; color: #e2e8f0; }
:root[data-theme="dark"] .rc-sch-top, :root[data-theme="dark"] .rc-sch-form, :root[data-theme="dark"] .rc-sch-droite { background: #0f1b2d; border-color: #1e2d44; }
:root[data-theme="dark"] .rc-sch-onglets button, :root[data-theme="dark"] .rc-sch-champ input, :root[data-theme="dark"] .rc-sch-champ select { background: #0b1526; color: #e2e8f0; border-color: #1e2d44; }
:root[data-theme="dark"] .rc-sch-item.sel input, :root[data-theme="dark"] .rc-sch-item input:focus { background: #132238; }
@media (max-width: 1100px) { .rc-sch-corps { grid-template-columns: 260px minmax(0, 1fr); } .rc-sch-droite { display: none; } }

/* ── Sites Tesla en service, rapprochement Powerhub (5 nov. 2026) ── */
/* Sites Tesla en service, rapprochement et points à régler (dashboard-re.jsx : SitesPowerhub), nov. 2026. À intégrer dans styles-re.css après le bloc des statistiques de ventes (.re-stat-*). */
.re-powerhub { margin-bottom: 14px; }
.re-powerhub .re-panel-head { flex-wrap: wrap; gap: 12px; }
.re-powerhub .re-panel-head .re-muted { margin: 2px 0 0; }
.re-ph-vide { margin: 10px 0 0; }
.re-ph-tuiles .re-vente-sub { font-size: 11.5px; color: var(--r26-ink-2, #475569); }
.re-ph-note { font-size: 11.5px; color: var(--r26-ink-3, #94a3b8); margin: 10px 0 0; }
.re-ph-sous { margin: 12px 0 6px; }
/* Barres horizontales (composant Bars) : valeurs plus longues (« 1 234 kWh ») et libellés sur deux lignes au besoin */
.re-powerhub .re-bar-row { grid-template-columns: minmax(0, 1fr) 110px 78px; }
.re-powerhub .re-bar-k { white-space: normal; line-height: 1.25; }
.re-powerhub .re-bar-v { white-space: nowrap; }
/* Ligne de cumul sur l'histogramme (Histo, prop ligne) */
.re-histo-ligne { stroke: #f59e0b; }
.re-histo-ligne-pt { fill: #f59e0b; }
.re-histo-ligne-val { font-size: 10px; font-weight: 700; fill: #b45309; }
.re-histo-sw.ligne { background: #f59e0b; height: 3px; border-radius: 2px; vertical-align: 2px; }
.re-histo-legende b { font-weight: 800; color: var(--r26-ink, #0f172a); }
:root[data-theme="dark"] .re-histo-legende b { color: #e2e8f0; }
/* Rapprochement */
.re-ph-table th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
.re-ph-table td.nom { width: 22%; }
.re-ph-table td .desc { white-space: normal; font-weight: 400; color: var(--r26-ink-3, #94a3b8); font-size: 11.5px; margin-top: 2px; }
.re-ph-table td.stock.bas { color: #dc2626; }
.re-ph-table td.stock.bas .desc { color: #dc2626; }
.re-ph-table td.ecart.plus { color: #047857; }
.re-ph-table td.ecart.moins { color: #b45309; }
.re-ph-table td.ecart .desc { color: var(--r26-ink-2, #475569); }
/* Points à régler */
.re-ph-points ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 18px; }
.re-ph-points li { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--r26-surface-2, #f8fafc); display: flex; align-items: baseline; gap: 8px; }
.re-ph-points li b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; min-width: 26px; text-align: right; color: #b45309; }
.re-ph-points li.zero { color: var(--r26-ink-3, #94a3b8); }
.re-ph-points li.zero b { color: var(--r26-ink-3, #94a3b8); }
/* Thème sombre */
:root[data-theme="dark"] .re-ph-tuiles .re-vente-sub, :root[data-theme="dark"] .re-ph-table td.ecart .desc { color: #a7b4c8; }
:root[data-theme="dark"] .re-ph-note, :root[data-theme="dark"] .re-ph-table td .desc { color: #8294ad; }
:root[data-theme="dark"] .re-powerhub .re-bar-track { background: #132238; }
:root[data-theme="dark"] .re-histo-ligne { stroke: #fbbf24; }
:root[data-theme="dark"] .re-histo-ligne-pt { fill: #fbbf24; }
:root[data-theme="dark"] .re-histo-ligne-val { fill: #fcd34d; }
:root[data-theme="dark"] .re-histo-sw.ligne { background: #fbbf24; }
:root[data-theme="dark"] .re-ph-table td.stock.bas, :root[data-theme="dark"] .re-ph-table td.stock.bas .desc { color: #f87171; }
:root[data-theme="dark"] .re-ph-table td.ecart.plus { color: #34d399; }
:root[data-theme="dark"] .re-ph-table td.ecart.moins, :root[data-theme="dark"] .re-ph-points li b { color: #fbbf24; }
:root[data-theme="dark"] .re-ph-points li { background: #132238; color: #e2e8f0; }
:root[data-theme="dark"] .re-ph-points li.zero, :root[data-theme="dark"] .re-ph-points li.zero b { color: #7c8aa3; }

/* ── Fiche client : système Tesla en service (5 nov. 2026) ── */
/* Fiche client : section « Système Tesla en service » (clients-re.jsx : SystemeTesla, SiteTesla), nov. 2026. À intégrer dans styles-re.css après le bloc « Chez nous » (.re-chez-nous-*). */
.re-tesla-site { padding: 10px 0 12px; border-bottom: 1px dashed var(--r26-line, #e2e8f0); }
.re-tesla-site:last-of-type { border-bottom: 0; }
.re-tesla-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.re-tesla-tete .re-link { font-size: 12.5px; white-space: nowrap; }
.re-tesla-avis { margin: 8px 0 0; padding: 8px 12px; }
.re-tesla-fiche { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.re-tesla-fiche dt { font-size: 11.5px; font-weight: 600; color: var(--r26-ink-3, #94a3b8); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.re-tesla-fiche dd { margin: 0; color: var(--r26-ink, #0f172a); }
.re-tesla-energie { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.re-tesla-kpis.re-kpis.compact { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 0; }
.re-tesla-kpis > div { padding: 8px 10px; }
.re-tesla-kpis b { font-size: 15px; white-space: nowrap; }
.re-tesla-kpis span { font-size: 11px; }
.re-tesla-extraction { font-size: 11.5px; }
.re-tesla-notes { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--r26-ink-2, #475569); white-space: pre-line; }
/* Suggestion par adresse */
.re-tesla-suggestion { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: 13px; }
.re-tesla-suggestion > div { line-height: 1.4; }
.re-tesla-suggestion b { color: #92400e; }
.re-tesla-etat { display: block; margin-top: 8px; }
/* Liaison manuelle */
.re-tesla-relier { display: inline-block; margin-top: 10px; font-size: 12.5px; }
.re-tesla-liste { margin-top: 10px; }
.re-tesla-liste .re-inline { margin-bottom: 6px; }
.re-tesla-liste .re-search { min-width: 0; padding: 7px 10px; font-size: 13px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; }
.re-tesla-table td.nom { width: auto; }
.re-tesla-table td.montant { white-space: nowrap; }
@media (max-width: 640px) { .re-tesla-fiche { grid-template-columns: 1fr; gap: 2px; } .re-tesla-fiche dd { margin-bottom: 6px; } }
/* Thème sombre */
:root[data-theme="dark"] .re-tesla-fiche dd { color: #e2e8f0; }
:root[data-theme="dark"] .re-tesla-notes { color: #a7b4c8; }
:root[data-theme="dark"] .re-tesla-suggestion { background: #3a2a0d; border-color: #78500d; color: #e2e8f0; }
:root[data-theme="dark"] .re-tesla-suggestion b { color: #fcd34d; }
:root[data-theme="dark"] .re-tesla-avis { background: #3a2a0d; border-color: #78500d; color: #fde68a; }
:root[data-theme="dark"] .re-tesla-liste .re-search { background: #0b1526; color: #e2e8f0; border-color: #1e2d44; }

/* ── Messagerie phase 2 : filtres, fil unifié, composeur (5 nov. 2026) ── */
.re-msg-filtres { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px; }
.re-msg-filtres .re-btn.small { padding: 3px 9px; font-size: 11.5px; }
.re-msg-canal.sms { background: #dcfce7; color: #166534; } .re-msg-canal.courriel { background: #dbeafe; color: #1e40af; } .re-msg-canal.chat { background: #f3e8ff; color: #6b21a8; } .re-msg-canal.appel { background: #ffedd5; color: #9a3412; } .re-msg-canal.contact { background: var(--rc-bleu, #0a6fc8); color: #fff; }
.re-msg-fil-titre { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; } .re-msg-fil-titre b { font-size: 15px; }
.re-msg-retour { display: none; }
.re-msg-note { font-size: 12px; color: var(--r26-ink-3, #94a3b8); background: var(--r26-surface-2, #f8fafc); border: 1px dashed var(--r26-line, #e2e8f0); border-radius: 10px; padding: 6px 10px; align-self: stretch; }
.re-bulle.encours { opacity: .6; } .re-bulle.erreur { border: 1px solid #dc2626; background: #fef2f2; color: #7f1d1d; }
.re-bulle.appel { background: #fff7ed; color: #7c2d12; align-self: center; max-width: 90%; border-radius: 10px; }
.re-bulle-html { font-size: 13px; line-height: 1.45; background: #fff; color: #1e293b; border-radius: 8px; padding: 8px 10px; overflow-x: auto; max-width: 100%; } .re-bulle-html img { max-width: 100%; height: auto; }
.re-bulle.raycom .re-bulle-plus, .re-bulle.raycom .re-link { color: #fff; } .re-bulle-plus { font-size: 12px; margin-top: 4px; display: inline-block; }
.re-msg-composeur { border-top: 1px solid var(--r26-line, #eef2f7); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.re-msg-canaux { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.re-msg-canal-btn.off { opacity: .55; cursor: not-allowed; } .re-msg-raison { font-weight: 400; font-size: 11px; opacity: .85; }
.re-msg-courriel-champs { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 8px; } .re-msg-courriel-champs label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--r26-ink-3, #94a3b8); font-weight: 600; } .re-msg-courriel-champs label.grand { grid-column: auto; }
.re-msg-composeur textarea { width: 100%; resize: vertical; min-height: 64px; font: inherit; padding: 8px 10px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; background: var(--r26-surface, #fff); color: inherit; }
.re-msg-signature { font-size: 12px; } .re-msg-signature-apercu { margin: 6px 0 0; padding: 8px 10px; font: 12px/1.4 inherit; font-family: inherit; background: var(--r26-surface-2, #f8fafc); border-radius: 8px; white-space: pre-wrap; color: var(--r26-ink-2, #475569); }
.re-msg-envoi-ligne { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .re-msg-envoi-ligne .re-btn.primary { margin-left: auto; }
.re-msg-compteur { font-size: 11.5px; color: var(--r26-ink-3, #94a3b8); } .re-msg-compteur.depasse { color: #dc2626; font-weight: 700; }
.re-msg-etat { font-size: 12px; } .re-msg-etat.ok { color: #15803d; } .re-msg-etat.erreur { color: #b91c1c; }
:root[data-theme="dark"] .re-msg-canal.sms { background: #14532d; color: #bbf7d0; } :root[data-theme="dark"] .re-msg-canal.courriel { background: #1e3a8a; color: #bfdbfe; } :root[data-theme="dark"] .re-msg-canal.chat { background: #581c87; color: #e9d5ff; } :root[data-theme="dark"] .re-msg-canal.appel { background: #7c2d12; color: #fed7aa; }
:root[data-theme="dark"] .re-bulle.appel { background: #3b1d0f; color: #fed7aa; } :root[data-theme="dark"] .re-bulle.erreur { background: #450a0a; color: #fecaca; } :root[data-theme="dark"] .re-bulle-html { background: #0f172a; color: #e2e8f0; }
@media (max-width: 900px) {
  .re-msg-retour { display: inline-block; }
  .re-msg.fil-ouvert .re-msg-liste { display: none; } .re-msg:not(.fil-ouvert) .re-msg-fil { display: none; }
  .re-msg-courriel-champs { grid-template-columns: 1fr; }
  .re-bulle { max-width: 88%; }
}

/* ── Schéma unifilaire v2 : édition complète (outils, composantes, câbles, annotations, modèles), 5 nov. 2026 ── */
.rc-sch-outils { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-sch-outils .rc-sch-sel, .rc-sch-outils .rc-sch-cal { font: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; background: #fff; color: inherit; }
.rc-sch-outils .rc-sch-cal { width: 150px; }
.rc-sch-indice { font-size: 11.5px; color: var(--rc-bleu, #0a6fc8); font-weight: 600; }
.rc-sch-sep { width: 1px; height: 22px; background: var(--r26-line, #e2e8f0); margin: 0 4px; }
.rc-sch-modeles { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed var(--r26-line, #cbd5e1); border-radius: 10px; margin-bottom: 10px; }
.rc-sch-modeles b { font-size: 12px; }
.rc-sch-modeles input, .rc-sch-modeles select { font: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; background: #fff; color: inherit; min-width: 0; }
.rc-sch-ajout { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; }
.rc-sch-ajout select, .rc-sch-ajout input { font: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; background: #fff; color: inherit; min-width: 0; }
.rc-sch-item { grid-template-columns: 26px 1fr auto; align-items: start; }
.rc-sch-num { width: 22px; height: 22px; border-radius: 999px; border: 0; background: var(--rc-bleu, #0a6fc8); color: #fff; font-size: 10.5px; font-weight: 800; cursor: pointer; margin-top: 3px; }
.rc-sch-item.off .rc-sch-num { background: #cbd5e1; }
.rc-sch-item-corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-sch-item-corps input.rc-sch-cote { font-size: 11px; color: var(--r26-ink-3, #64748b); }
.rc-sch-leg-edit { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 4px 6px; border-left: 2px solid var(--rc-bleu-clair, #16c4f2); }
.rc-sch-leg-edit input { font-size: 11px; }
.rc-sch-item-btn { display: flex; gap: 2px; align-items: center; margin-top: 2px; }
.rc-sch-item-btn button { border: 0; background: transparent; cursor: pointer; color: var(--r26-ink-3, #64748b); font-size: 12px; padding: 2px 3px; border-radius: 4px; }
.rc-sch-item-btn button:hover { background: #eff6ff; color: var(--rc-bleu, #0a6fc8); }
.rc-sch-item-cable span { display: block; font-size: 12px; }
.rc-sch-cable-sel { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; margin-bottom: 10px; font-size: 12px; }
.rc-sch-cable-sel b { font-size: 12px; }
.rc-sch-port:hover { r: 7; }
:root[data-theme="dark"] .rc-sch-outils .rc-sch-sel, :root[data-theme="dark"] .rc-sch-outils .rc-sch-cal, :root[data-theme="dark"] .rc-sch-modeles input, :root[data-theme="dark"] .rc-sch-modeles select, :root[data-theme="dark"] .rc-sch-ajout select, :root[data-theme="dark"] .rc-sch-ajout input { background: #0b1526; border-color: #1e2d47; color: #e2e8f0; }
:root[data-theme="dark"] .rc-sch-item-btn button:hover { background: #132238; }
.rc-sch-item-corps { gap: 0; }
.rc-sch-item-corps input { width: 100%; box-sizing: border-box; padding: 2px 6px; }
.rc-sch-item-corps .rc-sch-type { padding-left: 6px; font-size: 9.5px; text-transform: lowercase; }
/* Schéma v3 : avertissement, palette avec recherche et glisser-déposer, saisie des appareils (grab, grabbing), poignée */
.rc-sch-avert { width: 100%; max-width: 1400px; box-sizing: border-box; padding: 8px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; font-size: 13px; font-weight: 600; }
.rc-sch-palette { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.rc-sch-recherche { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; background: #fff; color: inherit; width: 100%; box-sizing: border-box; }
.rc-sch-recherche:focus { outline: 2px solid var(--rc-bleu, #0a6fc8); outline-offset: -1px; }
.rc-sch-pal-liste { max-height: 260px; overflow: auto; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; padding: 4px; }
.rc-sch-pal-groupe b { display: flex; justify-content: space-between; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--r26-ink-3, #64748b); margin: 6px 4px 2px; }
.rc-sch-pal-groupe b span { font-weight: 600; }
.rc-sch-pal-item { font-size: 12px; padding: 4px 8px; border-radius: 6px; cursor: grab; user-select: none; }
.rc-sch-pal-item:hover, .rc-sch-pal-item:focus { background: #eff6ff; color: var(--rc-bleu, #0a6fc8); outline: none; }
.rc-sch-pal-item:active { cursor: grabbing; }
.rc-sch-fantome { position: fixed; z-index: 1400; pointer-events: none; padding: 5px 10px; border-radius: 8px; background: var(--rc-bleu, #0a6fc8); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 18px rgba(15, 23, 42, .25); white-space: nowrap; }
.rc-sch-scene .rc-sch-noeud { cursor: grab; }
.rc-sch-scene .rc-sch-noeud .rc-sch-grip { opacity: 0; transition: opacity .12s; }
.rc-sch-scene .rc-sch-noeud:hover .rc-sch-grip, .rc-sch-scene .rc-sch-noeud.sel .rc-sch-grip { opacity: 1; }
.rc-sch-scene .rc-sch-noeud:hover .rc-sch-prise { stroke: var(--rc-bleu, #0a6fc8); stroke-opacity: .35; stroke-dasharray: 3 3; }
.rc-sch-scene.glisse, .rc-sch-scene.glisse * { cursor: grabbing !important; }
.rc-sch-scene.glisse { user-select: none; }
:root[data-theme="dark"] .rc-sch-avert { background: #3a2a0d; border-color: #78500d; color: #fde68a; }
:root[data-theme="dark"] .rc-sch-recherche, :root[data-theme="dark"] .rc-sch-pal-liste { background: #0b1526; border-color: #1e2d47; color: #e2e8f0; }
:root[data-theme="dark"] .rc-sch-pal-item:hover, :root[data-theme="dark"] .rc-sch-pal-item:focus { background: #132238; color: #93c5fd; }

/* ── Clients : création et modification (5 nov. 2026) ── */
/* Vue Clients : création et modification d'un client (clients-re.jsx : FormClient, boutons « Nouveau client », « Modifier », « Enregistrer dans Raycast »), nov. 2026.
   À intégrer dans styles-re.css après le bloc de la fiche client (.re-fiche, .re-maison). */
.re-modal-fond { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; background: rgba(15, 23, 42, .45); overflow-y: auto; }
.re-modal { width: 100%; max-width: 640px; background: #fff; color: var(--r26-ink, #1e293b); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); padding: 20px 22px 18px; }
.re-modal-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.re-modal-tete h3 { margin: 0; font-size: 18px; font-weight: 700; }
.re-modal-pied { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--r26-line, #e2e8f0); }
.re-client-form-aide { margin: 0 0 14px; font-size: 12.5px; color: var(--r26-ink-2, #475569); }
.re-client-form .re-field textarea { resize: vertical; min-height: 64px; }
.re-client-form .re-adresse input { width: 100%; }
.re-field-erreur { font-size: 12px; font-weight: 600; color: #b91c1c; }
.re-field input[aria-invalid="true"] { border-color: #f87171; }
.re-client-form-contact { margin-top: -6px; }
.re-client-doublon { margin: 14px 0 0; }
.re-client-doublon ul { margin: 6px 0 10px; padding-left: 18px; }
.re-client-doublon li { margin: 2px 0; }
.re-client-form-etat { display: block; margin-top: 10px; }
.re-client-form-etat.erreur { color: #b91c1c; }
.re-fiche-message { margin-top: 4px; }
@media (max-width: 640px) {
  .re-modal-fond { padding: 12px 8px; }
  .re-modal { padding: 16px 14px; }
  .re-client-form .re-grid2 { grid-template-columns: 1fr; }
}
/* Thème sombre */
:root[data-theme="dark"] .re-modal { background: #0f1b2d; color: #e2e8f0; border-color: #1e2d44; }
:root[data-theme="dark"] .re-modal-pied { border-top-color: #1e2d44; }
:root[data-theme="dark"] .re-client-form-aide { color: #94a3b8; }
:root[data-theme="dark"] .re-field-erreur, :root[data-theme="dark"] .re-client-form-etat.erreur { color: #fca5a5; }

/* ── Conversations : pastille d'initiales de l'auteur (5 nov. 2026) ── */
.re-msg-avatar { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--rc-bleu, #0a6fc8); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .3px; margin-right: 6px; vertical-align: middle; }
.re-msg-avatar.client { background: #64748b; }
:root[data-theme="dark"] .re-msg-avatar.client { background: #475569; }

/* ── Clients : recherche instantanée (5 nov. 2026) ── */
/* Vue Clients rapide (5 nov. 2026) : partie trouvée, compteur de résultats, état de la liste. À intégrer dans styles-re.css. */
.re-table.re-clients mark.rc-trouve { background: rgba(250, 204, 21, 0.38); color: inherit; border-radius: 2px; padding: 0 1px; }
.rc-clients-compteur { margin: -4px 0 8px; font-size: 12.5px; }
.rc-clients-etat .re-link[disabled] { opacity: 0.55; cursor: default; text-decoration: none; }
@media (prefers-color-scheme: dark) { .re-table.re-clients mark.rc-trouve { background: rgba(250, 204, 21, 0.28); } }
[data-theme="dark"] .re-table.re-clients mark.rc-trouve { background: rgba(250, 204, 21, 0.28); }

/* ── Conversations : confirmations d'envoi et de lecture (5 nov. 2026) ── */
.re-msg-statut { font-weight: 600; opacity: .85; }
.re-msg-statut.livre { color: #0a6fc8; }
.re-msg-statut.lu { color: #16a34a; }
.re-msg-statut.echec { color: #dc2626; }

/* ── Messagerie en direct : indicateur temps réel (5 nov. 2026) ── */
.re-msg-direct { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; white-space: nowrap; }
.re-msg-direct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.re-msg-direct.on { background: #dcfce7; color: #166534; }
.re-msg-direct.on::before { animation: re-direct-pouls 2s ease-in-out infinite; }
@keyframes re-direct-pouls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .re-msg-direct.on::before { animation: none; } }
[data-theme="dark"] .re-msg-direct { background: rgba(245, 158, 11, .18); color: #fcd34d; }
[data-theme="dark"] .re-msg-direct.on { background: rgba(34, 197, 94, .18); color: #86efac; }

/* ── Schéma : choix d'un schéma existant à modifier (5 nov. 2026) ── */
.rc-sch-choix-fond { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.rc-sch-choix { background: var(--r26-surface, #fff); color: inherit; border-radius: 14px; padding: 20px; width: min(560px, 100%); max-height: 80vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.rc-sch-choix h3 { margin: 0 0 6px; font-size: 17px; }
.rc-sch-choix-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 10px; background: transparent; cursor: pointer; color: inherit; }
.rc-sch-choix-item:hover { border-color: var(--rc-bleu, #0a6fc8); }
.rc-sch-choix-item b { font-size: 13px; word-break: break-all; }
.rc-sch-choix-item span { grid-column: 1; font-size: 12px; opacity: .7; }
.rc-sch-choix-item em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; color: var(--rc-bleu, #0a6fc8); }
.rc-sch-choix-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* ── Fiche client : résumé du dossier (5 nov. 2026) ── */
/* Résumé du dossier (fiche client, clients-re.jsx : ResumeDossier). Préfixe rd-. Thème clair, sombre ([data-theme="dark"]) et mobile.
   À charger après styles-re.css. */
.rd-carte { --rd-fond: #ffffff; --rd-bord: #dbe5f3; --rd-mini: #f8fafc; --rd-mini-bord: #e2e8f0; --rd-texte: var(--r26-ink, #1e293b); --rd-doux: var(--r26-ink-3-strong, #64748b);
  --rd-bleu: #0a6fc8; --rd-bref: #eef5fd; --rd-etape: #ecfdf5; --rd-etape-bord: #a7f3d0; --rd-etape-texte: #065f46;
  --rd-ambre: #fffbeb; --rd-ambre-bord: #fcd34d; --rd-ambre-texte: #92400e;
  margin: 16px 0 20px; padding: 16px 18px 14px; border: 1.5px solid var(--rd-bord); border-radius: 16px; background: var(--rd-fond); color: var(--rd-texte);
  box-shadow: 0 4px 14px rgba(10, 37, 64, .06); }
.rd-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rd-titre { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .01em; display: flex; align-items: center; gap: 6px; }
.rd-maj { font-size: 12px; color: var(--rd-doux); margin-top: 2px; }
.rd-bouton { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rd-spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: rd-tourne .8s linear infinite; }
@keyframes rd-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rd-spin { animation-duration: 2.4s; } }
.rd-erreur { margin: 0 0 12px; }
/* Reprise de l'historique (fiche client) */
.rh-reprise { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 -6px; padding: 8px 12px; border: 1px dashed var(--r26-line, #cbd5e1); border-radius: 12px; font-size: 13px; color: var(--r26-ink-3-strong, #475569); }
.rh-texte { display: inline-flex; align-items: center; gap: 6px; }
.rh-fait { color: #065f46; font-weight: 600; }
:root[data-theme="dark"] .rh-fait { color: #6ee7b7; }
.rh-bouton { white-space: nowrap; }
.rh-erreur { flex-basis: 100%; margin: 4px 0 0; }
@media (max-width: 640px) { .rh-reprise { flex-direction: column; align-items: stretch; } .rh-bouton { width: 100%; justify-content: center; } }
@media print { .rh-reprise { display: none; } }

/* En bref : grand, lisible d'un coup d'œil */
.rd-bref { background: var(--rd-bref); border-left: 4px solid var(--rd-bleu); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.rd-etiquette { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--rd-bleu); margin-bottom: 4px; }
.rd-bref p { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; }

/* Prochaines étapes : mises en évidence */
.rd-etapes { background: var(--rd-etape); border: 1.5px solid var(--rd-etape-bord); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.rd-etapes .rd-liste-titre { color: var(--rd-etape-texte); }
.rd-etapes ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.rd-etapes li { font-size: 14px; line-height: 1.4; }
.rd-action { font-weight: 700; }
.rd-qui { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--rd-etape-texte); background: rgba(16, 185, 129, .14); border-radius: 999px; padding: 1px 8px; }

/* Grille de petites cartes */
.rd-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rd-mini { background: var(--rd-mini); border: 1px solid var(--rd-mini-bord); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.rd-mini-titre, .rd-liste-titre { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--rd-doux); margin-bottom: 4px; }
.rd-liste-titre b { margin-left: 4px; font-weight: 700; }
.rd-mini p { margin: 0; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.rd-mini dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 3px; font-size: 13px; line-height: 1.4; }
.rd-mini dt { color: var(--rd-doux); white-space: nowrap; }
.rd-mini dd { margin: 0; overflow-wrap: anywhere; }

/* Listes à puces */
.rd-listes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 12px; }
.rd-liste { border: 1px solid var(--rd-mini-bord); border-radius: 12px; padding: 10px 12px; }
.rd-liste ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 3px; }
.rd-promis { border-color: #bfdbfe; }
.rd-verifier { background: var(--rd-ambre); border-color: var(--rd-ambre-bord); }
.rd-verifier .rd-liste-titre, .rd-verifier li { color: var(--rd-ambre-texte); }

/* Sections non mentionnées : repliées en une ligne grise */
.rd-absents { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--rd-doux); margin-bottom: 12px; }
.rd-absent { border: 1px dashed var(--rd-mini-bord); border-radius: 999px; padding: 2px 9px; opacity: .85; }

/* Chronologie compacte */
.rd-chrono { border-top: 1px solid var(--rd-mini-bord); padding-top: 10px; position: relative; }
.rd-chrono ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rd-chrono li { display: grid; grid-template-columns: 92px 150px 1fr; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.4; }
.rd-chrono li > .re-src { justify-self: start; }
.rd-chrono time { color: var(--rd-doux); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.rd-chrono-texte { min-width: 0; overflow-wrap: anywhere; }
.rd-lien { position: absolute; right: 0; top: 8px; background: none; border: 0; padding: 2px 0; color: var(--rd-bleu); font-size: 12px; font-weight: 600; cursor: pointer; }
.rd-lien:hover { text-decoration: underline; }
.re-src.chat { background: #ccfbf1; color: #115e59; }

/* État vide */
.rd-vide { border-style: dashed; box-shadow: none; }
.rd-vide .rd-tete { margin-bottom: 6px; }
.rd-vide-texte { margin: 0; font-size: 13.5px; color: var(--rd-doux); line-height: 1.5; max-width: 70ch; }

/* Cartes toujours visibles (6 nov. 2026) : système, données techniques, consommation, Hydro-Québec, résumé des échanges, visites */
.rd-essentiels { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rd-cle { background: var(--rd-fond); border-color: var(--rd-bord); }
.rd-large { grid-column: 1 / -1; }
.rd-mini-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rd-mini-titre b { margin-left: 4px; font-weight: 700; }
.rd-nm { margin: 0; font-size: 13px; color: var(--rd-doux); font-style: italic; }
.rd-statut-ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 2px 0 6px; }
.rd-statut { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 800; border: 1px solid transparent; white-space: nowrap; }
.rd-statut.installe { background: #dcfce7; color: #166534; border-color: #86efac; }
.rd-statut.a-installer { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.rd-statut.soumission { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.rd-statut.discussion { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.rd-statut.inconnu { background: transparent; color: var(--rd-doux); border: 1px dashed var(--rd-mini-bord); }
.rd-verifie { font-size: 11.5px; font-weight: 700; color: #15803d; }
.rd-ia { font-size: 11.5px; color: var(--rd-doux); }
.rd-sys-date { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rd-composantes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.35; }
.rd-composantes li { display: flex; flex-direction: column; }
.rd-meta { font-size: 12px; color: var(--rd-doux); font-weight: 400; }
.rd-source { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--rd-mini-bord); font-size: 12px; color: var(--rd-doux); line-height: 1.4; overflow-wrap: anywhere; }
.rd-afficher { background: none; border: 0; padding: 0; color: var(--rd-bleu); font-size: 12px; font-weight: 700; cursor: pointer; }
.rd-afficher:hover { text-decoration: underline; }
.rd-afficher:focus-visible { outline: 2px solid var(--rd-bleu); outline-offset: 2px; border-radius: 4px; }
.rd-masque { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rd-hq-note { margin-top: 6px; font-size: 11px; color: var(--rd-doux); }
.rd-echanges p { margin: 0; font-size: 13.5px; line-height: 1.55; max-width: 110ch; }
.rd-visites ol { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-visites li { border-left: 3px solid #f9a8d4; padding: 2px 0 2px 10px; }
.rd-visite-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--rd-doux); }
.rd-visite-tete time { font-variant-numeric: tabular-nums; }
.rd-visite-texte { font-size: 13.5px; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.rd-visite-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.rd-visite-meta b { font-weight: 600; color: var(--rd-doux); }

/* Thème sombre */
:root[data-theme="dark"] .rd-carte { --rd-fond: #0f1b2d; --rd-bord: #1e3a5f; --rd-mini: #132238; --rd-mini-bord: #1e2d44; --rd-texte: #e2e8f0; --rd-doux: #94a3b8;
  --rd-bleu: #60a5fa; --rd-bref: #10284a; --rd-etape: #052e1f; --rd-etape-bord: #065f46; --rd-etape-texte: #6ee7b7;
  --rd-ambre: #2d1f05; --rd-ambre-bord: #92400e; --rd-ambre-texte: #fcd34d; box-shadow: none; }
:root[data-theme="dark"] .rd-promis { border-color: #1e3a8a; }
:root[data-theme="dark"] .rd-statut.installe { background: #052e1f; color: #86efac; border-color: #166534; }
:root[data-theme="dark"] .rd-statut.a-installer { background: #0c1e4a; color: #93c5fd; border-color: #1e40af; }
:root[data-theme="dark"] .rd-statut.soumission { background: #2d1f05; color: #fcd34d; border-color: #92400e; }
:root[data-theme="dark"] .rd-statut.discussion { background: #1e293b; color: #cbd5e1; border-color: #334155; }
:root[data-theme="dark"] .rd-verifie { color: #86efac; }
:root[data-theme="dark"] .rd-visites li { border-left-color: #9d174d; }
:root[data-theme="dark"] .rd-qui { background: rgba(110, 231, 183, .14); }
:root[data-theme="dark"] .re-src.chat { background: #134e4a; color: #99f6e4; }
:root[data-theme="dark"] .rd-chrono .re-src.aircall { background: #2e1065; color: #c4b5fd; }
:root[data-theme="dark"] .rd-chrono .re-src.ghl { background: #422006; color: #fcd34d; }
:root[data-theme="dark"] .rd-chrono .re-src.email { background: #0c2d48; color: #7dd3fc; }
:root[data-theme="dark"] .rd-chrono .re-src.pocket { background: #500724; color: #f9a8d4; }
:root[data-theme="dark"] .rd-chrono .re-src.manuel { background: #1e293b; color: #cbd5e1; }

/* Mobile */
@media (max-width: 640px) {
  .rd-carte { padding: 14px 12px 12px; border-radius: 14px; }
  .rd-tete { flex-direction: column; align-items: stretch; }
  .rd-bouton { justify-content: center; width: 100%; padding: 9px 12px; }
  .rd-bref p { font-size: 16px; }
  .rd-grille, .rd-listes, .rd-essentiels { grid-template-columns: 1fr; }
  .rd-chrono li { grid-template-columns: auto 1fr; row-gap: 2px; }
  .rd-chrono-texte { grid-column: 1 / -1; }
  .rd-lien { position: static; display: block; margin-bottom: 4px; }
}
@media print { .rd-bouton, .rd-lien, .rd-afficher { display: none; } .rd-carte { box-shadow: none; break-inside: avoid; } }

/* Schéma unifilaire : modèles intégrés, choisis en un clic (rc-sch-) */
.rc-sch-modeles-integres { display: grid; grid-template-columns: 1fr; gap: 4px; max-height: 240px; overflow-y: auto; }
.rc-sch-modele-int { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; font: inherit; font-size: 12px; padding: 6px 9px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; background: #fff; color: inherit; cursor: pointer; }
.rc-sch-modele-int span { font-weight: 600; line-height: 1.25; }
.rc-sch-modele-int em { font-style: normal; font-size: 11px; color: #64748b; }
.rc-sch-modele-int:hover, .rc-sch-modele-int:focus-visible { border-color: #0a6fc8; background: #eff6ff; outline: none; }
:root[data-theme="dark"] .rc-sch-modele-int { background: #0b1526; border-color: #1e2d47; color: #e2e8f0; }
:root[data-theme="dark"] .rc-sch-modele-int em { color: #94a3b8; }
:root[data-theme="dark"] .rc-sch-modele-int:hover, :root[data-theme="dark"] .rc-sch-modele-int:focus-visible { border-color: #3b82f6; background: #102040; }

/* Proposition client en ligne : statut, lien client, avis en direct (rp-, proposition-lien-re.jsx) */
.rp-statut { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; line-height: 1.3; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.rp-compact { font-size: 11px; padding: 2px 7px; white-space: normal; }
/* Couleurs : palette unique de statuts-re.jsx (variables --st-*), valeurs de repli identiques quand le module n'est pas chargé */
.rp-ton-vert { background: var(--st-vert-fond, #dcfce7); color: var(--st-vert-texte, #166534); }
.rp-ton-rouge { background: var(--st-rouge-fond, #fee2e2); color: var(--st-rouge-texte, #991b1b); }
.rp-ton-bleu { background: var(--st-bleu-fond, #dbeafe); color: var(--st-bleu-texte, #1e40af); }
.rp-ton-orange { background: var(--st-orange-fond, #ffedd5); color: var(--st-orange-texte, #9a3412); }
.rp-ton-jaune { background: var(--st-jaune-fond, #fef9c3); color: var(--st-jaune-texte, #854d0e); }
.rp-ton-gris { background: var(--st-gris-fond, #f1f5f9); color: var(--st-gris-texte, #475569); }
.rp-ton-bleu-pale { background: var(--st-bleu-fond, #dbeafe); color: var(--st-bleu-texte, #1e40af); }
.rp-alerte { color: #b45309; }
.rp-ligne-statut { margin-top: 4px; }
.rp-panneau { max-width: 1864px; margin: 14px auto 0; padding: 14px 18px; box-sizing: border-box; width: calc(100% - 48px); background: var(--r26-card, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-left: 4px solid #0C2340; border-radius: 12px; font-family: 'Barlow', var(--r26-font, system-ui), sans-serif; }
.rp-panneau-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.rp-panneau-titre { font-weight: 700; color: #0C2340; font-size: 15px; }
.rp-details { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; color: var(--r26-ink-2, #334155); }
.rp-muet { color: var(--r26-ink-3, #64748b); font-size: 12.5px; }
.rp-a-verifier { color: #b45309; font-weight: 600; }
.rp-panneau-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rp-msg { margin-top: 8px; font-size: 13px; color: #0C2340; word-break: break-all; }
.rp-historique { margin: 10px 0 0; padding: 8px 0 0; list-style: none; border-top: 1px dashed var(--r26-line, #e2e8f0); font-size: 12.5px; color: var(--r26-ink-3, #64748b); display: grid; gap: 2px; }
.rp-avis-pile { position: fixed; right: 16px; bottom: 16px; z-index: 1200; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.rp-avis { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; box-shadow: 0 12px 32px rgba(12, 35, 64, .22); font-size: 14px; font-weight: 600; line-height: 1.35; border: 1px solid transparent; }
.rp-avis.rp-ton-vert { border-color: #86efac; }
.rp-avis.rp-ton-rouge { border-color: #fca5a5; }
.rp-avis.rp-ton-orange { border-color: #fcd34d; }
.rp-panneau-actions .rp-annuler { color: #991b1b; border-color: #fca5a5; }
.rp-avis-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rp-avis-actions button { font: inherit; font-size: 12.5px; padding: 4px 9px; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
:root[data-theme="dark"] .rp-panneau { background: #0b1526; border-color: #1e2d47; border-left-color: #7FB8F0; }
:root[data-theme="dark"] .rp-panneau-titre, :root[data-theme="dark"] .rp-msg { color: #e2e8f0; }
:root[data-theme="dark"] .rp-ton-vert { background: var(--st-vert-fond, rgba(74,222,128,.14)); color: var(--st-vert-texte, #86efac); }
:root[data-theme="dark"] .rp-ton-rouge { background: var(--st-rouge-fond, rgba(248,113,113,.16)); color: var(--st-rouge-texte, #fca5a5); }
:root[data-theme="dark"] .rp-ton-bleu { background: var(--st-bleu-fond, rgba(96,165,250,.16)); color: var(--st-bleu-texte, #93c5fd); }
:root[data-theme="dark"] .rp-ton-orange { background: var(--st-orange-fond, rgba(251,146,60,.16)); color: var(--st-orange-texte, #fdba74); }
:root[data-theme="dark"] .rp-ton-jaune { background: var(--st-jaune-fond, rgba(250,204,21,.14)); color: var(--st-jaune-texte, #fde047); }
:root[data-theme="dark"] .rp-ton-gris { background: var(--st-gris-fond, #1e293b); color: var(--st-gris-texte, #cbd5e1); }
:root[data-theme="dark"] .rp-ton-bleu-pale { background: var(--st-bleu-fond, rgba(96,165,250,.16)); color: var(--st-bleu-texte, #93c5fd); }
@media (max-width: 640px) {
  .rp-panneau { width: calc(100% - 24px); padding: 12px; }
  .rp-panneau-actions .re-btn { flex: 1 1 100%; }
  .rp-avis-pile { right: 12px; left: 12px; width: auto; bottom: 12px; }
}
/* « Envoyer au client » : modale de confirmation (rp-envoi-, proposition-lien-re.jsx) */
.rp-envoi { max-width: 540px; }
.rp-envoi-x { border: 0; background: transparent; font-size: 24px; line-height: 1; color: inherit; cursor: pointer; padding: 2px 6px; }
.rp-envoi-resume { margin: 10px 0 12px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--r26-line, #e2e8f0); display: grid; gap: 4px; font-size: 14px; }
.rp-envoi-ligne { display: flex; justify-content: space-between; gap: 12px; }
.rp-envoi-ligne span { color: var(--r26-ink-3, #64748b); flex-shrink: 0; }
.rp-envoi-ligne b { text-align: right; overflow-wrap: anywhere; }
.rp-envoi-texte { font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.rp-envoi-champ { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.rp-envoi-champ input { font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .08em; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--r26-line, #cbd5e1); width: 100%; box-sizing: border-box; }
.rp-envoi-champ input:focus { outline: none; border-color: #0C2340; }
.rp-envoi-aide { min-height: 18px; margin-top: 4px; font-size: 12.5px; color: #b45309; }
.rp-envoi .re-modal-pied { flex-wrap: wrap; }
.rp-envoi .re-modal-pied a.re-btn { text-decoration: none; display: inline-flex; align-items: center; }
.rp-envoi-travail { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; font-size: 14px; }
.rp-envoi-travail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rp-envoi-roue { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #DEE7F2; border-top-color: #0C2340; animation: rp-envoi-tourne .8s linear infinite; flex-shrink: 0; }
@keyframes rp-envoi-tourne { to { transform: rotate(360deg); } }
.rp-envoi-ok, .rp-envoi-repli, .rp-envoi-erreur { font-size: 14px; line-height: 1.45; }
.rp-envoi-ok p, .rp-envoi-repli p, .rp-envoi-erreur p { margin: 0 0 8px; }
.rp-envoi-ok > p:first-child { color: #166534; }
.rp-envoi-repli > p:first-child, .rp-envoi-erreur > p:first-child { color: #991b1b; }
.rp-envoi .rp-envoi-avis { padding: 8px 10px; border-radius: 8px; background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
:root[data-theme="dark"] .rp-envoi-resume { background: #0b1526; border-color: #1e2d47; }
:root[data-theme="dark"] .rp-envoi .rp-envoi-avis { background: #2a1f05; border-color: #78350f; color: #fcd34d; }
:root[data-theme="dark"] .rp-envoi-champ input { background: #0b1526; color: #e2e8f0; border-color: #1e2d47; }
:root[data-theme="dark"] .rp-envoi-ok > p:first-child { color: #86efac; }
:root[data-theme="dark"] .rp-envoi-repli > p:first-child, :root[data-theme="dark"] .rp-envoi-erreur > p:first-child { color: #fca5a5; }
@media (max-width: 640px) {
  .rp-envoi .re-modal-pied .re-btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .rp-envoi-ligne { flex-direction: column; gap: 0; }
  .rp-envoi-ligne b { text-align: left; }
  .rp-envoi-fond { padding-top: 64px; } /* sous le bouton de thème (fixe, en haut à droite) */
}
@media print { .rp-panneau, .rp-avis-pile { display: none; } }

/* Langue de la proposition : onglets Français | English au-dessus des boutons de proposition */
.re-langue-prop { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; padding: 12px 14px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; background: var(--r26-surface, #fff); }
.re-langue-prop-label { font-size: 13px; font-weight: 700; color: var(--r26-ink, #1e293b); }
.re-langue-prop-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: #eef2f7; border: 1px solid var(--r26-line, #e2e8f0); }
.re-langue-prop-seg button { font: inherit; font-size: 13px; font-weight: 600; min-width: 92px; padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--r26-ink-2, #475569); cursor: pointer; }
.re-langue-prop-seg button:hover:not(.on) { color: var(--r26-ink, #1e293b); background: rgba(255,255,255,.7); }
.re-langue-prop-seg button.on { background: var(--r26-primary, #0a2540); color: #fff; box-shadow: 0 1px 3px rgba(10,37,64,.25); }
.re-langue-prop-seg button:focus-visible { outline: 2px solid var(--r26-accent, #3b82f6); outline-offset: 1px; }
.re-langue-prop + .re-actions { margin-top: 12px; }
@media (max-width: 640px) { .re-langue-prop { justify-content: space-between; } }
:root[data-theme="dark"] .re-langue-prop { background: #0f1b2d; border-color: #1e2d44; }
:root[data-theme="dark"] .re-langue-prop-label { color: #e2e8f0; }
:root[data-theme="dark"] .re-langue-prop-seg { background: #0b1526; border-color: #1e2d44; }
:root[data-theme="dark"] .re-langue-prop-seg button { color: #94a3b8; }
:root[data-theme="dark"] .re-langue-prop-seg button:hover:not(.on) { color: #e2e8f0; background: #102040; }
:root[data-theme="dark"] .re-langue-prop-seg button.on { background: #3b82f6; color: #fff; }

/* ── Suivi des propositions : lecture, statuts et réponses des clients (sp-, suivi-propositions-re.jsx), 6 nov. 2026 ── */
.sp-suivi-vue .re-kpis-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.sp-kpi { min-height: 104px; }
.sp-kpi.sp-rouge { border-color: #fca5a5; background: #fef2f2; }
.sp-kpi.sp-rouge .re-kpi-value, .sp-kpi.sp-rouge .re-kpi-label { color: #b91c1c; }
.sp-direct { font-size: 12px; font-weight: 600; color: var(--r26-ink-2, #475569); display: inline-flex; align-items: center; gap: 6px; }
.sp-direct::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.sp-direct.on::before { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.sp-barre { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: 4px 0 12px; }
.sp-onglets { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-onglet { font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--r26-line, #e2e8f0); background: #fff; color: var(--r26-ink-2, #475569); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sp-onglet:hover { border-color: var(--r26-accent, #3b82f6); }
.sp-onglet.on { background: var(--r26-primary, #0a2540); border-color: var(--r26-primary, #0a2540); color: #fff; }
.sp-compte { font-size: 11px; font-weight: 700; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: rgba(15, 23, 42, .07); text-align: center; }
.sp-onglet.on .sp-compte { background: rgba(255, 255, 255, .2); }
.sp-onglet.alerte:not(.on) { border-color: #fca5a5; color: #b91c1c; }
.sp-onglet.alerte .sp-compte { background: #dc2626; color: #fff; }
.sp-recherche { flex: 1 1 240px; min-width: 0; }
.sp-panel { padding: 0; overflow: hidden; }
.sp-vide { padding: 22px 18px; margin: 0; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sp-table th { text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--r26-ink-3, #64748b); padding: 10px 12px; background: var(--r26-bg, #f8fafc); border-bottom: 1px solid var(--r26-line, #e2e8f0); white-space: nowrap; }
.sp-table td { padding: 11px 12px; border-bottom: 1px solid var(--r26-line, #eef2f7); vertical-align: top; line-height: 1.4; }
.sp-table .droite { text-align: right; }
.sp-ligne { cursor: pointer; transition: background .1s; }
.sp-ligne:hover, .sp-ligne:focus-visible { background: #f8fafc; outline: none; }
.sp-ligne.ouverte { background: #eff6ff; }
.sp-ligne.a-verifier { box-shadow: inset 4px 0 0 #dc2626; }
.sp-client { font-weight: 700; color: var(--r26-ink, #0f172a); }
.sp-muet { color: var(--r26-ink-3, #64748b); font-size: 12px; }
.sp-langue { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 0 5px; border-radius: 4px; border: 1px solid var(--r26-line, #cbd5e1); color: var(--r26-ink-2, #475569); vertical-align: 1px; }
.sp-montant { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-lecture b { font-weight: 700; }
.sp-jamais { color: #b45309; }
.sp-reponse { display: grid; gap: 2px; }
.sp-precision { font-style: italic; color: var(--r26-ink-2, #475569); }
.sp-suivi { margin-top: 4px; font-size: 12px; }
.sp-suivi-ok { color: #047857; }
.sp-suivi-muet { color: var(--r26-ink-3, #64748b); }
.sp-suivi-alerte { display: grid; gap: 2px; padding: 6px 8px; border-radius: 8px; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.sp-suivi-titre { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #b91c1c; }
.sp-exp { font-size: 12px; white-space: nowrap; }
.sp-exp.muet { color: var(--r26-ink-3, #94a3b8); }
.sp-exp.bientot { color: #b45309; font-weight: 600; }
.sp-exp.expiree { color: #991b1b; font-weight: 600; }
.sp-detail > td { background: #f8fafc; padding: 0 12px 14px; }
.sp-chrono { padding: 12px 14px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; background: #fff; }
.sp-chrono-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sp-chrono-liste { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--r26-line, #e2e8f0); display: grid; gap: 7px; }
.sp-evt { position: relative; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
.sp-evt::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; border: 2px solid #fff; }
.sp-evt time { min-width: 128px; color: var(--r26-ink-3, #64748b); font-variant-numeric: tabular-nums; }
.sp-evt-vue::before { background: #3b82f6; }
.sp-evt-envoi::before { background: #0a2540; }
.sp-evt-acceptee::before { background: #10b981; }
.sp-evt-acceptee span { color: #047857; font-weight: 600; }
.sp-evt-refusee::before { background: #dc2626; }
.sp-evt-refusee span { color: #991b1b; font-weight: 600; }
.sp-evt-annule::before { background: #64748b; }
.sp-chrono-suivi { margin-top: 10px; }
.sp-fiche .re-table td.nom > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Thème sombre */
:root[data-theme="dark"] .sp-onglet { background: #0f1b2d; border-color: #1e2d44; color: #cbd5e1; }
:root[data-theme="dark"] .sp-onglet.on { background: #2563eb; border-color: #2563eb; color: #fff; }
:root[data-theme="dark"] .sp-compte { background: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .sp-onglet.alerte:not(.on) { border-color: #7f1d1d; color: #fca5a5; }
:root[data-theme="dark"] .re-search.sp-recherche { background: #0b1526; color: #e2e8f0; border-color: #1e2d44; }
:root[data-theme="dark"] .sp-table th { background: #0b1526; color: #94a3b8; border-color: #1e2d44; }
:root[data-theme="dark"] .sp-table td { border-color: #1e2d44; }
:root[data-theme="dark"] .sp-client { color: #e2e8f0; }
:root[data-theme="dark"] .sp-muet, :root[data-theme="dark"] .sp-direct, :root[data-theme="dark"] .sp-evt time { color: #94a3b8; }
:root[data-theme="dark"] .sp-langue { border-color: #334155; color: #cbd5e1; }
:root[data-theme="dark"] .sp-ligne:hover, :root[data-theme="dark"] .sp-ligne:focus-visible { background: #132238; }
:root[data-theme="dark"] .sp-ligne.ouverte { background: #16304f; }
:root[data-theme="dark"] .sp-detail > td { background: #0b1526; }
:root[data-theme="dark"] .sp-chrono { background: #0f1b2d; border-color: #1e2d44; }
:root[data-theme="dark"] .sp-chrono-liste { border-color: #1e2d44; }
:root[data-theme="dark"] .sp-evt::before { border-color: #0f1b2d; }
:root[data-theme="dark"] .sp-jamais, :root[data-theme="dark"] .sp-exp.bientot { color: #fbbf24; }
:root[data-theme="dark"] .sp-suivi-ok, :root[data-theme="dark"] .sp-evt-acceptee span { color: #6ee7b7; }
:root[data-theme="dark"] .sp-evt-refusee span, :root[data-theme="dark"] .sp-exp.expiree { color: #fca5a5; }
:root[data-theme="dark"] .sp-precision { color: #cbd5e1; }
:root[data-theme="dark"] .sp-kpi .re-kpi-sub { color: #a7b4c8; }
:root[data-theme="dark"] .sp-suivi-alerte, :root[data-theme="dark"] .sp-kpi.sp-rouge { background: rgba(220, 38, 38, .14); border-color: #7f1d1d; color: #fecaca; }
:root[data-theme="dark"] .sp-suivi-titre, :root[data-theme="dark"] .sp-kpi.sp-rouge .re-kpi-value, :root[data-theme="dark"] .sp-kpi.sp-rouge .re-kpi-label { color: #fca5a5; }
/* Liste des Soumissions : « Ouverte il y a 2 h » sous la pastille */
.rp-ouverte { margin-top: 3px; font-size: 11px; color: var(--r26-ink-3, #64748b); white-space: nowrap; }
:root[data-theme="dark"] .rp-ouverte { color: #94a3b8; }
/* Mobile : chaque proposition devient une carte, libellé de colonne à gauche */
@media (max-width: 760px) {
  .sp-suivi-vue .re-kpis-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sp-kpi { min-height: 0; padding: 10px 12px; }
  .sp-kpi .re-kpi-value { font-size: 22px; }
  .sp-onglets { gap: 6px 5px; }
  .sp-onglet { padding: 6px 10px; font-size: 12px; }
  .sp-recherche { flex-basis: 100%; }
  .sp-panel { background: transparent; border: 0; box-shadow: none; }
  .sp-table thead { display: none; }
  .sp-table, .sp-table tbody, .sp-table tr, .sp-table td { display: block; width: 100%; box-sizing: border-box; }
  .sp-table tr.sp-ligne { background: var(--r26-card, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; }
  .sp-table tr.sp-ligne.ouverte { border-radius: 12px 12px 0 0; margin-bottom: 0; }
  .sp-table td { border: 0; padding: 5px 12px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; text-align: left; }
  .sp-table td::before { content: attr(data-label); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--r26-ink-3, #64748b); padding-top: 2px; }
  .sp-table td.droite { text-align: left; }
  .sp-table td:has(> .sp-cellule:empty) { display: none; }
  .sp-table tr.sp-detail { margin-bottom: 10px; }
  .sp-table tr.sp-detail > td { display: block; padding: 0; border: 1px solid var(--r26-line, #e2e8f0); border-top: 0; border-radius: 0 0 12px 12px; }
  .sp-table tr.sp-detail > td::before { content: none; }
  .sp-chrono { border: 0; border-radius: 0 0 12px 12px; }
  .sp-evt time { min-width: 0; flex-basis: 100%; }
  .sp-exp { white-space: normal; }
  :root[data-theme="dark"] .sp-table tr.sp-ligne { background: #0f1b2d; border-color: #1e2d44; }
  :root[data-theme="dark"] .sp-table tr.sp-detail > td { border-color: #1e2d44; }
}
@media print { .sp-barre, .sp-direct { display: none; } }

/* ─── Aperçu de la fiche client (6 nov. 2026) : carte « Fiche » compacte, un fait par ligne, « à obtenir » en gris, En bref court ───
   Mobile d'abord : une colonne ; deux colonnes dès 720 px. Aucun défilement horizontal (minmax(0, 1fr), coupure des mots longs). */
.fa-apercu { --fa-fond: #ffffff; --fa-bord: #dbe5f3; --fa-ligne: #eef2f7; --fa-texte: var(--r26-ink, #1e293b); --fa-doux: var(--r26-ink-3-strong, #64748b); --fa-gris: #94a3b8; --fa-bleu: #0a6fc8; --fa-bref: #eef5fd;
  margin: 12px 0 10px; display: grid; gap: 10px; min-width: 0; color: var(--fa-texte); }
.fa-carte { border: 1.5px solid var(--fa-bord); border-radius: 14px; background: var(--fa-fond); padding: 10px 14px 6px; min-width: 0; box-shadow: 0 3px 10px rgba(10, 37, 64, .05); }
.fa-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.fa-titre { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--fa-bleu); }
.fa-compte { font-size: 12px; color: var(--fa-doux); }
.fa-faits { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; }
.fa-fait { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--fa-ligne); min-width: 0; }
.fa-fait dt { margin: 0; font-size: 12px; font-weight: 700; color: var(--fa-doux); }
.fa-fait dd { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; min-width: 0; }
.fa-val { font-weight: 600; }
.fa-aobtenir { color: var(--fa-gris); font-style: italic; font-weight: 400; }
.fa-manque dd { color: var(--fa-gris); }
.fa-src { display: block; font-size: 11px; color: var(--fa-doux); margin-top: 1px; }
.fa-bref { background: var(--fa-bref); border-left: 4px solid var(--fa-bleu); border-radius: 10px; padding: 10px 14px; min-width: 0; }
.fa-etiquette { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--fa-bleu); margin-bottom: 3px; }
.fa-bref p { margin: 0; font-size: 15.5px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.fa-bref-attente p { font-weight: 400; color: var(--fa-doux); font-style: italic; }
@media (min-width: 720px) {
  .fa-faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-fait:nth-child(2) { border-top: 1px solid var(--fa-ligne); }
}
/* Détails et conversations : fermé par défaut, tout le contenu reste là */
.fa-details { margin: 4px 0 14px; border: 1px solid var(--r26-line, #dbe5f3); border-radius: 12px; background: var(--r26-card, #fff); min-width: 0; }
.fa-details > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 11px 14px; font-weight: 700; font-size: 14px; color: var(--r26-ink, #1e293b); }
.fa-details > summary::-webkit-details-marker { display: none; }
.fa-details > summary::before { content: "▸"; color: #0a6fc8; transition: transform .15s; display: inline-block; }
.fa-details[open] > summary::before { transform: rotate(90deg); }
.fa-details-aide { font-weight: 400; font-size: 12px; color: var(--r26-ink-3-strong, #64748b); }
.fa-details-corps { padding: 0 14px 12px; min-width: 0; }
.fa-details-corps .rd-carte { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .fa-details > summary::before { transition: none; } }
@media (max-width: 640px) { .fa-fait { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; } .fa-carte { padding: 8px 12px 4px; } .fa-details-corps { padding: 0 10px 10px; } }
@media print { .fa-details:not([open]) { display: none; } }
:root[data-theme="dark"] .fa-apercu { --fa-fond: #0f1b2d; --fa-bord: #1e3a5f; --fa-ligne: #1e2d44; --fa-texte: #e2e8f0; --fa-doux: #94a3b8; --fa-gris: #7b8aa0; --fa-bleu: #60a5fa; --fa-bref: #10284a; }
:root[data-theme="dark"] .fa-carte { box-shadow: none; }
:root[data-theme="dark"] .fa-details { background: #0f1b2d; border-color: #1e3a5f; }
:root[data-theme="dark"] .fa-details > summary { color: #e2e8f0; }
/* Fiche client sur téléphone : en-tête sur deux rangées, boutons qui passent à la ligne (plus de bouton hors écran) */
@media (max-width: 640px) {
  .re-fiche .re-panel-head { flex-direction: column; gap: 10px; min-width: 0; }
  .re-fiche .re-panel-head > div { min-width: 0; max-width: 100%; }
  .re-fiche .re-actions-right { flex-wrap: wrap; gap: 6px; }
  .re-fiche .re-actions-right .re-btn { flex: 1 1 auto; }
}

/* ─── Charges à garder en panne (configurateur RE, étape Système ; JF, 6 nov. 2026) ─── */
.re-charges { margin-top: 16px; }
.re-charges .re-panel-head { flex-wrap: wrap; }
.re-charges-res { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 14px; background: #f1f6fd; border: 1px solid #d6e4f5; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.re-charges-auto { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.re-charges-auto b { font-size: 26px; font-weight: 800; color: var(--r26-primary, #0a2540); line-height: 1.15; }
.re-charges-faits { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--r26-ink-2, #475569); justify-content: center; }
.re-charges-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.re-charges-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; align-items: start; }
.re-charges-titre { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--r26-ink-2, #475569); margin: 6px 0 4px; }
.re-charge { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; }
.re-charge.on { background: #f8fafc; border-color: var(--r26-line, #e2e8f0); }
.re-charge-nom { display: flex; align-items: center; gap: 8px; flex: 1 1 180px; min-width: 0; cursor: pointer; }
.re-charge-nom input { width: 16px; height: 16px; flex: 0 0 auto; }
.re-charge-240 { white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 700; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; padding: 0 5px; margin-left: 6px; }
.re-charge-qty { display: inline-flex; align-items: center; gap: 6px; }
.re-charge-qty .re-qty input { width: 40px; }
.re-charge-val { color: var(--r26-ink-3, #64748b); font-size: 12px; white-space: nowrap; margin-left: auto; }
.re-charge-ico { flex: 0 0 auto; color: var(--r26-ink-2, #475569); }
.re-charge.on .re-charge-ico { color: var(--r26-primary, #0a2540); }
.re-charges-bloc { min-width: 0; }
.re-charges-base { background: #f6fafe; border: 1px solid #d6e4f5; border-radius: 12px; padding: 4px 10px 10px; }
.re-charges-aide { margin: 0 0 6px; font-size: 12px; color: var(--r26-ink-3, #64748b); }
.re-charges-sous { font-size: 11.5px; font-weight: 700; color: var(--r26-ink-3, #64748b); margin: 8px 0 2px 8px; }
.re-charges-circuits { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px dashed #c7d7ec; font-size: 12.5px; color: var(--r26-ink-2, #475569); line-height: 1.4; }
:root[data-theme="dark"] .re-charges-res { background: #12233a; border-color: #1e2d44; }
:root[data-theme="dark"] .re-charges-auto b { color: #93c5fd; }
:root[data-theme="dark"] .re-charge.on { background: #13233a; border-color: #1e2d44; }
:root[data-theme="dark"] .re-charges-base { background: #0f1e33; border-color: #1e2d44; }
:root[data-theme="dark"] .re-charges-circuits { background: #12233a; border-color: #1e2d44; color: #cbd5e1; }
:root[data-theme="dark"] .re-charge.on .re-charge-ico { color: #93c5fd; }
@media (max-width: 760px) { .re-charges-res, .re-charges-grille { grid-template-columns: 1fr; } .re-charge-val { margin-left: 24px; } }
/* Fiche client : colonne de droite « Soumissions Raycast, Devis et Factures QuickBooks » (JF, 6 nov. 2026), visible dès l'ouverture ;
   en dessous de la carte Fiche sur téléphone et tablette. */
.re-fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "haut colonne" "reste colonne"; grid-template-rows: auto 1fr; column-gap: 20px; align-items: start; }
.re-fiche-haut { grid-area: haut; min-width: 0; }
.re-fiche-reste { grid-area: reste; min-width: 0; }
.re-colonne { --rc-fond: var(--r26-card, #ffffff); --rc-bord: var(--r26-line, #e2e8f0); --rc-ligne: #eef2f7; --rc-doux: var(--r26-ink-3-strong, #64748b); --rc-gris: #94a3b8;
  grid-area: colonne; align-self: start; min-width: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.re-colonne-nouvelle { width: 100%; justify-content: center; }
.re-colonne-bloc { background: var(--rc-fond); border: 1px solid var(--rc-bord); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.re-colonne-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--rc-doux); }
.re-colonne-titre b { font-size: 12px; color: var(--rc-doux); }
.re-colonne-vide { margin: 2px 0; font-size: 13px; color: var(--rc-gris); }
.re-colonne-erreur { margin: 2px 0; font-size: 12.5px; color: #b91c1c; overflow-wrap: anywhere; }
.re-colonne-liste { list-style: none; margin: 0; padding: 0; }
.re-colonne-ligne { border-top: 1px solid var(--rc-ligne); padding: 7px 0; min-width: 0; }
.re-colonne-ligne:first-child { border-top: 0; padding-top: 2px; }
.re-colonne-haut, .re-colonne-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.re-colonne-haut b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-colonne-montant { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.re-colonne-bas { margin-top: 2px; font-size: 12px; color: var(--rc-doux); align-items: center; }
.re-colonne-pastille { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: #f1f5f9; color: #475569; }
.re-colonne-pastille[data-ton="bleu"] { background: var(--st-bleu-fond, #dbeafe); color: var(--st-bleu-texte, #1e40af); }
.re-colonne-pastille[data-ton="vert"] { background: var(--st-vert-fond, #dcfce7); color: var(--st-vert-texte, #166534); }
.re-colonne-pastille[data-ton="rouge"] { background: var(--st-rouge-fond, #fee2e2); color: var(--st-rouge-texte, #991b1b); }
.re-colonne-pastille[data-ton="orange"] { background: var(--st-orange-fond, #ffedd5); color: var(--st-orange-texte, #9a3412); }
.re-colonne-pastille[data-ton="jaune"] { background: var(--st-jaune-fond, #fef9c3); color: var(--st-jaune-texte, #854d0e); }
.re-colonne-pastille[data-ton="gris"] { background: var(--st-gris-fond, #f1f5f9); color: var(--st-gris-texte, #475569); }
.re-colonne-pastille[data-ton="violet"] { background: var(--st-bleu-fond, #dbeafe); color: var(--st-bleu-texte, #1e40af); }
.re-colonne-pastille[data-ton="ambre"] { background: var(--st-orange-fond, #ffedd5); color: var(--st-orange-texte, #9a3412); }
.re-colonne-actions { display: flex; gap: 6px; margin-top: 6px; }
.re-colonne-actions .re-btn { flex: 1; justify-content: center; }
.re-colonne-doc { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.re-colonne-doc:hover .re-colonne-haut b, .re-colonne-doc:focus-visible .re-colonne-haut b { color: var(--r26-accent, #0a6fc8); text-decoration: underline; }
.re-colonne-doc:focus-visible { outline: 2px solid var(--r26-accent, #0a6fc8); outline-offset: 2px; }
.re-colonne-doc .re-colonne-haut, .re-colonne-doc .re-colonne-bas { display: flex; }
.re-colonne-tout { margin-top: 4px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--r26-accent, #0a6fc8); cursor: pointer; }
:root[data-theme="dark"] .re-colonne { --rc-fond: #0f1b2d; --rc-bord: #1e2d44; --rc-ligne: #1e2d44; --rc-doux: #94a3b8; --rc-gris: #7b8aa0; }
:root[data-theme="dark"] .re-colonne-pastille { background: #1e293b; color: #cbd5e1; }
:root[data-theme="dark"] .re-colonne-pastille[data-ton="bleu"] { background: var(--st-bleu-fond, rgba(96,165,250,.16)); color: var(--st-bleu-texte, #93c5fd); }
:root[data-theme="dark"] .re-colonne-pastille[data-ton="vert"] { background: var(--st-vert-fond, rgba(74,222,128,.14)); color: var(--st-vert-texte, #86efac); }
:root[data-theme="dark"] .re-colonne-pastille[data-ton="rouge"] { background: var(--st-rouge-fond, rgba(248,113,113,.16)); color: var(--st-rouge-texte, #fca5a5); }
:root[data-theme="dark"] .re-colonne-pastille[data-ton="orange"] { background: var(--st-orange-fond, rgba(251,146,60,.16)); color: var(--st-orange-texte, #fdba74); }
:root[data-theme="dark"] .re-colonne-pastille[data-ton="jaune"] { background: var(--st-jaune-fond, rgba(250,204,21,.14)); color: var(--st-jaune-texte, #fde047); }
:root[data-theme="dark"] .re-colonne-pastille[data-ton="gris"] { background: var(--st-gris-fond, #1e293b); color: var(--st-gris-texte, #cbd5e1); }
:root[data-theme="dark"] .re-colonne-pastille[data-ton="violet"] { background: var(--st-bleu-fond, rgba(96,165,250,.16)); color: var(--st-bleu-texte, #93c5fd); }
:root[data-theme="dark"] .re-colonne-pastille[data-ton="ambre"] { background: var(--st-orange-fond, rgba(251,146,60,.16)); color: var(--st-orange-texte, #fdba74); }
/* État en ligne des soumissions de la colonne (JF, 8 nov. 2026 : « en attente ou consultées ») : pastille toujours visible ;
   Consultée en violet avec un point qui pulse doucement (aucune réponse encore), ligne de détail datée en dessous. */
.re-colonne-etat { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; flex: 0 0 auto;
  --ce-fond: #f1f5f9; --ce-texte: #475569; --ce-bord: #cbd5e1; background: var(--ce-fond); color: var(--ce-texte); box-shadow: inset 0 0 0 1px var(--ce-bord); }
.re-colonne-etat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.re-colonne-etat[data-etat="envoyee"] { --ce-fond: #dbeafe; --ce-texte: #1e40af; --ce-bord: #93c5fd; }
.re-colonne-etat[data-etat="consultee"] { --ce-fond: #ede9fe; --ce-texte: #5b21b6; --ce-bord: #a78bfa; }
.re-colonne-etat[data-etat="acceptee"] { --ce-fond: #dcfce7; --ce-texte: #166534; --ce-bord: #86efac; }
.re-colonne-etat[data-etat="refusee"] { --ce-fond: #fee2e2; --ce-texte: #991b1b; --ce-bord: #fca5a5; }
.re-colonne-etat[data-etat="expiree"] { --ce-fond: #475569; --ce-texte: #f8fafc; --ce-bord: #334155; }
.re-colonne-etat[data-etat="consultee"]::before { background: #7c3aed; box-shadow: 0 0 0 0 rgba(124,58,237,.55); animation: re-ce-pouls 1.8s ease-out infinite; }
@keyframes re-ce-pouls { 0% { box-shadow: 0 0 0 0 rgba(124,58,237,.55); } 70% { box-shadow: 0 0 0 5px rgba(124,58,237,0); } 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); } }
@media (prefers-reduced-motion: reduce) { .re-colonne-etat[data-etat="consultee"]::before { animation: none; } }
.re-colonne-doc .re-colonne-detail, .re-colonne-doc .re-colonne-alerte { display: block; }
.re-colonne-detail { margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--rc-doux); overflow-wrap: anywhere; }
.re-colonne-alerte { margin-top: 3px; font-size: 12px; font-weight: 700; line-height: 1.35; color: #6d28d9; }
.re-colonne-ligne[data-etat="consultee"] { box-shadow: inset 3px 0 0 #8b5cf6; padding-left: 12px; margin-left: -12px; }
.re-colonne-doc:hover .re-colonne-detail { color: inherit; }
:root[data-theme="dark"] .re-colonne-etat { --ce-fond: #1e293b; --ce-texte: #cbd5e1; --ce-bord: #334155; }
:root[data-theme="dark"] .re-colonne-etat[data-etat="envoyee"] { --ce-fond: rgba(96,165,250,.16); --ce-texte: #93c5fd; --ce-bord: #1e3a8a; }
:root[data-theme="dark"] .re-colonne-etat[data-etat="consultee"] { --ce-fond: rgba(167,139,250,.18); --ce-texte: #c4b5fd; --ce-bord: #5b21b6; }
:root[data-theme="dark"] .re-colonne-etat[data-etat="acceptee"] { --ce-fond: rgba(74,222,128,.14); --ce-texte: #86efac; --ce-bord: #14532d; }
:root[data-theme="dark"] .re-colonne-etat[data-etat="refusee"] { --ce-fond: rgba(248,113,113,.16); --ce-texte: #fca5a5; --ce-bord: #7f1d1d; }
:root[data-theme="dark"] .re-colonne-etat[data-etat="expiree"] { --ce-fond: #64748b; --ce-texte: #0f172a; --ce-bord: #94a3b8; }
:root[data-theme="dark"] .re-colonne-alerte { color: #c4b5fd; }
:root[data-theme="dark"] .re-colonne-erreur { color: #fca5a5; }
@media (max-width: 1180px) {
  .re-fiche-corps { grid-template-columns: minmax(0, 1fr); grid-template-areas: "haut" "colonne" "reste"; grid-template-rows: auto; }
  .re-colonne { margin: 0 0 16px; }
}

/* ─── Haut de la fiche client (JF, 6 nov. 2026 : « plus simple et plus rempli ») : « Modifier la fiche », source du résumé,
       « à obtenir » court (le détail en bulle d'aide), pastille « en retard », formulaire de la fiche (Raycast et GHL) ─── */
.fa-tete .fa-compte { margin-left: auto; cursor: help; }
.fa-tete .re-colonne-pastille { align-self: center; }
.fa-modifier { align-self: center; }
.fa-aobtenir[title], .fa-src[title], .fa-val[title] { cursor: help; text-decoration: underline dotted rgba(148, 163, 184, .7); text-underline-offset: 3px; }
.fa-fait dd .re-colonne-pastille { font-size: 11px; vertical-align: 1px; }
.fa-bref-src { display: block; margin-top: 4px; font-size: 11.5px; color: var(--fa-doux); }
.fa-form .re-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fa-form-dest { font-size: 10.5px; font-weight: 700; text-transform: none; letter-spacing: 0; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 0 7px; white-space: nowrap; cursor: help; }
.fa-form-dest.ghl { color: #92400e; background: #fef3c7; }
.fa-form-bientot { margin: 0 0 10px; }
.fa-form-resume { margin: 8px 0 4px; }
@media (max-width: 640px) { .fa-tete .fa-compte { margin-left: 0; } .fa-modifier { width: 100%; } }
:root[data-theme="dark"] .fa-form-dest { background: #1e293b; color: #cbd5e1; }
:root[data-theme="dark"] .fa-form-dest.ghl { background: #451a03; color: #fcd34d; }
.fa-bref-maj { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--fa-texte); }
.fa-bref-maj b { color: var(--fa-bleu); font-weight: 800; }
.re-colonne-tronque { margin: 4px 0 0; font-size: 11.5px; color: var(--r26-ink-3-strong, #64748b); }

/* ─── Barre latérale regroupée et vue Leads (JF, 7 nov. 2026) ───
   Pastille de compte de la barre : couleur de la palette des statuts (statuts-re.jsx). Leads : tableau sp-table (cartes sur mobile). */
.nav-group-accueil { margin-bottom: 2px; }
.nav-compte { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; background: var(--st-jaune-fond, #fef9c3); color: var(--st-jaune-texte, #854d0e); box-shadow: inset 0 0 0 1px var(--st-jaune-bord, #fde047); }
.nav-compte[data-ton="orange"] { background: var(--st-orange-fond, #ffedd5); color: var(--st-orange-texte, #9a3412); box-shadow: inset 0 0 0 1px var(--st-orange-bord, #fdba74); }
.nav-compte[data-ton="rouge"] { background: var(--st-rouge-fond, #fee2e2); color: var(--st-rouge-texte, #991b1b); box-shadow: inset 0 0 0 1px var(--st-rouge-bord, #fca5a5); }
.nav-group + .nav-group { padding-top: 8px; border-top: 1px solid var(--raycom-border, rgba(11,27,43,.08)); }
.nav-group-title { color: var(--raycom-ink-muted, #64748b); }
@media (max-width: 820px) {
  .nav-group + .nav-group { padding-top: 0; border-top: 0; padding-left: 6px; margin-left: 4px; border-left: 1px solid var(--raycom-border, rgba(11,27,43,.1)); }
  .nav-compte { margin-left: 2px; }
}
.ld-kpi[data-ton] { border-left: 4px solid var(--st-gris-plein, #64748b); }
.ld-kpi[data-ton="jaune"] { border-left-color: var(--st-jaune-plein, #ca8a04); }
.ld-kpi[data-ton="orange"] { border-left-color: var(--st-orange-plein, #ea580c); }
.ld-kpi[data-ton="rouge"] { border-left-color: var(--st-rouge-plein, #dc2626); }
.ld-kpi[data-ton="vert"] { border-left-color: var(--st-vert-plein, #16a34a); }
.ld-vue .re-kpis-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ld-table td { vertical-align: middle; }
.ld-score { white-space: nowrap; }
.ld-nom { font-size: 13.5px; }
.ld-actions .sp-cellule { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.ld-ligne { cursor: default; }
.ld-plus { padding: 12px; text-align: center; border-top: 1px solid var(--r26-line, #eef2f7); }
.re-client-feux { margin-left: 7px; display: inline-flex; vertical-align: -2px; }
.re-pipe-carte-haut .st-feux { margin-left: 4px; flex: 0 0 auto; }
.re-pipe-detail-haut h3 + .st-feux { margin-top: 2px; }
.re-leads-dash-feux { display: inline-flex; margin-right: 7px; vertical-align: -2px; }
.re-h3-lien { margin-left: 8px; font-size: 12px; }
@media (max-width: 760px) {
  .ld-actions .sp-cellule { justify-content: flex-start; }
  .ld-table td.ld-score { padding-top: 8px; }
}
/* Soumissions (cloud/repository.jsx, styles en ligne) : mode sombre */
html[data-theme="dark"] .rc-repo { background: var(--raycom-bg, #0a1322) !important; }
html[data-theme="dark"] .rc-repo h1, html[data-theme="dark"] .rc-repo .rc-repo-client { color: #e9f1fc !important; }
html[data-theme="dark"] .rc-repo-stats > div { background: #0f1b2d !important; border-top-color: #1e2d44 !important; border-right-color: #1e2d44 !important; border-bottom-color: #1e2d44 !important; }
html[data-theme="dark"] .rc-repo-table { background: #0f1b2d !important; border-color: #1e2d44 !important; }
html[data-theme="dark"] .rc-repo-table td span[class="rc-repo-projet"] { background: #1e293b !important; color: #cbd5e1 !important; }
html[data-theme="dark"] .rc-repo-stats > div > div:last-child { color: #e9f1fc !important; }
html[data-theme="dark"] .rc-repo-table th { background: #0b1526 !important; color: #94a3b8 !important; border-color: #1e2d44 !important; }
html[data-theme="dark"] .rc-repo-table td { color: #e2e8f0 !important; border-color: #1e2d44 !important; }
html[data-theme="dark"] .rc-repo-ligne:hover { background: #132238; }
html[data-theme="dark"] .rc-repo-filters > div, html[data-theme="dark"] .rc-repo-filters select, html[data-theme="dark"] .rc-repo-filters button { background: #0b1526 !important; border-color: #1e2d44 !important; color: #e2e8f0 !important; }
html[data-theme="dark"] .rc-repo-filters input { color: #e2e8f0 !important; }
.rc-repo-ligne:hover { background: #f8fafc; }
.rc-repo-lien { color: var(--raycom-accent, #1a6fc4); font-weight: 600; }
.rc-repo-no { white-space: nowrap; }
/* Soumissions sur téléphone : la page ne déborde plus (le tableau défile dans son cadre), indicateurs sur 2 colonnes */
@media (max-width: 820px) {
  .app > .rc-shell-vue { min-width: 0; }
  .rc-repo { padding: 18px 14px 40px !important; min-width: 0; box-sizing: border-box; }
  .rc-repo > div:first-child { flex-wrap: wrap; gap: 12px; align-items: flex-start !important; }
  .rc-repo-stats { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .rc-repo-table { max-width: 100%; }
  .rc-repo-table table { min-width: 860px; }
}
.ld-kpi[data-ton="feu"] { border-left-color: #f97316; }
.ld-kpi .re-kpi-sub .st-feux { margin-right: 4px; vertical-align: -2px; }

/* ─── Retouches JF (7 nov. 2026, soir) : bouton lune/soleil dans la carte du profil, couleur sobre par section ───
   Une couleur par SECTION (pas par élément) : l'œil repère d'un coup où il est (vendre, analyser, régler) sans arc-en-ciel.
   Accueil et Ventes : bleu Raycom ; Analyses : teal ; Paramètres : gris ardoise. Icône teintée au repos, pastille pleine
   de la même couleur avec icône blanche quand l'élément est actif, liseré gauche de la même couleur. */
.user-theme { background: transparent; border: 1px solid transparent; padding: 7px; border-radius: 8px; color: var(--raycom-ink-muted, #64748b); cursor: pointer; display: inline-flex; align-items: center; transition: background .12s, color .12s; }
.user-theme:hover { background: rgba(26, 111, 196, .08); border-color: rgba(26, 111, 196, .18); color: var(--raycom-accent, #1a6fc4); }
.user-theme:focus-visible, .user-signout:focus-visible { outline: 2px solid var(--raycom-accent, #1a6fc4); outline-offset: 1px; }
html[data-theme="dark"] .user-theme { color: #fde68a; }
html[data-theme="dark"] .user-theme:hover { background: rgba(253, 230, 138, .1); border-color: rgba(253, 230, 138, .25); }

.sidebar nav .nav-group { --nav-c: #1a6fc4; --nav-c-fond: rgba(26, 111, 196, .10); --nav-c-actif: rgba(26, 111, 196, .09); }
.sidebar nav .nav-group[data-section="analyses"] { --nav-c: #0f766e; --nav-c-fond: rgba(15, 118, 110, .10); --nav-c-actif: rgba(15, 118, 110, .09); }
.sidebar nav .nav-group[data-section="parametres"] { --nav-c: #475569; --nav-c-fond: rgba(71, 85, 105, .10); --nav-c-actif: rgba(71, 85, 105, .09); }
html[data-theme="dark"] .sidebar nav .nav-group { --nav-c: #6fb0ec; --nav-c-fond: rgba(111, 176, 236, .14); --nav-c-actif: rgba(111, 176, 236, .14); }
html[data-theme="dark"] .sidebar nav .nav-group[data-section="analyses"] { --nav-c: #2dd4bf; --nav-c-fond: rgba(45, 212, 191, .13); --nav-c-actif: rgba(45, 212, 191, .12); }
html[data-theme="dark"] .sidebar nav .nav-group[data-section="parametres"] { --nav-c: #a5b4c8; --nav-c-fond: rgba(165, 180, 200, .13); --nav-c-actif: rgba(165, 180, 200, .12); }
.sidebar nav .nav-item .nav-ico { background: var(--nav-c-fond); color: var(--nav-c); }
.sidebar nav .nav-item:hover:not(.disabled):not(.active) .nav-ico { background: var(--nav-c-fond); color: var(--nav-c); filter: saturate(1.2); }
.sidebar nav .nav-item.active { background: var(--nav-c-actif); color: var(--raycom-ink, #0f172a); box-shadow: inset 0 0 0 1px var(--nav-c-fond); }
.sidebar nav .nav-item.active .nav-ico { background: var(--nav-c); color: #fff; box-shadow: 0 5px 12px var(--nav-c-fond); }
.sidebar nav .nav-item.active::before { background: var(--nav-c); }
.sidebar nav .nav-group-title { color: var(--nav-c); }
html[data-theme="dark"] .sidebar nav .nav-item.active { color: #f1f5f9; }
html[data-theme="dark"] .sidebar nav .nav-item.active .nav-ico { color: #0b1526; }
/* Carte du profil : deux petits boutons (thème, déconnexion) sans manger le nom */
.sidebar-user { gap: 8px; }
.sidebar-user .user-theme, .sidebar-user .user-signout { padding: 6px; }
@media (max-width: 820px) {
  .sidebar-user { margin: 0 0 0 6px !important; padding: 4px 6px; box-shadow: none; flex: 0 0 auto; }
  .sidebar-user .user-avatar { width: 28px; height: 28px; font-size: 11px; }
  .sidebar-user .user-info { display: none; }
}
/* Grand écran : colonnes et indicateurs de plus dans Leads et Soumissions. 1500 px et plus (1920 × 1080 à 125 %, soit 1536 px utiles) :
   Leads téléphone masqué, dernier contact, valeur estimée ; Soumissions système, prochaine relance, 3 indicateurs. 1800 px et plus
   (1920 à 100 %) : Soumissions date d'envoi et nombre de vues. En dessous, rien ne change (cartes sur téléphone). */
@media (max-width: 1499px) { .ld-table .ld-large, .ld-kpis .ld-large, .rc-repo .rc-repo-large { display: none !important; } }
@media (max-width: 1799px) { .rc-repo .rc-repo-xl { display: none !important; } }
.ld-tel { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--r26-ink-2, #475569); }
.ld-valeur { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.rc-repo > * { max-width: 1864px; margin-left: auto !important; margin-right: auto !important; }
.rc-repo-systeme { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-size: 12.5px; }
.rc-repo-retard { color: var(--st-orange-texte, #9a3412); font-weight: 700; }

/* Source du lead, automatique (JF, 8 nov. 2026) */
.re-source-auto { padding: 8px 10px; border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; background: var(--r26-surface-2, #f8fafc); color: var(--r26-ink, #0b1b2b); font-weight: 600; min-height: 20px; }

/* Étape Options allégée et barre de navigation fixe (JF, 8 nov. 2026) */
.re-options-titre { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r26-ink-2, #475569); margin: 18px 0 8px; }
.re-options-grille { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.re-options-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.re-option-puce { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--r26-primary-50, #eef3fb); color: var(--r26-primary, #1a6fc4); font-size: 13px; font-weight: 600; }
.re-option-puce button { border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 999px; }
.re-option-puce button:hover { background: rgba(26,111,196,.15); }
.re-options-tout { display: block; width: 100%; margin-top: 16px; padding: 12px; border-style: dashed; }
.re-options-catalogue { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--r26-line, #e2e8f0); }
.re-tile-ph { flex-direction: column; gap: 6px; }
.re-tile-ph svg { opacity: .95; }
.re-tile-ph span { font-size: 11px; letter-spacing: .08em; }
.re-tile-ph.f-travaux { background: linear-gradient(135deg, #3f3f46, #a1a1aa); }
.re-tile-ph.f-frais { background: linear-gradient(135deg, #1f2937, #4b5563); }
.re-tile-ph.f-materiel { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
/* Boutons d'étape toujours au bas de l'écran, bien visibles */
.re-content .re-actions { position: sticky; bottom: 0; z-index: 6; margin: 22px -4px 0; padding: 12px 4px; background: var(--r26-surface, #fff); border-top: 1px solid var(--r26-line, #e2e8f0); box-shadow: 0 -8px 16px -12px rgba(15,23,42,.25); }
.re-content .re-actions .re-btn.primary { min-height: 44px; padding: 0 22px; font-size: 15px; font-weight: 700; }
.re-content .re-actions .re-btn { min-height: 40px; }
.re-options-grille .re-tile-ph, .re-options-grille .re-tile-img { height: 76px; }
/* Résumé : ajouter un article du catalogue */
.re-ajout-article { margin: 18px 0 8px; padding: 14px; border: 1px dashed var(--r26-line, #cbd5e1); border-radius: 12px; background: var(--r26-surface-2, #f8fafc); }
.re-ajout-article .re-options-titre { margin-top: 0; }
.re-ajout-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.re-ajout-liste li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; background: var(--r26-surface, #fff); border: 1px solid var(--r26-line, #e2e8f0); border-radius: 8px; }
.re-ajout-nom { font-weight: 600; display: flex; flex-direction: column; }
.re-ajout-nom small { font-weight: 400; color: var(--r26-ink-2, #64748b); }
.re-ajout-prix { font-variant-numeric: tabular-nums; white-space: nowrap; }
.re-table td.del button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--r26-line, #e2e8f0); background: #fff; color: #b91c1c; font-size: 18px; cursor: pointer; }
.re-table td.del button:hover { background: #fee2e2; border-color: #fca5a5; }
