/*
Theme Name: Media Animation
Theme URI: https://media-animation.be/
Author: Media Animation ASBL
Author URI: https://wordpress.org
Description: 
Requires at least: 6.8
Tested up to: 8.0
Requires PHP: 8.0
Version: 1.77
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ca-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

:root {
    --ca-radius-30: clamp(20px, calc(20px + (30 - 20) * ((100vw - 320px) / 1600)), 30px);
}

/* Visually hidden, but available to screen readers */
.sr-only {
  position: absolute !important;
  width: calc(var(--wp--preset--spacing--10-10) / 8) !important;
  height: calc(var(--wp--preset--spacing--10-10) / 8) !important;
  padding: 0 !important;
  margin: calc(var(--wp--preset--spacing--10-10) / -8) !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important; /* legacy */
  clip-path: inset(50%) !important; /* modern */
  white-space: nowrap !important; /* prevent line breaks */
  border: 0 !important;
}

*{
    word-break: break-word;
}

@media (min-width: 1440px) {
    *{
        text-underline-position: under;
    }
}

/* /contraste des couleurs ne pas accessible */
/* *::selection {
    background: #F3987F;
    color: #fff;
} */

textarea::placeholder,
input::placeholder {
    color: var(--wp--preset--color--text);
    opacity: 1; /* Firefox */
    font-style: italic;
}

fieldset{
    margin-left: 0;
    margin-right: 0;
}

a,
label,
button,
input[type="button"],
input[type="submit"],
input[type="reset"]{
    cursor: pointer;
}

a{
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

a:hover,
a:focus-visible{
    text-decoration-thickness: calc(var(--wp--preset--spacing--10-10) / 3);
    transition: all 0.3s ease;
}

 /* utility class to remove the default margin-bottom of the first block in a group of blocks, such as a post content or a group block, to avoid double margins when the first block has a top margin and the container has a bottom margin. */
.no-block-end-margin {
    margin-bottom: calc(var(--gap) * -1) !important;
}

#header-template-part {
    position: relative;
    z-index: 20;
}

.is-visible-mobile-only {
    display: flex;
}

.is-visible-content-size {
    display: none;
} 

.is-style-complementary-aside{
    display: none;
}

.is-visible-wide-size {
    display: none;
}

/* Event echo: respect wide/full alignment inside echoed content. */
.event-echo__content.is-layout-constrained > * {
    max-width: var(--wp--style--global--content-size);
    margin-left: auto;
    margin-right: auto;
}

.event-echo__content.is-layout-constrained > .alignwide {
    max-width: var(--wp--style--global--wide-size);
}

.event-echo__content.is-layout-constrained > .alignfull {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 919px) {
    /* Hide location map block on mobile. */
    .wp-block-ca-plugin-location-map,
    .wp-block-create-block-location-map {
        display: none;
    }
}

@media (min-width: 1280px) {
    .is-visible-content-size {
        display: flex;
    }

    .is-visible-mobile-only {
        display: none;
    }
}

@media (min-width: 1435px) {
    .is-style-complementary-aside {
        display: flex;
    }
}

@media (min-width: 1515px) {
    .is-visible-wide-size {
        display: flex;
    }
}

/* Plugin: Gravity Forms */
.gform_title{
    font-family: var(--wp--preset--font-family--zilla-slab);
    font-weight: 700;
    font-size: var(--wp--preset--font-size--heading-h2);
}

.gfield label.gform-field-label{
    font-family: var(--wp--preset--font-family--work-sans);
    color: var(--wp--preset--color--text);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
    text-transform: uppercase;
}

.gform_footer.top_label .button,
.gform_footer.top_label .gform_button.button{
    font-family: var(--wp--preset--font-family--work-sans);
    font-weight: 600;
    text-transform: uppercase;
}

.gform_required_legend{
    font-family: var(--wp--preset--font-family--zilla-slab);
    font-size: var(--wp--preset--font-size--intro-page);
}

#gform_wrapper_1 .gfield_label_before_complex,
#gform_wrapper_4 .gfield_label_before_complex,
#gform_wrapper_3 .gfield_label_before_complex{
    font-family: var(--wp--preset--font-family--work-sans);
    font-weight: 700;
    font-size: var(--wp--preset--font-size--intro-page);
    margin-bottom: var(--wp--preset--spacing--30-15);
    padding-top: var(--wp--preset--spacing--20-15);
}

