/*
Theme Name: La Ferme du Château d'Agneaux
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(255,255,255,.15) !important;
    background-color: rgba(0,0,0,.5) !important;
    backdrop-filter: blur(6px);
    transition: .3s linear;
}

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

.header__logo {
    transition: unset;
}

.header__logo-image {
    filter: brightness(0) invert(1);
}

@media screen and (min-width: 1025px) {
    :is(.scroll-up, .scroll-down) .header-primary {
        background-color: rgba(0,0,0,.8) !important;
    }

    .header__logo {
        position: absolute;
        top: -3rem;
        padding: 1rem;
        height: calc(100px + 2rem);
        width: calc(70px + 2rem);
        background: #fff;
        box-shadow: 0px 0px 5px rgba(0,0,0,.15);
    }

    :is(.scroll-up, .scroll-down) .header__logo {
        position: static;
        padding: 0;
        height: 100%;
        width: auto;
        background: transparent;
        box-shadow: unset;
    }

    .header__logo-image {
        filter: inherit;
    }

    :is(.scroll-up, .scroll-down) .header__logo-image {
        filter: brightness(0) invert(1);
    }

    .header__logo-image img {
        height: 100px !important;
        width: 70px !important;
    }

    :is(.scroll-up, .scroll-down) .header__logo-image img {
        height: 60px !important;
        width: auto !important;
    }
}

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

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

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

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

@media screen and (max-width: 1024px) {
    .header-menu .elementor-nav-menu--dropdown {
        height: calc(100vh - 92px);
    }

    .header-menu .elementor-nav-menu--dropdown > .elementor-nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin-top: 25px;
        height: calc(100% - 25px);
    }
}

/* Off-canvas */
.header-offcanvas .e-off-canvas__overlay {
    display: none;
}

body.e-off-canvas__no-scroll #header-toggle-btn {
    display: none !important;
}

body:not(.e-off-canvas__no-scroll) #header-toggle-btn-close {
    display: none !important;
}



/* -- Accès rapides */
.acces-rapides {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate3d(0,-50%,0);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1px;
    padding: 0;
    z-index: 50;
    overflow-x: visible;
}

.acces-rapides__item {
    width: 70px;
}

.acces-rapides__item-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
    text-decoration: none !important;
}

.acces-rapides__item-image {
    overflow: hidden;
    height: 70px;
    border: 1px solid var(--e-global-color-primary);
    border-radius: unset;
    background: var(--e-global-color-primary);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .1);
    aspect-ratio: 1 / 1;
    transition: .3s;
}

.acces-rapides__item-link:is(:hover, :focus) .acces-rapides__item-image {
    border-color: var(--e-global-color-secondary);
    border-left: 1px solid var(--e-global-color-secondary);
    background: var(--e-global-color-secondary);
    box-shadow: unset;
}

.acces-rapides .acces-rapides__item-icon {
    display: block;
    padding: 1.2em;
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center center;
    aspect-ratio: 1 / 1;
    filter: brightness(0) invert(1);
    transition: .3s;
}

.acces-rapides__item-link:is(:hover, :focus) .acces-rapides__item-icon {
    filter: brightness(0) saturate(100%) invert(66%) sepia(16%) saturate(1516%) hue-rotate(357deg) brightness(91%) contrast(78%);
}

.acces-rapides__item-name {
    position: absolute;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0 !important;
    padding: .25em;
    height: 100%;
    text-align: right;
    font-size: .68rem;
    line-height: 1.2;
    color: #fff;
    background: var(--e-global-color-secondary);
    border-top: 1px solid var(--e-global-color-secondary);
    border-left: 1px solid var(--e-global-color-secondary);
    border-bottom: 1px solid var(--e-global-color-secondary);
    aspect-ratio: 1 / 1;
    z-index: -1;
    transition: .3s;
}

.acces-rapides__item-link:is(:hover, :focus) .acces-rapides__item-name {
    right: 100%;
}


