/* ZeroTouch, contrôles publics (langue + thème) et thème sombre. */
.hdr-tools{display:inline-flex;align-items:center;gap:10px;margin-left:8px}
.lang-sel{appearance:none;-webkit-appearance:none;border:1px solid var(--line,#e6ebf0);border-radius:999px;background:transparent;color:var(--ink-2,#536a7e);font:inherit;font-size:12.5px;font-weight:700;padding:7px 26px 7px 12px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237488a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:14px}
.theme-tg{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line,#e6ebf0);border-radius:10px;background:transparent;color:var(--ink-2,#536a7e);cursor:pointer}
.theme-tg:hover{color:var(--ink,#1b2733)}
.theme-tg .ic-moon{display:none}
html[data-theme="dark"] .theme-tg .ic-sun{display:none}
html[data-theme="dark"] .theme-tg .ic-moon{display:inline}

/* ---- thème sombre : tokens (marketing, app.css) ---- */
html[data-theme="dark"]{--bg:#0a1726;--bg-elevated:#0f2236;--bg-sunken:#0c1d2e;--white:#0f2236;
  --ink:#e8f0f6;--ink-2:#9fb0c2;--ink-3:#7488a0;--line:#20374e;--accent-soft:#0e2b33;
  --shadow-xs:0 1px 2px rgba(0,0,0,.4);--shadow-sm:0 2px 6px rgba(0,0,0,.4);--shadow-md:0 8px 24px rgba(0,0,0,.5);
  --shadow-lg:0 22px 48px rgba(0,0,0,.6);color-scheme:dark}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
/* en-tête partagé */
html[data-theme="dark"] .site-header{background:rgba(10,23,38,.85);border-bottom-color:#20374e}
html[data-theme="dark"] .brand span{color:#e8f0f6 !important}
html[data-theme="dark"] .brand__logo path:first-child{stroke:#e8f0f6}
html[data-theme="dark"] .lang-sel{color:#cfe0ee;border-color:#2b425a}
html[data-theme="dark"] .theme-tg{color:#cfe0ee;border-color:#2b425a}
/* bandes marine (marketing) qui utilisent --white comme texte clair */
html[data-theme="dark"] .hero{background:radial-gradient(120% 90% at 88% -10%,rgba(24,201,196,.14),transparent 55%),radial-gradient(90% 70% at -5% 0%,rgba(83,106,126,.12),transparent 50%),#0a1726}
html[data-theme="dark"] .cta-band h2,html[data-theme="dark"] .cta-band .btn--ghost,html[data-theme="dark"] .compare thead .col-us{color:#eaf2f7}
/* ---- thème sombre : surfaces blog + légal (CSS autoportant) ---- */
html[data-theme="dark"] .post,html[data-theme="dark"] .pdfbar,html[data-theme="dark"] .legal-body table{background:#0f2236;border-color:#20374e}
html[data-theme="dark"] .aide{background:linear-gradient(180deg,#0e2531,#0f2236);border-color:#23414a}
html[data-theme="dark"] .note{background:#0f2236;border-color:#20374e;color:#9fb0c2}
html[data-theme="dark"] .post h3,html[data-theme="dark"] article h2,html[data-theme="dark"] .aide h3,html[data-theme="dark"] .legal-body h2,html[data-theme="dark"] .legal-body h3,html[data-theme="dark"] .pdfbar b,html[data-theme="dark"] .ident b{color:#e8f0f6}
html[data-theme="dark"] .post p,html[data-theme="dark"] .lead,html[data-theme="dark"] article p,html[data-theme="dark"] .legal-body p,html[data-theme="dark"] .legal-body li,html[data-theme="dark"] .pdfbar .muted,html[data-theme="dark"] .ident,html[data-theme="dark"] footer.legal{color:#9fb0c2}
html[data-theme="dark"] .subnav{background:#0a1726;border-bottom-color:#20374e}
html[data-theme="dark"] .subnav-item{color:#9fb0c2}
html[data-theme="dark"] .subnav-item:hover{background:#13283b;color:#e8f0f6}
html[data-theme="dark"] .subnav-item.is-active{background:#18C9C4;color:#06231f}
html[data-theme="dark"] .filters button{background:#0f2236;border-color:#20374e;color:#cfe0ee}
html[data-theme="dark"] .filters button.on{background:#18C9C4;color:#06231f;border-color:#18C9C4}
html[data-theme="dark"] .legal-body th{background:#0c1d2e;color:#e8f0f6;border-color:#20374e}
html[data-theme="dark"] .legal-body td{border-color:#20374e}
/* bandeau cookies en sombre */
html[data-theme="dark"] #ztc-cookie{background:#0f2236;color:#e8f0f6;border-color:#20374e}
html[data-theme="dark"] #ztc-cookie p{color:#aebccb}
html[data-theme="dark"] .ztc-refuse{background:transparent;color:#e8f0f6;border-color:#2b425a}
html[data-theme="dark"] .ztc-row b{color:#e8f0f6}