/* custom gravity form button style */
#gform_wrapper_3 #gform_submit_button_3,
#gform_wrapper_1 #gform_submit_button_1
{
    font-family: var(--wp--preset--font-family--work-sans);
	font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
    
    --gf-ctrl-border-width: 3px;
    --gf-local-min-height: var(--wp--preset--spacing--50-30);
    --gf-local-height: var(--wp--preset--spacing--50-30);
    --gf-ctrl-size-md: var(--wp--preset--spacing--50-30);
    block-size: var(--wp--preset--spacing--50-30);

    min-height: clamp(44px, calc(6px + 1.625vw), 50px);
    padding: var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--30-15);
    border-width: 3px;
    box-sizing: border-box;
    display: flex;
    gap: 1em;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* gravityforms ID: 1, form: contact */
/* gravityforms ID: 4, form: formulaire d’inscription à la newsletter */
#gform_wrapper_1 #gform_submit_button_1,
#gform_wrapper_4 #gform_submit_button_4
{
    background-color: var(--wp--preset--color--text);
    border-color: var(--wp--preset--color--text);
    color: #fff;
    border-radius: 0 var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10);
    padding-right: calc(var(--wp--preset--spacing--50-30) + 0.9em );
    margin-block-start: var(--wp--preset--spacing--50-30);
    background-size: auto 0.9em ;
    background-position: calc(100% - var(--wp--preset--spacing--50-30) + 0.9em) center;
    background-repeat: no-repeat;
		/* background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewBox="0 0 10 15" fill="none"><path d="M1.5 12.6272L7.06348 7.0636L1.5 1.5" stroke="%23112438" stroke-width="3" stroke-linecap="round"/></svg>')	 */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewBox="0 0 10 15" fill="none"><path d="M1.5 12.6272L7.06348 7.0636L1.5 1.5" stroke="%23ffffff" stroke-width="3" stroke-linecap="round"/></svg>');
}

#gform_wrapper_4 #gform_submit_button_4:hover,
#gform_wrapper_1 #gform_submit_button_1:hover
{
    background-color: var(--wp--preset--color--base);
    border-color: var(--wp--preset--color--text);
    color: var(--wp--preset--color--text);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewBox="0 0 10 15" fill="none"><path d="M1.5 12.6272L7.06348 7.0636L1.5 1.5" stroke="%23112438" stroke-width="3" stroke-linecap="round"/></svg>')	
}

/* gravityforms ID: 3, form: inscription evenement */
#gform_wrapper_3 #gform_submit_button_3{
    background-color: var(--wp--preset--color--eco-1);
    color: var(--wp--preset--color--text);
    border-radius: var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10) 0 var(--wp--preset--spacing--10-10);
    margin-left: auto;
    border-color: var(--wp--preset--color--eco-1);
    padding-right: calc(var(--wp--preset--spacing--50-30) + 0.9em );
    margin-block-start: var(--wp--preset--spacing--50-30);
    background-size: auto 0.9em ;
    background-position: calc(100% - var(--wp--preset--spacing--50-30) + 0.9em) center;
    background-repeat: no-repeat;
		background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewBox="0 0 10 15" fill="none"><path d="M1.5 12.6272L7.06348 7.0636L1.5 1.5" stroke="%23112438" stroke-width="3" stroke-linecap="round"/></svg>')	
    /* background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewBox="0 0 10 15" fill="none"><path d="M1.5 12.6272L7.06348 7.0636L1.5 1.5" stroke="%23ffffff" stroke-width="3" stroke-linecap="round"/></svg>'); */

}

#gform_wrapper_3 #gform_submit_button_3:hover{
    background-color: var(--wp--preset--color--base);
    border-color: var(--wp--preset--color--contrast);
}