@media screen and (max-width: 767px) {
    .acces-rapides {
        position: fixed;
        top: unset;
        bottom: 0;
        right: unset;
        transform: unset;
        flex-direction: row;
        gap: 1px;
        padding: 1rem;
        width: 100%;
        z-index: 50;
        overflow-x: auto;
    }

    .acces-rapides__item {
        width: 50px;
    }

    .acces-rapides__item:first-child {
        margin-left: auto;
    }

    .acces-rapides__item:last-child {
        margin-right: auto;
    }

    .acces-rapides__item-link:is(:hover, :focus) .acces-rapides__item-image {
        border-left: 1px solid var(--e-global-color-secondary);
    }

    .acces-rapides__item-image {
        height: 50px;
    }

    .acces-rapides .acces-rapides__item-icon {
        padding: .7em;
    }

    .acces-rapides__item-name {
        display: none;
        position: static;
        margin-top: .65em;
        margin-bottom: 0 !important;
        height: auto;
        text-align: center;
        font-size: .8rem;
        line-height: 1.2;
        border: unset;
        color: var(--e-global-color-text);
        background-color: transparent;
        transition: .3s;
        aspect-ratio: unset;
    }
}



/* -- Footer */
@media screen and (max-width: 767px) {
    .elementor-location-footer .menu-mentions .elementor-nav-menu {
        flex-direction: column;
        gap: .5em;
    }

    .elementor-location-footer .menu-mentions .elementor-nav-menu li > a {
        margin: 0;
    }

    .elementor-location-footer .menu-mentions .elementor-nav-menu li::after {
        display: none;
    }
}



/* -- Listing categories */
.listing-categories > .elementor-element img {
    max-height: 350px;
    transform: scale(1.03);
    transition: .5s ease;
}

.listing-categories > .elementor-element:is(:hover, :focus) img {
    transform: scale(1);
}

.listing-categories > .elementor-element:is(:hover, :focus) .elementor-heading-title {
    color: var(--e-global-color-primary);
}

@media screen and (max-width: 1200px) {
    .listing-categories {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        overflow-x: auto;
    }

    .listing-categories > .elementor-element {
        min-width: 280px;
    }
}

@media screen and (max-width: 767px) {
    .listing-categories > .elementor-element {
        min-width: 250px;
    }
}



/* -- Avis */
.avis .elementor-testimonial__content {
    border: 1px solid var(--e-global-color-primary);
}

.avis .elementor-testimonial__content::after {
    border-bottom: 1px solid var(--e-global-color-primary);
    border-right: 1px solid var(--e-global-color-primary);
}



/* -- Carte */
#carte {
    scroll-margin: 92px;
}



/* -- Text Stroke */
.text-stroke > span {
    text-shadow: -1px -1px 0 #eee, 1px -1px 0 #eee, -1px 1px 0 #eee, 1px 1px 0 #eee;
    opacity: .8;
}



/* -- Price table */
.listing-price-table {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    overflow-x: auto;
}

.listing-price-table > .elementor-element {
    min-width: 290px;
}

@media screen and (max-width: 767px) {
    .listing-price-table > .elementor-element {
        min-width: 250px;
    }
}

.listing-price-table .price-table:first-child {
    margin-left: auto;
}

.listing-price-table .price-table:last-child {
    margin-right: auto;
}

