/* - GLOBAL - */
:root {
    --filter-white: brightness(0) invert(1);
    --filter-black: brightness(0) invert(7%) sepia(26%) saturate(5950%) hue-rotate(219deg) brightness(97%) contrast(94%);
    ;
    --filter-accent: brightness(0) invert(84%) sepia(72%) saturate(483%) hue-rotate(16deg) brightness(95%) contrast(82%);

    --header-height: 110px;
}

[data-wpr-lazyrender] {
    content-visibility: unset !important;
}

*:not(canvas) {
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

#wpadminbar * {
    position: unset;
    max-width: unset;
}

html,
body {
    overflow-x: hidden;
}

html {
    scroll-padding-top: calc(var(--header-height, 0px) + var(--wp--preset--spacing--70, 20px)) !important;
    scroll-behavior: smooth !important;
}

figure>img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
}

figure.has-custom-border img {
    border-style: solid;
}

a.wp-block-button__link {
    text-align: center;
    word-break: auto-phrase;
}

figure[class*='icon'],
div:has(> figure[class*='icon']:only-child) {
    min-width: fit-content;
    user-select: none;
}

figure[class*='icon']:has(a) {
    pointer-events: auto !important;
}

figure>a {
    width: 100%;
}

.wp-block-cover img {
    user-select: none;
}

a[href^="tel:"],
a[href^="mailto:"],
a[href*="maps.app.goo.gl"],
a[href*="facebook"],
a[href*="instagram"] {
    text-decoration: none !important;
    color: unset !important;
}

p a {
    color: unset !important;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover,
a[href*="maps.app.goo.gl"]:hover,
a[href*="facebook"]:hover,
a[href*="instagram"]:hover,
.logo:hover {
    opacity: .5;
}

.overflow-hidden {
    overflow: hidden;
}

p:not(.is-style-number):empty {
    display: none;
}

.wp-block-list {
    list-style: disc;
    padding-inline-start: 1em;
}

p strong {
    font-weight: 700;
}

/* - HEADER - */
header {
    position: sticky !important;
    width: 100%;
    top: 0;
    z-index: 9;
    transition: 300ms;
    background: transparent;
}

header>div:first-of-type {
    min-height: var(--header-height, 100px) !important;
}

header nav a:hover,
header nav .current-menu-item {
    color: var(--wp--preset--color--accent) !important;
}

.open-menu-button,
.close-menu-button {
    cursor: pointer;
}

.open-menu-button {
    background-color: transparent;
    transition: 300ms;
    padding: 0.2em 0 0.2em 0.2em;
    user-select: none;
}

.open-menu-button:hover {
    background-color: var(--wp--preset--color--accent);
}

.close-menu-button:hover img {
    filter: var(--filter-accent, --filter-white);
}

.menu.popup {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100%;
    transition: height 100ms;
    pointer-events: none;
}

.menu.popup .has-background {
    transform: translateX(100%);
    transition: 300ms;
    pointer-events: all;
    overflow: auto;
}

.menu.popup.open .has-background {
    transform: translateX(0%);
}

/* - BODY AND SPECIFIC - */
div.dynamic-number {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

p.number-container {
    font-size: var(--wp--preset--font-size--h-3);
    font-weight: 900;
    line-height: normal;
}

.eapps-facebook-feed-header,
.eapps-facebook-feed-inner {
    border-radius: 0 !important;
}

.eapps-facebook-feed-header-picture {
    aspect-ratio: 1 !important;
    border-radius: 50% !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #B8BBC5 !important;
}

.is-layout-flex:not(.is-vertical)> :is(figure, .wp-block-buttons) {
    min-width: fit-content;
}

.wp-block-embed.is-type-video,
.wp-block-embed.is-type-video * {
    width: 100%;
    aspect-ratio: 127 / 72;
    height: unset;
}

.service {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light);
}

.service :is(h1, h2, h3, h4, h5, h6) {
    color: var(--wp--preset--color--light);
}

.service>img {
    width: 100%;
    height: 200px;
    min-height: 100%;
    object-fit: cover;
}

.service:nth-child(even)>img {
    order: 1;
}

.service>div {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--20);
    padding: var(--wp--preset--spacing--60);
}


/* - FOOTER - */
footer nav ul {
    row-gap: var(--wp--preset--spacing--20) !important;
    text-align: center !important;
}


/* - WP FORMS - */

.wpforms-container * {
    font-family: var(--wp--preset--font-family--secondary) !important;
    font-weight: 300 !important;
}

.wpforms-container {
    padding: unset !important;
    margin: unset !important;
}

.wpforms-field {
    padding-top: unset !important;
    padding-bottom: 20px !important;
}

.wpforms-field-label {
    font-weight: 300 !important;
}

.wpforms-required-label {
    display: none;
    color: unset !important;
}

