/* Générale */
html {
    scroll-behavior: smooth;
}

#scroll {
    scroll-margin-top: 150px;
}

svg {
    flex-shrink: 0;
}

p:empty {
    display: none;
}

footer a:has(svg) {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

footer a:has(svg):not(.button):not(.footer-phone):hover {
    opacity: 0.7;
}

strong {
    color: var(--wp--preset--color--blue) !important;
    font-weight: 600 !important;
}

p strong {
    color: var(--wp--preset--color--blue) !important;
    font-weight: 400 !important;
}


img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* Fonctionalités */
.bg-filter {
    position: relative;
}

.bg-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.simple-link {
    position: relative;
}

.simple-link a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--wp--preset--color--dark);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.simple-link a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.grid-shadow {
    box-shadow: 3px 4px 12px 0 rgba(27, 28, 28, 0.20);
}

.simple-grid {
    width: 100%;
    gap: var(--spacing-60);
}

.simple-grid h3 {
    padding: var(--spacing-40);
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    box-shadow: 3px 4px 12px 0 rgba(27, 28, 28, 0.20);
    background-color: var(--wp--preset--color--light);
}

.simple-grid:has(> div) {
    gap: var(--spacing-20);
}

.simple-grid div {
    padding: var(--spacing-40);
    min-height: 330px;
    box-shadow: 3px 4px 12px 0 rgba(27, 28, 28, 0.20);
    background-color: var(--wp--preset--color--light);
}

.simple-grid div p {
    text-align: center;
}

.simple-grid div p:nth-child(2) {
    font-family: var(--wp--preset--font-family--inter) !important;
    font-size: var(--wp--preset--font-size--callout) !important;
    font-weight: 400;
    letter-spacing: 0.9px;
}