.elementor-price-table {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.elementor-price-table__footer {
    margin-top: auto;
}

.price-table {
    border: 1px solid #eee;
}

.price-table.bronze {
    border-color: #b67153;
}

.price-table.argent {
    border-color: #888888;
}

.price-table.or {
    border-color: #c2934b;
}

.price-table .elementor-price-table__period {
    margin-top: 5px;
}



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

.wpforms-container .wpforms-field-layout:first-of-type {
    padding-top: 0 !important;
}

.wpforms-form .wpforms-field-label {
    margin-bottom: .6em;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400 !important;
    line-height: 1.2;
    color: var(--e-global-color-secondary);
}

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

.wpforms-form input,
.wpforms-form textarea,
.wpforms-form select {
    padding: .8em 1em;
    color: var(--e-global-color-text);
    font-size: 1rem;
    font-weight: 400 !important; 
    border: 1px solid var(--e-global-color-primary);
    border-radius: unset;
    background: #fff;
}

.wpforms-form input:is(:hover, :focus),
.wpforms-form textarea:is(:hover, :focus) {
    border-color: var(--e-global-color-primary);
}

.wpforms-form input {
    line-height: 1;
}

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

.wpforms-form .wpforms-field-sublabel {
    margin-top: .6em;
}

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

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

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

.wpforms-form .wpforms-submit {
    border: unset;
    transition-duration: .3s;
}

/* Confirmation */
.wpforms-confirmation-container {
    margin-top: 1rem !important;
    color: var(--e-global-color-text) !important;
}



/* -- Show Password */
.show-password-input:is(:hover, :focus) {
    background-color: inherit !important;
}



/* -- WooCommerce Buttons */

/* Select */
.select2-container .select2-selection__rendered {
    padding: .8rem 1rem !important;
    line-height: 1.3 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected], 
.select2-container--default .select2-results__option--highlighted[data-selected] {
    color: #fff;
    background-color: var(--e-global-color-primary);
}

.select2-container .select2-dropdown, 
.select2-container .select2-selection {
    border: 1px solid #eee;
    border-radius: unset;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: unset;
}

.select2-results__option {
    padding: .7em 1em;
    font-family: 'Montserrat' !important;
}

/* Button */
.woocommerce-info .woocommerce-Button:is(:hover) {
    color: #fff !important;
}



/* -- My account */
.woocommerce form .form-row .required {
    color: var(--e-global-color-primary);
}

.woocommerce-MyAccount-navigation-link.is-active:is(:hover, :focus) a {
    color: #fff !important;
}

.woocommerce-MyAccount-content legend {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a,
.woocommerce-MyAccount-navigation-link--customer-logout a:is(:hover, :focus) {
    color: #b81c23 !important;
}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .woocommerce-button {
    margin-right: 4px;
}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status {
    font-weight: 500;
}



/* -- Cart */
.woocommerce-cart .woocommerce .button.wc-backward {
    padding: 1.2rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    border-radius: unset !important;
    border: unset !important;
    color: #fff !important;
    background: var(--e-global-color-primary) !important;
    transition: .3s ease;
}

.woocommerce-cart .woocommerce .button.wc-backward:is(:hover, :focus) {
    color: #fff !important;
    background: var(--e-global-color-secondary) !important;
}

.woocommerce-cart .quantity input.qty {
    color: var(--e-global-color-secondary) !important;
    border-radius: unset !important;
    text-align: center !important;
}

.woocommerce-cart #coupon_code {
    padding-left: 1rem;
    padding-right: 1rem;
    height: 100%;
    border-radius: unset;
    border-color: #eee;
    font-size: 1rem;
    color: var(--e-global-color-secondary);
}

@media screen and (max-width: 1024px) {
    .woocommerce-cart #coupon_code {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.woocommerce-cart .woocommerce-shipping-calculator input {
    padding: 1rem !important;
    border-radius: unset !important;
}

.woocommerce-cart #select2-calc_shipping_country-container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    line-height: normal !important;
    text-align: left !important;
}

.woocommerce-cart #select2-calc_shipping_country-container + .select2-selection__arrow {
    height: 100%;
}

.woocommerce-cart .order-total .includes_tax {
    font-family: 'Montserrat';
    color: #767676 !important;
}

.woocommerce-cart .order-total .includes_tax .woocommerce-Price-amount {
    color: #767676 !important;
    font-size: inherit !important;
    font-weight: 400 !important;
}

.amount {
    white-space: nowrap;
}

#shipping-calculator-form label {
    text-align: left !important;
}

@media screen and (max-width: 767px) {
    .woocommerce-cart .woocommerce-cart-form__cart-item {
        padding: 0 !important;
    }
}

.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button {
    width: 100%;
}



/* -- Checkout */
.woocommerce-checkout #order_review :is(.cart-subtotal, .order-total) :is(th, td) {
    font-size: 1rem;
    font-weight: 500;
}

.woocommerce-checkout .woocommerce-additional-fields h3:empty {
    display: none;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table #shipping_method label {
    font-size: .85rem !important;
}

.woocommerce-checkout .wc_payment_methods .wc_payment_method:not(:first-of-type) {
    margin-top: 1em !important;
}

