/* Thème clair — chargé en dernier ; activé par <html data-theme="light"> */
.theme-toggle{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;border:1px solid var(--panel-border,rgba(255,255,255,.15));background:transparent;color:var(--text,#fff);cursor:pointer;flex-shrink:0}
.theme-toggle:hover{background:rgba(127,127,127,.14)}
.navbar .theme-toggle{margin-right:6px}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f4f7f2;--bg-soft:#eaf0e6;--panel:#ffffff;--panel-border:rgba(28,60,40,.16);
  --red:#3b7a1a;--red-dim:#2f6314;--red-glow:rgba(80,140,40,.18);
  --cyan:#1c7c8c;--pink:#8a5a1c;
  --text:#14231a;--text-dim:#455a4b;--text-faint:#6c8072;
  --green:#1f8a4c;--yellow:#a8741a;
  --surface-raised:#ffffff;--shadow-card:0 14px 40px rgba(30,60,40,.12);
  --shell-bg:rgba(255,255,255,.9);--shell-line:rgba(28,60,40,.14);--shell-text:#14231a;--shell-dim:#4d6455;--shell-accent:#2f6314;--shell-panel:#ffffff;
  --dock-accent:#2f6314;--dock-bg:rgba(60,120,30,.12);
}
html[data-theme="light"] body{background-color:var(--bg)!important;background-image:radial-gradient(ellipse at 8% 0%,rgba(130,185,93,.16),transparent 38%),radial-gradient(ellipse at 95% 12%,rgba(104,190,211,.12),transparent 32%)!important;color:var(--text)}
html[data-theme="light"] .navbar,html[data-theme="light"] .app-header{background:var(--shell-bg);border-color:var(--shell-line)}
html[data-theme="light"] .zdock{background:rgba(255,255,255,.95);border-color:rgba(28,60,40,.16);box-shadow:0 12px 36px rgba(30,60,40,.2)}
html[data-theme="light"] .zdock-link{color:#5d7064}
html[data-theme="light"] .zdock-link:hover{color:#14231a}
html[data-theme="light"] .mobile-bottom-nav{background:rgba(255,255,255,.95)}
html[data-theme="light"] .pwa-banner{background:rgba(255,255,255,.98);border-color:rgba(28,60,40,.2)}
html[data-theme="light"] .pwa-banner-text{color:#4d6455}
html[data-theme="light"] .pwa-banner-text strong{color:#14231a}
html[data-theme="light"] .pwa-banner-no{color:#4d6455;border-color:rgba(28,60,40,.2)}
html[data-theme="light"] .btn-ghost{color:var(--text);border-color:var(--panel-border)}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea{background:#fff;color:var(--text);border-color:rgba(28,60,40,.22)}
html[data-theme="light"] .terminal{background:#0e1b12;color:#e6f2e6}
html[data-theme="light"] .footer{color:var(--text-dim)}
html[data-theme="light"] .app-nav-link,html[data-theme="light"] .user-name{color:var(--shell-text)}
html[data-theme="light"] .user-dropdown,html[data-theme="light"] .notif-panel{background:#fff;color:var(--text);border-color:var(--panel-border);box-shadow:0 18px 50px rgba(30,60,40,.18)}

/* Check ban (Toji) — clair : papier os, bandeau héros sombre conservé (il porte l'illustration) */
html[data-theme="light"] body.theme-toji{background:#efeae0!important;background-image:none!important;--dock-accent:#c1121f;--dock-bg:rgba(193,18,31,.1)}
html[data-theme="light"] .tj{color:#18181c}
html[data-theme="light"] .tj-hero{color:#ece6da}
html[data-theme="light"] .tj .cb-card{background:#fff;border-color:#ddd5c6;border-top-color:#c1121f;box-shadow:0 18px 50px rgba(60,40,20,.15)}
html[data-theme="light"] .tj .cb-card select,html[data-theme="light"] .tj .cb-card input{background:#f7f3ec;border-color:#d8cfbf;color:#18181c}
html[data-theme="light"] .tj .cb-hint,html[data-theme="light"] .tj .cb-status{color:#6a665e}
html[data-theme="light"] .tj-card{background:#fff;border-color:#ddd5c6}
html[data-theme="light"] .tj-card h3{color:#18181c}
html[data-theme="light"] .tj-card p{color:#5f5b53}
html[data-theme="light"] .tj .cb-result{background:#faf7f1;color:#18181c}
html[data-theme="light"] .tj .cb-result p{color:#4a463f}
html[data-theme="light"] .tj .cb-result h3{color:#18181c}


/* ── généré : surfaces sombres codées en dur → équivalents clairs ── */
html[data-theme="light"] .account-hero,
html[data-theme="light"] .activity-section,
html[data-theme="light"] .admin-tab,
html[data-theme="light"] .announcement-danger,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .cmd-usage,
html[data-theme="light"] .config-inputs input,
html[data-theme="light"] .confirm-box,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .contact-item,
html[data-theme="light"] .dashboard-page .empty-state,
html[data-theme="light"] .dashboard-page .instance-card,
html[data-theme="light"] .dashboard-welcome,
html[data-theme="light"] .deploy-box,
html[data-theme="light"] .deploy-form .country-select,
html[data-theme="light"] .deploy-form input,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .faq-item[open],
html[data-theme="light"] .feature-card{background:#fff!important;border-color:rgba(28,60,40,.16)!important;box-shadow:0 8px 26px rgba(30,60,40,.08)}
html[data-theme="light"] .field input,
html[data-theme="light"] .health-panel,
html[data-theme="light"] .instance-card,
html[data-theme="light"] .instance-tools,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .mini-stats div,
html[data-theme="light"] .panel-card,
html[data-theme="light"] .panel-card input,
html[data-theme="light"] .quick-instance,
html[data-theme="light"] .search-control,
html[data-theme="light"] .security-admin-stats div,
html[data-theme="light"] .security-inner,
html[data-theme="light"] .settings-form input[type="number"],
html[data-theme="light"] .settings-form select,
html[data-theme="light"] .settings-form textarea,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .step-num,
html[data-theme="light"] .steps-row .step,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .visual-stamp{background:#fff!important;border-color:rgba(28,60,40,.16)!important;box-shadow:0 8px 26px rgba(30,60,40,.08)}
html[data-theme="light"] .account-hero h1 span,
html[data-theme="light"] .activity-error,
html[data-theme="light"] .activity-history-note,
html[data-theme="light"] .activity-table time,
html[data-theme="light"] .activity-time,
html[data-theme="light"] .activity-title,
html[data-theme="light"] .alert,
html[data-theme="light"] .alert.success,
html[data-theme="light"] .announcement-banner,
html[data-theme="light"] .announcement-warning,
html[data-theme="light"] .clear-search,
html[data-theme="light"] .cmd-desc,
html[data-theme="light"] .cmd-empty,
html[data-theme="light"] .cmd-head p,
html[data-theme="light"] .cmd-stat span,
html[data-theme="light"] .dashboard-eyebrow,
html[data-theme="light"] .dashboard-page #user-label,
html[data-theme="light"] .dashboard-page .instance-phone,
html[data-theme="light"] .deploy-box h2,
html[data-theme="light"] .empty-state h3,
html[data-theme="light"] .feature-card p,
html[data-theme="light"] .field label,
html[data-theme="light"] .footer a,
html[data-theme="light"] .health-copy span,
html[data-theme="light"] .health-copy strong{color:var(--text)!important}
html[data-theme="light"] .hero p.subtitle,
html[data-theme="light"] .instance-error,
html[data-theme="light"] .instance-expiry.tone-danger,
html[data-theme="light"] .instance-expiry.tone-success,
html[data-theme="light"] .instance-expiry.tone-warning,
html[data-theme="light"] .instance-reason.tone-danger,
html[data-theme="light"] .instance-reason.tone-neutral,
html[data-theme="light"] .instance-reason.tone-success,
html[data-theme="light"] .instance-reason.tone-warning,
html[data-theme="light"] .instance-waiting,
html[data-theme="light"] .metric-attention .metric-symbol,
html[data-theme="light"] .metric-card strong,
html[data-theme="light"] .metric-label,
html[data-theme="light"] .metric-online .metric-symbol,
html[data-theme="light"] .metric-pairing .metric-symbol,
html[data-theme="light"] .metric-symbol,
html[data-theme="light"] .mini-stats b,
html[data-theme="light"] .mobile-nav-link.is-current,
html[data-theme="light"] .noctibot-code strong,
html[data-theme="light"] .notif-body p,
html[data-theme="light"] .pairing-box .pairing-code,
html[data-theme="light"] .pairing-box button.pairing-code,
html[data-theme="light"] .password-toggle,
html[data-theme="light"] .remember,
html[data-theme="light"] .search-control input{color:var(--text)!important}
html[data-theme="light"] .section-sub,
html[data-theme="light"] .security-admin-stats b,
html[data-theme="light"] .settings-form label,
html[data-theme="light"] .stat-card .value,
html[data-theme="light"] .t-pair,
html[data-theme="light"] .t-wait,
html[data-theme="light"] .template-warning,
html[data-theme="light"] .text-link,
html[data-theme="light"] .welcome-copy h1 span,
html[data-theme="light"] a,
html[data-theme="light"] table.admin-table td,
html[data-theme="light"] table.admin-table th{color:var(--text)!important}

/* accents lime illisibles sur fond clair → vert profond */
html[data-theme="light"] .contact-card .tag,
html[data-theme="light"] .dashboard-avatar-large,
html[data-theme="light"] .deploy-box h2,
html[data-theme="light"] .empty-icon,
html[data-theme="light"] .footer a,
html[data-theme="light"] .free-plan-tag span,
html[data-theme="light"] .health-copy strong,
html[data-theme="light"] .hero .tag,
html[data-theme="light"] .metric-card strong,
html[data-theme="light"] .metric-symbol,
html[data-theme="light"] .mobile-nav-link.is-current,
html[data-theme="light"] .noctibot-code strong,
html[data-theme="light"] .pairing-box .pairing-code,
html[data-theme="light"] .pairing-box button.pairing-code,
html[data-theme="light"] .stat-card .value,
html[data-theme="light"] .status-filter.is-active,
html[data-theme="light"] .status-filter.is-active span,
html[data-theme="light"] .step-num,
html[data-theme="light"] .t-pair,
html[data-theme="light"] .v5-pill,
html[data-theme="light"] .visual-stamp,
html[data-theme="light"] .welcome-copy h1 span,
html[data-theme="light"] a{color:#2f6314!important}
html[data-theme="light"] h1 span,html[data-theme="light"] .hero h1 span{background:linear-gradient(90deg,#3b7a1a,#1c7c8c)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent}
html[data-theme="light"]{--text-dim:#3a4d41;--text-faint:#5a6d60}
html[data-theme="light"] .dashboard-avatar-large,html[data-theme="light"] .t-pair,html[data-theme="light"] .visual-stamp{color:#e4f7cd!important}
html[data-theme="light"] .kn h1 span{background:linear-gradient(180deg,#fff0b3,#e7c35a 50%,#a9852a)!important;-webkit-background-clip:text!important;background-clip:text!important}
html[data-theme="light"] .cmd-toolbar input[type="search"]{background:#fff!important;border-color:rgba(28,60,40,.22)!important;color:var(--text)}
html[data-theme="light"] .cmd-usage{background:#f1f5ee!important;color:#24402e!important;box-shadow:none}
html[data-theme="light"] .cmd-badge{color:#3a4d41!important;border-color:rgba(28,60,40,.25)!important}
html[data-theme="light"] .cmd-badge.is-toggleable{color:#1f6a3a!important;border-color:rgba(31,138,76,.5)!important}
html[data-theme="light"] .cmd-badge.is-buttons{color:#176b7c!important;border-color:rgba(28,124,140,.5)!important}
html[data-theme="light"] .cb-badges span{color:#44527a;border-color:rgba(28,39,69,.2)}


/* ══ V5.25 — mode clair : textes devenus quasi invisibles (contrastes mesurés page par page) ══ */
html[data-theme="light"] .terminal .t-line,
html[data-theme="light"] .terminal .terminal-body{color:#cfe3d2}
html[data-theme="light"] .terminal .t-pair{color:#d8ef83}
html[data-theme="light"] .terminal .t-wait{color:#e7c28f}
html[data-theme="light"] .terminal .terminal-title{color:#a4b7a8}
html[data-theme="light"] .auth-card .sub,
html[data-theme="light"] .password-help,
html[data-theme="light"] small.password-help,
html[data-theme="light"] .stat-card .label,
html[data-theme="light"] .stats .label,
html[data-theme="light"] .label{color:#4d6455}
html[data-theme="light"] .feature-card small,html[data-theme="light"] .card small,
html[data-theme="light"] .section small,html[data-theme="light"] main small{color:#566b5c}
html[data-theme="light"] .dashboard-page p,
html[data-theme="light"] .dashboard-hero p,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .dashboard-page .muted,
html[data-theme="light"] .activity-empty,
html[data-theme="light"] .activity-section p{color:#4d6455}
html[data-theme="light"] .status-filter{color:#3f574a;border-color:rgba(28,60,40,.22)}
html[data-theme="light"] .status-filter.active,html[data-theme="light"] .status-filter[aria-pressed="true"]{color:#14231a}
html[data-theme="light"] .free-plan-tag{color:#1d6b3b;background:rgba(40,150,80,.12);border-color:rgba(40,150,80,.35)}
html[data-theme="light"] .btn-danger,html[data-theme="light"] .btn.btn-danger{color:#b3261e;border-color:rgba(179,38,30,.4);background:rgba(179,38,30,.08)}
html[data-theme="light"] .hero-badge{color:#2f6314;background:rgba(80,140,40,.12);border-color:rgba(60,120,30,.35)}
html[data-theme="light"] .dashboard-page .stat-sub,html[data-theme="light"] .dashboard-page [class*="-sub"],html[data-theme="light"] .dashboard-page [class*="hint"]{color:#566b5c}

/* Check ban — clair : tout le bloc d'analyse passe en papier, plus de texte blanc sur fond clair */
html[data-theme="light"] .checkban-page{background:#efeae0;color:#18181c}
html[data-theme="light"] .checkban-main{--cb-line:#ddd5c6;--cb-muted:#5f5b53;--cb-green:#4f6b36;--cb-green-bright:#3f5b2a;--cb-gold:#8a5a1c}
html[data-theme="light"] .checkban-eyebrow,html[data-theme="light"] .cb-profile-kicker{color:#3f5b2a}
html[data-theme="light"] .tj-hero .tj-kicker{color:#bed69f}
html[data-theme="light"] .checkban-section-head h2{color:#18181c}
html[data-theme="light"] .cb-status{color:#4a463f}
html[data-theme="light"] .cb-card{background:#fff;border-color:#ddd5c6;box-shadow:0 18px 50px rgba(60,40,20,.12)}
html[data-theme="light"] .cb-field>span{color:#3b382f}
html[data-theme="light"] .cb-card select,html[data-theme="light"] .cb-card input[type=tel]{background:#f7f3ec;border-color:#d1c8b8;color:#18181c}
html[data-theme="light"] .cb-auto-note{color:#5f5b53;background:rgba(138,90,28,.07)}
html[data-theme="light"] .cb-profile-option{background:#faf7f1;border-color:#ddd5c6}
html[data-theme="light"] .cb-profile-option strong{color:#18181c}
html[data-theme="light"] .cb-profile-option small{color:#5f5b53}
html[data-theme="light"] .cb-checkmark{border-color:#8a8472}
html[data-theme="light"] .cb-profile-option input:checked+.cb-checkmark{box-shadow:inset 0 0 0 4px #fff}
html[data-theme="light"] .cb-hint,html[data-theme="light"] .cb-privacy-note{color:#5f5b53}
html[data-theme="light"] .cb-submit{color:#fff;background:linear-gradient(95deg,#4f6b36,#2f4a22)}
html[data-theme="light"] .cb-result{background:#faf7f1;border-color:#ddd5c6}
html[data-theme="light"] .cb-result-label{color:#5f5b53}
html[data-theme="light"] .cb-badges span{color:#3b382f;border-color:#d1c8b8;background:#fff}
html[data-theme="light"] .cb-profile{background:#faf7f1;border-color:#ddd5c6}
html[data-theme="light"] .cb-profile h4{color:#18181c}
html[data-theme="light"] .cb-profile dt{color:#5f5b53}
html[data-theme="light"] .cb-profile dd{color:#2b2924}
html[data-theme="light"] .cb-dossier dd a{color:#2f6314}
html[data-theme="light"] .cb-dossier dd code{color:#3b382f}
html[data-theme="light"] .cb-dossier h5{color:#8a5a1c}
html[data-theme="light"] .cb-dim{color:#7a766c}
html[data-theme="light"] .cb-session{background:#fff6e4;color:#4a3a1c}
html[data-theme="light"] .cb-session b{color:#7a4a08}
html[data-theme="light"] .cb-countdown-digits small,html[data-theme="light"] .cb-countdown-note{color:#5f5b53!important}
html[data-theme="light"] .cb-gate-seal{background:#eef3e6;border-color:#c9d6b8;color:#3f5b2a}
html[data-theme="light"] .cb-gate-rules li{color:#4a463f}
html[data-theme="light"] .tj-quote-heading{color:#4a463f}
html[data-theme="light"] .terminal .terminal-body .t-wait{color:#e7c28f!important}
html[data-theme="light"] .terminal .terminal-body .t-dim{color:#8fa596!important}
html[data-theme="light"] .terminal .terminal-body .t-pair{color:#d8ef83!important}
html[data-theme="light"] .tj-hero h1 em{color:#bed69f}
html[data-theme="light"] .status-filter span{background:rgba(28,60,40,.1);color:#2b4234}
html[data-theme="light"] .status-filter:hover,html[data-theme="light"] .status-filter.is-active{border-color:rgba(47,99,20,.5);background:rgba(80,140,40,.14);color:#1f4a0c}
html[data-theme="light"] .status-filter.is-active span{background:rgba(47,99,20,.18);color:#1f4a0c}
html[data-theme="light"] .cb-submit,html[data-theme="light"] .cb-submit span{color:#fff!important}
html[data-theme="light"] .tj-hero .tj-sub,html[data-theme="light"] .tj-hero p{color:#d9dfd2!important}
html[data-theme="light"] .tj-hero .tj-sign b{color:#e0b46f!important}
