/* ITV V5.49 — charte sombre cohérente sur toutes les pages.
   Chargé après styles.css, les styles locaux et itv-v548.css. */
:root{color-scheme:dark!important;--itv-bg:#1e2225;--itv-panel:#26343f;--itv-deep:#132b45;--itv-text:#ecf3f8;--itv-muted:#d3e2eb;--itv-blue:#87caff;--itv-border:rgba(125,193,232,.24)}
html,body{background:var(--itv-bg);color:var(--itv-text)}
body>main,body>main .section,body>main .section-alt,body>main .partners,body>main .chapter-bar{background-color:var(--itv-bg);color:var(--itv-text)}
/* Navigation et pied de page : identité ITV déjà validée. */
body .top{background:#192f49;color:#ecf6fc}
body .top .nav-dropdown-panel,body .top .mobile-nav{background:#1c3955}
body .footer{background:#0b233a;color:#d0dfeb}
/* Rubriques historiques pouvant encore être ouvertes depuis un lien externe. */
body main .inside-hero,body main .section:not(.expert-showcase),body main .chapter-bar{background:#1e2225!important;color:#ecf3f8}
body main .inside-hero h1,body main .inside-hero h2,body main .section:not(.expert-showcase) h2,body main .chapter-bar h2{color:var(--itv-blue)!important}
body main .inside-hero p,body main .inside-hero li,body main .section:not(.expert-showcase) p,body main .section:not(.expert-showcase) li,body main .chapter-bar p{color:var(--itv-muted)!important}
body main .inside-hero .breadcrumb{color:#b8cfdf}
body main .inside-hero .breadcrumb a{color:#8ad3ff}
body main .section .detail,body main .chapter-bar .chapter{background:var(--itv-panel)!important;color:var(--itv-text);border-color:var(--itv-border)}
body main .section .detail h3{color:var(--itv-blue)!important}
body main .section .detail p,body main .chapter-bar .chapter{color:#e2edf5!important}
body main .chapter-bar .chapter.current{background:#234761!important}
body main .chapter-bar .chapter:hover{background:#2a4e66!important}
/* Page Expertises : section historique Niagara, cause principale du texte blanc invisible. */
body main .feature-band.home-niagara{background:#1e2225!important;color:var(--itv-text)!important}
body main .feature-band.home-niagara h2{color:#a8d7ff!important}
body main .feature-band.home-niagara .home-niagara-body p,
body main .feature-band.home-niagara .home-niagara-body li{color:#f2f6fa!important;opacity:1!important}
body main .feature-band.home-niagara .feature-image{background:transparent!important;box-shadow:none!important}
/* Expertises : pavés sur fond sombre, sans modifier leur structure ou les icônes. */
body main .services-essentials .service-detail{background:linear-gradient(125deg,#26343f,#20282e)!important;border:1px solid var(--itv-border)!important;color:var(--itv-text)}
body main .services-essentials .service-detail h3{color:#87caff!important}
body main .services-essentials .service-detail p{color:#e4edf4!important}
/* Engineering Suite : mêmes proportions et typographies, nouveaux contrastes. */
body.suite-page .es-content{background:#1e2225!important;color:var(--itv-text)}
body.suite-page .es-intro,body.suite-page .es-intro strong{color:#eaf2f8!important}
body.suite-page .es-secure{background:linear-gradient(110deg,#253c4e,#22313e)!important;border-color:var(--itv-border)!important}
body.suite-page .es-secure h2,body.suite-page .es-subtitle,body.suite-page .es-card h3{color:#8bcfff!important}
body.suite-page .es-secure p,body.suite-page .es-card ul{color:#e2edf5!important}
body.suite-page .es-secure p span,body.suite-page .es-subtitle span{color:#8bd3ff}
body.suite-page .es-card{background:linear-gradient(115deg,#26343f,#20282e)!important;border-color:var(--itv-border)!important;box-shadow:0 8px 24px rgba(0,0,0,.12)}
body.suite-page .es-card li::marker{color:#75caff}
/* Pour les images originales contenant un fond pâle : ne pas recolorer les pixels. */
body.suite-page .es-card>img,body.suite-page .es-secure img{filter:none;opacity:1}
/* Page d'accueil : trois cartes commerciales harmonisées au sombre. */
body.v51 main .expert-showcase .expert-card{background:#233441!important;border-color:var(--itv-border)!important;color:#f2f7fb}
body.v51 main .expert-showcase .expert-card-content{background:#233441;color:#f2f7fb}
body.v51 main .expert-showcase .expert-card h3{color:#75caff!important}
body.v51 main .expert-showcase .expert-card p,body.v51 main .expert-showcase .card-label{color:#e7eff5!important}
/* Page contact : garantir des champs clairs à lire, avec fond sombre stable. */
body.contact-page .contact-main,body.contact-page .contact-form-section{background:#141e28!important}
body.contact-page .request-form input,body.contact-page .request-form textarea,body.contact-page .request-form select{color-scheme:dark;background:#203344;color:#f2f8fc;border-color:#52728a}
body.contact-page .request-form input::placeholder,body.contact-page .request-form textarea::placeholder{color:#afc1cf;opacity:1}
body.contact-page .request-form label{color:#eaf2f7}
/* Pages légales et fonctions Niagara déjà sombres : conservation. */
body main.legal-main,body main.fn-page,body main.nc-page,body main.soc-page{background:#1e2225;color:#edf4f9}
/* Contrôles et focus utilisables aussi en thème système clair. */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #87caff;outline-offset:3px}
@media(prefers-color-scheme:light){:root{color-scheme:dark!important}}