.woocommerce-checkout #payment .payment_box {
    background: #eee !important;
}

.woocommerce-checkout #payment .wc_payment_methods .woocommerce-info {
    padding: .8em;
    line-height: 1.5;
}

.woocommerce-checkout #payment .wc_payment_methods .woocommerce-info .woocommerce-no-available-payment-methods-message{
    display: block;
    line-height: 1.5;
}

.woocommerce ul#shipping_method li p {
    color: #757575;
}

.woocommerce-checkout #payment #place_order {
    width: 100% !important;
}


/* -- Single Product */
.single-product:is(.pewc-has-extra-fields) .elementor-widget-woocommerce-product-price {
    display: none;
}

@media screen and (max-width: 767px) {
    .single-product .elementor-widget-woocommerce-product-images {
        display: flex;
    }

    .single-product .woocommerce-product-gallery {
        display: flex;
        width: auto !important;
    }
}

/* Extra Group */
.pewc-group-heading-wrapper .pewc-group-heading {
    margin-top: 1rem;
    margin-bottom: .5rem;
    font-size: 1.5rem !important;
}

.pewc-product-extra-groups {
    padding-left: 0;
}

.pewc-field-label {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
}

.pewc-item {
    list-style: none;
}

.pewc-item .pewc-form-field {
    padding: .5rem !important;
    max-width: 80px;
    text-align: center;
    border: 1px solid var(--e-global-color-primary) !important;
    border-radius: unset !important;
}

.pewc-item .pewc-description {
    margin-top: .5rem;
    color: #888;
}

.pewc-total-only {
    color: var(--e-global-color-primary);
}

.pewc-total-only,
.pewc-total-only .pewc-total-field {
    font-size: 1.5rem;
}

.single-product:is(.pewc-has-extra-fields) .single_add_to_cart_button {
    margin-left: 0 !important;
}

@media screen and (max-width: 767px) {
    .pewc-group-heading-wrapper .pewc-group-heading {
        font-size: 1.2rem !important;
    }

    .pewc-field-label {
        font-size: 1.05rem !important;
    }
}


/* -- Notice -- */
.woocommerce .woocommerce-error .button {
    padding: 6px 12px;
    border: 1px solid var(--e-global-color-secondary);
    border-radius: unset;
    font-size: 14px;
    font-weight: 400;
    color: var(--e-global-color-secondary);
    background-color: transparent;
}

.woocommerce .woocommerce-error .button:is(:hover, :focus) {
    color: #fff;
    background-color: var(--e-global-color-secondary);
}


/* -- Modèle : Produit -- */
.modele-produit .elementor-widget-woocommerce-product-title {
    line-height: initial;
}

.modele-produit .elementor-widget-woocommerce-product-price .price {
    margin-bottom: 0 !important;
}

.modele-produit .product_title {
    display: inline-block !important;
}

.sold-individually .modele-produit .elementor-widget-woocommerce-product-add-to-cart .add_to_cart_button {
    margin-left: 0 !important;
}

/* Listing */
@media screen and (max-width: 380px) {
    .listing-produit .elementor-grid {
        grid-template-columns: repeat(1,1fr) !important;
    }
}


/* -- Chambre */

/* Carrousel */
.carrousel-chambre-swiper {
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.carrousel-chambre-slide,
.carrousel-chambre-empty {
    height: 500px !important
}

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

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

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

.carrousel-chambre-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,.2);
    border-radius: 0;
    cursor: pointer;
    z-index: 1;
}

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

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

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

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

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

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

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

/* Equipements */
.equipements-chambre {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.equipements-chambre__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
}

.equipements-chambre__item-image {
    height: 28px;
    width: 28px;
    flex-shrink: 0;
}

@media screen and (max-width: 540px) {
    .equipements-chambre__item-image {
        height: 24px;
        width: 24px;
    }
}

.equipements-chambre__item-icon {
    display: block;
    height: 100% !important;
    width: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(16%) sepia(76%) saturate(0%) hue-rotate(155deg) brightness(101%) contrast(93%);
}

.equipements-chambre__item-name {
    margin: 0 !important;
}