/* Système de thème final : les composants utilisent tous les mêmes surfaces et contrastes. */
:root{color-scheme:dark;--v-bg:#151515;--v-panel:#23221f;--v-ink:#f5f0e7;--v-dim:#c8c0b4;--v-line:#605b52;--v-gold:#d9b77a;--v-link:#f5f0e7;--v-focus:#f0ca87;--surface:#23221f;--soft:#23221f;--subtle:#2e2c28;--surface-border:#605b52;--surface-hover:#312f2a}
html[data-theme=clair]{color-scheme:light;--v-bg:#e5dfd4;--v-panel:#f2ede5;--v-ink:#2a2824;--v-dim:#625d56;--v-line:#bbb2a5;--v-gold:#795c2f;--v-link:#2a2824;--v-focus:#795c2f;--surface:#f2ede5;--soft:#f2ede5;--subtle:#ebe5da;--surface-border:#bbb2a5;--surface-hover:#ddd5c8}
html[data-theme=clair] .publication :is(.library-start,.home-start-card,.home-start-card-featured,.theme-tile,.book,.question-answer,.question-track li,.branch-card,.v3-status-panel,.v3-change,.v3-route-context,.v3-notebook,.feedback-form,.visual-card,.lesson-card,.mini-lab,.reasoning-example,.essay-figure,.essay-conclusion,.v3-evidence-card,.v3-concrete,.v3-test,.v3-verdict,.v3-candidates,.v3-salon-copy,.v3-essential,.v3-glossary,.v3-warning,.v3-photo-note,.v3-photo-preview,.v3-unknown,.media-scientifique,.v3-media,.v3-hypothesis,.forum-topic,.forum-post,.forum-compose,.forum-new,.forum-rules){background:var(--v-panel);color:var(--v-ink);border-color:var(--surface-border)}
.publication :is(input,textarea,select){background:var(--v-panel);color:var(--v-ink);border-color:var(--surface-border)}
.publication :is(input,textarea,select)::placeholder{color:var(--v-dim);opacity:1}
.publication .site-header,.publication .site-footer{background:var(--v-bg);border-color:var(--surface-border)}
.publication .site-header nav>a[aria-current]{background:var(--v-panel);color:var(--v-ink)}
/* Le Salon suit la même palette éditoriale : aucun bleu-vert résiduel. */
.salon-page{--salon-surface:rgba(31,30,27,.98);--salon-edge:#625d52;background:#171614!important;color:#f5f0e7;background-image:linear-gradient(rgba(23,22,20,.86),rgba(23,22,20,.96))!important}
.salon-page .site-header,.salon-page .site-footer{background:#171614!important;border-color:#625d52!important}.salon-page .theme-toggle{background:#23221f!important;color:#f5f0e7!important;border-color:#625d52!important}.salon-sidebar,.salon-stage{border-color:var(--salon-edge)!important}.salon-stage-header,.salon-resource,.salon-panel details{border-color:#625d52!important}.room-list button[aria-current=true],.room-list button:hover,.service-state,.salon-starter,.discussion-message,.discussion-message.you,.salon-chips button{background:#2d2b27!important;color:#f5f0e7!important}.salon-form input,.salon-form textarea,.salon-form select,.salon-notes,.salon-sidebar input{background:#1c1b18!important;color:#f5f0e7!important;border-color:#625d52!important}
html[data-theme=clair] .salon-page{--salon-surface:rgba(242,237,229,.98);--salon-edge:#bbb2a5;background:#e5dfd4!important;color:#2a2824;background-image:none!important}html[data-theme=clair] .salon-page .site-header,html[data-theme=clair] .salon-page .site-footer{background:#e5dfd4!important;border-color:#bbb2a5!important}html[data-theme=clair] .salon-page .theme-toggle{background:#f2ede5!important;color:#2a2824!important;border-color:#bbb2a5!important}html[data-theme=clair] .room-list button[aria-current=true],html[data-theme=clair] .room-list button:hover,html[data-theme=clair] .service-state,html[data-theme=clair] .salon-starter,html[data-theme=clair] .discussion-message,html[data-theme=clair] .discussion-message.you,html[data-theme=clair] .salon-chips button{background:#ebe5da!important;color:#2a2824!important}html[data-theme=clair] .salon-form input,html[data-theme=clair] .salon-form textarea,html[data-theme=clair] .salon-form select,html[data-theme=clair] .salon-notes,html[data-theme=clair] .salon-sidebar input{background:#f7f3ec!important;color:#2a2824!important;border-color:#bbb2a5!important}
@media(max-width:650px){.publication .site-header nav{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:2px 10px}.publication .site-header nav>a{padding-inline:8px;font-size:.86rem}.publication .site-header .theme-toggle{z-index:2}.publication .site-header nav>a[aria-current]{text-align:center}}/* La première porte de l’accueil est volontairement sombre dans les deux thèmes. */
.publication .home-start-card-featured{background:#292720!important;border-color:#292720!important;color:#fff8eb!important}
.publication .home-start-card-featured :is(strong,span,a){color:#fff8eb!important}.publication .home-start-card-featured .home-start-number,.publication .home-start-card-featured a{color:#e2b96e!important}
