/*
Theme Name: Maisons Vivre Ici
Theme URI: https://github.com/elementor/hello-theme/
Description: Thème enfant de Hello Elementor par IPSO
Author: IPSO
Author URI: https://www.studioipso.fr
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-child
*/

/* -- Header */
.header-primary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition-duration: .3s;
}

.home .header-primary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body:is(.scroll-up, .scroll-down) .header-primary {
    background-color: #fff !important;
}

@media screen and (max-width: 767px) {
    .header-primary {
        background-color: #fff !important;
    }
}

@media screen and (min-width: 1285px) {
    .home:not(.scroll-up, .scroll-down) .header-primary .header-logo img {
        height: 90px;
    }
}



.header-menu .elementor-nav-menu--dropdown {
    border-top: 1px solid #eee;
}

@media screen and (max-width: 1284px) {
    .header-menu .elementor-nav-menu--dropdown {
        box-shadow: unset !important;
    }
}

.header-menu .elementor-nav-menu--dropdown a,
.header-menu .elementor-nav-menu--dropdown a:is(:hover, :focus) {
    border-inline-start: unset;
}

.header-menu .sub-menu.elementor-nav-menu--dropdown .elementor-sub-item {
    font-weight: 400 !important;
}

.header-menu .elementor-menu-toggle {
    padding: 0;
    background: transparent;
}

.header-menu .elementor-menu-toggle__icon--open,
.header-menu .elementor-menu-toggle__icon--close {
    height: 2rem !important;
}



/* -- Buttons */
:is(.elementor-widget-button, .e-loop__load-more) .elementor-button {
    position: relative;
}

:is(.elementor-widget-button, .e-loop__load-more) .elementor-button .elementor-button-content-wrapper::before {
    content: attr(data-btn);
    position: absolute;
    left: 0;
    transform: translate(0px, -100%);
    transition: .3s ease-in-out;
    width: 100%;
    opacity: 0;
}

:is(.elementor-widget-button, .e-loop__load-more) .elementor-button:is(:hover) .elementor-button-content-wrapper::before {
    opacity: 1;
    transform: translate(0, 0);
}

:is(.elementor-widget-button, .e-loop__load-more) .elementor-button .elementor-button-text {
    display: block;
    position: relative;
    transition: .3s ease-in-out;
}

:is(.elementor-widget-button, .e-loop__load-more) .elementor-button:is(:hover) .elementor-button-text {
    transform: translate(0, 100%);
    opacity: 0;
}



/* -- Heading blur */
.heading-blur {
    backdrop-filter: blur(6px);
}



/* -- Modèle : Réalisation */
.modele-realisation-type .elementor-heading-title {
    display: flex;
    flex-flow: wrap;
    gap: .5rem;
}

.modele-realisation-type .elementor-heading-title span::before {
    content: '#';
    margin-right: .1em;
}



/* --  Filtre : Réalisation */
.filtre-realisation .elementor-heading-title {
    font-weight: 500;
    border-bottom: 1px dotted ;
}

.filtre-realisation a:is(:hover, :focus) .elementor-heading-title {
    color: var(--e-global-color-primary) !important;
}

.filtre-realisation > a.active {
    background-color: var(--e-global-color-primary) !important;
}

.filtre-realisation > a.active .elementor-heading-title {
    position: relative;
    color: #fff !important;
    font-weight: 700;
    border-bottom-color: transparent;
}



