html[data-theme="light"]:has(body.mpc-module){--mpc-canvas-0_82:rgba(239,245,242,0.82);
--mpc-wash-0_05:rgba(24,90,82,0.05);
--mpc-wash-0_1:rgba(24,90,82,0.1);
--mpc-wash-0_04:rgba(24,90,82,0.035);
--mpc-wash-0_07:rgba(24,90,82,0.07);
--mpc-ink-1:rgba(22,47,49,1);
--mpc-raised-1:rgba(245,249,246,1);
--mpc-surface-1:rgba(255,255,255,1);
--mpc-surface-0_82:rgba(255,255,255,0.82);
--mpc-surface-0_88:rgba(255,255,255,0.88);
--mpc-shadow-0_6:rgba(15,48,47,0.12);
--mpc-wash-0_06:rgba(24,90,82,0.06);
--mpc-surface-0_7:rgba(255,255,255,0.7);
--mpc-ink-0_86:rgba(22,47,49,0.86);
--mpc-surface-0_62:rgba(255,255,255,0.62);
--mpc-shadow-0_55:rgba(15,48,47,0.12);
--mpc-ink-0_75:rgba(22,47,49,0.75);
--mpc-line-0_14:rgba(24,65,66,0.14);
--mpc-surface-0_78:rgba(255,255,255,0.78);
--mpc-ink-0_8:rgba(22,47,49,0.8);
--mpc-shade-0_28:rgba(23,65,62,0.28);
--mpc-line-0_1:rgba(24,65,66,0.1);
--mpc-canvas-0_75:rgba(239,245,242,0.75);
--mpc-canvas-1:rgba(239,245,242,1);
--mpc-canvas-0_72:rgba(239,245,242,0.72);
--mpc-line-0_08:rgba(24,65,66,0.08);
--mpc-ink-0_72:rgba(22,47,49,0.72);
--mpc-ink-0_4:rgba(22,47,49,0.4);
--mpc-line-0_06:rgba(24,65,66,0.06);
--mpc-ink-0_62:rgba(22,47,49,0.62);
--mpc-shade-0_12:rgba(23,65,62,0.12);
--mpc-shade-0_44:rgba(23,65,62,0.44);
--mpc-shade-0_25:rgba(23,65,62,0.25);
--mpc-shade-0_06:rgba(23,65,62,0.06);
--mpc-shade-0_2:rgba(23,65,62,0.2);
--mpc-canvas-0_74:rgba(239,245,242,0.74);
--mpc-shade-0_34:rgba(23,65,62,0.34);
--mpc-ink-0_88:rgba(22,47,49,0.88);
--mpc-line-0_13:rgba(24,65,66,0.13);
--mpc-line-0_12:rgba(24,65,66,0.12);
--mpc-canvas-0_97:rgba(239,245,242,0.97);
--mpc-shadow-0_65:rgba(15,48,47,0.12);
--mpc-canvas-0_93:rgba(239,245,242,0.93);
--mpc-canvas-0_9:rgba(239,245,242,0.9);
--mpc-surface-0_72:rgba(255,255,255,0.72);
--mpc-canvas-0_6:rgba(239,245,242,0.6);
--mpc-shadow-0_34:rgba(15,48,47,0.12);
--mpc-shadow-0_92:rgba(15,48,47,0.12);
--mpc-ink-0_45:rgba(22,47,49,0.45);
--mpc-surface-0_65:rgba(255,255,255,0.65);
--mpc-ink-0_55:rgba(22,47,49,0.55);
--mpc-surface-0_55:rgba(255,255,255,0.55);
--mpc-line-0_16:rgba(24,65,66,0.16);
--mpc-line-0_35:rgba(24,65,66,0.35);
--mpc-shade-0_35:rgba(23,65,62,0.35);
--mpc-line-0_2:rgba(24,65,66,0.2);
--mpc-shadow-0_35:rgba(15,48,47,0.12);
--mpc-shade-0_24:rgba(23,65,62,0.24);
--mpc-surface-0_74:rgba(255,255,255,0.74);
--mpc-canvas-0_62:rgba(239,245,242,0.62);
--mpc-line-0_11:rgba(24,65,66,0.11);
--mpc-shadow-0_58:rgba(15,48,47,0.12);
--mpc-ink-0_78:rgba(22,47,49,0.78);
--mpc-shadow-0_4:rgba(15,48,47,0.12);
--mpc-shade-0_42:rgba(23,65,62,0.42);
--mpc-muted-1:rgba(80,105,107,1);
--mpc-shadow-0_3:rgba(15,48,47,0.12);
--mpc-shadow-0_45:rgba(15,48,47,0.12);
--mpc-shade-0_3:rgba(23,65,62,0.3);
--mpc-shadow-0_28:rgba(15,48,47,0.12);
--mpc-wash-0_18:rgba(24,90,82,0.18);
--mpc-shade-0_22:rgba(23,65,62,0.22);
--mpc-canvas-0_58:rgba(239,245,242,0.58);
--mpc-ink-0_28:rgba(22,47,49,0.28);
--mpc-ink-0_82:rgba(22,47,49,0.82);
--mpc-shade-0_45:rgba(23,65,62,0.45);
--mpc-shadow-0_25:rgba(15,48,47,0.12);
--mpc-wash-0_14:rgba(24,90,82,0.14);
--mpc-line-0_28:rgba(24,65,66,0.28);
--mpc-ink-0_5:rgba(22,47,49,0.5);
--mpc-line-0_95:rgba(24,65,66,0.95);
--mpc-line-0_92:rgba(24,65,66,0.92);
--mpc-ink-0_76:rgba(22,47,49,0.76);
--mpc-canvas-0_78:rgba(239,245,242,0.78);
--mpc-line-0_25:rgba(24,65,66,0.25);
--mpc-canvas-0_65:rgba(239,245,242,0.65);
--mpc-shadow-0_42:rgba(15,48,47,0.12);
--mpc-shadow-0_75:rgba(15,48,47,0.12);
--mpc-shadow-1:rgba(15,48,47,0.12);
--mpc-wash-0_02:rgba(24,90,82,0.022);
--mpc-shadow-0_24:rgba(15,48,47,0.12);
--mpc-canvas-0_5:rgba(239,245,242,0.5);
--mpc-canvas-0_88:rgba(239,245,242,0.88);
--mpc-canvas-0_94:rgba(239,245,242,0.94);
--mpc-shadow-0_62:rgba(15,48,47,0.12);
--mpc-line-0_09:rgba(24,65,66,0.09);
--mpc-shadow-0_36:rgba(15,48,47,0.12);
--mpc-shadow-0_5:rgba(15,48,47,0.12);
--mpc-line-0_4:rgba(24,65,66,0.4);
--mpc-line-0_3:rgba(24,65,66,0.3);
--mpc-ink-0_68:rgba(22,47,49,0.68);
--mpc-wash-0_12:rgba(24,90,82,0.12);
--mpc-line-0_18:rgba(24,65,66,0.18);
--mpc-wash-0_08:rgba(24,90,82,0.08);
--mpc-ink-0_85:rgba(22,47,49,0.85);
--mpc-shade-0_4:rgba(23,65,62,0.4);
--mpc-surface-0_92:rgba(255,255,255,0.92);
--mpc-ink-0_7:rgba(22,47,49,0.7);
--mpc-line-1:rgba(24,65,66,1);
--mpc-shadow-0_7:rgba(15,48,47,0.12);
--mpc-raised-0_82:rgba(245,249,246,0.82);
--mpc-raised-0_85:rgba(245,249,246,0.85);
--mpc-wash-0_38:rgba(24,90,82,0.38);
--mpc-surface-0_85:rgba(255,255,255,0.85);
--mpc-line-0_55:rgba(24,65,66,0.55);
--mpc-line-0_15:rgba(24,65,66,0.15);
--mpc-raised-0_97:rgba(245,249,246,0.97);
--mpc-raised-0_55:rgba(245,249,246,0.55);
--mpc-wash-0_03:rgba(24,90,82,0.03);
--mpc-wash-0_09:rgba(24,90,82,0.09);
--mpc-ink-0_6:rgba(22,47,49,0.6);
--mpc-surface-0_8:rgba(255,255,255,0.8);
--mpc-ink-0_18:rgba(22,47,49,0.18);
--mpc-wash-0_22:rgba(24,90,82,0.22);
--mpc-ink-0_15:rgba(22,47,49,0.15);
--mpc-ink-0_2:rgba(22,47,49,0.2);
--mpc-ink-0_48:rgba(22,47,49,0.48);
--mpc-ink-0_65:rgba(22,47,49,0.65);
--mpc-shadow-0_9:rgba(15,48,47,0.12);
--mpc-shadow-0_94:rgba(15,48,47,0.12);
--mpc-raised-0_9:rgba(245,249,246,0.9);
--mpc-surface-0_9:rgba(255,255,255,0.9);
--mpc-ink-0_66:rgba(22,47,49,0.66);
--mpc-surface-0_96:rgba(255,255,255,0.96);
--mpc-canvas-0_99:rgba(239,245,242,0.99);
--mpc-surface-0_98:rgba(255,255,255,0.98);
--mpc-ink-0_36:rgba(22,47,49,0.36);
--mpc-canvas-0_98:rgba(239,245,242,0.98);
--mpc-ink-0_58:rgba(22,47,49,0.58);
--mpc-canvas-0_95:rgba(239,245,242,0.95);
--mpc-canvas-0_96:rgba(239,245,242,0.96);
--mpc-shadow-0_2:rgba(15,48,47,0.12);
--mpc-wash-0_01:rgba(24,90,82,0.012);
--mpc-canvas-0_76:rgba(239,245,242,0.76);
--mpc-shadow-0_18:rgba(15,48,47,0.12);
--mpc-shade-0_18:rgba(23,65,62,0.18);
--mpc-ink-0_52:rgba(22,47,49,0.52);
--mpc-wash-0_16:rgba(24,90,82,0.16);
--mpc-shadow-0_16:rgba(15,48,47,0.12);
--mpc-canvas-0_92:rgba(239,245,242,0.92);
--mpc-line-0_07:rgba(24,65,66,0.07);
--mpc-surface-0_86:rgba(255,255,255,0.86);
--mpc-surface-0_94:rgba(255,255,255,0.94);
--mpc-shadow-0_48:rgba(15,48,47,0.12);
--mpc-ink-0_74:rgba(22,47,49,0.74);
--mpc-raised-0_96:rgba(245,249,246,0.96);
--mpc-ink-0_46:rgba(22,47,49,0.46);
--mpc-raised-0_95:rgba(245,249,246,0.95);
--mpc-surface-0_95:rgba(255,255,255,0.95);
--mpc-ink-0_54:rgba(22,47,49,0.54);
--mpc-shadow-0_22:rgba(15,48,47,0.12);
--mpc-ink-0_42:rgba(22,47,49,0.42);
--mpc-shadow-0_52:rgba(15,48,47,0.12);
--mpc-line-0_05:rgba(24,65,66,0.05);
--mpc-surface-0_99:rgba(255,255,255,0.99);
--mpc-ink-0_38:rgba(22,47,49,0.38);
--mpc-wash-0_11:rgba(24,90,82,0.105);
--mpc-shadow-0_32:rgba(15,48,47,0.12);
--mpc-wash-0_13:rgba(24,90,82,0.13);
--mpc-ink-0_35:rgba(22,47,49,0.35);
--mpc-surface-0_84:rgba(255,255,255,0.84);
--mpc-shade-0_08:rgba(23,65,62,0.08);
--mpc-shadow-0_1:rgba(15,48,47,0.1);
--mpc-surface-0_76:rgba(255,255,255,0.76);
--mpc-line-0_03:rgba(24,65,66,0.03);
--mpc-raised-0_98:rgba(245,249,246,0.98);
--mpc-shadow-0_68:rgba(15,48,47,0.12);
--mpc-line-0_45:rgba(24,65,66,0.45);
--mpc-canvas-0_55:rgba(239,245,242,0.55);
--mpc-shade-0_32:rgba(23,65,62,0.32);
--mpc-shade-0:rgba(23,65,62,0);
--mpc-canvas-0_7:rgba(239,245,242,0.7);
--mpc-canvas-0_85:rgba(239,245,242,0.85);
--mpc-raised-0_88:rgba(245,249,246,0.88);
--mpc-canvas-0_8:rgba(239,245,242,0.8);
--mpc-canvas-0_66:rgba(239,245,242,0.66);
--mpc-shade-0_05:rgba(23,65,62,0.05);
--mpc-shade-0_15:rgba(23,65,62,0.15);
--mpc-shadow-0_76:rgba(15,48,47,0.12);
--mpc-ink-0_84:rgba(22,47,49,0.84);
--mpc-shade-0_46:rgba(23,65,62,0.46);
--mpc-shadow-0_38:rgba(15,48,47,0.12);
--mpc-surface-0_6:rgba(255,255,255,0.6);
--mpc-ink-0_92:rgba(22,47,49,0.92);
--mpc-surface-0_66:rgba(255,255,255,0.66);
--mpc-accent:#176c55;--mpc-paper:#fff;--mpc-ink:#162f31;--mpc-border:rgba(24,65,66,.15);--mpc-elevation:0 16px 45px rgba(15,48,47,.07);color-scheme:light;
--bg:#eff5f2;--bg2:#e4efea;--text:#162f31;--muted:#50696b;--gold:#176c55;--gold2:#257f65;--purple:#176c55;--purple2:#257f65;--green:#176c55;--red:#bd343a;--panel:#fff;--panel2:#f5f9f6;--line:rgba(24,65,66,.15);--card:linear-gradient(145deg,#fff,#f5f9f6);--card-bg:linear-gradient(145deg,#fff,#f5f9f6);--card-bg-soft:#e6f0ea;--card-border:rgba(24,65,66,.15);--card-border-strong:rgba(23,108,85,.35);--card-border-hover:#257f65;--card-shadow:var(--mpc-elevation);--card-shadow-soft:var(--mpc-elevation);--shadow:var(--mpc-elevation)}
/* Charte connectée. Toutes les règles sont limitées au clair. */
/* Le contrôle ajouté au changement de thème reste hors du flux dans les deux modes. */
.mpc-module>.mpc-theme-switch{position:fixed;right:20px;bottom:18px;z-index:2000}
html[data-theme="light"] body.mpc-module{
 color-scheme:light;color:#101d22;
 background:#d3f0ef url('/assets/img/bg-light-desktop-v2.webp') right center / cover fixed!important;
 --ft-card:rgba(255,255,255,.96);--ft-border:#bfd1d4;--ft-border-gold:#9d77b2;
 --ft-text:#101d22;--ft-muted:#3c5059;--ft-faint:#52636b;--ft-gold:#641b83;--ft-gold2:#9d245d;--ft-gold-soft:#efe5f4;
 --ft-green:#096846;--ft-red:#ad263e;
 --sa-bg:#e8f4f3;--sa-bg2:#f7faf9;--sa-text:#101d22;--sa-muted:#3c5059;
 --sa-purple:#641b83;--sa-purple2:#9d245d;--sa-gold:#641b83;--sa-gold2:#9d245d;--sa-green:#096846;--sa-red:#ad263e;
 --sa-card-bg:rgba(255,255,255,.96);--sa-card-border:#bfd1d4;--sa-card-border-strong:#9d77b2;--sa-card-border-hover:#641b83;
 --sa-shadow:0 12px 32px #123d3a18;
}
html[data-theme="light"] .mpc-module .sa-bg-photo{display:none}
html[data-theme="light"] body.mpc-module::before,html[data-theme="light"] body.mpc-module::after{display:none!important}
html[data-theme="light"] .mpc-module :is(h1,h2,h3,h4){-webkit-text-fill-color:currentColor!important;background-image:none!important}
html[data-theme="light"] .mpc-module :is(.ft-menu-btn,.sa-menu-btn){color:#1b3038!important}
html[data-theme="light"] .mpc-module :is(.ft-menu-btn,.sa-menu-btn) span{background:#1b3038!important}
html[data-theme="light"] .mpc-module .mobile-menu-btn span{background:#1b3038!important}
html[data-theme="light"] .mpc-module .brand>span{color:#101d22!important}
html[data-theme="light"] .mpc-module .brand>span>span{background:linear-gradient(90deg,#45108a,#8c168b 48%,#bc245b)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}
html[data-theme="light"] .mpc-module .sa-top-brand>span{background:none!important;color:#101d22!important;-webkit-text-fill-color:#101d22!important}
html[data-theme="light"] .mpc-module .sa-top-brand>span>b{-webkit-text-fill-color:transparent!important}
html[data-theme="light"] .mpc-module :is(.sa-hub-tile,.sa-alert){background:rgba(255,255,255,.96)!important;color:#101d22!important;border-color:#bfd1d4!important}
html[data-theme="light"] .mpc-module :is(.sa-hub-group>p,.ft-page-head p,.page-sub){color:#101d22!important}
html[data-theme="light"] .mpc-module :is(.page-title,.sa-page-title,.ft-title){background:none!important;-webkit-text-fill-color:#101d22!important}
html[data-theme="light"] .mpc-module :is(.site-nav,.sidebar) img[src$=".svg"]{filter:brightness(0) saturate(100%)!important}
@media print{html[data-theme="light"] body.mpc-module{background:white!important;color:black!important}html[data-theme="light"] .mpc-module .mpc-theme-switch{display:none!important}}
html[data-theme="light"] .mpc-module .mpc-theme-switch{position:fixed;right:20px;bottom:18px;z-index:2000;border:1px solid #c0ced2;border-radius:30px;background:#fff;color:#25363d;padding:12px 18px;font:600 13px system-ui;box-shadow:0 4px 18px #173b3b20;cursor:pointer}
html[data-theme="light"] .mpc-module .site-nav,html[data-theme="light"] .mpc-module .nav-more-panel{background:rgba(249,252,251,.98)!important;color:#20323b!important}
html[data-theme="light"] .mpc-module :is(h1,h2,h3,h4,.page-title,.sa-page-title,.ft-title){color:#101d22!important;text-shadow:none!important}
html[data-theme="light"] .mpc-module :is(p,label,td,th,.page-sub,.sa-stat-sub,.sa-stat-label,.sa-user-role,.ft-muted,.muted){color:#32464e}
html[data-theme="light"] .mpc-module :is(h1,h2,h3,.page-title) :is(strong,.accent),
html[data-theme="light"] .mpc-module :is(.brand-name,.logo-text,.ft-brand-name,.sa-top-brand,.sa-brand-text) :is(b,strong,span){
 background:linear-gradient(90deg,#45108a 0%,#8c168b 48%,#bc245b 100%)!important;
 background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent;
 width:fit-content;padding:.06em .12em .12em .03em;margin:-.06em -.12em -.12em -.03em;box-sizing:content-box;max-width:calc(100% - .15em);overflow:visible;
}
html[data-theme="light"] .mpc-module :is(.brand-name,.logo-text,.ft-brand-name,.sa-top-brand,.sa-brand-text){color:#101d22!important}
html[data-theme="light"] .mpc-module :is(.site-header,.ft-header,.sa-top,.sa-topbar,.sa-sidebar,.sidebar,.sidebar-inner,.ft-nav,.nav-panel,.mobile-menu){background:rgba(249,252,251,.97)!important;color:#101d22!important;border-color:#bfd1d4!important}
html[data-theme="light"] .mpc-module :is(.site-header,.ft-header,.sa-top,.sa-topbar,.sa-sidebar,.sidebar,.ft-nav) a{color:#243b43}
html[data-theme="light"] .mpc-module :is(.sidebar-item.active,.sa-nav-item.active,.ft-nav a.active){background:#eee3f4!important;color:#5b177a!important;border-color:#a276b5!important}
html[data-theme="light"] .mpc-module :is(.page-card,.card,.panel,.team-card,.add-team-card,.sa-card,.sa-stat-card,.ft-card,.ft-stat,.modal-content,.custom-select-menu){background:rgba(255,255,255,.96)!important;border-color:#bfd1d4!important;color:#101d22}
html[data-theme="light"] .mpc-module :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea,.custom-select-btn){background:#fff!important;color:#101d22!important;border-color:#9eb6bd!important;color-scheme:light}
html[data-theme="light"] .mpc-module ::placeholder{color:#52646c;opacity:1}
html[data-theme="light"] .mpc-module :is(table,thead,tbody,tr,th,td){border-color:#c3d1d5}
html[data-theme="light"] .mpc-module :is(thead,th){background:#edf2f5!important;color:#25333e!important}
html[data-theme="light"] .mpc-module tbody tr:nth-child(even){background:#eef5f580}
html[data-theme="light"] .mpc-module :is(.sa-btn,.ft-btn,.btn,.custom-select-item){color:#33233f;border-color:#b697c6}
html[data-theme="light"] .mpc-module :is(.sa-btn-primary,.ft-btn-primary,.btn-primary,.team-save,.team-save-premium,.add-team-btn){background:linear-gradient(90deg,#45108a,#8c168b,#a62157)!important;color:#fff!important;border-color:#641b83!important}
html[data-theme="light"] .mpc-module :is(.sa-badge-green,.badge-success,.status-active){color:#075b3c!important;background:#def3e7!important}
html[data-theme="light"] .mpc-module :is(.sa-badge-red,.badge-danger,.error){color:#9a1732!important;background:#fbe5ea!important}
html[data-theme="light"] .mpc-module :is(button,a,input,select,textarea):focus-visible{outline:3px solid #752399;outline-offset:3px}
@media(max-width:800px){html[data-theme="light"] body.mpc-module{background-image:url('/assets/img/bg-light-mobile-v2.webp')!important;background-position:center top!important}}

/* ===== Corrections de lisibilite (mode clair uniquement) =====
   Ajoutees apres test : textes sur fond rouge/violet, sous-titres pales,
   textes poses sur la photo (halo clair, sans panneau), icones du menu Float Tube. */
html[data-theme="light"] body.mpc-module .config-message.err,
html[data-theme="light"] body.mpc-module .config-message.err strong,
html[data-theme="light"] body.mpc-module .team-badge,
html[data-theme="light"] body.mpc-module .invoice-actions button{color:#fff}

html[data-theme="light"] body.mpc-module .ft-brand-sub{color:rgba(22,47,49,.78)}
html[data-theme="light"] body.mpc-module .ft-subtitle{color:rgba(22,47,49,.86);text-shadow:0 0 5px rgba(255,255,255,.95),0 0 2px rgba(255,255,255,.95)}
html[data-theme="light"] body.mpc-module .ft-footer{color:rgba(22,47,49,.9);text-shadow:0 0 6px rgba(255,255,255,.95),0 0 2px rgba(255,255,255,.95)}
html[data-theme="light"] body.mpc-module .sa-hub-head p,
html[data-theme="light"] body.mpc-module .sa-hub-group h3 span{color:rgba(22,47,49,.9);text-shadow:0 0 5px rgba(255,255,255,.95),0 0 2px rgba(255,255,255,.95)}

html[data-theme="light"] body.mpc-module .ft-nav a:not(.ft-nav-logout) img{filter:brightness(0) opacity(.78)}
html[data-theme="light"] body.mpc-module .ft-nav a.active img{filter:brightness(0) opacity(.9)}
html[data-theme="light"] body.mpc-module .ft-nav a.ft-nav-logout img{filter:brightness(0) opacity(.78)}
html[data-theme="light"] body.mpc-module .config-message.err{background:#c81e1e}
html[data-theme="light"] body.mpc-module .site-nav a img{filter:brightness(0) opacity(.78)}
html[data-theme="light"] body.mpc-module .site-nav a.active img{filter:brightness(0) opacity(.9)}
html[data-theme="light"] body.mpc-module .saisie-mini-img{filter:brightness(0) opacity(.75)}

/* Pas de grande carte blanche derriere les titres des pages de configuration : le titre est pose sur la photo, comme sur les pages publiques.
   Les cartes de contenu (Acces en direct, Etat...) restent blanches. */
html[data-theme="light"] body.mpc-module .page-card:has(> .cfg-backlink),
html[data-theme="light"] body.mpc-module .page-card:has(.cfg-hub),
html[data-theme="light"] body.mpc-module .page-card:has(> .page-title + .page-sub),
html[data-theme="light"] body.mpc-module .page-card:has(> .page-content),
html[data-theme="light"] body.mpc-module .page-card:has(.classement-title-row),
html[data-theme="light"] body.mpc-module .page-card:has(> .tr-head){background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:0 0 6px rgba(255,255,255,.95),0 0 2px rgba(255,255,255,.95)}
/* Les autres cartes restent des cartes : on les rend bien lisibles sur la photo */
html[data-theme="light"] body.mpc-module .cfg-tile,
html[data-theme="light"] body.mpc-module .cfg-tile.is-off{background:rgba(255,255,255,.96)!important;opacity:1!important}
html[data-theme="light"] body.mpc-module .cfg-tile.is-off .cfg-t,
html[data-theme="light"] body.mpc-module .cfg-tile.is-off .cfg-d{color:#51676d!important}
html[data-theme="light"] body.mpc-module .cfg-now,
html[data-theme="light"] body.mpc-module .orga-limit-card,
html[data-theme="light"] body.mpc-module .orga-limit-info,
html[data-theme="light"] body.mpc-module .add-team-card,
html[data-theme="light"] body.mpc-module .acc-item,
html[data-theme="light"] body.mpc-module .acc-big,
html[data-theme="light"] body.mpc-module .commissaire-stat-card,
html[data-theme="light"] body.mpc-module .tr-hint{background-color:rgba(255,255,255,.95)!important}
html[data-theme="light"] body.mpc-module .page-card a:not([class]){color:#7a4b00}

/* Textes dores (illisibles sur fond clair) : couleur ambre fonce, mode clair uniquement */
html[data-theme="light"] body.mpc-module .acc-live.off,
html[data-theme="light"] body.mpc-module .avis-title,
html[data-theme="light"] body.mpc-module .cfg-backlink:hover,
html[data-theme="light"] body.mpc-module .cfg-badge,
html[data-theme="light"] body.mpc-module .cfg-block-head h2,
html[data-theme="light"] body.mpc-module .cfg-now-label,
html[data-theme="light"] body.mpc-module .cfg-now-stats strong,
html[data-theme="light"] body.mpc-module .classement-alert-warn,
html[data-theme="light"] body.mpc-module .classement-espece strong,
html[data-theme="light"] body.mpc-module .classement-kpi em,
html[data-theme="light"] body.mpc-module .classement-mobile-details span,
html[data-theme="light"] body.mpc-module .classement-mobile-head span,
html[data-theme="light"] body.mpc-module .classement-mobile-weight,
html[data-theme="light"] body.mpc-module .classement-table th,
html[data-theme="light"] body.mpc-module .classement-weight,
html[data-theme="light"] body.mpc-module .cm-add summary,
html[data-theme="light"] body.mpc-module .commissaire-form-error,
html[data-theme="light"] body.mpc-module .commissaire-label,
html[data-theme="light"] body.mpc-module .commissaire-stat-card strong,
html[data-theme="light"] body.mpc-module .config-badge,
html[data-theme="light"] body.mpc-module .config-card-count,
html[data-theme="light"] body.mpc-module .config-code,
html[data-theme="light"] body.mpc-module .config-file-upload-text,
html[data-theme="light"] body.mpc-module .config-mini-title,
html[data-theme="light"] body.mpc-module .ft-badge-joker,
html[data-theme="light"] body.mpc-module .ft-espece input:checked + span b,
html[data-theme="light"] body.mpc-module .ft-export-title span,
html[data-theme="light"] body.mpc-module .ft-field > label,
html[data-theme="light"] body.mpc-module .ft-gold,
html[data-theme="light"] body.mpc-module .ft-group-title,
html[data-theme="light"] body.mpc-module .ft-label,
html[data-theme="light"] body.mpc-module .ft-podium-score,
html[data-theme="light"] body.mpc-module .ft-preview.joker,
html[data-theme="light"] body.mpc-module .ft-score-pill b,
html[data-theme="light"] body.mpc-module .ft-stat-label,
html[data-theme="light"] body.mpc-module .ft-status-wait,
html[data-theme="light"] body.mpc-module .ft-table th,
html[data-theme="light"] body.mpc-module .ft-table-cards td[data-label]::before,
html[data-theme="light"] body.mpc-module .map-status,
html[data-theme="light"] body.mpc-module .orga-limit-info strong,
html[data-theme="light"] body.mpc-module .orga-quota-title,
html[data-theme="light"] body.mpc-module .pain-widget-stat strong,
html[data-theme="light"] body.mpc-module .photos-item a,
html[data-theme="light"] body.mpc-module .prise-badge,
html[data-theme="light"] body.mpc-module .prise-qty-card strong,
html[data-theme="light"] body.mpc-module .prises-panel-title,
html[data-theme="light"] body.mpc-module .saisie-return-btn,
html[data-theme="light"] body.mpc-module .saisie-success-title,
html[data-theme="light"] body.mpc-module .signature-error,
html[data-theme="light"] body.mpc-module .stat-box span,
html[data-theme="light"] body.mpc-module .tg-badge,
html[data-theme="light"] body.mpc-module .tg-mode.is-on,
html[data-theme="light"] body.mpc-module .tg-rank,
html[data-theme="light"] body.mpc-module .tg-stat strong{color:#7a4b00!important}
html[data-theme="light"] body.mpc-module .ft-table-cards td[data-label]::before{color:#7a4b00!important}

/* Carte du titre cote commissaire : retiree comme les autres ; ses blocs restent des cartes blanches */
html[data-theme="light"] body.mpc-module .commissaire-hero,
html[data-theme="light"] body.mpc-module .commissaire-classement-hero{background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:0 0 6px rgba(255,255,255,.95),0 0 2px rgba(255,255,255,.95)}
/* Cartes de classement : plus opaques pour rester lisibles sur la photo */
html[data-theme="light"] body.mpc-module .classement-kpi,
html[data-theme="light"] body.mpc-module .classement-table-card,
html[data-theme="light"] body.mpc-module [class*="saisie-mini-row"]{background-color:rgba(255,255,255,.95)!important}
/* Badge d'etat (En cours, Terminee...) pose sur la photo */
html[data-theme="light"] body.mpc-module .classement-status{background:rgba(255,255,255,.94)!important;color:#14683a!important;border:1px solid rgba(20,104,58,.5)!important;padding:2px 10px!important;border-radius:999px!important;text-shadow:none!important}
html[data-theme="light"] body.mpc-module .commissaire-hero .page-sub{color:#10222b!important}

/* Cartes ouvertes de la page de configuration (Association, Deroule, Sponsors...) : elles s'appuyaient sur la grande carte retiree, elles redeviennent des cartes blanches */
html[data-theme="light"] body.mpc-module .page-card:has(.cfg-hub) .config-card{background:rgba(255,255,255,.97)!important;border:1px solid rgba(24,65,66,.16)!important;border-radius:18px!important;box-shadow:0 10px 28px rgba(15,48,47,.12)!important;text-shadow:none!important}
html[data-theme="light"] body.mpc-module .page-card:has(.cfg-hub) .config-card *{text-shadow:none!important}
/* Bouton de retour sur la photo */
html[data-theme="light"] body.mpc-module .cfg-backlink{background:rgba(255,255,255,.93)!important;color:#0f2230!important;border-color:rgba(24,65,66,.28)!important;text-shadow:none!important}
/* Sous-titres et textes poses sur la photo : plus fonces */
html[data-theme="light"] body.mpc-module .commissaire-sub,
html[data-theme="light"] body.mpc-module .commissaire-name,
html[data-theme="light"] body.mpc-module .qr-follow-box p{color:#10222b!important;opacity:1!important}

/* Configuration : même contraste que Registre & signatures, y compris les panneaux du hub. */
html[data-theme="light"] body.mpc-module .cfgp .config-cards-grid.config-has-open .config-card.open .config-card-title,
html[data-theme="light"] body.mpc-module .cfgp .page-title {
    color:#0f2230!important;
    background:none!important;
    -webkit-text-fill-color:#0f2230!important;
}
html[data-theme="light"] body.mpc-module .cfgp .config-cards-grid.config-has-open .config-card.open .config-card-sub,
html[data-theme="light"] body.mpc-module .cfgp .page-sub {color:#344f5d!important;-webkit-text-fill-color:currentColor!important}
html[data-theme="light"] body.mpc-module .cfgp .cfg-back {
    background:rgba(255,255,255,.93)!important;
    color:#0f2230!important;
    border-color:rgba(24,65,66,.28)!important;
    text-shadow:none!important;
}
html[data-theme="light"] body.mpc-module .cfgp .config-cards-grid.config-has-open .config-card.open .config-card-edit,
html[data-theme="light"] body.mpc-module .cfgp > .page-card ~ .page-card,
html[data-theme="light"] body.mpc-module .cfgp .page-card .page-card,
html[data-theme="light"] body.mpc-module .cfgp .tr-mapcol,
html[data-theme="light"] body.mpc-module .cfgp .tr-side {
    background:rgba(255,255,255,.96)!important;
    color:#0f2230!important;
    border-color:rgba(24,65,66,.18)!important;
    text-shadow:none!important;
}
html[data-theme="light"] body.mpc-module .cfgp :is(.config-mini-title,.config-mini-sub,.config-card-edit label,.cfg-choice-t,.cfg-choice-d,.tr-title) {
    color:#0f2230!important;
    -webkit-text-fill-color:currentColor!important;
}
html[data-theme="light"] body.mpc-module .cfgp .cfg-choice {background:#f3f7f6!important;color:#0f2230!important;border-color:#c5d5d3!important}
html[data-theme="light"] body.mpc-module .cfgp .cfg-choice:has(input:checked) {background:#fff4d9!important;border-color:#ad7618!important}

/* Les en-têtes ouverts restent transparents, comme celui du registre. */
html[data-theme="light"] body.mpc-module .cfgp .config-cards-grid.config-has-open .config-card.open,
html[data-theme="light"] body.mpc-module .cfgp .config-cards-grid.config-has-open .config-card.open > .config-card-header {
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}