#gform_wrapper_3 input:not([type="checkbox"]):not([type="radio"]),
#gform_wrapper_1 input:not([type="checkbox"]):not([type="radio"]),
#gform_wrapper_4 input:not([type="checkbox"]):not([type="radio"])
{
    font-family: var(--wp--preset--font-family--work-sans);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 400;
    --gf-ctrl-border-width: 3px;
    --gf-local-min-height: var(--wp--preset--spacing--45-40);
    --gf-local-height: var(--wp--preset--spacing--45-40);
    --gf-ctrl-size-md: var(--wp--preset--spacing--45-40);
    block-size: var(--wp--preset--spacing--45-40);

    min-height: 44px;
    box-sizing: border-box;
    height: clamp(var(--wp--preset--spacing--45-40), 30vw, var(--wp--preset--spacing--70-40));
    color: var(--wp--preset--color--text);
    border-color: var(--wp--preset--color--spi-1);
    border-radius: var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10) 0;
}

#gform_wrapper_1 textarea,
#gform_wrapper_4 textarea,
#gform_wrapper_3 textarea{
    font-family: var(--wp--preset--font-family--work-sans);
    font-weight: 400;
    font-size: var(--wp--preset--font-size--normal);
    min-height: 70px;
    color: var(--wp--preset--color--text);
    border-color: var(--wp--preset--color--spi-1);
    border-width: 3px;
    border-radius: var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10) 0;
}

#gform_wrapper_1,
#gform_wrapper_4,
#gform_wrapper_3 {
    --gf-field-gap-y: var(--wp--preset--spacing--50-30);
    --gf-field-gap-x: var(--wp--preset--spacing--50-30);
}

.gform_submission_error,
.gform_validation_error_link
.gform_required_legend,
.gfield_description.validation_message.gfield_validation_message,
.gfield_label.gform-field-label.gfield_label_before_complex
{
    font-family: var(--wp--preset--font-family--zilla-slab);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 400;
}

/* #ID : 3, Form : inscription evenement*/
.form__event-item__date{
    font-family: var(--wp--preset--font-family--work-sans);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 400;
    text-transform: none;
    cursor: pointer;
}

/* #ID : 3, Form : inscription evenement*/
.form__event-item__title{
    font-family: var(--wp--preset--font-family--work-sans);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: none;
    cursor: pointer;
}

/* #ID : 3, Form : inscription evenement; Choisissez une ou plusieurs activités : */
#gfield_description_3_13{
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
    font-family: var(--wp--preset--font-family--work-sans);
    padding-bottom: var(--wp--preset--spacing--20-15);
}

#gform_wrapper_4 #label_4_3_1{
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 400;
    font-family: var(--wp--preset--font-family--work-sans);
    text-transform: unset;
}

/* \Gravity Forms */

.wp-block-buttons .wp-block-button__link {
    width: 100%;
    display: flex;
    gap: 1em;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    text-align: start;
}

.is-style-button-arrow .wp-block-button__link {
    gap: 1rem;
}

.is-style-button-arrow .wp-block-button__link:hover {
    text-decoration: underline;
}

.is-style-button-arrow .wp-block-button__link:hover:after,
.is-style-button-arrow .wp-block-button__link:focus-visible::after, 
.is-style-button-arrow .wp-block-button__link:focus:after {
    transition: all .3s cubic-bezier(.42,0,.58,1);
    transform: translateX(0) scale(1.1);
}

