/* ============================================================
   theme_gabarits.css — GENERE, ne pas editer a la main.
   Produit par outils/generer_theme_gabarits.py

   Chaque regle vient d'un bloc <style> de gabarit ou une couleur
   claire etait ecrite en dur. Elle est reprefixee
   [data-bs-theme="dark"], ce qui lui donne la specificite (0,2,0)
   contre (0,1,0) a l'originale : elle gagne sans !important, et
   rien ne change en mode clair.

   Pour ajuster un ecran, NE PAS corriger ici — la prochaine
   generation effacerait la retouche. Ecrire la regle dans le
   <style> du gabarit : elle est chargee APRES cette feuille, a
   specificite egale, donc elle l'emporte.
   ============================================================ */

/* ---- base.html ---- */
[data-bs-theme="dark"] .navbar-brand { color: var(--vx-text) !important; }
[data-bs-theme="dark"] .navbar { background: var(--vx-surface); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ---- dashboard.html ---- */
[data-bs-theme="dark"] .stat-card { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .stat-icon.orange { background: #271911; }
[data-bs-theme="dark"] .stat-icon.blue { background: #111b27; color: #689df3; }
[data-bs-theme="dark"] .stat-icon.green { background: #112718; color: #74e79e; }
[data-bs-theme="dark"] .stat-icon.dark { background: #111c27; color: #89a7d2; }
[data-bs-theme="dark"] .quick-action { border: 2px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .quick-action:hover { color: var(--vx-text); }

/* ---- expert_ia.html ---- */
[data-bs-theme="dark"] .topbar-sep { color: #89a5d2; }

/* ---- factures_list.html ---- */
[data-bs-theme="dark"] .facture-row { background: var(--vx-surface); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .stat-box { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* ---- landing.html ---- */
[data-bs-theme="dark"] .hero .brand-orange { color: #f39568; }
[data-bs-theme="dark"] .hero .lead { color: var(--vx-muted); }
[data-bs-theme="dark"] .btn-hero-outline:hover { color: #f39568; }
[data-bs-theme="dark"] .fc p { color: var(--vx-muted); }
[data-bs-theme="dark"] .fi { color: #f39568; }
[data-bs-theme="dark"] .stat-num { color: #f39568; }
[data-bs-theme="dark"] .stat-label { color: var(--vx-muted); }
[data-bs-theme="dark"] .cta-box p { color: var(--vx-muted); }
[data-bs-theme="dark"] footer a { color: #f39568; }
[data-bs-theme="dark"] .dropdown-item:hover { color: #f39568; }
[data-bs-theme="dark"] .dropdown-item-text { color: var(--vx-muted) !important; }

/* ---- pricing.html ---- */
[data-bs-theme="dark"] .plan-card { border: 2px solid #2a3a51; }
[data-bs-theme="dark"] .price { color: var(--vx-text); }
[data-bs-theme="dark"] .price span { color: #89a7d2; }
[data-bs-theme="dark"] .check { color: #f39568; }
[data-bs-theme="dark"] .savings { background: #271911; color: #f39568; }

/* ---- rapport_analyse.html ---- */
[data-bs-theme="dark"] .analyst-card { border: 2px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .analyst-card.bnq.selected { background: #111b27; }
[data-bs-theme="dark"] .analyst-card.juridique.selected { background: #271111; }
[data-bs-theme="dark"] .analyst-card.client.selected { background: #271d11; }
[data-bs-theme="dark"] .analyst-card .a-check { border: 2px solid var(--vx-border); background: var(--vx-surface); }
[data-bs-theme="dark"] .analyst-name { color: #89a5d2; }
[data-bs-theme="dark"] .analyst-desc { color: #89a7d2; }
[data-bs-theme="dark"] .analyze-btn:disabled { background: #161b22; }
[data-bs-theme="dark"] .analyst-panel-body { background: var(--vx-surface); }
[data-bs-theme="dark"] .issue-card { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .issue-header { background: #111c27; border-bottom: 1px solid #2a3a51; }
[data-bs-theme="dark"] .issue-title { color: #89a5d2; }
[data-bs-theme="dark"] .issue-champ { background: #131b25; color: #89a7d2; }
[data-bs-theme="dark"] .sev-critique { background: #271111; color: #e87272; }
[data-bs-theme="dark"] .sev-important { background: #272211; color: #f3b268; }
[data-bs-theme="dark"] .sev-mineur { background: #112719; color: #6fec9d; }
[data-bs-theme="dark"] .issue-probleme { color: #89a5d2; border-left: 3px solid #2a3a51; }
[data-bs-theme="dark"] .issue-suggestion-label { color: var(--vx-muted); }
[data-bs-theme="dark"] .issue-suggestion-text { color: #748fe7; background: #111b27; }
[data-bs-theme="dark"] .issue-suggestion-text:hover { background: #111b27; }
[data-bs-theme="dark"] .btn-ignore { border: 1.5px solid #2a3a51; color: var(--vx-muted); }
[data-bs-theme="dark"] .btn-ignore:hover { color: #89a5d2; }
[data-bs-theme="dark"] .score-bar { background: var(--vx-surface); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .score-label { color: var(--vx-muted); }
[data-bs-theme="dark"] .tia-spinner { color: var(--vx-muted); }
[data-bs-theme="dark"] .tia-spinner .spin { border: 4px solid #2a3a51; }

/* ---- rapport_assigner_photos.html ---- */
[data-bs-theme="dark"] .ap-thumb { border: 2px solid #2a3a51; }
[data-bs-theme="dark"] .ap-thumb .check-badge { background: var(--vx-surface); border: 2px solid var(--vx-border); }
[data-bs-theme="dark"] .ap-panel { background: var(--vx-surface); box-shadow: 0 2px 12px rgba(0,0,0,0.32); }
[data-bs-theme="dark"] .sel-count-bar { background: #271911; border: 1px solid #563925; color: #89a5d2; }
[data-bs-theme="dark"] .sel-count-val { color: #f39568; }
[data-bs-theme="dark"] .sec-select, [data-bs-theme="dark"] .sub-select { border: 1.5px solid #2a3a51; color: #89a5d2; background: var(--vx-surface); }
[data-bs-theme="dark"] .assign-btn:disabled { background: #151b24; }
[data-bs-theme="dark"] .clear-btn { border: 1.5px solid #2a3a51; color: var(--vx-muted); }
[data-bs-theme="dark"] .clear-btn:hover { color: #89a5d2; }
[data-bs-theme="dark"] .select-all-bar { background: #111c27; border: 1px solid #2a3a51; color: #89a5d2; }

/* ---- rapport_base.html ---- */
[data-bs-theme="dark"] .section-page-header { background: var(--vx-surface); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* ---- rapport_declaration_vendeur.html ---- */
[data-bs-theme="dark"] .dv-dropzone { border: 2px dashed #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .dv-dropzone:hover, [data-bs-theme="dark"] .dv-dropzone.dragover { background: #151127; }
[data-bs-theme="dark"] .ia-resume-box { background: #151127; border: 1px solid #2d2556; color: #a176e4; }
[data-bs-theme="dark"] .ia-suggestion-card { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .ia-sug-body { background: var(--vx-surface); }
[data-bs-theme="dark"] .ia-field-label { color: var(--vx-muted); }
[data-bs-theme="dark"] .ia-field-val { color: #89a5d2; }
[data-bs-theme="dark"] .ia-note-inspecteur { background: #271911; color: #f19d6a; }
[data-bs-theme="dark"] .btn-ignore-sug { border: 1px solid #2a3a51; color: var(--vx-muted); }
[data-bs-theme="dark"] .btn-ignore-sug:hover { color: #89a5d2; }
[data-bs-theme="dark"] .ia-spin { border: 3px solid #2a3a51; }
[data-bs-theme="dark"] tr.rep-oui { background: #271d11; }
[data-bs-theme="dark"] tr.rep-nsp { background: var(--vx-surface); }

/* ---- rapport_detail.html ---- */
[data-bs-theme="dark"] .overview-client-card .info-label { color: var(--vx-muted); }
[data-bs-theme="dark"] .overview-client-card .info-val.accent { color: #f39568; }
[data-bs-theme="dark"] .global-pct { color: #f39568; }
[data-bs-theme="dark"] .global-sub { color: var(--vx-muted); }
[data-bs-theme="dark"] .step-tile { background: var(--vx-surface); border: 1px solid #2a3a51; color: #89a5d2; }
[data-bs-theme="dark"] .step-tile:hover { background: #271a11; color: #89a5d2; }
[data-bs-theme="dark"] .step-num.final { background: #272111; color: var(--vx-text); }
[data-bs-theme="dark"] .section-card { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .badge-nb-0 { background: #131b25; color: #89a7d2; }
[data-bs-theme="dark"] .ss-constat { background: #112719; color: #73e89f; border-color: #255636; }
[data-bs-theme="dark"] .ss-touche { background: #272211; color: #f3a468; }
[data-bs-theme="dark"] .ss-vide { background: #111c27; border-color: #2a3a51; }
[data-bs-theme="dark"] .ss-legend { color: #89a7d2; }

/* ---- rapport_facades.html ---- */
[data-bs-theme="dark"] .facade-zone { background: var(--vx-surface); border: 2px solid #2a3a51; }
[data-bs-theme="dark"] .facade-drag-over { background: #271911 !important; }
[data-bs-theme="dark"] .photo-thumb { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .compass-cardinal { color: #f39568; }
[data-bs-theme="dark"] .compass-needle-south { background: var(--vx-surface-3); }
[data-bs-theme="dark"] .compass-center-dot { border: 2px solid var(--vx-border); }

/* ---- rapport_new.html ---- */
[data-bs-theme="dark"] .form-section { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .form-section h6 { border-bottom: 2px solid #563725; }

/* ---- rapport_photobank.html ---- */
[data-bs-theme="dark"] .mem-chip { background: var(--vx-surface); }
[data-bs-theme="dark"] .col-probl { background: #271111; border: 2px solid #562525; }
[data-bs-theme="dark"] .col-gen { background: #112718; border: 2px solid #255636; }
[data-bs-theme="dark"] .col-inc { background: #161c22; border: 2px solid var(--vx-border); }
[data-bs-theme="dark"] .col-new { background: #272211; }
[data-bs-theme="dark"] .badge-cnt { background: var(--vx-surface); }
[data-bs-theme="dark"] .pt-card { border: 2px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .pt-name { color: #89a5d2; }
[data-bs-theme="dark"] .pt-desc { color: var(--vx-muted); }
[data-bs-theme="dark"] .pt-dot { border: 2px solid var(--vx-border); }
[data-bs-theme="dark"] .dot-INCERTAIN { background: var(--vx-surface-3); }
[data-bs-theme="dark"] .prog-bar-outer { background: #181b20; }
[data-bs-theme="dark"] #prog-text { color: var(--vx-muted); }
[data-bs-theme="dark"] .photo-dropzone { border: 2px dashed #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .photo-dropzone:hover, [data-bs-theme="dark"] .photo-dropzone.dragover { background: #271911; }

/* ---- rapport_photos_browser.html ---- */
[data-bs-theme="dark"] .cat-card { background: var(--vx-surface); }
[data-bs-theme="dark"] .cat-card .cat-count { color: var(--vx-text); }
[data-bs-theme="dark"] .pb-panel { background: var(--vx-surface); box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
[data-bs-theme="dark"] .ph-card { border: 2px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .ph-card.done .ph-caption { color: #79e2a1; background: #112718; }
[data-bs-theme="dark"] .ph-corner { border: 2px solid var(--vx-border); }
[data-bs-theme="dark"] .ph-caption { color: #89a5d2; }
[data-bs-theme="dark"] .cat-prog-bar { background: #181b20; }
[data-bs-theme="dark"] .cat-prog-txt { color: var(--vx-muted); }
[data-bs-theme="dark"] .cat-prog-txt.tout-fait { color: #6fec9d; }
[data-bs-theme="dark"] .panel-photo-wrap { border-bottom: 1px solid #253d56; }
[data-bs-theme="dark"] #panel-img { background: #111c27; }
[data-bs-theme="dark"] .ia-label { color: var(--vx-muted); }
[data-bs-theme="dark"] .ia-input, [data-bs-theme="dark"] .ia-select { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .ia-textarea { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .btn-reset { border: 1px solid #2a3a51; color: var(--vx-muted); }
[data-bs-theme="dark"] .btn-reset:hover { background: #111c27; }
[data-bs-theme="dark"] .section-box { background: #111c27; }
[data-bs-theme="dark"] .synth-box { background: #272111; border: 1px solid #563925; }
[data-bs-theme="dark"] .synth-head { color: #f39068; }
[data-bs-theme="dark"] .synth-copy { border: 1px solid #563925; color: #f39068; }
[data-bs-theme="dark"] .synth-copy:hover { background: #271b11; }
[data-bs-theme="dark"] .synth-titre { color: var(--vx-text); }
[data-bs-theme="dark"] .synth-body p { color: #89a5d2; }

/* ---- rapport_photos_constats.html ---- */
[data-bs-theme="dark"] .pc-sidebar { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.32); }
[data-bs-theme="dark"] .ph-card { border: 2px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .ph-caption { color: #89a5d2; }
[data-bs-theme="dark"] .constat-item { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .constat-item:hover { background: #271911; }
[data-bs-theme="dark"] .constat-item .ci-title { color: var(--vx-text); }
[data-bs-theme="dark"] .constat-item .ci-sub { color: var(--vx-muted); }
[data-bs-theme="dark"] .ph-ovl-btn { background: var(--vx-surface); border: 1px solid var(--vx-border); }
[data-bs-theme="dark"] .ph-ovl-btn:hover { background: var(--vx-surface); }
[data-bs-theme="dark"] .classify-box { background: var(--vx-surface); box-shadow: 0 12px 48px rgba(0,0,0,0.55); }

/* ---- rapport_section.html ---- */
[data-bs-theme="dark"] .constat-card { background: var(--vx-surface); border: 1px solid #2a3a51; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .constat-card-header { background: #111c27; border-bottom: 1px solid #2a3a51; }
[data-bs-theme="dark"] .constat-type-select { border: 1px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .constat-title-input { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .constat-textarea { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .save-ok { color: #74e79e !important; }
[data-bs-theme="dark"] .save-err { color: #f26969 !important; }
[data-bs-theme="dark"] .mouchard-badge.active { color: #f39568; }
[data-bs-theme="dark"] .type-vice_apparent { background: #271311; }
[data-bs-theme="dark"] .constat-preview { background: #111c27; border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .cp-view-title { color: var(--vx-text); }
[data-bs-theme="dark"] .cp-view-text { color: #89a5d2; }
[data-bs-theme="dark"] .synth-box { background: #272111; border: 1px solid #563925; }
[data-bs-theme="dark"] .synth-head { color: #f39068; }
[data-bs-theme="dark"] .synth-copy { border: 1px solid #563925; color: #f39068; }
[data-bs-theme="dark"] .synth-copy:hover { background: #271b11; }
[data-bs-theme="dark"] .synth-titre { color: var(--vx-text); }
[data-bs-theme="dark"] .synth-body p { color: #89a5d2; }
[data-bs-theme="dark"] .cond-box { background: #111c27; border: 1px solid #2d3c4e; }
[data-bs-theme="dark"] .cond-head { color: #68c2f3; }
[data-bs-theme="dark"] .cond-compte { color: #89a7d2; }
[data-bs-theme="dark"] .cond-col-titre { color: #89a7d2; }
[data-bs-theme="dark"] .cond-col-titre.neuf { color: #68c2f3; }
[data-bs-theme="dark"] .cond-champ-txt { color: #89a5d2; }
[data-bs-theme="dark"] .cond-avert { color: #f19d6a; background: #272211; border: 1px solid #564c25; }
[data-bs-theme="dark"] .cond-badge { color: #f19d6a; background: #272211; border: 1px solid #564c25; }
[data-bs-theme="dark"] .constat-photos-section { border-top: 1px solid #253d56; }
[data-bs-theme="dark"] .cp-thumb { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .sec-dropzone { border: 2px dashed #2a3a51; }
[data-bs-theme="dark"] .sec-dropzone:hover, [data-bs-theme="dark"] .sec-dropzone.dragover { background: #271911; }
[data-bs-theme="dark"] .sec-dropzone.paste-target { background: #271911; }
[data-bs-theme="dark"] .sec-dropzone.paste-target::after { color: #f39568; }
[data-bs-theme="dark"] .card.photo-card-dragover { background: #271911; }
[data-bs-theme="dark"] .sec-thumb { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .sub-header-bar { background: #111c27; border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .sub-header-bar:hover { background: #111c27; }
[data-bs-theme="dark"] .ia-panel { border: 1.5px solid #563b25; }
[data-bs-theme="dark"] .ia-field-lbl { color: #89a7d2; }
[data-bs-theme="dark"] .ia-result-block { background: var(--vx-surface); border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .ia-section-txt { color: #89a5d2; }
[data-bs-theme="dark"] .ia-synthese-box { background: #112718; }
[data-bs-theme="dark"] #ia2-panel { background: var(--vx-surface); box-shadow: 0 -4px 24px rgba(0,0,0,0.55); }
[data-bs-theme="dark"] .ia2-suggestion-item { background: #191127; border: 1px solid #2f2556; }
[data-bs-theme="dark"] #triage-draft-panel { background: var(--vx-surface); box-shadow: 0 -6px 30px rgba(0,0,0,0.55); }
[data-bs-theme="dark"] .triage-draft-field textarea, [data-bs-theme="dark"] .triage-draft-field input, [data-bs-theme="dark"] .triage-draft-field select { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .ann-color-dot.active { border-color: var(--vx-border); }

/* ---- rapport_triage.html ---- */
[data-bs-theme="dark"] .tri-head { background: var(--vx-surface); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .tri-head h4 { color: var(--vx-text); }
[data-bs-theme="dark"] .tri-sub { color: var(--vx-muted); }
[data-bs-theme="dark"] .tri-chiffre span { color: var(--vx-muted); }
[data-bs-theme="dark"] .tri-filtre { border: 1px solid #2a3a51; background: var(--vx-surface); color: #89a5d2; }
[data-bs-theme="dark"] .tri-filtre:hover { color: #f39568; }
[data-bs-theme="dark"] .tri-sec { border: 1px solid #2a3a51; background: var(--vx-surface); color: #89a5d2; }
[data-bs-theme="dark"] .tri-sec:hover { color: #f39568; }
[data-bs-theme="dark"] .tri-sec .tri-total { background: #131b25; color: #89a7d2; }
[data-bs-theme="dark"] .tri-sec .tri-vu { color: #6fec9d; }
[data-bs-theme="dark"] .tri-sec.tri-vrac { color: var(--vx-muted); }
[data-bs-theme="dark"] .tri-sections.tri-actif .tri-sec { border-color: #563e25; }
[data-bs-theme="dark"] .tri-sec.tri-cible { background: #271d11; color: #f39068; }
[data-bs-theme="dark"] .tc { border: 2px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .tc img { background: #181b20; }
[data-bs-theme="dark"] .tc-pied { color: var(--vx-muted); }
[data-bs-theme="dark"] .tc.note .tc-pied { color: #f39068; }
[data-bs-theme="dark"] .tc-mic { background: var(--vx-surface); border: 1px solid #2d3c4e; color: var(--vx-text); box-shadow: 0 1px 4px rgba(0,0,0,0.55); }
[data-bs-theme="dark"] .tc-clavier { background: var(--vx-surface); border: 1px solid #2d3c4e; color: var(--vx-text); box-shadow: 0 1px 4px rgba(0,0,0,0.55); }
[data-bs-theme="dark"] .tc.dictee .tc-pied { color: #e87272; }
[data-bs-theme="dark"] .tc-crayon { background: var(--vx-surface); border: 1px solid #2a3a51; color: #89a5d2; }
[data-bs-theme="dark"] #tri-panel { background: var(--vx-surface); box-shadow: -6px 0 30px rgba(0,0,0,0.55); }
[data-bs-theme="dark"] #tri-panel header { border-bottom: 1px solid var(--vx-border); }
[data-bs-theme="dark"] #tri-panel label { color: var(--vx-muted); }
[data-bs-theme="dark"] #tri-pied { border-top: 1px solid var(--vx-border); }
[data-bs-theme="dark"] .vx-mic { border: 1px solid #2a3a51; background: var(--vx-surface); color: var(--vx-muted); }
[data-bs-theme="dark"] .vx-mic:hover { color: #f39568; }

/* ---- rapport_triage_generer.html ---- */
[data-bs-theme="dark"] .tg-head { background: var(--vx-surface); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .tg-head h4 { color: var(--vx-text); }
[data-bs-theme="dark"] .tg-sub { color: var(--vx-muted); }
[data-bs-theme="dark"] .tg-avert { background: #271d11; border: 1px solid #563f25; color: #ee8d6d; }
[data-bs-theme="dark"] .tg-bloc { background: var(--vx-surface); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .tg-bloc h6 { color: var(--vx-text); }
[data-bs-theme="dark"] .tg-item { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .tg-item.muet { border-left: 4px solid #2d3c4e; }
[data-bs-theme="dark"] .tg-item img { background: #181b20; }
[data-bs-theme="dark"] .tg-note { color: var(--vx-text); background: #271d11; border: 1px solid #563f25; }
[data-bs-theme="dark"] .tg-note b { color: #ee8d6d; }
[data-bs-theme="dark"] .tg-titre { color: var(--vx-text); }
[data-bs-theme="dark"] .tg-texte { color: var(--vx-muted); }
[data-bs-theme="dark"] .tg-badge.b-def { background: #271111; color: #e77474; }
[data-bs-theme="dark"] .tg-badge.b-conf { background: #112719; color: #79e2a1; }
[data-bs-theme="dark"] .tg-badge.b-src { background: #111c27; color: #89a7d2; }
[data-bs-theme="dark"] .tg-rien { background: #271d11; border: 1px solid #563f25; color: #ee8d6d; }
[data-bs-theme="dark"] .tg-deja { background: #112718; border: 1px solid #255636; color: #79e2a1; }
[data-bs-theme="dark"] .tg-vignettes img { background: #181b20; }
[data-bs-theme="dark"] .tg-suit-note { color: #89a7d2; background: #111c27; }
[data-bs-theme="dark"] .tg-grp { background: #271d11; }
[data-bs-theme="dark"] .tg-grp .tg-grp-t { color: #ee8d6d; }
[data-bs-theme="dark"] .tg-badge.b-grp { background: #271e11; color: #ee8d6d; }
[data-bs-theme="dark"] .tg-grpbarre { background: #271d11; color: var(--vx-text); border-top: 1px solid #563f25; box-shadow: 0 -2px 10px rgba(0,0,0,0.48); }
[data-bs-theme="dark"] .tg-grpbarre .tg-grp-msg { color: #ee8d6d; }
[data-bs-theme="dark"] .tg-barre { background: var(--vx-surface); border-top: 1px solid #2a3a51; box-shadow: 0 -2px 10px rgba(0,0,0,0.32); }
[data-bs-theme="dark"] .tg-compte { color: var(--vx-muted); }
[data-bs-theme="dark"] .tg-compte b { color: var(--vx-text); }

/* ---- rapport_triage_generer_tout.html ---- */
[data-bs-theme="dark"] .gt-card { background: var(--vx-surface); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .gt-card h4 { color: var(--vx-text); }
[data-bs-theme="dark"] .gt-sub { color: var(--vx-muted); }
[data-bs-theme="dark"] .gt-chiffre b { color: #f39568; }
[data-bs-theme="dark"] .gt-chiffre span { color: var(--vx-muted); }
[data-bs-theme="dark"] .gt-ligne { border: 1px solid #2a3a51; }
[data-bs-theme="dark"] .gt-ligne.attend { background: #272211; }
[data-bs-theme="dark"] .gt-ligne.vide { border-left: 4px solid #2a3a51; }
[data-bs-theme="dark"] .gt-ligne.fini { background: #112718; }
[data-bs-theme="dark"] .gt-ligne h6 { color: var(--vx-text); }
[data-bs-theme="dark"] .gt-detail { color: var(--vx-muted); }
[data-bs-theme="dark"] .gt-avert { color: #ee8d6d; }
[data-bs-theme="dark"] .gt-manque { color: #e77474; background: #271111; border: 1px solid #562525; }
[data-bs-theme="dark"] .gt-manque b { color: #e17a7a; }
[data-bs-theme="dark"] .gt-ecarte { color: #89a7d2; background: #111c27; border: 1px solid #2d3c4e; }
[data-bs-theme="dark"] .gt-ecarte b { color: #89a7d2; }
[data-bs-theme="dark"] .gt-na-compte { color: #89a7d2; }
[data-bs-theme="dark"] .gt-na-txt { color: #89a7d2; }
[data-bs-theme="dark"] .gt-sub-titre { color: #89a7d2; }
[data-bs-theme="dark"] .gt-sub-photos { color: #f19d6a; }
[data-bs-theme="dark"] .gt-ligne.muette { background: #271111; }
[data-bs-theme="dark"] .gt-mouchard { background: #271d11; border: 1px solid #563f25; color: #ee8d6d; }
[data-bs-theme="dark"] .gt-barre { background: var(--vx-surface); border-top: 1px solid #2a3a51; box-shadow: 0 -2px 10px rgba(0,0,0,0.32); }
[data-bs-theme="dark"] .gt-compte { color: var(--vx-muted); }
[data-bs-theme="dark"] .gt-compte b { color: var(--vx-text); }
[data-bs-theme="dark"] #gt-journal { color: var(--vx-muted); }

/* ---- rapport_triage_section.html ---- */
[data-bs-theme="dark"] .ts-head { background: var(--vx-surface); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .ts-head h4 { color: var(--vx-text); }
[data-bs-theme="dark"] .ts-sub { color: var(--vx-muted); }
[data-bs-theme="dark"] .ts-revue.non { background: #271d11; border: 1px solid #563f25; color: #ee8d6d; }
[data-bs-theme="dark"] .ts-revue.oui { background: #112718; border: 1px solid #255636; color: #79e2a1; }
[data-bs-theme="dark"] .ts-titre { color: var(--vx-muted); }
[data-bs-theme="dark"] .tsx { background: var(--vx-surface); }
[data-bs-theme="dark"] .tsx img { background: #181b20; }
[data-bs-theme="dark"] .tsx label { color: var(--vx-muted); }
[data-bs-theme="dark"] .vx-mic { border: 1px solid #2a3a51; background: var(--vx-surface); color: var(--vx-muted); }
[data-bs-theme="dark"] .vx-mic:hover { color: #f39568; }
[data-bs-theme="dark"] .ts-ras .c { border: 1px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .ts-ras .c img { background: #181b20; }
[data-bs-theme="dark"] .ts-ras .c .ts-sub-ras { border-top: 1px solid #2a3a51; background: var(--vx-surface); }
[data-bs-theme="dark"] .ts-pick { background: var(--vx-surface); }
[data-bs-theme="dark"] #ts-lot { background: var(--vx-surface); box-shadow: 0 6px 20px rgba(0,0,0,0.55); }
[data-bs-theme="dark"] #ts-lot .ts-lot-etat { color: var(--vx-muted); }

/* ---- rapport_valider_ia.html ---- */
[data-bs-theme="dark"] .sug-card { background: var(--vx-surface); box-shadow: 0 2px 12px rgba(0,0,0,0.32); }
[data-bs-theme="dark"] .sug-badge.indice_deficience { background: #272211; color: #f3cf68; }
[data-bs-theme="dark"] .sug-badge.vice_apparent { background: #271b11; color: #e1837a; }
[data-bs-theme="dark"] .sug-badge.risque_securite { background: #271113; color: #df7c85; }
[data-bs-theme="dark"] .sug-badge.limitation { background: #112327; color: #6edbed; }
[data-bs-theme="dark"] .sug-badge.autre { background: var(--vx-surface); color: var(--vx-text); }
[data-bs-theme="dark"] .sug-subsection { color: #f39568; }
[data-bs-theme="dark"] .sug-field-label { color: var(--vx-muted); }
[data-bs-theme="dark"] .sug-field-val { color: var(--vx-text); }
[data-bs-theme="dark"] .confidence-bar { background: #181c20; }
[data-bs-theme="dark"] .confidence-label { color: var(--vx-muted); }
[data-bs-theme="dark"] .sug-actions { border-top: 1px solid var(--vx-border); background: var(--vx-surface); }
[data-bs-theme="dark"] .btn-reject { background: var(--vx-surface); color: #e7747f; }
[data-bs-theme="dark"] .empty-state { color: var(--vx-muted); }

/* ---- rapports_list.html ---- */
[data-bs-theme="dark"] .rapport-card { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .badge-en_cours { background: #271911; color: #f09b6b; }
[data-bs-theme="dark"] .badge-complete { background: #112718; color: #6fec9d; }
[data-bs-theme="dark"] .section-bar { background: #131b25; }

/* ---- rdv_confirm.html ---- */
[data-bs-theme="dark"] .confirm-card { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .confirm-card h6 { border-bottom: 2px solid #563725; }
[data-bs-theme="dark"] .info-row { border-bottom: 1px solid #253d56; }
[data-bs-theme="dark"] .info-label { color: #89a7d2; }
[data-bs-theme="dark"] .action-btn.orange { background: #271911; border-color: #563825; }
[data-bs-theme="dark"] .action-btn.blue { background: #111b27; color: #689df3; border-color: #253a56; }
[data-bs-theme="dark"] .action-btn.blue:hover { background: #111927; }
[data-bs-theme="dark"] .action-btn.green { background: #112718; color: #6fec9d; border-color: #255636; }
[data-bs-theme="dark"] .action-btn.dark { background: #111c27; color: #89a7d2; border-color: #2a3a51; }

/* ---- rdv_convention.html ---- */
[data-bs-theme="dark"] .conv-card { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .conv-card h6 { border-bottom: 2px solid #563725; }
[data-bs-theme="dark"] .badge-generated { background: #131b25; color: #89a7d2; }
[data-bs-theme="dark"] .badge-sent { background: #111b27; color: #748fe7; }
[data-bs-theme="dark"] .badge-signed { background: #112719; color: #79e2a1; }

/* ---- rdv_detail.html ---- */
[data-bs-theme="dark"] .info-card { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .info-card h6 { border-bottom: 2px solid #563725; }
[data-bs-theme="dark"] .info-row { border-bottom: 1px solid #253d56; }
[data-bs-theme="dark"] .info-label { color: #89a7d2; }
[data-bs-theme="dark"] .badge-prevu { background: #131b25; color: #89a7d2; }
[data-bs-theme="dark"] .badge-confirme { background: #112719; color: #79e2a1; }
[data-bs-theme="dark"] .badge-complete { background: #111b27; color: #748fe7; }
[data-bs-theme="dark"] .badge-annule { background: #271111; color: #e77474; }

/* ---- rdv_list.html ---- */
[data-bs-theme="dark"] .badge-prévu { background: #131b25; color: #89a7d2; }
[data-bs-theme="dark"] .badge-confirmé { background: #112719; color: #79e2a1; }
[data-bs-theme="dark"] .badge-complété { background: #111b27; color: #748fe7; }
[data-bs-theme="dark"] .badge-annulé { background: #271111; color: #e77474; }

/* ---- rdv_new.html ---- */
[data-bs-theme="dark"] .form-section { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .form-section h6 { border-bottom: 2px solid #563725; }
[data-bs-theme="dark"] #adresse-suggestions { background: var(--vx-surface); border: 1px solid var(--vx-border); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
[data-bs-theme="dark"] #adresse-suggestions .suggestion-item { border-bottom: 1px solid var(--vx-border); }
[data-bs-theme="dark"] #adresse-suggestions .suggestion-item:hover { background: #271911; }
[data-bs-theme="dark"] .km-auto-badge { color: #6fec9d; }

/* ---- settings.html ---- */
[data-bs-theme="dark"] .settings-section { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .settings-section h6 { border-bottom: 2px solid #563725; }
[data-bs-theme="dark"] .assoc-card { border: 2px solid #2a3a51; }
[data-bs-theme="dark"] .assoc-card.selected { background: #271911; }
[data-bs-theme="dark"] .assoc-card .assoc-desc { color: #89a7d2; }

/* ---- vigilance.html ---- */
[data-bs-theme="dark"] .vigil-card { background: var(--vx-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-bs-theme="dark"] .vigil-card p { color: #89a7d2; }