/* Hero */
.hero-grid {
    max-height: calc(100svh - 20px);
    padding-top: 105px;
    padding-left: 20px;
    padding-right: 20px;
    display: grid;
    grid-template-columns: repeat(16, 1fr) !important;
    grid-template-rows: repeat(11, 1fr) !important;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.hero-grid figure:nth-child(1) {
    grid-area: 1 / 1 / 6 / 4;
}

.hero-grid figure:nth-child(2) {
    grid-area: 1 / 4 / 6 / 10;
}

.hero-grid figure:nth-child(3) {
    grid-area: 1 / 10 / 6 / 17;
}

.hero-grid h1:nth-child(4) {
    grid-area: 6 / 1 / 7 / 17;
    text-align: center;
    align-self: center;
    justify-content: center;
}

.hero-grid figure:nth-child(5) {
    grid-area: 7 / 1 / 9 / 6;
}

.hero-grid figure:nth-child(6) {
    grid-area: 9 / 1 / 12 / 6;
}

.hero-grid figure:nth-child(7) {
    grid-area: 7 / 6 / 12 / 9;
}

.hero-grid figure:nth-child(8) {
    grid-area: 7 / 9 / 12 / 13;
}

.hero-grid figure:nth-child(9) {
    grid-area: 7 / 13 / 9 / 17;
}

.hero-grid figure:nth-child(9) img {
    object-position: 50% 80%;
}

.hero-grid figure:nth-child(10) {
    grid-area: 9 / 13 / 12 / 17;
}

.hero-container {
    position: relative;
    min-height: calc(100svh - 20px);
    display: flex;
    width: 100%;
    padding-top: 105px;
}

@media not all and (min-width: 1025px) {
    .hero-container {
        min-height: unset !important;
    }

    .hero-container .img-hero {
        position: relative !important;
        aspect-ratio: 16/9;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
}

.hero-grid figure {
    min-height: 150px;
}

.hero-grid figure img {
    object-position: 50% 60%;
}


.hero-container:not(:has(.img-hero)) figure {
    position: absolute;
    top: 105px;
    left: 0;
    width: 100%;
    height: calc(100% - 105px);
    z-index: -1;
}

.hero-container:has(.img-hero) figure {
    position: absolute;
    top: 105px;
    left: 20px;
    right: 20px;
    height: calc(100% - 105px);
    z-index: -1;
}

.img-mid,
.img-small {
    display: none;
}

.hero-title {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, 50%);
    transform-origin: center;
    text-align: center;
}

.bg-title {
    background-color: var(--wp--preset--color--light);
    width: 100%;
    left: 0 !important;
    transform: translateY(0) !important;
    text-transform: uppercase;
    padding: var(--spacing-20);
}

.bg-title-accueil {
    background-color: var(--wp--preset--color--light);
    width: 100%;
    left: 0 !important;
    transform: translateY(10%) !important;
    text-transform: uppercase;
    padding: var(--spacing-20);
}




/* Body */

.wp-block-group:has(> .hero-container) {
    gap: 40px;
}

div:has(> .double-collapse) {
    padding-left: var(--wp--custom--px);
    padding-right: var(--wp--custom--px);
    gap: var(--spacing-40);
    width: 100%;
}

.double-collapse {
    gap: var(--spacing-20);
    align-items: flex-start;
    width: 100%;
}

.text-section {
    width: 80%;
    text-align: center;
    padding-left: var(--wp--custom--px);
    padding-right: var(--wp--custom--px);
}

.normal-block {
    padding-left: var(--wp--custom--px);
    padding-right: var(--wp--custom--px);
    gap: var(--wp--custom--block-gap);
    align-items: flex-start;
    width: 100%;
}

.grid-container {
    width: 100%;
}

.grid-container svg {
    flex-shrink: 0;
}

.text-image {
    gap: var(--wp--custom--block-gap);
    width: 100%;
    padding-left: var(--wp--custom--px);
    padding-right: var(--wp--custom--px);
}


.text-image .text-content {
    gap: 40px;
    width: 45%;
}

.text-image .image-content {
    width: 55%;
    align-self: stretch;
}

.text-image .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container-svg {
    width: 100%;
}

.container-svg svg {
    width: 100%;
    flex-shrink: 1;
}

.image-content svg {
    width: calc(100% / 3);
    flex-shrink: 1;
}

.contact-info-wrapper {
    z-index: 10;
    position: relative;
    border-radius: 20px;
    width: 45%;
}

.stats-block figure {
    height: 680px;

}

.stats-block figure img {
    height: 680px;

}

.stats-translate {
    box-shadow: 3px 4px 12px 0 rgba(27, 28, 28, 0.20);
    width: 100%;
    gap: 0;
    background-color: var(--wp--preset--color--light);
    z-index: 10;
}

.stats-translate div,
.stats-translate-bot div {
    padding: var(--spacing-40);
    width: 100%;
    gap: var(--spacing-40);
    min-height: 270px;
    justify-content: center;
}

.stats-translate div>p:first-child,
.stats-translate-bot div>p:first-child {
    font-family: var(--wp--preset--font-family--inter);
    font-size: var(--wp--preset--font-size--callout-3);
    color: var(--wp--preset--color--blue);
    font-weight: 600;
    letter-spacing: 1.6px;
    text-align: center;
}

.stats-translate div>p:last-child,
.stats-translate-bot div>p:last-child {
    font-family: var(--wp--preset--font-family--inter);
    font-size: var(--wp--preset--font-size--callout);
    color: var(--wp--preset--color--dark);
    font-weight: 400;
    letter-spacing: 0.9px;
    text-align: center;
}

.stats-translate hr {
    height: 150px;
    width: 1px;
    background-color: var(--wp--preset--color--dark);
}

.stats-translate-bot {
    display: none !important;
}

.number-container {
    gap: var(--spacing-60);
    width: 100%;
    padding-left: var(--wp--custom--px);
    padding-right: var(--wp--custom--px);
}

.number-container>div {
    width: 100%;
    justify-content: center;
}

.number-container>div>div {
    gap: var(--spacing-50);
    width: 60%;
}

.number-container>div>div:last-child {
    gap: var(--spacing-50);
    width: 70%;
}

.grid-gerant {
    gap: var(--spacing-20);
    width: 100%;
    height: fit-content;
    padding-left: var(--wp--custom--px);
    padding-right: var(--wp--custom--px);
}

.grid-gerant>div {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap !important;
    height: 100%;
}

.grid-gerant>div>div {
    padding-left: var(--spacing-20);
    padding-right: var(--spacing-20);
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.grid-gerant>div>div p:first-child {
    font-family: var(--wp--preset--font-family--inter) !important;
    font-size: var(--wp--preset--font-size--callout) !important;
    font-weight: 400;
    letter-spacing: 0.9px;
}

.grid-gerant>div>div p a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid var(--wp--preset--color--dark);
    width: 100%;
    background-color: var(--wp--preset--color--light);
    transition: background-color .3s ease-in-out;
    justify-content: center;
}

.grid-gerant>div>div p a:hover {
    background-color: var(--wp--preset--color--gray);
}

.grid-gerant>div>div p:has(a) {
    width: 100%;
}

.text-translate {
    width: 100%;
    position: relative;
    justify-content: flex-end !important;
}

.text-translate>div {
    position: absolute;
    left: 0;
    padding: var(--spacing-40);
    width: 50%;
}

.text-translate>div>div {
    gap: var(--spacing-10);
}

.text-translate>figure {
    width: 70%;
    height: 650px;
}

.img-form {
    width: 100%;
    padding-left: var(--wp--custom--px);
    padding-right: var(--wp--custom--px);
    gap: var(--wp--custom--block-gap);
    align-items: flex-start;
}

.img-form>div:first-child {
    width: 100%;
}

.img-form>div:last-child {
    width: 100%;

}

.block-details {
    width: 100%;
    padding: var(--spacing-40);
    gap: var(--spacing-20);
    box-shadow: 3px 4px 12px 0 rgba(27, 28, 28, 0.20);
}

.mobile-map {
    display: none;
}

/* Button */
.button {
    background-color: var(--wp--preset--color--blue);
    color: var(--wp--preset--color--dark);
    padding: 12px 24px;
    font-size: var(--wp--preset--font-size--button);
    font-family: var(--wp--preset--font-family--inter) !important;
    cursor: pointer;
    font-weight: 300 !important;
    transition: background-color .3s ease-in-out;
}

.button:hover {
    background-color: var(--wp--preset--color--blue-hover) !important;
}

.white-button {
    background-color: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
    padding: 12px 24px;
    font-size: var(--wp--preset--font-size--button);
    font-family: var(--wp--preset--font-family--inter) !important;
    cursor: pointer;
    font-weight: 300 !important;
    border: 1px solid var(--wp--preset--color--light);
    transition: background-color .3s ease-in-out, color .3s ease-in-out;
}

.white-button:hover {
    background-color: var(--wp--preset--color--blue-hover) !important;
    color: var(--wp--preset--color--light) !important;
}

/* Formulaire */

.form-wrapper {
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.50);
}