.is-style-button-arrow .wp-block-button__link::after {
    display: inline-flex;
    content: "";
    background-image: url('data:image/svg+xml,<svg width="59" height="15" viewBox="0 0 59 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M50.7251 12.6272L56.2952 7.0636L50.7251 1.5" stroke="%23112438" stroke-width="3" stroke-linecap="round"/><path d="M56.2953 7.06445H1.5" stroke="%23112438" stroke-width="3" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    transform: translateX(-20px);
    width: 55px;
    height: 18px;
    transition: all .3s cubic-bezier(.42,0,.58,1);
    margin-left: var(--wp--preset--spacing--45-40);
}

.is-style-button-bottom-left-solid .wp-block-button__link::after,
.is-style-button-bottom-right-solid .wp-block-button__link::after,
.is-style-button-top-left-solid .wp-block-button__link::after,
.is-style-button-top-right-solid .wp-block-button__link::after,
.is-style-button-bottom-left-outline .wp-block-button__link::after,
.is-style-button-bottom-right-outline .wp-block-button__link::after,
.is-style-button-top-left-outline .wp-block-button__link::after,
.is-style-button-top-right-outline .wp-block-button__link::after {
  content: "";
  display: inline-flex;
  right: 1em;
  top: 50%;
  width: 1em;
  height: 1em;
  min-height: 100%;
  background-color: transparent;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
}

.is-style-button-bottom-left-outline .wp-block-button__link::after,
.is-style-button-bottom-right-outline .wp-block-button__link::after,
.is-style-button-top-left-outline .wp-block-button__link::after,
.is-style-button-top-right-outline .wp-block-button__link::after,
.is-style-button-bottom-left-solid:hover .wp-block-button__link::after,
.is-style-button-bottom-right-solid:hover .wp-block-button__link::after,
.is-style-button-top-left-solid:hover .wp-block-button__link::after,
.is-style-button-top-right-solid:hover .wp-block-button__link::after
{
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewBox="0 0 10 15" fill="none"><path d="M1.5 12.6272L7.06348 7.0636L1.5 1.5" stroke="%23112438" stroke-width="3" stroke-linecap="round"/></svg>');
}

.is-style-button-bottom-left-outline:hover .wp-block-button__link::after,
.is-style-button-bottom-right-outline:hover .wp-block-button__link::after,
.is-style-button-top-left-outline:hover .wp-block-button__link::after,
.is-style-button-top-right-outline:hover .wp-block-button__link::after,
.is-style-button-bottom-left-solid .wp-block-button__link::after,
.is-style-button-bottom-right-solid .wp-block-button__link::after,
.is-style-button-top-left-solid .wp-block-button__link::after,
.is-style-button-top-right-solid .wp-block-button__link::after
{
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewBox="0 0 10 15" fill="none"><path d="M1.5 12.6272L7.06348 7.0636L1.5 1.5" stroke="%23ffffff" stroke-width="3" stroke-linecap="round"/></svg>');
}



/* Make sure all icon styles also apply the base icon */
.wp-block-quote.is-style-quote-1,
.wp-block-quote.is-style-quote-2,
.wp-block-quote.is-style-quote-3,
.wp-block-quote.is-style-quote-4,
.wp-block-quote.is-style-quote-5,
.wp-block-quote.is-style-quote-6,
.wp-block-quote.is-style-quote-7,
.wp-block-quote.is-style-quote-8,
.wp-block-quote.is-style-quote-9,
.wp-block-quote.is-style-quote-10 {
  position: relative;
}


.wp-block-quote.is-style-quote-1::before,
.wp-block-quote.is-style-quote-2::before,
.wp-block-quote.is-style-quote-3::before,
.wp-block-quote.is-style-quote-4::before,
.wp-block-quote.is-style-quote-5::before,
.wp-block-quote.is-style-quote-6::before,
.wp-block-quote.is-style-quote-7::before,
.wp-block-quote.is-style-quote-8::before,
.wp-block-quote.is-style-quote-9::before,
.wp-block-quote.is-style-quote-10::before {
  /* reuse the base icon rule */
  content: "";
  position: absolute;
  top: var(--wp--preset--spacing--20-20);
  left: 0;
  width: 2.2rem;
  height: 1.6rem;
  mask-image: url('./assets/icons/quote.svg');
  -webkit-mask-image: url("./assets/icons/quote.svg");
  mask-repeat: no-repeat;
  mask-size: contain;
  background-color: var(--quote-color, currentColor);
}

.has-style-revue-shape{
    background-repeat: no-repeat;
    background-position: right bottom;
}

.has-style-chroniques-shape,
.has-style-rencontres-shape,
.has-style-humeur-shape,
.has-style-activities-shape,
.has-style-action-citoyennes-shape
{
    background-repeat: no-repeat;
    background-size: calc(var(--wp--style--global--wide-size) / 10);
    background-position: right bottom;
}

/* BREVO Newsletter*/

.sib-default-btn
{
    display: flex;
    flex-wrap: nowrap;
    font-family: var(--wp--preset--font-family--work-sans);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
    gap: 1em;
    justify-content: space-between;
    min-height: clamp(44px, calc(6px + 1.625vw), 50px);
    padding: var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--30-15);
    text-decoration: none;
    background-color: var(--wp--preset--color--int-1);
    border-color: var(--wp--preset--color--int-1);
    border-style: solid;
    border-width: 3px;
    color: var(--wp--preset--color--text);
    border-radius: 0 var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10) var(--wp--preset--spacing--10-10);
    padding-right: calc(var(--wp--preset--spacing--50-30) + 0.9em );
    margin-block-start: var(--wp--preset--spacing--50-30);
    background-size: auto 0.9em ;
    background-position: calc(100% - var(--wp--preset--spacing--50-30) + 0.9em) center;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewBox="0 0 10 15" fill="none"><path d="M1.5 12.6272L7.06348 7.0636L1.5 1.5" stroke="%23112438" stroke-width="3" stroke-linecap="round"/></svg>')	
}

