/* - REPERES DEVELOPPEMENT */
body.logged-in:before {
    --nb-c: var(--wp--custom--columns);
    --p: var(--wp--preset--spacing--40);
    --g: var(--wp--preset--spacing--20);
    --c: calc((100% - (var(--nb-c) - 1) * var(--g)) / var(--nb-c));

    /* content: ''; */
    position: fixed;
    top: 0;
    left: var(--p);
    height: 100%;
    width: calc(100% - 2 * var(--p));
    background-image:
        repeating-linear-gradient(90deg,
            red 0 calc(var(--c)),
            transparent calc(var(--c)) calc(var(--c) + var(--g)));
    background-size: 100%;
    opacity: 10%;
    z-index: 9;
    pointer-events: none;
}

/* - 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 {
    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;
    color: unset;
}

p a {
    color: unset;
}

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%;
}

/* - HEADER - */
/* body {
    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>div:first-of-type {
    min-height: var(--wp--custom--header--height)
}

header nav a{
    padding: 12px 24px;
    border: solid 1px var(--wp--preset--color--dark);
    border-left: unset;
    background-color: var(--wp--preset--color--light);
    transition: 300ms;
}

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

header nav .contact{
    display: none !important;
}

header .wp-block-button:has(.open-menu-button){
    display: none;
}

header .open-menu-button{
    background-color: var(--wp--preset--color--light) !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

header .open-menu-button:hover{
    background-color: var(--wp--preset--color--dark) !important;
}

/* - BODY AND SPECIFIC - */
.home .entry-content > div:last-child{
    margin-top: calc(0px - var(--wp--preset--spacing--60) / 2);
}

/* - FOOTER - */

/* - SWIPER - */
.swiper{
    width: 100px;
    min-width: 100%;
}

.has-dark-background-color .swiper.pictures-logos {
    min-width: min(445px, 100%);
}
.has-dark-background-color .swiper.pictures-logos figure{
    background-color: var(--wp--preset--color--dark);
}

.has-dark-background-color .swiper.pictures-logos img{
    filter: brightness(0) invert(1);
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: 78px;
}

