/* STEVENS FINANCES : activé seulement avec le bouton mode sombre */
html[data-sf-theme="dark"]{color-scheme:dark;--green:#eaf3ff;--deep:#080d15;--deep2:#050911;--cream:#111b28;--ink:#edf3fb;--muted:#bdcbdc;--white:#101925;--line:#3c5065;--gold:#e2b963;--gold2:#f3d38d}
html[data-sf-theme="dark"],html[data-sf-theme="dark"] body{background:#080d15!important;color:#edf3fb!important}
html[data-sf-theme="dark"] .site-header{background:#0a111c!important;border-bottom:1px solid #3c5065!important}
html[data-sf-theme="dark"] .site-header .nav>a:not(.btn){color:#eef4fc!important}
html[data-sf-theme="dark"] .site-header .nav>a:not(.btn):hover{color:#f3d38d!important}
html[data-sf-theme="dark"] .hero{background-color:#080d15!important;color:#fff!important}
html[data-sf-theme="dark"] .hero-photo{background-image:linear-gradient(90deg,rgba(4,8,16,.94) 0%,rgba(4,8,16,.79) 45%,rgba(4,8,16,.38) 100%),url("https://upload.wikimedia.org/wikipedia/commons/a/a3/00_1767_Grande_Plage%2C_Biarritz.jpg")!important}
html[data-sf-theme="dark"] .hero:after{background:linear-gradient(90deg,rgba(3,8,16,.70),rgba(3,8,16,.18))!important}
html[data-sf-theme="dark"] .hero-card,html[data-sf-theme="dark"] .success-card{background:rgba(10,18,30,.92)!important;color:#fff!important;border-color:#a9864d!important}
html[data-sf-theme="dark"] .pillars,html[data-sf-theme="dark"] .section,html[data-sf-theme="dark"] .section-photo,html[data-sf-theme="dark"] .dark-section,html[data-sf-theme="dark"] .contact,html[data-sf-theme="dark"] .faq,html[data-sf-theme="dark"] .territory,html[data-sf-theme="dark"] .client-shell,html[data-sf-theme="dark"] .photo-credits,html[data-sf-theme="dark"] .site-footer,html[data-sf-theme="dark"] footer{background-color:#0d1520!important;color:#edf3fb!important}
html[data-sf-theme="dark"] .pillars{border-color:#33465b!important}
html[data-sf-theme="dark"] .pillar-grid article{border-color:#33465b!important}
html[data-sf-theme="dark"] .pillar-grid h3,html[data-sf-theme="dark"] .pillar-grid p,html[data-sf-theme="dark"] .section h2,html[data-sf-theme="dark"] .section h3,html[data-sf-theme="dark"] .section-head>p:last-child,html[data-sf-theme="dark"] .pillar-grid b,html[data-sf-theme="dark"] .section-head,html[data-sf-theme="dark"] .contact h2,html[data-sf-theme="dark"] .contact h3,html[data-sf-theme="dark"] .faq h2,html[data-sf-theme="dark"] .faq h3,html[data-sf-theme="dark"] .territory h2{color:#edf3fb!important}
html[data-sf-theme="dark"] .pillar-grid p,html[data-sf-theme="dark"] .card p,html[data-sf-theme="dark"] .section-head>p:last-child,html[data-sf-theme="dark"] .client-actions p,html[data-sf-theme="dark"] .client-intro,html[data-sf-theme="dark"] .fine,html[data-sf-theme="dark"] .contact-note{color:#c0cddd!important}
html[data-sf-theme="dark"] .card,html[data-sf-theme="dark"] .client-actions article,html[data-sf-theme="dark"] .contact-box,html[data-sf-theme="dark"] .faq article,html[data-sf-theme="dark"] .timeline article,html[data-sf-theme="dark"] .photo-card,html[data-sf-theme="dark"] .pricing article,html[data-sf-theme="dark"] .security-notice{background:#172332!important;color:#edf3fb!important;border:1px solid #3a4c62!important;box-shadow:0 12px 32px #0005!important}
html[data-sf-theme="dark"] .card h3,html[data-sf-theme="dark"] .client-actions h2,html[data-sf-theme="dark"] .card .price,html[data-sf-theme="dark"] .pricing .price{color:#f3d38d!important}
html[data-sf-theme="dark"] .card.featured,html[data-sf-theme="dark"] .pricing .featured{background:#203047!important;border-color:#d7ad5b!important}
html[data-sf-theme="dark"] .timeline article b,html[data-sf-theme="dark"] .num,html[data-sf-theme="dark"] .pillar-grid b{color:#f3d38d!important}
html[data-sf-theme="dark"] .contact input,html[data-sf-theme="dark"] .contact textarea,html[data-sf-theme="dark"] .contact select,html[data-sf-theme="dark"] input,html[data-sf-theme="dark"] textarea,html[data-sf-theme="dark"] select{background:#0c1521!important;color:#f5f8ff!important;border:1px solid #60758d!important}
html[data-sf-theme="dark"] input::placeholder,html[data-sf-theme="dark"] textarea::placeholder{color:#b9c9db!important;opacity:1}
html[data-sf-theme="dark"] input:focus-visible,html[data-sf-theme="dark"] textarea:focus-visible,html[data-sf-theme="dark"] select:focus-visible,html[data-sf-theme="dark"] button:focus-visible,html[data-sf-theme="dark"] a:focus-visible{outline:3px solid #f3d38d!important;outline-offset:2px}
html[data-sf-theme="dark"] .contact label,html[data-sf-theme="dark"] .contact p,html[data-sf-theme="dark"] .contact strong,html[data-sf-theme="dark"] .faq p,html[data-sf-theme="dark"] .timeline p,html[data-sf-theme="dark"] .territory p,html[data-sf-theme="dark"] .section p{color:#d8e3ef!important}
html[data-sf-theme="dark"] .btn-gold{background:#e2b963!important;color:#131c28!important;border-color:#ffe0a0!important}
html[data-sf-theme="dark"] .btn-client{background:#1c2c41!important;color:#fff!important;border-color:#d7ad5b!important}
html[data-sf-theme="dark"] .btn-ghost{background:#152235!important;color:#fff!important;border-color:#8da4ba!important}
html[data-sf-theme="dark"] .client-actions button{background:#31445b!important;color:#e1eaf4!important}
html[data-sf-theme="dark"] .faq details,html[data-sf-theme="dark"] .faq details[open],html[data-sf-theme="dark"] details{border-color:#3a4c62!important;color:#edf3fb!important}
html[data-sf-theme="dark"] .faq summary,html[data-sf-theme="dark"] summary{color:#f0f5fc!important}
html[data-sf-theme="dark"] .site-footer a,html[data-sf-theme="dark"] footer a,html[data-sf-theme="dark"] .client-help a{color:#f3d38d!important}
@media (max-width:900px){html[data-sf-theme="dark"] .nav.open{background:#0d1725!important;border:1px solid #3a4c62!important}}


/* STEVENS FINANCES — correction ciblée des DEUX ESPACES.
   La feuille theme-sombre.css initiale stylisait le site public, pas les
   sélecteurs .team-app/.client-app utilisés dans gestion-common.php.
   Placé après equipe.css dans g_top(), ce bloc corrige les panneaux. */
@media screen {
html[data-sf-theme="dark"] body.team-app,
html[data-sf-theme="dark"] body.client-app{background:#0b1320!important;color:#eaf2fb!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .team-content,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) main.team-main{background:#0b1320!important;color:#eaf2fb!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .team-topbar{background:#152537!important;color:#dce9f6!important;border-bottom:1px solid #36516a!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .team-topbar span{color:#dce9f6!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .team-topbar .topbar-indicator{color:#5ee1bc!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .page-heading,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .page-heading h1,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .page-heading p{color:#f3f8ff!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .panel,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-finance,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-plan-card,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-plan-team,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-payment-card,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-existing-echeance,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .client-followup,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .record-row,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-chart{
background:#18283a!important;color:#eaf2fb!important;border-color:#39546c!important;box-shadow:0 8px 22px #0003!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .panel:has(.sf-payment-kpis){background:#18283a!important;border-color:#39677b!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .dashboard-intro{background:linear-gradient(110deg,#153e52,#19344b 72%,#3d3226)!important;border-left:5px solid #25c5bb!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .panel :is(h2,h3,h4,p,li,label,small,strong),
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-finance :is(h2,h3,p,label),
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-chart-row{color:#eaf2fb!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .panel .muted,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .panel small{color:#b7cde1!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .panel a:not(.button):not(.client-deposit-link){color:#85d4ff!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .panel :is(.button,.client-deposit-link){color:#fff!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .grid .card{background:#21364b!important;color:#eaf2fb!important;border-color:#47627c!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .grid .card :is(h2,h3,p,span,strong){color:#eaf2fb!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .metric{color:#fff!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .metric :is(span,strong){color:#fff!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-kpi :is(span,strong),
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-pay-kpi :is(span,strong){color:#fff!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-kpi,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-pay-kpi{border-color:transparent!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-commission-note{background:#3b3020!important;color:#ffe0a3!important;border-color:#e9a842!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) table{background:#18283a!important;color:#eaf2fb!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) table thead th,
html[data-sf-theme="dark"] body:is(.team-app,.client-app) table th{background:#244963!important;color:#f7fbff!important;border-color:#48637c!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) table tbody td{background:#18283a!important;color:#eaf2fb!important;border-color:#344b61!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) table tbody tr:nth-child(even) td{background:#203349!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) table tbody tr:hover td{background:#29445c!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) table td.sf-commission-cell{background:#17463e!important;color:#9af3ce!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) table td.sf-forecast-commission{background:#49391e!important;color:#ffe2a1!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-plan-highlight{background:#193449!important;border-color:#1faac4!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-plan-highlight h2{color:#dff7ff!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) :is(input,select,textarea){background:#101e2c!important;color:#f4f8ff!important;border-color:#59728a!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .sf-track{background:#34475c!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .status{background:#174f40!important;color:#a3f3ce!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .alert{background:#173e36!important;color:#c7ffdf!important}
html[data-sf-theme="dark"] body:is(.team-app,.client-app) .error{background:#4c252f!important;color:#ffdae0!important}
}