/* Carrousel : Réalisation */
.carrousel-realisation-swiper {
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.carrousel-realisation-slide,
.carrousel-realisation-empty {
    height: 600px !important
}

@media screen and (max-width: 1024px) {
    .carrousel-realisation-slide,
    .carrousel-realisation-empty {
        height: 450px !important
    }
}

@media screen and (max-width: 767px) {
    .carrousel-realisation-slide,
    .carrousel-realisation-empty {
        height: 275px !important
    }
}

.carrousel-realisation-slide-image {
    display: block;
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.carrousel-realisation-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    width: 48px;
    background: rgba(255,255,255,.25);
    border-radius: 0;
    cursor: pointer;
    z-index: 1;
}

.carrousel-realisation-button-prev {
    left: 1.5em;
}

.carrousel-realisation-button-next {
    right: 1.5em;
}

.carrousel-realisation-button > img {
    height: 50%;
    width: auto;
}

@media screen and (max-width: 540px) {
    .carrousel-realisation-button {
        height: 40px;
        width: 40px;
    }

    .carrousel-realisation-button-prev {
        left: 1em;
    }

    .carrousel-realisation-button-next {
        right: 1em;
    }
}

.carrousel-realisation-empty-image {
    display: block;
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}



/* -- Single : Réalisation */
.single-realisation-type .elementor-heading-title {
    display: flex;
    flex-flow: wrap;
    gap: .6rem;
}

.single-realisation-type .elementor-heading-title a::before {
    content: '#';
    margin-right: .1em;
}



/* -- Home */
@media screen and (max-width: 767px) {
    .home-hero-images {
        position: relative;
    }

    .home-hero-images .elementor-background-slideshow::before {
        background-image: none !important;
    }

    .home-hero-images .elementor-background-slideshow__slide__image,
    .home-hero-images {
        animation: none !important;
        transform: scale(1) !important;
        transition: none !important;
    }
}

/* -- Home : Accès rapides */
.acces-rapides-item:is(:hover, :focus) .elementor-widget-icon .elementor-icon svg {
    animation: slideAnimation 1s infinite ease-in-out;
    z-index: 5;
}

@keyframes slideAnimation {
    0% { 
        transform: translateX(0px); 
    }
    100% { 
        transform: translateX(20px);
    }
}



/* -- Background gradient image */
@media screen and (max-width: 767px) {
    .background-gradient-image {
        position: relative;
    }

    .background-gradient-image::before {
        background-image: none !important;
    }
}




/* -- WPForms */
.wpforms-container .wpforms-field {
    padding: 10px 0 !important;
}

.wpforms-form .wpforms-field-label {
    margin-bottom: .7em;
    font-family: 'Overpass', sans-serif;
    font-size: 1rem;
    font-weight: 700 !important;
    text-transform: initial;
    color: var(--e-global-color-primary);
}

.wpforms-form .wpforms-required-label {
    color: var(--e-global-color-accent) !important;
}

.wpforms-form input,
.wpforms-form textarea {
    color: var(--e-global-color-primary);
    font-weight: 400 !important;
    border-color: var(--e-global-color-primary);
    border-radius: unset;
    background: #fff;
    outline: unset;
}

.wpforms-form textarea {
    padding: 1em;
}

/* Radio */
.wpforms-form .wpforms-field-radio ul {
    display: flex !important;
    flex-direction: column !important;
    gap: .25em !important;
    padding-left: 0;
    list-style: none;
}

/* RGPD */
.wpforms-form .wpforms-field-checkbox ul,
.wpforms-form .wpforms-field-gdpr-checkbox ul {
    display: flex;
    flex-direction: column;
    gap: .8em;
    padding-left: 0;
    list-style: none;
}

.wpforms-form .wpforms-field-checkbox ul li,
.wpforms-form .wpforms-field-gdpr-checkbox ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.wpforms-form .wpforms-field-checkbox ul li input[type="checkbox"],
.wpforms-form .wpforms-field-gdpr-checkbox ul li input[type="checkbox"] {
    align-self: flex-start;
}

.wpforms-form .wpforms-field-checkbox ul li label,
.wpforms-form .wpforms-field-gdpr-checkbox ul li label {
    font-weight: 400;
    line-height: 1.5;
}

/* Content */
.wpforms-form .wpforms-field-content p:last-of-type {
    margin-bottom: 0;
    font-size: 1.2rem;
}

/* Error */
.wpforms-form .wpforms-field em.wpforms-error {
    margin-top: .25em;
    color: #bf1a1b !important;
    font-size: 0.8em !important;
}

/* Submit */
.wpforms-form .wpforms-submit-container {
    margin-top: 1.5em;
}

.wpforms-form .wpforms-submit:is(:hover, :focus) {
    background-color: var(--e-global-color-secondary);
}




/* -- Elementor */
.elementor-widget-alert .elementor-alert-title {
    margin-bottom: .25em;
}

.elementor-widget-html table thead th {
    min-width: 160px;
    text-align: left;
}

.elementor-widget-html table caption {
    margin-top: .5rem;
    caption-side: bottom;
    font-size: 1rem;
    font-weight: 400;
}