.sib-default-btn:hover{
    background-color: var(--wp--preset--color--base);
    border-color: var(--wp--preset--color--text);
    color: var(--wp--preset--color--text);
}

.is-style-text-link__declaration a{
    font-weight: 400;
}

@media (min-width: 1440px) {
    .has-style-chroniques-shape{
        background-image: url("./assets/images/numero-chroniques.svg");
    }
    
    .has-style-rencontres-shape{
        background-image: url("./assets/images/numero-rencontres.svg");
    }
    
    .has-style-humeur-shape{
        background-image: url("./assets/images/numero-humeur.svg");
    }
    
    .has-style-activities-shape{
        background-image: url("./assets/images/assoc-activites.svg");
    }
    
    .has-style-action-citoyennes-shape{
        background-image: url("./assets/images/numero-humeur.svg");
    }

    .has-style-ecologie-shape::after,
    .has-style-revue-shape{
        background-image: url("./assets/images/revue-shape.svg");
        background-size: contain;
    }

    .has-style-chroniques-shape,
    .has-style-rencontres-shape,
    .has-style-humeur-shape,
    .has-style-activities-shape,
    .has-style-action-citoyennes-shape{
        background-size: auto min(calc(var(--wp--style--global--wide-size) / 2), 90%);
        min-height: 780px;
    }

    .has-style-theme-taxonomy{
        display: relative;
        overflow: hidden;
        min-height: 560px;
    }

    .has-style-theme-taxonomy::before{
        background-repeat: no-repeat;
        background-size: auto 100%;
        background-position: right bottom;
        position: absolute;
        top: 0;
        right: 0;
        content: " ";
        display: flex;
        height: 100%;
        width: 100%;
        transform: translate(calc(var(--wp--style--global--wide-size) / 15), calc(var(--wp--style--global--wide-size) / 30)) scale(1.2);
        transform-origin: right bottom;
        overflow: hidden;
    }

    .has-style-ecologie-shape::before{
        background-image: url("./assets/images/ecologie-icon.svg");
    }

    .has-style-democratie-shape::before{
        background-image: url("./assets/images/democratie-icon.svg");
    }

    .has-style-interculturalite-shape::before{
        background-image: url("./assets/images/interculturalite-icon.svg");
    }

    .has-style-spiritualite-shape::before{
        background-image: url("./assets/images/interculturalite-icon.svg");
    }
}

@media (min-width: 1520px) {
    .has-style-theme-taxonomy::before{
        transform: translateY(calc(var(--wp--style--global--wide-size) / 15)) scale(1.3);
    }
}

@media (min-width: 1920px) {
    .has-style-theme-taxonomy::before{
        transform: translateY(calc(var(--wp--style--global--wide-size) / 6)) scale(1.6);
    }
}


/* homepage la revue section banner abonnement */

@media (max-width: 600px) {
    #banner-abonnement .wp-block-media-text__media{
        padding-bottom: var(--wp--preset--spacing--30-15);
    }
}

#banner-abonnement .wp-block-media-text__media,
#banner-abonnement img{
    border-radius: 30px 30px 0 30px;
    overflow: hidden;
}

#banner-abonnement .wp-block-media-text__content{
    padding-left: 0;
}

/* homepage la revue section banner abonnement */


@media (max-width: 1440px) {
    /* Page : nos actions citoyennes */
    #actions-citoyennes-grid{
        grid-template-columns: 1fr;
    }
}

/* template thematique */
@media (max-width: 1280px) {
    #template-thematique-activities{
        margin-top: calc(var(--wp--preset--spacing--120-70) * -1);
        padding-top: var(--wp--preset--spacing--60-40);
    }
}

/* page d'accueil revue section trouver point de vente */
@media (min-width: 920px) {
    #grid-point-de-vente{
        grid-template-columns: 1fr 1fr 1fr;
    }
}
