/* - GLOBAL - */
[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(--wp--custom--header--height, 0px) + var(--wp--preset--spacing--20, 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:not(.wp-element-button)[href^="tel:"],
a:not(.wp-element-button)[href^="mailto:"],
a:not(.wp-element-button)[href*="maps.app.goo.gl"],
a:not(.wp-element-button)[href*="facebook"],
a:not(.wp-element-button)[href*="linkedin"],
a:not(.wp-element-button)[href*="instagram"] {
    text-decoration: none !important;
    color: unset !important;
}

p a {
    color: unset !important;
}

a:not(.wp-element-button)[href^="tel:"]:hover,
a:not(.wp-element-button)[href^="mailto:"]:hover,
a:not(.wp-element-button)[href*="maps.app.goo.gl"]:hover,
a:not(.wp-element-button)[href*="facebook"]:hover,
a:not(.wp-element-button)[href*="linkedin"]:hover,
a:not(.wp-element-button)[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;
}

summary {
    list-style-type: none !important;
}

details summary::-webkit-details-marker,
details summary::marker {
    display: none;
    content: "";
}

hr {
    width: 100%;
    border-top-width: thin !important;
    margin: 0 !important;
}

.wp-block-image>img {
    max-height: 75vh !important;
}

.hidden {
    display: none;
}

/* - HEADER - */
body:not(.home) {
    padding-top: var(--wp--custom--header--height);
}

body.logged-in:has(#wpadminbar) header {
    margin-top: 32px;
}

header {
    position: fixed !important;
    width: 100%;
    top: 0;
    z-index: 9;
    transition: 300ms;
}

header * {
    transition: 300ms;
}

header a:has(svg) {
    line-height: 0;
}

#header {
    min-height: var(--wp--custom--header--height) !important;
}

#header #open-menu-burger,
#menu-burger #close-menu-burger {
    cursor: pointer;
}

body.home #header {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

body.home header.scrolled #header {
    background: #262725E6 !important;
}

body.home #header .logo-switch,
body.home #header #open-menu-burger,
#menu-burger #close-menu-burger {
    fill: var(--wp--preset--color--light) !important;
}

body #header #open-menu-burger:hover,
#menu-burger #close-menu-burger:hover {
    fill: var(--wp--preset--color--accent) !important;
    transform: scale(0.9);
}

body:not(.home) #header .wp-block-button.is-style-alt:not(:hover) {
    background: #26262699 !important;
}

body:not(.home) #header .wp-block-button.is-style-alt .wp-element-button:after {
    filter: var(--wp--custom--filter--white) !important;
}

#menu-burger {
    position: fixed;
    top: 0;
    width: 100%;
    pointer-events: none;
}

#menu-burger:not(.open)>* {
    transform: translateX(100%);
}

#menu-burger>* {
    pointer-events: initial;
    max-width: fit-content;
    height: 100dvh !important;
    overflow: auto;
    transform: translateX(0%);
    transition: 300ms;
}

#menu-burger nav a {
    text-align: right;
    padding-inline: 4px;
}

#menu-burger nav a:hover,
#menu-burger nav .current-menu-item a {
    background: #ffffff66;
}

/* - BODY AND SPECIFIC - */
.hero:not(:has(> .hero-video)) {
    min-height: calc(100svh - var(--wp--preset--spacing--60));
    color: var(--wp--preset--color--light);
    padding-top: calc(var(--wp--custom--header--height) + var(--wp--preset--spacing--20)) !important;
    padding-bottom: unset;
    z-index: 3;
    pointer-events: none;
}

.hero:not(:has(> .hero-video)) .wp-block-heading,
.hero:not(:has(> .hero-video)) p {
    pointer-events: initial;
}

.hero:has(> .hero-video) {
    --hero-mask-horizontal: 33vw;
    --hero-mask-vertical: 33vh;
    height: 100lvh !important;
    position: sticky;
    bottom: 0;
    overflow: hidden;
}

.hero:has(> .hero-video):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--wp--preset--color--dark);
    opacity: 0.6;
    mask-image: linear-gradient(black), linear-gradient(black);
    mask-composite: subtract;
    mask-size: cover, max(var(--hero-mask-horizontal), var(--hero-mask-vertical)) max(var(--hero-mask-horizontal), var(--hero-mask-vertical));
    mask-repeat: repeat, no-repeat;
    mask-position: center;
}