/* - 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: 16px !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: 500 !important;
    line-height: 1.2em !important;
    padding: 12px 24px !important;
}

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

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

.wpforms-uploader .modern-title {
    color: inherit !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 {
    word-break: break-word;
}

.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, var(--wp--preset--color--primary)) !important;
    text-decoration: underline;
}

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

/* - POPUPS - */
html:has([class*='popup'].open){
    overflow: hidden;
}

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

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

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

    /* BIGGER TABLET > GLOBAL */
    .bigger-tablet-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

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

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

    .bigger-tablet-hide{
        display: none !important;
    }

    .bigger-tablet-reset-padding-right{
        padding-right: var(--wp--preset--spacing--40) !important;
    }

    /* BIGGER TABLET > HEADER */

    /* BIGGER TABLET > BODY AND SPECIFIC */
    .icons-grid{
        flex-basis: 42% !important;
    }

    .template-1{
        display: grid !important;
        grid-template-columns: 550px 1fr 250px;
        margin-top: unset !important;
    }

    :is(.template-1, .template-3) > *{
        width: 100% !important;
    }

    .template-3{
        display: grid !important;
        grid-template-columns: 1fr 550px 250px;
        margin-top: unset !important;
    }

    /* BIGGER TABLET > SWIPER */

    /* BIGGER TABLET > FOOTER */
}

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

    /* TABLET > GLOBAL */
    .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-reset-padding-inline {
        padding-right: var(--wp--preset--spacing--40) !important;
        padding-left: var(--wp--preset--spacing--40) !important;
    }

    .tablet-unset-margin-vertical {
        margin-top: unset !important;
        margin-bottom: unset !important;
    }

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

    .tablet-reset-margin-vertical {
        margin-top: var(--wp--preset--spacing--60) !important;
        margin-bottom: var(--wp--preset--spacing--60) !important;
    }

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

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

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

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

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

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

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

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

    /* TABLET > HEADER */
    header:has(nav.menu-burger.open) {
        background-color: var(--wp--preset--color--light);
    }

    header .wp-block-button:has(.open-menu-button) {
        display: flex;
    }

    header nav.menu-burger:not(.open){
        opacity: 0;
        pointer-events: none;
    }

    header nav.menu-burger{
        opacity: 1;
        pointer-events: all;
        transition: 300ms;
        position: fixed;
        top: calc(var(--wp--custom--header--height) + var(--wp-admin--admin-bar--height, 0px));
        left: 0;
        padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
        width: 100%;
        background-color: var(--wp--preset--color--light);
        border-bottom: solid 1px var(--wp--preset--color--dark);
    }

    header nav li {
        flex-grow: 1;
    }

    header nav a{
        width: 100%;
        text-align: center;
    }

    header nav li:first-child a{
        border-left: solid 1px var(--wp--preset--color--dark) !important;
    }

    /* TABLET > BODY AND SPECIFIC */
    .template-1, 
    .template-3{
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    :is(.template-1, .template-3) > :last-child{
    border-left: unset !important;
        border-top: solid 1px var(--wp--preset--color--dark) !important;
        grid-column: span 2;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        height: 115px;
    }

    :is(.template-1, .template-3)> :last-child > :only-child{
        border-bottom: unset !important;
        border-right: solid 1px var(--wp--preset--color--dark) !important;
    }

    .template-2 > :first-child{
        margin-right: var(--wp--preset--spacing--60);
    }
    .template-2 > :nth-child(2){
        margin-left: var(--wp--preset--spacing--60);
    }

    .icons-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        max-width: 700px !important;
    }

    .icons-grid > :first-child{
        order: 1;
        border-left: unset !important;
        border-bottom: solid 1px var(--wp--preset--color--dark) !important;
    }

    .icons-grid > :nth-child(2){
        grid-column-start: 3;
        grid-row-start: 1;
    }

    /* TABLET > FOOTER */

    /* TABLET > SWIPER */

}

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

    /* SMALLER TABLET > GLOBAL */
    :root{
        --wp--preset--spacing--40: 40px;
        --wp--preset--font-size--h-1: 40px;
        --wp--preset--font-size--h-2: 32px;
        --wp--preset--font-size--h-3: 24px;
        --wp--custom--columns: 8;
    }

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

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

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

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

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

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

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

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

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

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

    .smaller-tablet-hide {
        display: none !important;
    }

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

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

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

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

    .smaller-tablet-4-columns{
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* SMALLER TABLET > HEADER */
    header ul.menu-burger {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav li {
        flex-grow: unset;
    }

    header nav a {
        border-left: solid 1px var(--wp--preset--color--dark);
    }

    /* SMALLER TABLET > BODY AND SPECIFIC */
    .wpgmza_map {
        max-height: 300px !important;
    }

    :is(.template-1, .template-3) > :first-child{
        border: unset !important;
    }

    .template-1 > :first-child,
    .template-3 > :nth-child(2){
        min-height: 550px;
    }

    .template-2> :first-child {
        margin-right: var(--wp--preset--spacing--40);
    }

    .template-2> :nth-child(2) {
        margin-left: var(--wp--preset--spacing--40);
    }

    /* SMALLER TABLET > SWIPER */

    /* SMALLER TABLET > FOOTER */

}

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

    /* BIGGER MOBILE > GLOBAL */
    :root{
        --wp--preset--spacing--40: 20px;
        --wp--custom--columns: 6;
    }

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

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

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

    /* BIGGER MOBILE > HEADER */

    /* BIGGER MOBILE > BODY AND SPECIFIC */
    .template-2> :first-child {
        margin-right: unset;
    }

    .template-2> :nth-child(2) {
        margin-left: unset;
    }

    .icons-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 470px !important;
    }

    .icons-grid> :nth-child(2) {
        grid-column-start: 2;
        grid-row-start: 3;
    }

    .icons-grid> :first-child{
        border-left: solid 1px var(--wp--preset--color--dark) !important;
        border-top: unset !important;
    }

    /* BIGGER MOBILE > SWIPER */

    /* BIGGER MOBILE > FOOTER */
}

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

    /* MOBILE > GLOBAL */
    :root{
        --wp--preset--font-size--h-1: 28px;
        --wp--preset--font-size--h-2: 24px;
        --wp--preset--font-size--h-3: 18px;
        --wp--preset--font-size--callout: 20px;
        --wp--preset--spacing--60: 40px;
    }

    .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-2-columns{
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* MOBILE > HEADER */
    header .wp-block-button:has(.open-menu-button) + .wp-block-button{
        display: none !important;
    }

    header nav .contact{
        display: flex !important;
    }

    header nav .contact a{
        background-color: var(--wp--preset--color--primary) !important;
        color: var(--wp--preset--color--light) !important;
        border: unset !important;
    }

    header nav .contact a:hover{
        background-color: var(--wp--preset--color--accent-hover) !important;
    }

    /* MOBILE > BODY AND SPECIFIC */
    .wp-block-image img{
        max-height: 350px;
    }

    .template-1 > :first-child,
    .template-3 > :nth-child(2){
        min-height: 350px;
    }

    .icons-grid{
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .icons-grid > *{
        border-left: solid 1px var(--wp--preset--color--dark) !important;
        border-right: solid 1px var(--wp--preset--color--dark) !important;
    }

    .icons-grid> :nth-child(2) {
        display: none !important;
    }

    .icons-grid > :nth-child(6){
        border-top: unset !important;
    }

    /* MOBILE > SWIPER */

    /* MOBILE > FOOTER */
}

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

    /* SMALLER MOBILE > GLOBAL */
    .smaller-mobile-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

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

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

    /* SMALLER MOBILE > HEADER */

    /* SMALLER MOBILE > BODY AND SPECIFIC */

    /* SMALLER MOBILE > SWIPER */

    /* SMALLER MOBILE > FOOTER */
}