/*gestion espacement blocs*/
.wp-block-post-content > .wp-block-group,
.wp-block-post-content > .wp-block-group.alignwide,
.wp-block-post-content > .wp-block-group.alignfull,
.archive main .wp-block-group.alignwide,
.archive main .wp-block-group.alignfull,
.wp-block-group.incitation-contact {
    margin-block-start: var(--wp--preset--spacing--xl) !important;
}

.wp-block-post-content {
    &.is-layout-constrained {
        /*margin-block-end: var(--wp--preset--spacing--xl);*/
    }
    >.wp-block-group:last-child {
        margin-block-end: var(--wp--preset--spacing--xl);
    }
    >.wp-block-group.is-style-group-octonary:last-child {
        margin-block-end: 0;
    }
}

    .home .entry-content > *:first-child, .page .entry-content > *:first-child,
    .archive main .wp-block-group.alignfull{
        margin-block-start: 0 !important;
    }


    .wp-block-group {

        /*grille par défaut*/
        &.is-layout-grid{
            @media screen and (max-width: 600px) {
                grid-template-columns: repeat(1, minmax(0, 1fr))
            }
        }


        /*bloc newsletter dans post-content*/
        &.is-style-group-primary, .wp-block-post-content > .wp-block-group.is-style-group-primary {
            position: relative;
            background: var(--wp--preset--color--primary) url('../../../assets/img/bg_violet.jpg') repeat top center;
            padding-top: var(--wp--preset--spacing--xxl);
            padding-bottom: var(--wp--preset--spacing--xl);
            z-index: 10;
            margin-block-start: var(--wp--preset--spacing--xxxxl)!important;
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 50%;
                width: 232px;
                height: 87px;
                transform: translateX(-50%) translateY(-55%);
                background: transparent url('../../../assets/img/nuage.png') no-repeat top center;

            }

            &::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                top: calc(100% - 1px);
                background: var(--wp--preset--color--primary) url('../../../assets/img/bg_violet.jpg') repeat top center;
                height: 200px;
                mask: radial-gradient(ellipse 105% 195% at 50% 102%, transparent 50%, black 50%);
                -webkit-mask: radial-gradient(ellipse 105% 195% at 50% 102%, transparent 50%, black 50%);
            }

            .gform_wrapper {
                max-width: 660px;
            }
        }

        /*Haut de page*/

        &.is-style-group-quinary{
            text-align: center;
            position: relative;
            padding-top: var(--wp--preset--spacing--l);
            padding-bottom: var(--wp--preset--spacing--xl);
            margin-bottom: var(--wp--preset--spacing--xl);
            background: transparent url('../../../assets/img/bg_3.jpg') repeat top center;

            &::before {
                content: "";
                position: absolute;
                bottom: -50px;
                left: 50%;
                width: 44px;
                height: 106px;
                background: transparent url(../../../assets/img/plumes.png) no-repeat top center;
                z-index: 11;
                transform: translateX(-50%);
            }

            &::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                background: var(--wp--preset--color--white);
                height: 200px;
                z-index: 10;
                transform: scale(-1);
                mask: radial-gradient(ellipse 105% 195% at 50% 102%, transparent 50%, black 50%);
                -webkit-mask: radial-gradient(ellipse 105% 195% at 50% 102%, transparent 50%, black 50%);
            }

            .wp-block-post-title, .wp-block-query-title {
                position: relative;
                z-index: 50;
                line-height: 1.0em;
                text-transform: uppercase;
                font-size: var(--wp--preset--font-size--xxxl);
                margin-top: 0;

                & + p {
                    position: relative;
                    text-transform: uppercase;
                    font-size: var(--wp--preset--font-size--l);
                    letter-spacing: 0.03em;
                    z-index: 50;
                    font-family: var(--wp--preset--font-family--primary);
                    color:var(--wp--preset--color--primary);
                    @media screen and (max-width: 782px) {
                        font-size: var(--wp--preset--font-size--xl);
                    }
                }
            }

        }
    }

    .wp-block-post-content > .wp-block-group {

        /*bloc liste artistes*/
        &.is-style-group-secondary {
            position: relative;
            &::before {
                content: '';
                position: absolute;
                z-index: 1;
                top: 34%;
                left: calc(50% - 438px);
                width: 94px;
                height: 92px;
                transform: translateX(-50%) translateY(-50%);
                background: transparent url('../../../assets/img/nuage3.png') no-repeat top center;
                background-size: contain;
                @media screen and (max-width: 993px) {
                    left: calc(50% - 350px);
                }
            }

            &::after {
                content: '';
                position: absolute;
                z-index: 1;
                top: 52%;
                left: calc(50% + 451px);
                width: 228px;
                height: 75px;
                transform: translateX(-50%) translateY(-50%);
                background: transparent url('../../../assets/img/nuage.png') no-repeat top center;
                @media screen and (max-width: 993px) {
                    left: calc(50% + 358px);
                    top: 60%;
                }
            }

            > .is-layout-flex {
                @media screen and (max-width: 993px) {
                    gap: 0 var(--wp--preset--spacing--xs);
                }
            }

            p, li {
                position: relative;
                z-index: 10;
                line-height: 1.0em;
                font-family: var(--wp--preset--font-family--primary);
            }
        }

        /*bloc artistes en avant*/
        &.is-style-group-tertiary {
            margin-block-start: 300px !important;
            background: var(--wp--preset--color--primary) url('../../../assets/img/bg_bleu.jpg') repeat top center;
            padding-top: var(--wp--preset--spacing--l);
            padding-bottom: var(--wp--preset--spacing--xl);

            &::before {
                content: '';
                position: absolute;
                top: -200px;
                left: 0;
                right: 0;
                background: var(--wp--preset--color--primary) url('../../../assets/img/bg_bleu.jpg') repeat top center;
                height: 200px;
                z-index: 10;
                transform: scale(-1);
                mask: radial-gradient(ellipse 105% 195% at 50% 102%, transparent 50%, black 50%);
                -webkit-mask: radial-gradient(ellipse 105% 195% at 50% 102%, transparent 50%, black 50%);
            }

            &::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                top: calc(100% - 1px);
                background: var(--wp--preset--color--primary) url('../../../assets/img/bg_bleu.jpg') repeat top center;
                height: 200px;
                mask: radial-gradient(ellipse 105% 195% at 50% 102%, transparent 50%, black 50%);
                -webkit-mask: radial-gradient(ellipse 105% 195% at 50% 102%, transparent 50%, black 50%);
            }

            .wp-block-heading {
                color: var(--wp--preset--color--tertiary);
                font-size: var(--wp--preset--font-size--xxxxxl);
                text-transform: uppercase;
                position: relative;
                line-height: 1.0em;
                margin-top: var(--wp--preset--spacing--xl);
                margin-bottom: var(--wp--preset--spacing--l);

                &::after {
                    content: '';
                    position: absolute;
                    top: -405px;
                    left: 50%;
                    transform: translateX(-50%);
                    display: block;
                    background: transparent url(../../../assets/img/ours-rock-oes.png) no-repeat bottom right;
                    background-size: contain;
                    width: 359px;
                    height: 433px;
                    z-index: 20;
                    @media screen and (max-width: 993px) {
                        top: -400px;
                        height: 400px;
                        width:335px;
                    }
                }
            }

            .wp-block-image img {
                border: 7px solid var(--wp--preset--color--tertiary);
                border-radius: var(--wp--custom--radius--l);
                margin-bottom: var(--wp--preset--spacing--m);
            }

            p,li {
                font-family: var(--wp--preset--font-family--primary);
                color: var(--wp--preset--color--white);
                text-transform: uppercase !important;
                font-size: var(--wp--preset--font-size--xxl);
                line-height: 1.0em;
                @media screen and (max-width: 782px) {
                    font-size: var(--wp--preset--font-size--xxxxl);
                }
            }

            .wp-block-columns {
                .wp-block-column:nth-child(2) {
                    margin-top: var(--wp--preset--spacing--l);
                    @media screen and (max-width: 782px) {
                        margin-top: inherit;
                    }
                }

                .wp-block-column {
                    @media screen and (max-width: 782px) {
                        text-align: center;
                    }
                }
            }
        }

        /*festival*/
        &.is-style-group-quaternary {
            .wp-block-heading {
                color: var(--wp--preset--color--white);
                font-size: var(--wp--preset--font-size--xxxxxl);
                text-transform: uppercase;
                position: relative;
                line-height: 1.0em;
                margin-top: var(--wp--preset--spacing--xl);
                margin-bottom: 0;

                &::after {
                    content: '';
                    position: absolute;
                    top: 5px;
                    left: 75%;
                    transform: translateX(-50%);
                    display: block;
                    background: transparent url(../../../assets/img/nuage4.png) no-repeat bottom right;
                    background-size: contain;
                    width: 91px;
                    height: 17px;
                    z-index: 20;
                    @media screen and (max-width: 992px) {
                        left: 65%;
                        top: -15px;
                    }
                }
            }

            p, li {
                font-family: var(--wp--preset--font-family--secondary);
                color: var(--wp--preset--color--black);
                font-size: var(--wp--preset--font-size--m);
                @media screen and (max-width: 782px) {
                    font-size: var(--wp--preset--font-size--xl);
                }
            }
        }


        /* programmation jour*/

        &.is-style-group-senary {
            .wp-block-heading {
                text-transform: uppercase;
                font-size: var(--wp--preset--font-size--xxxl);
                margin-top: 0;
                @media screen and (max-width: 782px) {
                    font-size: var(--wp--preset--font-size--xxxxl);
                }
            }

            .wp-block-image img {
                border: 7px solid var(--wp--preset--color--tertiary);
                border-radius: var(--wp--custom--radius--l);
                margin-bottom: var(--wp--preset--spacing--s);
            }

            p {
                font-size: var(--wp--preset--font-size--xxl);
                line-height: 1.0em;
                text-transform: uppercase;
                letter-spacing: 0.03em;
                font-family: var(--wp--preset--font-family--primary);
                color: var(--wp--preset--color--primary);
                @media screen and (max-width: 782px) {
                    font-size: var(--wp--preset--font-size--xxxxl);
                }
            }

            .wp-block-group {
                margin-bottom: var(--wp--preset--spacing--l);
            }

            .wp-block-columns {
                .wp-block-column {
                    .wp-block-group-is-layout-flex {
                        gap: 0 var(--wp--preset--spacing--xl);
                        @media screen and (max-width: 992px) {
                            gap: 0 var(--wp--preset--spacing--l);
                        }

                        .wp-block-group {
                            width: calc(50% - var(--wp--preset--spacing--xl));
                            @media screen and (max-width: 992px) {
                                width: calc(50% - var(--wp--preset--spacing--l));
                            }
                            @media screen and (max-width: 600px) {
                                width: 100%;
                            }
                        }
                    }
                }
            }
        }

        /*texte image*/
        &.is-style-group-septenary, &.is-style-group-octonary{
            h2{
                font-size: var(--wp--preset--font-size--xxxl);
                @media screen and (max-width: 782px) {
                    font-size: calc(var(--wp--preset--font-size--xxxxl) + 0.3rem);
                }
            }
            h3{
                font-size: var(--wp--preset--font-size--xxl);
                @media screen and (max-width: 782px) {
                    font-size: var(--wp--preset--font-size--xxxl);
                }
            }
            p, li{
                font-family: var(--wp--preset--font-family--secondary);
                color:var(--wp--preset--color--black);

            }
        }

        /*texte image fond jaune*/
        &.is-style-group-octonary{
            background:transparent url('../../../assets/img/bg_3.jpg') repeat top center;
        }

        /*boutique bloc*/
        &.is-style-group-nonary {
            .wp-block-heading {
                color: var(--wp--preset--color--primary);
                font-size: var(--wp--preset--font-size--xxxxxl);
                text-transform: uppercase;
                position: relative;
                line-height: 1.0em;
                margin-top: var(--wp--preset--spacing--xl);
                margin-bottom: 0;
            }

            .wp-block-woocommerce-product-collection{
                margin-top: -65px;
                @media screen and (max-width: 1200px) {
                    margin-top: -60px;
                }
                @media screen and (max-width: 992px) {
                    margin-top: -50px;
                }
                @media screen and (max-width: 782px) {
                    margin-top: 0;
                }
            }
        }
    }

    .entry-content > .wp-block-group:nth-child(2) {
        margin-block-start: calc(var(--wp--preset--spacing--l) + 40px) !important;
    }
}
