/* Thème clair (point 114 du rattrapage CLO) : retouches à la main, chargées après theme-clair-auto.css
   (généré par outils/theme-clair.py). Rien ici ne change le thème sombre d'origine.
   Palette : fond gris perlé, zones blanches cassées séparées d'un fin interstice gris (comme le thème clair
   de Blender), champs blancs, textes graphite, bleu Devclo #267AB2 gardé pour l'accent. */
html[data-theme="clair"] {
  --dv-bg: #eef0f3;
  --dv-panel: #f7f8fa;
  --dv-card: #ffffff;
  --dv-card-hi: #f1f3f6;
  --dv-line: rgba(20, 30, 45, 0.1);
  --dv-line-2: rgba(20, 30, 45, 0.17);
  --dv-text: #161a21;
  --dv-soft: #46505e;
  --dv-muted: #6b7482;
  --dv-accent-ink: #1e6494;
  --dv-accent-soft: rgba(38, 122, 178, 0.12);
  --dv-mauve: #2f7fb8;
  background: var(--dv-bg);
}
html[data-theme="clair"] body {
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(38, 122, 178, 0.07), transparent 70%),
    radial-gradient(700px 520px at 10% 80%, rgba(30, 80, 130, 0.05), transparent 70%),
    var(--dv-bg);
}
html[data-theme="clair"] #taskbar {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(20, 30, 45, 0.12);
}

/* Atelier (disposition Blender) */
html[data-theme="clair"] .pe {
  --bl-gap: #c3c8d0;
  --bl-top: #dfe2e7;
  --bl-head: #e7eaee;
  --bl-region: #eff1f4;
  --bl-panel: #f6f7f9;
  --bl-widget: #ffffff;
  --bl-widget-hi: #e6eaf0;
  --bl-field: #ffffff;
  --bl-line: rgba(20, 30, 45, 0.1);
  --bl-line-2: rgba(20, 30, 45, 0.18);
  --bl-ring: rgba(31, 111, 194, 0.5);
  --bl-sel: rgba(31, 111, 194, 0.22);
  --bl-sel-hi: rgba(31, 111, 194, 0.32);
  --bl-sel-soft: rgba(31, 111, 194, 0.09);
  --bl-text: #161a21;
  --bl-dim: #3d4654;
  --bl-muted: #6a7383;
  --pe-border: rgba(20, 30, 45, 0.12);
}
html[data-theme="clair"] .pe ::-webkit-scrollbar-thumb { background: #b4bac3; }
html[data-theme="clair"] .pe ::-webkit-scrollbar-thumb:hover { background: #9aa1ab; }
/* le blanc reste blanc sur les boutons d'accent */
html[data-theme="clair"] .pe .pe-action.primary,
html[data-theme="clair"] .pe .v3d-btn.primary,
html[data-theme="clair"] .pat-open { color: #fff; }
/* coches et curseurs : accent bleu plutôt que noir */
html[data-theme="clair"] .pe input[type="checkbox"],
html[data-theme="clair"] .pe input[type="radio"],
html[data-theme="clair"] .pe input[type="range"],
html[data-theme="clair"] .v3d-pop-row input[type="checkbox"] { accent-color: var(--dv-accent); }
/* logo blanc de la barre : passé en graphite sur fond clair */
html[data-theme="clair"] .tb-logo img,
html[data-theme="clair"] .hm-logo img,
html[data-theme="clair"] .pe-logo img { filter: invert(0.88); }
/* coût en crédits posé sur un bouton bleu (« Générer » de l'accueil, envoi de l'assistant) : en blanc, comme le bouton */
html[data-theme="clair"] .hm-send .dv-cost,
html[data-theme="clair"] .pe .pe-ai-send .dv-cost { color: #fff; background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); }
/* bouton « Arrêter » de l'assistant : fond gris clair, icône foncée */
html[data-theme="clair"] .pe .pe-ai-send.stop { color: var(--bl-text); }
/* vignettes des projets : marges de couture (tirets blancs du dessin) en gris foncé */
html[data-theme="clair"] .pat-preview polygon[stroke-dasharray],
html[data-theme="clair"] .hm-proj-prev polygon[stroke-dasharray] { stroke: rgba(20, 30, 45, 0.3); }

/* Profil (2026-11-16) : réglages sous le profil et cadres de la page IA */
html[data-theme="clair"] .dv-acc-prefs { border-top-color: rgba(20, 30, 45, 0.12); }
html[data-theme="clair"] .dv-acc .dv-acc-pref { color: #1d232c; }
html[data-theme="clair"] .dv-acc .dv-acc-pref:hover { background: rgba(20, 30, 45, 0.05); border-color: rgba(20, 30, 45, 0.1); }
html[data-theme="clair"] .dv-acc-pref-val { color: #4a5464; }
html[data-theme="clair"] .dv-acc-lang { background: #fff; color: #1d232c; border-color: rgba(20, 30, 45, 0.18); }
html[data-theme="clair"] #taskbar .nav-link.active { color: #161a21; }
html[data-theme="clair"] .ia-tile { background: rgba(20, 30, 45, 0.03); border-color: rgba(20, 30, 45, 0.12); }
html[data-theme="clair"] .ia-slot-empty { border-color: rgba(20, 30, 45, 0.1); }
html[data-theme="clair"] #page-ia .hm-conv-head { border-bottom-color: rgba(20, 30, 45, 0.12); }
html[data-theme="clair"] #page-ia .hm-composer { background: rgba(20, 30, 45, 0.03); }
html[data-theme="clair"] #page-ia #gen-attach { border-right-color: rgba(20, 30, 45, 0.14) !important; }
html[data-theme="clair"] .dv-acc-btn.on { color: #fff; }