.wpforms-container {
    width: 100% !important;
}

.wpforms-container-full {
    margin: 0 !important
}

.wpforms-field {
    padding: 0 0 16px 0 !important;
}

.wpforms-field-label,
.wpforms-field-label-inline {
    font-family: var(--wp--preset--font-family--roboto);
    font-size: var(--wp--preset--font-size--p-button);
    color: var(--wp--preset--color--light);
    font-weight: 400 !important;
    margin: 0 0 6px 0 !important;
}

.wpforms-required-label {
    display: none
}

#wpforms-submit-449,
#wpforms-submit-460,
#wpforms-submit-463,
#wpforms-submit-466,
#wpforms-submit-503 {
    font-family: var(--wp--preset--font-family--roboto) !important;
    font-size: var(--wp--preset--font-size--button) !important;
    cursor: pointer;
    font-weight: 300;
    line-height: normal;
    transition: all .3s ease-in-out;
    text-wrap: nowrap;
    padding: 12px 24px;
    line-height: normal;
    background: unset;
    background-color: var(--wp--preset--color--blue);
    color: var(--wp--preset--color--dark);
}

#wpforms-submit-449:hover,
#wpforms-submit-460:hover,
#wpforms-submit-463:hover,
#wpforms-submit-466:hover,
#wpforms-submit-503:hover {
    background-color: var(--wp--preset--color--blue-hover);
}

div.wpforms-container-full input[type=checkbox]:before {
    border-color: var(--wp--preset--color--dark) !important;
}

.wpforms-submit-container {
    display: flex;
    justify-content: flex-start !important;
}

div.wpforms-container-full input[type=checkbox]:before {
    border-radius: 0px;
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--light);
}

.choice-1 {
    align-items: center !important
}

.wpforms-submit-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0px !important;
    width: fit-content !important;
}

option {
    font-family: var(--wp--preset--font-family--roboto);
    font-size: var(--wp--preset--font-size--p);
}