.wpforms-field-checkbox li {
    align-items: center !important;
}

.wpforms-submit {
    height: unset !important;
    font-family: var(--wp--preset--font-family--primary) !important;
    font-size: var(--wp--preset--font-size--button, inherit) !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: inherit !important;
    padding: 12px 24px !important;
}

.wpforms-submit:hover {
    background: var(--wp--preset--color--accent-hover) !important;
    color: var(--wp--preset--color--light) !important;
    border-color: transparent !important;
    opacity: 1 !important;
}

.wpforms-uploader {
    padding: 10px 16px !important;
}

.wpforms-uploader,
.dz-message {
    align-items: flex-start !important;
    gap: 5px;
}

.iti__dropdown-content {
    max-width: unset !important;
}

.iti__dropdown-content * {
    color: var(--wp--preset--color--dark, black) !important;
}

.dz-message svg {
    display: none;
}

.dz-message .modern-title,
.dz-message .modern-hint {
    text-align: left;
}

.ui-timepicker-wrapper * {
    color: black !important;
}

.flatpickr-monthDropdown-months {
    text-transform: capitalize;
}

/* - MENTIONS LEGALES - */
.netdev-mentions-legales h2 {
    margin-top: var(--wp--preset--spacing--20);
    margin-bottom: var(--wp--preset--spacing--20);
}

.netdev-mentions-legales a {
    color: var(--wp--preset--color--accent-hover) !important;
    text-decoration: underline;
}

.netdev-mentions-legales a:hover {
    opacity: 0.5;
}

/* - SWIPER - */
.swiper,
.swiper * {
    user-select: none;
}

.swiper.pictures.template-default,
.swiper.pictures.template-default-pagination-right,
.swiper.pictures.template-inline {
    --swiper-navigation-size: 40px;
}

.swiper.pictures.template-default,
.swiper.pictures.template-default-pagination-right {
    padding-bottom: var(--swiper-navigation-size);
}

.swiper.pictures.template-inline {
    padding-bottom: calc(var(--swiper-navigation-size) + 20px);
}

.swiper.pictures.template-default [class*='swiper-button-'],
.swiper.pictures.template-default-pagination-right [class*='swiper-button-'],
.swiper.pictures.template-inline [class*='swiper-button-'] {
    top: unset;
    left: unset;
    right: unset;
    bottom: 0;
}

.swiper.pictures.template-default [class*='swiper-button-'],
.swiper.pictures.template-default-pagination-right [class*='swiper-button-'] {
    background-color: var(--wp--preset--color--dark);
}

.swiper.pictures.template-default .swiper-button-next {
    left: var(--swiper-navigation-size);
}

.swiper.pictures.template-inline .swiper-button-next {
    left: calc(50% + 20px);
}

.swiper.pictures.template-inline .swiper-button-prev {
    right: calc(50% + 20px);
}

.swiper.pictures.template-default-pagination-right .swiper-button-next {
    right: 0;
}

.swiper.pictures.template-default-pagination-right .swiper-button-prev {
    right: var(--swiper-navigation-size);
}

.swiper.pictures.template-default [class*='swiper-button-'] img,
.swiper.pictures.template-default-pagination-right [class*='swiper-button-'] img {
    filter: var(--filter-white);
}

.swiper.pictures.template-default [class*='swiper-button-']:hover img,
.swiper.pictures.template-default-pagination-right [class*='swiper-button-']:hover img,
.swiper.pictures.template-inline [class*='swiper-button-']:hover img {
    transform: scale(0.75);
}

/* - POPUPS - */
.form-popup {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    align-content: center;
    z-index: 9;
}

.form-popup:not(.open) {
    display: none;
}

/* - RESPONSIVE - */
@media screen and (max-width: 1200px) {

    /*TABLET H > GLOBAL */
    :root {
        --wp--preset--font-size--h-1: 44px;
        --wp--preset--font-size--h-2: 36px;
        --wp--preset--font-size--h-3: 28px;
        --wp--preset--font-size--number: 100px;
        --wp--preset--font-size--citation: 20px;
        --wp--preset--spacing--40: 40px;
        --wp--preset--spacing--50: 60px;
        --wp--preset--spacing--60: 60px;
        --wp--preset--spacing--70: 60px;
        --wp--preset--spacing--80: 60px;
    }

    /* TABLET H > HEADER */

    /* TABLET H > BODY AND SPECIFIC */

    /* TABLET H > FOOTER */

    /* TABLET H > SWIPER */

}

