/*
Theme Name: Divi Child
Template: Divi
Description: Divi Child Theme
Author: Stan De Jesus Oliveira - createur2site
Author URI: https://createur2site.fr/
*/

@font-face {
 font-family: 'ESAllianz-Regular';
 src: url('ESAllianz-Regular.woff2') format('woff2'),
 url('ESAllianz-Regular.woff') format('woff');
 font-weight: normal;
 font-style: normal;
}

@font-face {
 font-family: 'ESAllianz-Bold';
 src: url('ESAllianz-Bold.woff2') format('woff2'),
 url('ESAllianz-Bold.woff') format('woff');
 font-weight: normal;
 font-style: normal;
}

/* Règle avec haute spécificité pour tout élément bold */
html body *:is(strong, b),
html body *:is(h1, h2, h3, h4, h5, h6, p, span, div, a, button)[style*="font-weight:"][style*="600"],
html body *:is(h1, h2, h3, h4, h5, h6, p, span, div, a, button)[style*="font-weight:"][style*="700"],
html body *:is(h1, h2, h3, h4, h5, h6, p, span, div, a, button)[style*="font-weight:"][style*="800"],
html body *:is(h1, h2, h3, h4, h5, h6, p, span, div, a, button)[style*="font-weight:"][style*="900"],
html body *:is(h1, h2, h3, h4, h5, h6, p, span, div, a, button)[style*="font-weight: "][style*="600"],
html body *:is(h1, h2, h3, h4, h5, h6, p, span, div, a, button)[style*="font-weight: "][style*="700"],
html body *:is(h1, h2, h3, h4, h5, h6, p, span, div, a, button)[style*="font-weight: "][style*="800"],
html body *:is(h1, h2, h3, h4, h5, h6, p, span, div, a, button)[style*="font-weight: "][style*="900"],
html body h1, 
html body h2, 
html body h3, 
html body h4, 
html body h5, 
html body h6,
html body .font-semibold,
html body .font-bold,
html body .font-extrabold,
html body .font-black,
html body .zloop-button {
    font-family: "ESAllianz-Bold", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

/* Règle pour attraper les éléments avec style computé */
@supports (font-weight: 600) {
    html body *:where(:not(script, style)) {
        font-family: var(--computed-font-family, inherit);
    }
    
    html body *:where(:not(script, style)):where([style*="font-weight:"]):not([style*="font-weight: normal"]),
    html body strong *,
    html body * strong,
    html body b *,
    html body * b {
        --computed-font-family: "ESAllianz-Bold", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    }
}