/* =========================================================
   Mode sombre : automatique (réglage de l'appareil) ou forcé
   (bouton « Thème » en bas de page → html[data-theme]).
   ========================================================= */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { color-scheme: dark;
    --color-gallery-white: #161617; --color-studio-mist: #000000; --color-paper-frost: #1c1c1e; --color-hairline-silver: #3a3a3c; --color-control-gray: #2c2c2e;
    --color-ink: #f5f5f7; --color-slate: #a1a1a6; --color-steel: #a1a1a6; --color-apple-blue: #2997ff; --color-link: #2997ff; --color-pricing-blue: #0a84ff;
    --shadow-subtle: rgb(58, 58, 60) 0 0 0 1px; --shadow-subtle-2: rgb(99, 99, 102) 0 0 0 1px; } }
html[data-theme="dark"] { color-scheme: dark;
    --color-gallery-white: #161617; --color-studio-mist: #000000; --color-paper-frost: #1c1c1e; --color-hairline-silver: #3a3a3c; --color-control-gray: #2c2c2e;
    --color-ink: #f5f5f7; --color-slate: #a1a1a6; --color-steel: #a1a1a6; --color-apple-blue: #2997ff; --color-link: #2997ff; --color-pricing-blue: #0a84ff;
    --shadow-subtle: rgb(58, 58, 60) 0 0 0 1px; --shadow-subtle-2: rgb(99, 99, 102) 0 0 0 1px; }@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body { background: #000; color: #f5f5f7; }
  html:not([data-theme="light"]) .vcard, html:not([data-theme="light"]) .step__dot, html:not([data-theme="light"]) .identity, html:not([data-theme="light"]) .news__search input, html:not([data-theme="light"]) .ncard, html:not([data-theme="light"]) .hsearch, html:not([data-theme="light"]) .help__toc a.is-on, html:not([data-theme="light"]) .hsec, html:not([data-theme="light"]) .hzoom button, html:not([data-theme="light"]) .help__toc a, html:not([data-theme="light"]) .mview__btns button, html:not([data-theme="light"]) .mview__moves, html:not([data-theme="light"]) .qcard, html:not([data-theme="light"]) .seg, html:not([data-theme="light"]) .fl input, html:not([data-theme="light"]) .fl select, html:not([data-theme="light"]) .fl textarea, html:not([data-theme="light"]) .chip, html:not([data-theme="light"]) .lcard, html:not([data-theme="light"]) .lesson, html:not([data-theme="light"]) .hubcard, html:not([data-theme="light"]) .tcard, html:not([data-theme="light"]) .demobar select, html:not([data-theme="light"]) .gate__card, html:not([data-theme="light"]) .gate__card--demo .pill--outline:hover, html:not([data-theme="light"]) .xfield input, html:not([data-theme="light"]) .xfield select, html:not([data-theme="light"]) .xfield textarea, html:not([data-theme="light"]) .erp input:not([type=checkbox]):not([type=range]), html:not([data-theme="light"]) .erp select, html:not([data-theme="light"]) .erp textarea, html:not([data-theme="light"]) .pill--danger, html:not([data-theme="light"]) .xdialog, html:not([data-theme="light"]) .erp__side, html:not([data-theme="light"]) .panel, html:not([data-theme="light"]) .kpi, html:not([data-theme="light"]) .tbl th, html:not([data-theme="light"]) .mcard, html:not([data-theme="light"]) .ev__date, html:not([data-theme="light"]) .seg3, html:not([data-theme="light"]) .gal figure, html:not([data-theme="light"]) .gal-zoom button, html:not([data-theme="light"]) .ox__path .mv:hover, html:not([data-theme="light"]) .gdb__list, html:not([data-theme="light"]) .ghead, html:not([data-theme="light"]) .engine, html:not([data-theme="light"]) .engine__lines b, html:not([data-theme="light"]) .notation, html:not([data-theme="light"]) .chipbtn, html:not([data-theme="light"]) .gnotes, html:not([data-theme="light"]) .gimport, html:not([data-theme="light"]) .gtab.is-on, html:not([data-theme="light"]) .review, html:not([data-theme="light"]) .lessons li, html:not([data-theme="light"]) .mock-viewer__eval span, html:not([data-theme="light"]) .mock-viewer__moves li, html:not([data-theme="light"]) .mock-arena--big li, html:not([data-theme="light"]) .sim__result, html:not([data-theme="light"]) .mock-avail td, html:not([data-theme="light"]) .lic, html:not([data-theme="light"]) .mock-phone__screen, html:not([data-theme="light"]) .mock-ledger, html:not([data-theme="light"]) .rcard, html:not([data-theme="light"]) .gnav, html:not([data-theme="light"]) .lnav, html:not([data-theme="light"]) .hero, html:not([data-theme="light"]) .callout, html:not([data-theme="light"]) .anchors, html:not([data-theme="light"]) .hcard, html:not([data-theme="light"]) .opera, html:not([data-theme="light"]) .scard, html:not([data-theme="light"]) .screen, html:not([data-theme="light"]) .screen__side span.is-active, html:not([data-theme="light"]) .cform input, html:not([data-theme="light"]) .cform select, html:not([data-theme="light"]) .cform textarea, html:not([data-theme="light"]) .gnav__ddmenu, html:not([data-theme="light"]) .tool-empty, html:not([data-theme="light"]) .page-tool main, html:not([data-theme="light"]) .ins-ok, html:not([data-theme="light"]) .serp, html:not([data-theme="light"]) .mview, html:not([data-theme="light"]) .roles div, html:not([data-theme="light"]) .logo-edit__img, html:not([data-theme="light"]) .gal-admin figure, html:not([data-theme="light"]) input, html:not([data-theme="light"]) select, html:not([data-theme="light"]) textarea { background-color: #1c1c1e !important; color: #f5f5f7; }
  html:not([data-theme="light"]) .hsec code, html:not([data-theme="light"]) .hsec kbd, html:not([data-theme="light"]) .hshot, html:not([data-theme="light"]) .roles div, html:not([data-theme="light"]) .mview__cmt, html:not([data-theme="light"]) .mock-eval__bar span, html:not([data-theme="light"]) .ccard div, html:not([data-theme="light"]) .review__acc div, html:not([data-theme="light"]) .kpi, html:not([data-theme="light"]) .hbar i { background-color: #2c2c2e !important; color: #f5f5f7; }
  html:not([data-theme="light"]) .gnav { background: rgba(22, 22, 23, .82) !important; }
  html:not([data-theme="light"]) .gnav__mobile, html:not([data-theme="light"]) .gnav__ddmenu { background: #1c1c1e !important; }
  html:not([data-theme="light"]) .gnav__links a, html:not([data-theme="light"]) .gnav__ddbtn, html:not([data-theme="light"]) .gnav__ddmenu b, html:not([data-theme="light"]) .gnav__word { color: #f5f5f7 !important; }
  html:not([data-theme="light"]) .footer { background: #0b0b0c !important; color: #a1a1a6; }
  html:not([data-theme="light"]) .tbl td, html:not([data-theme="light"]) .tbl th { border-color: #3a3a3c !important; }
  html:not([data-theme="light"]) .tbl tr.is-click:hover td { background: #2c2c2e !important; }
  html:not([data-theme="light"]) .muted, html:not([data-theme="light"]) .tool__sub, html:not([data-theme="light"]) .hhero__sub, html:not([data-theme="light"]) .post__lead, html:not([data-theme="light"]) .tcard__sub, html:not([data-theme="light"]) .ncard__sum { color: #a1a1a6 !important; }
  html:not([data-theme="light"]) .tip { background: #0b2a4a !important; } .warn, .archive-band { background: #3a2a10 !important; }
  html:not([data-theme="light"]) .tag { background: #2c2c2e; color: #f5f5f7; }
  html:not([data-theme="light"]) .pill--outline { color: #f5f5f7 !important; box-shadow: 0 0 0 1px #636366 !important; }
  html:not([data-theme="light"]) .chip.is-on { background: #f5f5f7 !important; color: #000 !important; }
  html:not([data-theme="light"]) code, html:not([data-theme="light"]) kbd { background: #2c2c2e !important; color: #f5f5f7; }
  html:not([data-theme="light"]) a { color: inherit; } .post__body a, .hsec a, .textlink, .linkbtn, .ncard__more { color: #2997ff !important; }
  html:not([data-theme="light"]) img { filter: brightness(.92); }
  html:not([data-theme="light"]) .ox__bar .w { background: #e5e5ea !important; color: #000 !important; }
  html:not([data-theme="light"]) .hbar i, html:not([data-theme="light"]) .meter { background: #2c2c2e; } .hbar i { background: #2997ff !important; }
}
html[data-theme="dark"] body { background: #000; color: #f5f5f7; }
html[data-theme="dark"] .vcard, html[data-theme="dark"] .step__dot, html[data-theme="dark"] .identity, html[data-theme="dark"] .news__search input, html[data-theme="dark"] .ncard, html[data-theme="dark"] .hsearch, html[data-theme="dark"] .help__toc a.is-on, html[data-theme="dark"] .hsec, html[data-theme="dark"] .hzoom button, html[data-theme="dark"] .help__toc a, html[data-theme="dark"] .mview__btns button, html[data-theme="dark"] .mview__moves, html[data-theme="dark"] .qcard, html[data-theme="dark"] .seg, html[data-theme="dark"] .fl input, html[data-theme="dark"] .fl select, html[data-theme="dark"] .fl textarea, html[data-theme="dark"] .chip, html[data-theme="dark"] .lcard, html[data-theme="dark"] .lesson, html[data-theme="dark"] .hubcard, html[data-theme="dark"] .tcard, html[data-theme="dark"] .demobar select, html[data-theme="dark"] .gate__card, html[data-theme="dark"] .gate__card--demo .pill--outline:hover, html[data-theme="dark"] .xfield input, html[data-theme="dark"] .xfield select, html[data-theme="dark"] .xfield textarea, html[data-theme="dark"] .erp input:not([type=checkbox]):not([type=range]), html[data-theme="dark"] .erp select, html[data-theme="dark"] .erp textarea, html[data-theme="dark"] .pill--danger, html[data-theme="dark"] .xdialog, html[data-theme="dark"] .erp__side, html[data-theme="dark"] .panel, html[data-theme="dark"] .kpi, html[data-theme="dark"] .tbl th, html[data-theme="dark"] .mcard, html[data-theme="dark"] .ev__date, html[data-theme="dark"] .seg3, html[data-theme="dark"] .gal figure, html[data-theme="dark"] .gal-zoom button, html[data-theme="dark"] .ox__path .mv:hover, html[data-theme="dark"] .gdb__list, html[data-theme="dark"] .ghead, html[data-theme="dark"] .engine, html[data-theme="dark"] .engine__lines b, html[data-theme="dark"] .notation, html[data-theme="dark"] .chipbtn, html[data-theme="dark"] .gnotes, html[data-theme="dark"] .gimport, html[data-theme="dark"] .gtab.is-on, html[data-theme="dark"] .review, html[data-theme="dark"] .lessons li, html[data-theme="dark"] .mock-viewer__eval span, html[data-theme="dark"] .mock-viewer__moves li, html[data-theme="dark"] .mock-arena--big li, html[data-theme="dark"] .sim__result, html[data-theme="dark"] .mock-avail td, html[data-theme="dark"] .lic, html[data-theme="dark"] .mock-phone__screen, html[data-theme="dark"] .mock-ledger, html[data-theme="dark"] .rcard, html[data-theme="dark"] .gnav, html[data-theme="dark"] .lnav, html[data-theme="dark"] .hero, html[data-theme="dark"] .callout, html[data-theme="dark"] .anchors, html[data-theme="dark"] .hcard, html[data-theme="dark"] .opera, html[data-theme="dark"] .scard, html[data-theme="dark"] .screen, html[data-theme="dark"] .screen__side span.is-active, html[data-theme="dark"] .cform input, html[data-theme="dark"] .cform select, html[data-theme="dark"] .cform textarea, html[data-theme="dark"] .gnav__ddmenu, html[data-theme="dark"] .tool-empty, html[data-theme="dark"] .page-tool main, html[data-theme="dark"] .ins-ok, html[data-theme="dark"] .serp, html[data-theme="dark"] .mview, html[data-theme="dark"] .roles div, html[data-theme="dark"] .logo-edit__img, html[data-theme="dark"] .gal-admin figure, html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background-color: #1c1c1e !important; color: #f5f5f7; }
html[data-theme="dark"] .hsec code, html[data-theme="dark"] .hsec kbd, html[data-theme="dark"] .hshot, html[data-theme="dark"] .roles div, html[data-theme="dark"] .mview__cmt, html[data-theme="dark"] .mock-eval__bar span, html[data-theme="dark"] .ccard div, html[data-theme="dark"] .review__acc div, html[data-theme="dark"] .kpi, html[data-theme="dark"] .hbar i { background-color: #2c2c2e !important; color: #f5f5f7; }
html[data-theme="dark"] .gnav { background: rgba(22, 22, 23, .82) !important; }
html[data-theme="dark"] .gnav__mobile, html[data-theme="dark"] .gnav__ddmenu { background: #1c1c1e !important; }
html[data-theme="dark"] .gnav__links a, html[data-theme="dark"] .gnav__ddbtn, html[data-theme="dark"] .gnav__ddmenu b, html[data-theme="dark"] .gnav__word { color: #f5f5f7 !important; }
html[data-theme="dark"] .footer { background: #0b0b0c !important; color: #a1a1a6; }
html[data-theme="dark"] .tbl td, html[data-theme="dark"] .tbl th { border-color: #3a3a3c !important; }
html[data-theme="dark"] .tbl tr.is-click:hover td { background: #2c2c2e !important; }
html[data-theme="dark"] .muted, html[data-theme="dark"] .tool__sub, html[data-theme="dark"] .hhero__sub, html[data-theme="dark"] .post__lead, html[data-theme="dark"] .tcard__sub, html[data-theme="dark"] .ncard__sum { color: #a1a1a6 !important; }
html[data-theme="dark"] .tip { background: #0b2a4a !important; } .warn, .archive-band { background: #3a2a10 !important; }
html[data-theme="dark"] .tag { background: #2c2c2e; color: #f5f5f7; }
html[data-theme="dark"] .pill--outline { color: #f5f5f7 !important; box-shadow: 0 0 0 1px #636366 !important; }
html[data-theme="dark"] .chip.is-on { background: #f5f5f7 !important; color: #000 !important; }
html[data-theme="dark"] code, html[data-theme="dark"] kbd { background: #2c2c2e !important; color: #f5f5f7; }
html[data-theme="dark"] a { color: inherit; } .post__body a, .hsec a, .textlink, .linkbtn, .ncard__more { color: #2997ff !important; }
html[data-theme="dark"] img { filter: brightness(.92); }
html[data-theme="dark"] .ox__bar .w { background: #e5e5ea !important; color: #000 !important; }
html[data-theme="dark"] .hbar i, html[data-theme="dark"] .meter { background: #2c2c2e; } .hbar i { background: #2997ff !important; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .board3d__grid i { background: #1c1c1e !important; }
  html:not([data-theme="light"]) .board3d__grid i.d { background: #23324a !important; }
  html:not([data-theme="light"]) .board3d__grid i.b { background: #2b3f5c !important; }
  html:not([data-theme="light"]) .hero__sub, html:not([data-theme="light"]) .ahero__sub { color: #d1d1d6 !important; }
}
html[data-theme="dark"] .board3d__grid i { background: #1c1c1e !important; }
html[data-theme="dark"] .board3d__grid i.d { background: #23324a !important; }
html[data-theme="dark"] .board3d__grid i.b { background: #2b3f5c !important; }
html[data-theme="dark"] .hero__sub, html[data-theme="dark"] .ahero__sub { color: #d1d1d6 !important; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .xstep legend .mono, html:not([data-theme="light"]) .seg__glider, html:not([data-theme="light"]) .no-glider .seg input:checked + span, html:not([data-theme="light"]) .mapbtn:hover, html:not([data-theme="light"]) .toast, html:not([data-theme="light"]) .qlink:hover, html:not([data-theme="light"]) .gate__card--demo, html:not([data-theme="light"]) .erp__link.is-on, html:not([data-theme="light"]) .result-band, html:not([data-theme="light"]) .gitem.is-on, html:not([data-theme="light"]) .gboard__player.is-black::before, html:not([data-theme="light"]) .engine-toggle[aria-pressed="true"], html:not([data-theme="light"]) .engine__lines b.neg, html:not([data-theme="light"]) .chipbtn:hover, html:not([data-theme="light"]) .chipbtn--main, html:not([data-theme="light"]) .pill--outline:hover:not(:disabled), html:not([data-theme="light"]) .gnav__burger span, html:not([data-theme="light"]) .hero__scroll span { background-color: #0a64c8 !important; color: #fff !important; }
}
html[data-theme="dark"] .xstep legend .mono, html[data-theme="dark"] .seg__glider, html[data-theme="dark"] .no-glider .seg input:checked + span, html[data-theme="dark"] .mapbtn:hover, html[data-theme="dark"] .toast, html[data-theme="dark"] .qlink:hover, html[data-theme="dark"] .gate__card--demo, html[data-theme="dark"] .erp__link.is-on, html[data-theme="dark"] .result-band, html[data-theme="dark"] .gitem.is-on, html[data-theme="dark"] .gboard__player.is-black::before, html[data-theme="dark"] .engine-toggle[aria-pressed="true"], html[data-theme="dark"] .engine__lines b.neg, html[data-theme="dark"] .chipbtn:hover, html[data-theme="dark"] .chipbtn--main, html[data-theme="dark"] .pill--outline:hover:not(:disabled), html[data-theme="dark"] .gnav__burger span, html[data-theme="dark"] .hero__scroll span { background-color: #0a64c8 !important; color: #fff !important; }

@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .cl-feat div { background: #1c1c1e !important; } html:not([data-theme="light"]) .cl-feat span { color: #a1a1a6 !important; } }
html[data-theme="dark"] .cl-feat div { background: #1c1c1e !important; } html[data-theme="dark"] .cl-feat span { color: #a1a1a6 !important; }

@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .gate__clubs { background: #1c1c1e !important; color: #f5f5f7; } }
html[data-theme="dark"] .gate__clubs { background: #1c1c1e !important; color: #f5f5f7; }

@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .drive__f.is-on, html:not([data-theme="light"]) .drive__ic { color: #6cb4ff; } html:not([data-theme="light"]) .res-btns button:not(.is-on) { background: #2c2c2e; color: #f5f5f7; } }
html[data-theme="dark"] .drive__f.is-on, html[data-theme="dark"] .drive__ic { color: #6cb4ff; }
html[data-theme="dark"] .res-btns button:not(.is-on) { background: #2c2c2e; color: #f5f5f7; }
/* base joueurs */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .tag--green { background: rgba(48, 209, 88, .18); color: #7ee2a0; } }
html[data-theme="dark"] .tag--green { background: rgba(48, 209, 88, .18); color: #7ee2a0; }
