:root{
    --dark-text:#003f7f;
    --dark-content-text:#565656;
}
.theme-toggle{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-width:64px;min-height:32px;padding:4px 7px;border:1px solid #cbd5e1;border-radius:30px;background:#fff;color:#003f7f;cursor:pointer;font:inherit;flex-shrink:0}.theme-toggle-icon{font-size:18px;line-height:1}.theme-toggle-track{width:26px;height:16px;background:#cbd5e1;border-radius:20px;padding:2px}.theme-toggle-track::after{content:'';display:block;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .2s}.theme-toggle[aria-checked=true] .theme-toggle-track{background:#60a5fa}.theme-toggle[aria-checked=true] .theme-toggle-track::after{transform:translateX(10px)}.theme-toggle:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--primary:#8fc5ff;--primary-dark:#b6d9ff;--accent:#ff9c71;--bg:#101b2c;--text:#e5edf8;--muted:#a6b7cc;--border:#31435b;background:#0b1320}
html[data-theme=dark] body{background:#0b1320;color:var(--text)}
html[data-theme=dark] :is(.utility,.header,.catalog-toolbar,.product-switch){background:#101b2c;color:var(--text);border-color:var(--border)}
*html[data-theme=dark] :is(.detail-nav){background:none; color:var(--text);border-color:var(--border)}
html[data-theme=dark] :is(.hero,.page-hero,.product-heading,.service-section,.about-section,.trust-strip,.newsletter-section){background:linear-gradient(135deg,#101e34,#18283c);color:var(--text)}
html[data-theme=dark] :is(h1,h2,h3,h4,.hero h1,.hero-copy>p,.page-hero p,.product-intro p,.breadcrumbs,.eyebrow,.text-link,.catalog-card h3,.card-content h3,.detail-nav a,.nav-wrap nav>a){color:var(--text)}
html[data-theme=dark] :is(.solution-card,.catalog-card,.catalog--modern .catalog-card,.form-card,.partner-card,.service-list>a,.floating-card,.help-card,.sales-search-card,.sales-map-card,.sales-person,.product-support,.product-image,.restored-gallery figure,.product-next a,.newsletter-card,.portal-card){background:#152237;color:var(--text);border-color:var(--border);box-shadow:0 10px 30px #0003}
html[data-theme=dark] :is(.card-content p,.catalog-card p,.prose,.prose p,.product-content,.form-card p,.sales-note,.muted,.hero-proof,.section-heading p,.about-grid p){color:var(--muted)}
html[data-theme=dark] :is(input,select,textarea){background:#0c1728;color:var(--text);border-color:#415672}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#94a6bd}
html[data-theme=dark] :is(.button,button.button){background:#236ab5;color:#fff;border-color:#4386d1}
html[data-theme=dark] .button.orange{background:#dc510f;color:#fff}
html[data-theme=dark] :is(.cta,footer){background:#07101d;color:#e5edf8}
html[data-theme=dark] .theme-toggle{background:#1c2e47;border-color:#415672;color:#ffe6a4}
html[data-theme=dark] :is(.brand img,.partner-logo){background:#fff;border-radius:6px;padding:4px}
html[data-theme=dark] .product-image img{mix-blend-mode:normal}
html[data-theme=dark] .product-slider-images{background:transparent}
html[data-theme=dark] .product-slider-dots button[aria-pressed=true]::after{background:#9acaff}
html[data-theme=dark] .prose :is(td,th){border-color:var(--border)}
html[data-theme=dark] :is(.sales-suggestions button,.dropdown-menu,.nav-dropdown,.mega-menu){/*! background:#152237; */color:var(--text);border-color:var(--border)}

html[data-theme=dark] .hero .eyebrow {
  display: inline-block;
  background:none;
  border: 1px solid #cadbed;
  border-radius: 30px;
  padding: 8px 13px;
  box-shadow: 0 4px 15px #003f7f06;
}

html[data-theme=dark] .nav-dropdown-panel a {
    color: var(--dark-text);
}

html[data-theme=dark] .card-content{
    color: var(--dark-content-text);
}

/* Ces cartes gardent un fond clair : ne pas leur appliquer le texte clair du thème. */
html[data-theme=dark] .service-link-card{
    background:linear-gradient(150deg,#fff,#f4f8fc);
    color:#17324f;
    border-color:#cbd5e1;
}
html[data-theme=dark] .service-link-card h3,
html[data-theme=dark] .solution-card .card-content h3{
    color:var(--dark-text,#003f7f);
}
html[data-theme=dark] .service-link-card p,
html[data-theme=dark] .solution-card .card-content p{
    color:#475569;
}
html[data-theme=dark] .service-link-action,
html[data-theme=dark] .solution-card .card-content h3 span{
    color:#0053a6;
}
html[data-theme=dark] .service-link-number{
    color:#b94512;
}
html[data-theme=dark] .solution-card .card-content{
    background:#f8fafc;
    color:#334155;
}
html[data-theme=dark] .service-link-card:hover{
    border-color:#0053a6;
    box-shadow:0 12px 30px #0004;
}

/* Cartes Nos services, y compris lorsqu’elles sont intégrées au contenu de page. */
html[data-theme=dark] .service-link-card :is(h2,h3,h4,strong){
    color:var(--dark-text,#003f7f);
}
html[data-theme=dark] .service-links-section .service-link-card h3,
html[data-theme=dark] .service-links-grid .service-link-card h3,
html[data-theme=dark] .prose .service-link-card h3{
    color:var(--dark-text,#003f7f);
}
html[data-theme=dark] .service-link-card :is(p,li,small),
html[data-theme=dark] .prose .service-link-card p{
    color:#475569;
}
html[data-theme=dark] .service-link-card .service-link-action,
html[data-theme=dark] .service-link-card .service-link-action span{
    color:#0053a6;
}
html[data-theme=dark] .service-link-card .service-link-number{
    color:#b94512;
}
html[data-theme=dark] .service-link-card:focus-visible{
    outline:3px solid #0053a6;
    outline-offset:4px;
}

/* Nos solutions : conserver le contraste sur les fonds clairs des cartes catalogue. */
html[data-theme=dark] .catalog .catalog-card .catalog-body{
    background:#f8fafc;
    color:#334155;
}
html[data-theme=dark] .catalog .catalog-card .catalog-body :is(h2,h3,h4,strong){
    color:var(--dark-text,#003f7f);
}
html[data-theme=dark] .catalog .catalog-card .catalog-body p{
    color:#475569;
}
html[data-theme=dark] .catalog .catalog-card .catalog-link,
html[data-theme=dark] .catalog .catalog-card .catalog-link span{
    color:#0053a6;
}
html[data-theme=dark] .catalog .catalog-card:focus-visible{
    outline:3px solid #8fc5ff;
    outline-offset:4px;
}

@media(prefers-reduced-motion:reduce){.theme-toggle-track::after{transition:none}}