.hero .hero-video {
    background: url(/wp-content/uploads/2025/06/thumb.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: absolute !important;
    top: 50%;
    left: 50%;
    height: 100%;
    min-height: 105%;
    min-width: 105%;
    aspect-ratio: 21/9;
    transform: translate(-50%, -50%);
    max-width: unset !important;
    user-select: none;
}

.hero .hero-video,
.hero .hero-video * {
    max-width: unset !important;
}

.hero s {
    text-decoration: none !important;
}

.secteurs {
    grid-template-rows: repeat(4, 1fr) !important;
}

.hero .sound-buttons {
    filter: var(--wp--custom--filter--white);
    position: absolute;
    left: var(--wp--preset--spacing--60);
    bottom: var(--wp--preset--spacing--60);
    z-index: 5;
    cursor: pointer;
}

.hero .sound-buttons svg {
    transition: 300ms;
}

.hero .sound-buttons:hover svg {
    transform: scale(0.9);
}

.wp-block-group.is-layout-flex:not(.is-vertical) figure:has(svg) {
    min-width: fit-content;
}

body:not(.home) .entry-content>div:first-child:has(img) {
    min-height: calc(100svh - var(--wp--custom--header--height));
}

/* - FOOTER - */

/* - WP FORMS - */

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

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

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

.wpforms-field-label {
    font-weight: 400 !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: 600 !important;
    letter-spacing: 0.1em !important;
    line-height: 1.2em !important;
    padding: 17px 40px !important;
    text-transform: uppercase !important;
}

.wpforms-submit:hover {
    background: var(--wp--preset--color--dark) !important;
    color: var(--wp--preset--color--light) !important;
    border-color: currentColor !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;
}

.wpforms-field-container {
    --wpforms-button-background-color: black !important
}

/* - 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--primary) !important;
    text-decoration: underline;
}

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

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

[class*='swiper-button-']:has(img):after {
    content: unset !important;
}

[class*='swiper-button-']:has(img),
[class*='swiper-button-'] img {
    width: var(--swiper-navigation-size);
    height: var(--swiper-navigation-size);
    object-fit: contain;
    object-position: center;
    transition: 300ms;
}

[class*='swiper-button-'] img {
    pointer-events: none;
}

h3:has(+.swiper.moyen) {
    width: 20%;
}

.swiper.moyen,
.swiper.pictures.template-moyens-de-controle {
    --swiper-navigation-size: 65px;
}

.swiper.moyen {
    width: 80%;
}

.swiper.moyen .swiper-slide>div {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--20);
}

.swiper.moyen img,
.swiper.pictures.template-moyens-de-controle img {
    aspect-ratio: 3/2;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.swiper.moyen:not(:has([class*='swiper-button-lock'])),
.swiper.pictures.template-moyens-de-controle:not(:has([class*='swiper-button-lock'])) {
    padding-bottom: calc((var(--swiper-navigation-size) / 65 * 60) + var(--wp--preset--spacing--20));
}

.swiper.moyen [class*='swiper-button-'],
.swiper.pictures.template-moyens-de-controle [class*='swiper-button-'] {
    top: unset;
    bottom: 0;
    right: unset;
    margin: unset !important;

    background-color: var(--wp--preset--color--dark);
}

.swiper.moyen [class*='swiper-button-']:hover {
    background: #26272599 !important;
}

.swiper.moyen [class*='swiper-button-'] img {
    filter: var(--wp--custom--filter--white);
}

.swiper.moyen [class*='swiper-button-']:has(img),
.swiper.moyen [class*='swiper-button-'] img,
.swiper.pictures.template-moyens-de-controle [class*='swiper-button-']:has(img),
.swiper.pictures.template-moyens-de-controle [class*='swiper-button-'] img {
    height: auto !important;
    aspect-ratio: 65/60;
}

.swiper.moyen .swiper-button-prev,
.swiper.pictures.template-moyens-de-controle .swiper-button-prev {
    left: 0;
}

.swiper.moyen .swiper-button-next,
.swiper.pictures.template-moyens-de-controle .swiper-button-next {
    left: calc(var(--swiper-navigation-size) + 2px);
}

.swiper.pictures.template-moyens-de-controle [class*='swiper-button-'] {
    background: #ffffff99 !important;
}

.swiper.pictures.template-moyens-de-controle [class*='swiper-button-']:hover {
    background: var(--wp--preset--color--light) !important;
}

/* - 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: 1024px) {

    /* TABLET > GLOBAL */
    :root {
        --wp--preset--font-size--h-1: 52px;
        --wp--preset--font-size--h-2: 36px;
        --wp--preset--font-size--h-3: 24px;
        --wp--preset--font-size--callout: 24px;
        --wp--preset--font-size--icon: 20px;
        --wp--preset--spacing--30: 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 > HEADER */

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

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

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

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

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

    .tablet-unset-gap {
        gap: unset !important;
    }

    .tablet-text-align-center,
    .tablet-text-align-center * {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .tablet-max-width-75-percent * {
        max-width: 75% !important;
    }

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

    .tablet-unset-grid-column {
        grid-column: span 1;
    }

    .tablet-unset-grid-row {
        grid-row: span 1;
    }

    body:not(.home) .entry-content>div:first-child:has(img) {
        min-height: calc(75svh - var(--wp--custom--header--height));
    }

    .swiper.moyen,
    .swiper.pictures.template-moyens-de-controle {
        --swiper-navigation-size: 52px;
    }

    /* TABLET > FOOTER */

    /* TABLET > SWIPER */

}

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

    /* MOBILE > GLOBAL */
    :root {
        --wp--preset--font-size--h-1: 32px;
        --wp--preset--font-size--h-2: 28px;
        --wp--preset--font-size--h-3: 20px;
        --wp--preset--font-size--callout: 18px;
        --wp--preset--font-size--icon: 18px;
        --wp--preset--font-size--list: 18px;
        --wp--preset--spacing--30: 20px;
        --wp--preset--spacing--40: 20px;
        --wp--preset--spacing--50: 20px;
        --wp--preset--spacing--60: 20px;
        --wp--preset--spacing--70: 40px;
        --wp--preset--spacing--80: 20px;
    }

    .mobile-bigger-padding-vertical,
    .mobile-bigger-padding-top {
        padding-top: 40px !important;
    }

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

    .mobile-bigger-padding-vertical,
    .mobile-bigger-padding-bottom {
        padding-bottom: 40px !important;
    }

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

    /* MOBILE > HEADER */

    .hero:not(:has(.hero-video)) {
        padding-top: calc(var(--wp--custom--header--height) + var(--wp--preset--spacing--20)) !important;
        padding-bottom: 100px !important;
    }

    .hero s {
        display: none;
    }

    #header .wp-block-buttons {
        display: none !important;
    }

    #menu-burger {
        --wp--preset--spacing--30: 40px !important;
        --wp--preset--spacing--40: 44px !important;
        --wp--preset--spacing--60: 40px !important;
    }

    #menu-burger>div {
        max-width: 100% !important;
        justify-content: center !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,
    .mobile-unset-padding-top {
        padding-top: unset !important;
    }

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

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

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

    .mobile-unset-gap {
        gap: 0 !important;
    }

    .mobile-reset-padding-inline {
        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;
    }

    .mobile-2-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-smaller-gap {
        gap: 12px !important;
    }

    .wp-block-image>img {
        max-height: 400px !important;
    }

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

    .secteurs {
        grid-template-rows: repeat(6, 1fr) !important;
    }

    .secteurs>div {
        min-height: 200px !important;
    }

    .secteurs .wp-block-cover__inner-container>.has-light-background-color {
        padding: 6px !important;
    }

    .secteurs> :nth-child(1) {
        grid-area: 1 / 1 / 2 / 2 !important;
    }

    .secteurs> :nth-child(2) {
        grid-area: 1 / 2 / 3 / 3 !important;
    }

    .secteurs> :nth-child(3) {
        grid-area: 3 / 2 / 4 / 3 !important;
    }

    .secteurs> :nth-child(4) {
        grid-area: 2 / 1 / 4 / 2 !important;
    }

    .secteurs> :nth-child(5) {
        grid-area: 5 / 1 / 6 / 2 !important;
    }

    .secteurs> :nth-child(6) {
        grid-area: 4 / 1 / 5 / 3 !important;
    }

    .secteurs> :nth-child(7) {
        grid-area: 5 / 2 / 6 / 3 !important;
    }

    .secteurs> :nth-child(8) {
        grid-area: 6 / 1 / 7 / 3 !important;
    }

    .is-layout-flex:not(.is-vertical).mobile-column>.wp-block-buttons .wp-element-button {
        white-space: unset !important;
    }

    body:not(.home) .entry-content>div:first-child:has(img) {
        min-height: unset !important;
        max-height: unset !important;
    }

    body:not(.home) .entry-content>div:first-child img:first-of-type {
        height: max(calc(50vh - var(--wp--custom--header--height)), 300px);
    }

    /* MOBILE > SWIPER */
    h3:has(+.swiper.moyen),
    .swiper.moyen {
        width: 100%;
    }

    /* MOBILE > FOOTER */
    footer {
        text-align: center !important;
    }

    footer a:has(> img) {
        width: fit-content;
    }

    footer img {
        width: 200px !important;
        max-width: 50vw !important;
    }

    footer hr {
        max-width: 350px;
        margin-inline: auto !important;
    }
}