@media screen and (max-width: 1024px) {

    /* TABLET V > GLOBAL */
    :root {}

    /* TABLET V > HEADER */

    /* TABLET V > BODY AND SPECIFIC */
    .tablet-column {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .tablet-column.reverse {
        flex-direction: column-reverse !important;
    }

    .tablet-column>* {
        flex-basis: unset !important;
        padding: unset !important;
    }

    .tablet-unset-padding-inline {
        padding-right: unset !important;
        padding-left: unset !important;
    }

    .tablet-grid-3-columns {
        grid-template-columns: repeat(3, 1fr)
    }

    /* TABLET V > FOOTER */

    /* TABLET V > SWIPER */
    ;
}

@media screen and (max-width: 820px) {
    /* Breakpoint demandé spécifiquement par Lou au check */

    /* MOBILE > GLOBAL */
    :root {
        --header-height: 80px;
        --wp--preset--font-size--h-1: 40px;
        --wp--preset--font-size--h-2: 32px;
        --wp--preset--font-size--h-3: 24px;
        --wp--preset--font-size--number: 100px;
        --wp--preset--font-size--citation: 16px;
        --wp--preset--font-size--menu-item: 20px;
        --wp--preset--spacing--30: 20px;
        --wp--preset--spacing--40: 20px;
        --wp--preset--spacing--50: 20px;
        --wp--preset--spacing--60: 20px;
        --wp--preset--spacing--70: 20px;
        --wp--preset--spacing--80: 20px;
    }

    div[style *="padding-top:var(--wp--preset--spacing--60)"],
    div[style *="padding-top: var(--wp--preset--spacing--60)"] {
        padding-top: 40px !important;
    }

    div[style *="margin-top:var(--wp--preset--spacing--60)"],
    div[style *="margin-top: var(--wp--preset--spacing--60)"] {
        margin-top: 40px !important;
    }

    div[style *="padding-bottom:var(--wp--preset--spacing--60)"],
    div[style *="padding-bottom: var(--wp--preset--spacing--60)"] {
        padding-bottom: 40px !important;
    }

    div[style *="margin-bottom:var(--wp--preset--spacing--60)"],
    div[style *="margin-bottom: var(--wp--preset--spacing--60)"] {
        margin-bottom: 40px !important;
    }

    /* MOBILE > HEADER */
    header>div:first-of-type {
        padding-block: 5px !important;
    }

    header>div:first-of-type img {
        height: 70px !important;
    }

    header nav,
    header nav ul {
        align-items: flex-end !important;
    }

    header nav a {
        text-align: right !important;
    }

    /* MOBILE > BODY AND SPECIFIC */

    .mobile-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .mobile-column.reverse {
        flex-direction: column-reverse !important;
    }

    .mobile-column>* {
        flex-basis: unset !important;
    }

    .mobile-unset-max-width,
    .mobile-unset-max-width>*,
    .mobile-unset-max-width .wp-block-cover__inner-container>div {
        max-width: unset !important;
        flex-basis: unset !important;
        width: 100% !important;
    }

    .mobile-unset-padding-right,
    .mobile-unset-padding-inline {
        padding-right: unset !important;
    }

    .mobile-unset-padding-left,
    .mobile-unset-padding-inline {
        padding-left: unset !important;
    }

    .mobile-unset-padding-vertical {
        padding-top: unset !important;
        padding-bottom: unset !important;
    }

    .mobile-reset-gap {
        gap: var(--wp--preset--spacing--20) !important;
    }

    .mobile-reset-inline-padding {
        padding-left: var(--wp--preset--spacing--60) !important;
        padding-right: var(--wp--preset--spacing--60) !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-full-width {
        width: 100% !important;
        max-width: unset !important;
    }

    .mobile-text-align-center,
    .mobile-text-align-center * {
        text-align: center !important;
    }

    .mobile-bigger-gap {
        gap: 40px !important;
    }

    .mobile-bigger-padding-vertical {
        padding-top: var(--wp--preset--spacing--70) !important;
        padding-bottom: var(--wp--preset--spacing--70) !important;
    }

    .wpgmza_map {
        max-height: 300px !important;
    }

    .service.mobile-column:nth-child(odd) {
        flex-direction: column-reverse !important;
    }

    .service img {
        height: auto;
        aspect-ratio: 3/2 !important;
    }

    .wp-block-cover[style *="padding-top:var(--wp--preset--spacing--40)"],
    .wp-block-cover[style *="padding-top: var(--wp--preset--spacing--40)"],
    .service>div {
        padding-top: 40px !important;
    }

    .wp-block-cover[style *="padding-bottom:var(--wp--preset--spacing--40)"],
    .wp-block-cover[style *="padding-bottom: var(--wp--preset--spacing--40)"],
    .service>div {
        padding-bottom: 40px !important;
    }

    /* MOBILE > SWIPER */

    /* MOBILE > FOOTER */
    footer .has-dark-20-background-color figure,
    footer .has-dark-20-background-color p {
        text-align: center;
    }

    footer .has-dark-20-background-color {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}