.wpforms-field-radio fieldset {
    display: flex;
    align-items: center !important;
    gap: 10px !important;
}

.wpforms-field-radio fieldset legend {
    float: inline-start !important;
    margin: 0 !important;
    align-self: flex-start !important;
    white-space: nowrap !important;
}

.wpforms-field-radio label {
    margin: 0 0 0 0 !important;
    padding-inline-start: 6px !important;
}

.wpforms-field-radio ul {
    gap: 20px !important;
}


/* Map */
.map-block {
    width: 100%;
    align-items: flex-start;
    padding-right: var(--wp--custom--px);
}

.map-block>div {
    width: 100%;
    gap: var(--spacing-100);
}

.map-block h2 {
    width: 100%;
}

.carte-svg {
    width: 60%;
    height: fit-content;
}

.carte-svg a path {
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: fill 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.carte-svg a path:last-child {
    position: relative;
}

.carte-svg a:hover path {
    fill: var(--wp--preset--color--dark);
}

.carte-svg a:hover text {
    opacity: 1;
}

.carte-svg.desktop-map a:hover path:nth-child(2) {
    transform: translateY(-18px);
}

svg text {
    font-size: var(--wp--preset--font-size--callout);
    fill: var(--wp--preset--color--dark);
    font-family: var(--wp--preset--font-family--inter);
    font-weight: 400;
    letter-spacing: 0.9px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Responsive */
@media not all and (min-width: 1537px) {
    .map-block h2 {
        width: 100%;
    }

    .map-block>div {
        width: 100%;
        gap: var(--spacing-100);
    }

    .map-block>div figure {
        width: 100%;
        height: 350px;
    }

    .carte-svg {
        width: 70%;
        height: fit-content;
    }

}

@media not all and (min-width: 1281px) {
    .img-big {
        display: none;
    }

    .img-mid {
        display: block;
    }

    .hero-title {
        top: 70%;
    }

    .text-translate>figure {
        width: 80%;
        height: 650px;
    }

}

@media not all and (min-width: 1025px) {
    .double-collapse {
        flex-direction: column !important;
    }

    div:has(> .double-collapse) {
        gap: var(--spacing-20);
    }

    .hero-section div:has(h1) {
        width: 100%;
    }

    .text-section {
        width: 100%;
    }

    .normal-block {
        flex-direction: column !important;
    }

    .wrapper-svg {
        width: 100%;
    }

    .wrapper-svg svg {
        width: 100%;
        flex-shrink: 1;
    }

    .wpgmza_map {
        width: 100% !important;

    }

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

    .map-block {
        flex-direction: column-reverse;
    }

    .map-block h2 {
        width: 100%;
        padding-left: var(--wp--custom--px);
    }

    .carte-svg {
        width: 100%;
    }

    .stats-translate {
        display: none !important;
    }

    .stats-translate-bot {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        box-shadow: 3px 4px 12px 0 rgba(27, 28, 28, 0.20);
        margin-top: 0px !important;
        background-color: var(--wp--preset--color--light);
    }


    .stats-translate-bot div {
        min-height: 195px;
    }

    .stats-translate-bot div:nth-child(2) {
        border-left: 1px solid var(--wp--preset--color--dark);
    }

    .stats-translate-bot div:nth-child(3) {
        border-top: 1px solid var(--wp--preset--color--dark);
    }

    .stats-translate-bot div:nth-child(4) {
        border-top: 1px solid var(--wp--preset--color--dark);
        border-left: 1px solid var(--wp--preset--color--dark);
    }

    .stats-translate-bot div:last-child {
        grid-column: 1 / 3;
        border-top: 1px solid var(--wp--preset--color--dark);
    }

    .simple-grid {
        gap: var(--spacing-40);
    }

    .simple-grid h3 {
        padding: var(--spacing-20);
    }

    .simple-grid:has(> div) {
        grid-template-columns: repeat(2, 1fr) !important;
    }

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

    .number-container>div>div {
        gap: var(--spacing-30);
        width: 80%;
    }

    .number-container>div>div:last-child svg {
        flex-shrink: 1;
        min-width: 320px !important;
    }


    .number-container>div>div svg {
        flex-shrink: 1;
        min-width: 180px;
    }
}

@media not all and (min-width: 769px) {
    .hero-grid {
        gap: 5px;
        grid-template-columns: repeat(8, 1fr) !important;
        grid-template-rows: repeat(9, 1fr) !important;
    }

    .hero-grid figure:nth-child(1) {
        grid-area: 1 / 6 / 3 / 9;
    }

    .hero-grid figure:nth-child(2) {
        grid-area: 1 / 1 / 3 / 6;
    }

    .hero-grid figure:nth-child(3) {
        grid-area: 3 / 1 / 5 / 9;
    }

    .hero-grid h1:nth-child(4) {
        grid-area: 5 / 1 / 6 / 9;
    }

    .hero-grid figure:nth-child(5) {
        grid-area: 6 / 1 / 8 / 3;
    }

    .hero-grid figure:nth-child(6) {
        grid-area: 6 / 3 / 8 / 5;
    }

    .hero-grid figure:nth-child(7) {
        grid-area: 6 / 5 / 8 / 9;
    }

    .hero-grid figure:nth-child(8) {
        grid-area: 8 / 1 / 10 / 4;
    }

    .hero-grid figure:nth-child(9) {
        grid-area: 8 / 4 / 9 / 9;
    }

    .hero-grid figure:nth-child(10) {
        grid-area: 9 / 4 / 10 / 9;
    }

    .hero-grid figure {
        min-height: 0;
    }

    .hero-grid figure img {
        object-position: 50% 60%;
    }

    .hero-title {
        top: 51%;
    }

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

    .number-container>div>div:last-child svg {
        flex-shrink: 1;
        min-width: 250px !important;
    }

    .text-translate {
        width: 100%;
        position: relative;
        justify-content: flex-start !important;
        flex-direction: column !important;
        gap: 0;
    }

    .text-translate>div {
        position: relative;
        padding: var(--spacing-40);
        width: 100%;
    }


    .text-translate>figure {
        width: 100%;
        height: 350px;
    }

    .img-form {
        flex-direction: column !important;
    }

    .img-form>div:first-child {
        background-position: 50% 40% !important;
    }

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

    .mobile-map {
        display: block;
    }

    .desktop-map {
        display: none;
    }
}

@media not all and (min-width: 641px) {
    .simple-grid {
        gap: var(--spacing-20);
    }

    .img-mid {
        display: none;
    }

    .img-small {
        display: block;
    }

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

    .stats-translate-bot {
        grid-template-columns: repeat(1, 1fr);
    }

    .stats-translate-bot div:nth-child(2) {
        border-left: unset;
        border-top: 1px solid var(--wp--preset--color--dark);
    }

    .stats-translate-bot div:nth-child(3) {
        border-top: 1px solid var(--wp--preset--color--dark);
    }

    .stats-translate-bot div:nth-child(4) {
        border-top: 1px solid var(--wp--preset--color--dark);
        border-left: unset;
    }

    .stats-translate-bot div:last-child {
        grid-column: 1 /1;
    }

    .simple-grid,
    .simple-grid:has(> div) {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .number-container>div {
        gap: var(--spacing-40);
    }

    .number-container>div>div:nth-child(odd) {
        gap: var(--spacing-20);
        width: 100%;
        flex-direction: column !important;
    }

    .number-container>div>div:nth-child(even) {
        gap: var(--spacing-20);
        width: 100%;
        flex-direction: column-reverse !important;
    }

    .number-container>div>div svg {
        flex-shrink: 1;
        width: 100%;
    }

    .number-container>div>div p {
        width: 100%;
    }

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


    .bg-title-accueil {
        transform: translateY(0%) !important;
    }

}

@media not all and (min-width: 460px) {
    .grid-gerant {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .grid-gerant figure {
        height: 350px;
    }

    .grid-gerant figure img {
        object-position: 50% 20%;
    }
}

@media not all and (min-width: 391px) {
    .hero-container figure {
        top: 85px;
        height: calc(100% - 85px);
    }

    .stats-block figure {
        height: 515px;

    }

    .stats-block figure img {
        height: 515px;

    }

    .number-container>div>div:last-child svg {
        flex-shrink: 1;
        min-width: 180px !important;
    }



    .text-translate>div {
        padding: var(--spacing-20);
    }

    .hero-title {
        top: 53%;
    }
}