/* Ruban biface — widget LU Elements + classe CSS pour Heading widget Elementor */

/* Cream lettering needs a darker red, including at the small mobile size. */
.home .lu-ruban-biface-widget {
    --rb-color: #b52f20 !important;
}

/* Widget LU — Ruban Biface */
.lu-ruban-biface-widget {
    --rb-color: #224a49;
    --rb-texture: none;
    --rb-align: flex-start;
    --s: 1.9em;
    --d: 0.45em;
    --c: 0.5em;

    display: block !important;
    width: fit-content !important;
    align-self: var(--rb-align) !important;
    padding: var(--d) calc(var(--s) + 0.8em) 0 !important;
    line-height: 1.8 !important;

    background:
        conic-gradient(from  45deg at left  var(--s) top var(--d),
         #0008 12.5%, #0000 0 37.5%, #0004 0) 0/50% 100% no-repeat,
        conic-gradient(from -45deg at right var(--s) top var(--d),
         #0004 62.5%, #0000 0 87.5%, #0008 0) 100%/50% 100% no-repeat,
        var(--rb-texture),
        var(--rb-color) !important;

    clip-path: polygon(
        0 0,
        calc(var(--s) + var(--d)) 0,
        calc(var(--s) + var(--d)) var(--d),
        calc(100% - var(--s) - var(--d)) var(--d),
        calc(100% - var(--s) - var(--d)) 0,
        100% 0,
        calc(100% - var(--c)) calc(50% - var(--d)/2),
        100% calc(100% - var(--d)),
        calc(100% - var(--s)) calc(100% - var(--d)),
        calc(100% - var(--s)) 100%,
        var(--s) 100%,
        var(--s) calc(100% - var(--d)),
        0 calc(100% - var(--d)),
        var(--c) calc(50% - var(--d)/2)
    ) !important;

    color: #e9e4dc;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Classe CSS legacy — Heading widget natif Elementor */
.lu-ruban-biface .elementor-heading-title,
.lu-ruban-biface.elementor-heading-title,
.lu-ruban-biface.e-heading-base,
h2.lu-ruban-biface,
h3.lu-ruban-biface {
    --s: 1.9em;
    --d: 0.45em;
    --c: 0.5em;

    display: block !important;
    width: fit-content !important;
    padding: var(--d) calc(var(--s) + 0.8em) 0 !important;
    line-height: 1.8 !important;

    background:
        conic-gradient(from  45deg at left  var(--s) top var(--d),
         #0008 12.5%, #0000 0 37.5%, #0004 0) 0/50% 100% no-repeat,
        conic-gradient(from -45deg at right var(--s) top var(--d),
         #0004 62.5%, #0000 0 87.5%, #0008 0) 100%/50% 100% no-repeat,
        url('/wp-content/themes/vintwood/img/patterns/shape_pattern.png'),
        #224a49 !important;

    clip-path: polygon(
        0 0,
        calc(var(--s) + var(--d)) 0,
        calc(var(--s) + var(--d)) var(--d),
        calc(100% - var(--s) - var(--d)) var(--d),
        calc(100% - var(--s) - var(--d)) 0,
        100% 0,
        calc(100% - var(--c)) calc(50% - var(--d)/2),
        100% calc(100% - var(--d)),
        calc(100% - var(--s)) calc(100% - var(--d)),
        calc(100% - var(--s)) 100%,
        var(--s) 100%,
        var(--s) calc(100% - var(--d)),
        0 calc(100% - var(--d)),
        var(--c) calc(50% - var(--d)/2)
    ) !important;

    color: #e9e4dc;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
