/* 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):hover {
    opacity: 0.7;
}

.opacity-link {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.opacity-link:hover {
    opacity: 0.7;
}

/* 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--light);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

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

/* Hero */

.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    padding-top: 150px !important;
    width: 100%;
    justify-content: space-around;
    padding: 40px 60px;
}

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

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

.hero-section h1 {
    padding-top: var(--padding--top--hero);
    text-align: center;
    z-index: 2;
}

.hero-section strong {
    color: var(--wp--preset--color--red) !important;
}

.hero-text-rotate {
    font-size: var(--wp--preset--font-size--callout) !important;
    color: var(--wp--preset--color--light) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    background-color: var(--wp--preset--color--red);
    padding: 10px 20px;
    border-radius: 50px;
    transform: rotate(-1deg);
    z-index: 2;
    text-align: center;
    box-shadow: 4px 4px 12px 0 rgba(255, 255, 255, 0.22);
}

.hero-scroll-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--light) !important;
    transition: color 0.3s ease-out, transform 0.3s ease-out;
    z-index: 2;
    text-transform: uppercase;
}

.hero-scroll-section:hover {
    color: var(--wp--preset--color--red) !important;
    transform: scale(1.1);
}

.hero-scroll-section svg path {
    transition: stroke 0.3s ease-out;
}

.hero-scroll-section:hover svg path {
    stroke: var(--wp--preset--color--red) !important;
}

/* Body */
.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%;
}

.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 {
    height: fit-content;
    width: 100%;
    flex-shrink: 1;
}

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

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

.block-contact {
    width: 45%;
}

.block-contact>div {
    width: 100%;
}



/* Button */
.button {
    background-color: var(--wp--preset--color--red);
    color: var(--wp--preset--color--light);
    padding: 12px 24px;
    font-size: var(--wp--preset--font-size--button);
    font-family: var(--wp--preset--font-family--league-spartan) !important;
    cursor: pointer;
    font-weight: 400 !important;
    transition: background-color .3s ease-in-out;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    border-radius: 10px;
}

.button:hover {
    background-color: var(--wp--preset--color--red-hover) !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--league-spartan);
    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-255,
.wpforms-submit-container {
    font-family: var(--wp--preset--font-family--league-spartan) !important;
    font-size: var(--wp--preset--font-size--button) !important;
    cursor: pointer;
    font-weight: 400;
    text-transform: uppercase;
    line-height: normal;
    transition: all .3s ease-in-out;
    text-wrap: nowrap;
    padding: 12px 24px;
    letter-spacing: 0.64px;
    line-height: normal;
}

#wpforms-submit-453: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--league-spartan);
    font-size: var(--wp--preset--font-size--p-button);
}

/* Map */
.wpgmza_map {
    width: 60% !important;

}

.svg-wrapper {
    width: 40% !important;
    align-self: center !important;
}

/* Responsive */
@media not all and (min-width: 1537px) {
    .svg-wrapper {
        width: 50% !important;
    }

    .block-contact {
        width: 55%;
    }
}

@media not all and (min-width: 1281px) {
    .hero-section div:has(h1) {
        width: 80%;
    }

    .wpgmza_map {
        width: 50% !important;

    }
}

@media not all and (min-width: 1025px) {
    .hero-section div:has(h1) {
        width: 100%;
    }

    .text-section {
        width: 100%;
    }

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

    .wrapper-svg {
        width: fit-content;
        flex-wrap: wrap !important;
    }

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

    .wpgmza_map {
        width: 100% !important;

    }

    .block-contact {
        width: 65%;
    }
}

@media not all and (min-width: 769px) {
    .wrapper-svg {
        width: fit-content;
    }

    .text-image:not(.reverse-img) {
        flex-direction: column !important;
    }

    .text-image.reverse-img {
        flex-direction: column-reverse !important;
    }

    .text-image .text-content {
        width: 100%;
    }

    .text-image .image-content {
        width: 100%;
    }

    .contact-info-wrapper {
        width: 100%;
    }

    .svg-wrapper {
        width: 100% !important;
    }
}

@media not all and (min-width: 641px) {
    .hero-section {
        position: relative;
        min-height: 100svh;
        display: flex;
        padding-top: 150px !important;
        width: 100%;
        padding: 40px 40px;
    }

    .block-contact {
        width: 100%;
    }
}

@media not all and (min-width: 391px) {

    .container-svg {
        flex-direction: column !important;
    }

    .svg-wrapper {
        flex-direction: column !important;
    }

    .image-content svg {
        width: 100%;
    }
}