/* ==========================================================================
   Texte foncé sur les fonds clairs.
   Le corps des pages est sombre, avec un texte clair : toute section posée
   sur un fond crème, beige ou marbre doit repasser en texte foncé. Les titres
   et paragraphes qui ont reçu une couleur choisie (has-text-color) gardent
   la leur.
   ========================================================================== */

:is(.has-creme-background-color, .has-beige-background-color, .is-style-marbre, .tl-page-intro) {
color: var(--wp--preset--color--encre);
}

:is(.has-creme-background-color, .has-beige-background-color, .is-style-marbre, .tl-page-intro)
:is(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
color: var(--wp--preset--color--noir-chaud);
}

:is(.has-creme-background-color, .has-beige-background-color, .is-style-marbre, .tl-page-intro)
p:not(.has-text-color):not(.is-style-accroche):not(.is-style-surtitre-filet):not(.tl-surtitre) {
color: var(--wp--preset--color--encre);
}

/* Les sections sombres posées à l'intérieur (Chiffres clés, Collage noir)
   gardent leurs propres couleurs. */
:is(.has-creme-background-color, .has-beige-background-color, .is-style-marbre)
:is(.tl-chiffres, .tl-bcollage--sombre) :is(h1, h2, h3, h4, h5, h6, p) {
color: revert-layer;
}
