/* --- Produit : nom à droite du logo marque --- */
.product-manufacturer-with-name {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.product-manufacturer-with-name .manufacturer-logo-link {
    display: flex;
    align-items: center;
}

.product-manufacturer-with-name .manufacturer-logo {
    max-height: 48px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    background: #fff;
    padding: 2px 8px;
}

.product-manufacturer-with-name .product-name-right {
    font-family: 'EB Garamond', serif;
    font-size: 15px;
    font-weight: 200;
    color: #2d2d2d;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 60vw;
}

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400&display=swap');

body {
    font-family: 'Raleway', sans-serif;
    background-color: #FEFCF8 !important;
}

/**** HEADER ****/

#header {
    margin-bottom: 0 !important;
}

.user-info span {
    display: none !important;
}

.cart-preview .header>span.hidden-sm-down:not(.cart-products-count) {
    display: none !important;
}

.blockcart.cart-preview.inactive div {
    display: flex;
}



/* LOGO */
#_desktop_logo img {
    max-height: 110px;
    /* plus gros */
}

/* Structure header */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}




/* BARRE DE RECHERCHE */
#search_widget {
    width: 100%;
}

/* COMPTE + PANIER */
.items-header {
    display: none;
    align-items: center;
    gap: 20px;
}

/* MENU */
.main-menu #_desktop_top_menu ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu #_desktop_top_menu li a {
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
}




.main-menu #_desktop_top_menu li a:hover {
    color: #a22;
}

#_desktop_search_bar #search_widget {
    width: 100%;
    height: 42px;
    position: relative;
}

#search_widget {
    min-width: 705px;
}

#_desktop_user_info {
    display: none;
}

@media (min-width: 1000px) and (max-width: 1289px) {
    #search_widget {
        min-width: 601px;
    }
}

#_desktop_search_bar #search_widget form {
    margin: 0;
    height: 100%;
}

#_desktop_search_bar #search_widget input[type="text"],
#_desktop_search_bar #search_widget input[type="search"] {
    width: 100%;
    height: 100%;
    padding: 0 20px 0 9px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
}

#_desktop_search_bar #search_widget input::placeholder {
    color: #999;
}

.mm_menus_li.sake_down>a {
    pointer-events: none;
}


a.ets_mm_url.sake_down {
    pointer-events: none;

}

#_desktop_search_bar #search_widget .material-icons.search {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    color: #B43F34;
    font-size: 20px;
    pointer-events: none;
    font-weight: bold;
}

/* Optionnel : effet au focus */
#_desktop_search_bar #search_widget input:focus {
    border-color: #B43F34;
    box-shadow: 0 0 5px rgba(180, 63, 52, 0.3);
}

#search_widget form i {
    padding: 0 !important;
}


@media (min-width: 576px) and (max-width: 800px) {
    .header-top .search-widgets {
        max-width: 35rem;
    }
}

@media (min-width: 769px) and (max-width: 1000px) {
    #search_widget {
        min-width: 300px;
    }
}

/**** Container for header ****/

@media (min-width: 1200px) {
    .container_header {
        width: 1407px;
        max-width: 100%;
    }
}



@media (min-width: 2500px) {
    .ets_mm_megamenu_content .container {
        width: 57%;
        max-width: 100%;
    }

    span.mm_menu_content_title {
        font-size: 19px;
    }
}

/**** Megamenu ****/


.ets_mm_megamenu.layout_layout1.show_icon_in_mobile.transition_fade.transition_floating.sticky_enabled.ets-dir-ltr.hook-default.single_layout.disable_sticky_mobile.hover.mm_menu_left.changestatus {
    position: relative;
}


@media (min-width: 768px) {
    .ets_mm_megamenu.sticky_enabled.scroll_heading {
        position: relative;
    }
}

.mm_menu_content_title:hover {
    color: #B43F34 !important;
    font-weight: 600 !important;
}

.ets_mm_block.mm_block_type_category a:hover {
    color: #B43F34 !important;
    font-weight: 600 !important;
}

.layout_layout1 .mm_menus_li:nth-child(2) {
    border-left: 0px !important;
}


@media (min-width: 768px) and (max-width: 1190px) {
    .ets_mm_megamenu.layout_layout1 {
        position: absolute;
        top: -76px !important;
        background-color: #ffffff00;
        padding: 0 7px;
        width: 14%;
    }

    .section-content {
        margin-top: 4%;
    }
}




.ybc-menu-toggle {
    color: #33333300 !important;
}

.layout_layout1 .mm_menus_li {
    border-right: 0px !important;
}

.layout_layout1 .mm_menus_li:last-child {
    border-right: 0px !important;
}

.layout_layout1 .ets_mm_megamenu_content {
    border: 0px !important;
}

.layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li:hover>a,
.layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a,
.layout_layout1:not(.ybc_vertical_menu) .mm_menus_li.menu_hover>a,
.ets_mm_megamenu.layout_layout1.ybc_vertical_menu:hover,
#header .layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li:hover>a,
#header .layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a,
#header .layout_layout1:not(.ybc_vertical_menu) .mm_menus_li.menu_hover>a,
.ets_mm_megamenu.layout_layout1.ybc_vertical_menu:hover {

    background: none !important;
}


.layout_layout1:not(.click_open_submenu) .mm_menus_li:hover>a,
.layout_layout1.click_open_submenu .mm_menus_li.open_li>a,
.layout_layout1 .mm_menus_li.active>a,
#header .layout_layout1:not(.click_open_submenu) .mm_menus_li:hover>a,
#header .layout_layout1.click_open_submenu .mm_menus_li.open_li>a,
#header .layout_layout1 .mm_menus_li.menu_hover>a,
.layout_layout1:hover .ybc-menu-vertical-button,
.layout_layout1 .mm_extra_item button[type="submit"]:hover i,
#header .layout_layout1 .mm_menus_li.active>a {
    color: black !important;
}

.layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li>a:before,
.layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a:before,
.layout_layout1.ybc_vertical_menu:hover .ybc-menu-vertical-button:before,
.layout_layout1:hover .ybc-menu-vertical-button .ybc-menu-button-toggle_icon_default .icon-bar,
.ybc-menu-vertical-button.layout_layout1:hover {
    background-color: #ec424800 !important;
}


.mm_menu_content_title {
    color: black;
    font-weight: 500;
}

.ets_mm_megamenu_content_content {

    justify-self: anchor-center;
}

.layout_layout1 .ets_mm_megamenu_content {
    background: linear-gradient(#ffffff00, #f2f2f200) repeat scroll 0 0 rgba(0, 0, 0, 0) !important;

}

/* --- MOBILE HEADER FIX --- */
@media (max-width: 768px) {
    .header-row {
        display: flex;
        flex-direction: column;
        /* on empile les éléments */
        align-items: center;
        gap: 10px;
    }

    /* Logo centré */
    #_desktop_logo {
        text-align: center;
        order: 1;
    }

    #_desktop_logo img {
        max-height: 80px;
    }

    /* Icônes compte + panier à droite du logo */
    .items-header {
        order: 2;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    /* Barre de recherche en dessous, full width */
    #_desktop_search_bar {
        order: 3;
        width: 100%;
        padding: 0 10px;
    }

    #_desktop_search_bar #search_widget {
        width: 100% !important;
        min-width: unset;
        /* supprime la contrainte desktop */
    }


    .ets_mm_megamenu.hook-default {
        position: absolute !important;
        top: 2%;
        background-color: #ffffff00 !important;
        padding: 0 7px !important;
        width: 14% !important;
    }

    .ybc-menu-toggle {
        color: #824c4c00 !important;
        display: block !important;
    }

    .ets_mm_megamenu_content div {
        background-color: rgba(255, 255, 255, 0) !important;
    }


    .carousel .carousel-item .caption {
        position: absolute !important;
        bottom: 0% !important;

    }

    .carousel .carousel-item img {
        height: 50vh !important;
    }

    .carousel .carousel-item .caption .display-1 {
        color: #ffffff !important;
    }




}




/****** Carrousel ******/

.carousel .carousel-item .caption {
    bottom: 35%;

}

.carousel-item figure {
    position: relative;
    margin: 0;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50% !important;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
}

.caption h2 {
    font-size: 2rem;
}


.carousel .carousel-item img {
    width: 100%;
    max-width: 100%;
    height: 41vw;

}

.carousel .carousel-inner {
    height: 100%;
}

.carousel {
    margin-bottom: -58px;
}

li.carousel-item.active figure {
    width: 100%;
}

.carousel .direction {
    display: none;
}

figcaption.caption {
    max-width: 100% !important;
}

figcaption.caption h2 {
    font-family: 'EB Garamond', sans-serif;
}


#carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 144px;
    background: url("/themes/elmeria/assets/img/montain.svg") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    z-index: 2;/
}


#wrapper {

    background: #FEFCF8 !important;
}

#header {

    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 0%) !important;
}


@media (max-width: 991px) {
    .carousel .carousel-item .caption {

        text-align: center;
        position: absolute;
        bottom: 28px;
        left: 90px;
        max-width: 340px;
        color: #fff;
    }

    .carousel .carousel-item .caption .display-1 {
        color: white;
    }
}

/*********** FOOTER ***********/

/* --- FOOTER CUSTOM --- */
#custom-footer {
    background: #fdfbf7;
    color: #222;
}

#custom-footer .footer-top {
    background: #B43F34;
    height: 67px;
    width: 100%;
    font-weight: 400;
}

#custom-footer .footer-container {
    padding: 40px 20px;
}

#custom-footer .footer-logo {
    margin-right: 80px;
}

#custom-footer .footer-links {
    margin-right: 20px;
}

#custom-footer .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 81%;
    margin: 0 auto;
}

#custom-footer .footer-col {
    flex: 1;
}

#custom-footer .footer-logo img {
    width: 261px;
    max-width: 100%;
    height: auto;
    margin-top: 0%;
}

#custom-footer .footer-logo .tagline {
    font-size: 14px;
    color: #B43F34;
    font-weight: bold;
}

#custom-footer ul {
    list-style: none;
    justify-items: center;
    padding: 0;
    margin: 0;
}

#custom-footer ul li {
    margin: 5px 0;
}

#custom-footer ul li a {
    text-decoration: none;
    color: #222;
    font-size: 19px;
}

#custom-footer ul li a:hover {
    color: #B43F34;
}

#custom-footer .footer-social {
    margin-top: 10px;
    text-align: center;
}

#custom-footer .footer-social a {
    display: inline-block;
    margin-right: 10px;
    font-size: 29px;
    color: #B43F34;
}

#custom-footer .footer-social a:hover {
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #custom-footer .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #custom-footer .footer-col {
        margin-bottom: 20px;
    }

    #custom-footer .footer-logo {
        margin-right: 0;
        display: flex;
        justify-content: center;
    }

    #custom-footer .footer-logo img {
        margin: 0 auto;
    }
}










/*************************** Product Page CSS ***************************/


.product-features>dl.data-sheet,
.product-flags {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    align-content: flex-end;
}

.product-flag.new {
    background-color: #B43F34 !important;

}


.page-product .el-desc .el-provenance {
    margin-top: 11%;
}

.page-product #header {
    margin-bottom: 0px !important;
}


.page-product .page-content.page-cms ul,
p {
    font-size: .9375rem;
    font-weight: 400;
    color: #000000;
}

.product-flag.new::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/etiquette.svg') no-repeat center center;
    background-size: contain;
}


.product-flags li.product-flag {
    border-radius: 7px;
}


section.product-accessories.clearfix .product-flags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}



/* Ou positionnez-le différemment si nécessaire */
.product-flag.bio {
    top: 50px;
    /* En dessous du flag "Nouveau" */
    right: 0px;
    background-color: #008000 !important;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.product-flag.bio::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/bio.svg') no-repeat center center;
    background-size: contain;
}


.product-flags li.product-flag.on-sale {

    background: #377a7d;
}


.product-flag.bestseller {
    top: 50px;
    right: 0px;
    background-color: #000000 !important;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.product-flag.bestseller::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/star.svg') no-repeat center center;
    background-size: contain;
    margin-bottom: 4%;
}


.product-flags li.product-flag {

    font-size: 13px;
    margin-top: 0%;

}


@media (min-width: 2200px) {


    .page-product .product-title {
        font-size: 51px;
    }

    .page-product .product-provenance {

        font-size: 20px;
    }

    .page-product .page-content.page-cms ul,
    p {
        font-size: 21px;
        letter-spacing: 1px;
        line-height: 139%;
    }

    .order-contact-box .box-title {
        font-size: 1.5rem !important;
    }

    .order-contact-box {
        margin-top: 9% !important;
    }

    .order-contact-box p {
        margin-bottom: 15px;
        font-size: 1.1rem;
    }


    p.text-command {
        font-size: 20px !important;
    }

    span.contact-line {
        font-size: 20px !important;
    }

    .product-flags li.product-flag {
        font-size: 15px;

    }

    a.ets_mm_url {
        font-size: 17px;
    }

    .ets_mm_block .mm_block_type_category {
        font-size: 17px;
    }

}


@media (min-width: 1700px) {



    .page-product #wrapper .container {
        width: 67%;

    }
}

.page-product .product-cover {
    background-color: white;
}

.page-product #product-modal .modal-content .modal-body .product-cover-modal,
.product-cover img {
    background: #ffffff;
}


.page-product .product-page-custom {
    margin-top: 5%;
}

#product #content {
    max-width: 100%;
}

.product-section--details h2 {
    color: #000000;
    font-weight: 600;
}

li.product-flag.bio {
    text-transform: none;
}

.product-features .h6 {
    font-weight: 600;
    color: #000000;
    margin: 0 0 16px;
    font-size: 25px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
    margin-bottom: 2%;
}


.page-product a {
    color: #000000;
    text-decoration: none;
}

.page-product a:hover {
    color: #B43F34;
    text-decoration: none;
}

.page-product .product-flags {
    position: relative;
    display: block;
    margin-bottom: 6%;

}


.page-product .product-flags li.product-flag {
    border-radius: 6px;

}


.tabs.product-tabs-container p {
    font-family: 'Encode Sans';
}

.tabs.product-tabs-container dt {
    font-family: 'Encode Sans';
}



/* Mise en page des sections produit */
.product-sections {
    margin-top: 24px;
}

.product-section {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.product-section:first-child {
    border-top: 0;
}

.section-title {
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Rendre visibles les anciens .tab-pane du partial product-details */
.product-section .tab-pane {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-section .tab-pane.fade {
    transition: none !important;
}

/* Pièces jointes */
.product-attachments .attachment-item {
    margin-bottom: 14px;
}

.product-attachments .attachment-title {
    margin: 0 0 6px;
}

.product-attachments .attachment-desc {
    margin: 0 0 8px;
    color: #666;
}



/************* Div histoire du produit *************/

.wine-section {
    background: #FEFCF8;
    padding-top: 3%;
    position: relative;
    overflow: hidden;
}

.wine-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(169, 68, 66, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.cta-button:hover {
    color: white !important;
}


.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: #FEFCF8 !important;

}

.text-content {
    padding-right: 20px;
}

.section-tag {
    color: #008000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2d5016;
}

.main-title {
    color: #a94442;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
}

.description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.highlight-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
    font-style: italic;
}

.mission-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.author {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #a94442;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #8b3735;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(169, 68, 66, 0.3);
}

.cta-button::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 21px;
    height: 19px;
    margin-left: 10px;
    background: url('/themes/elmeria/assets/img/arrow.svg') no-repeat center center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 570px;
}

.image-large {
    grid-column: 1 / 3;
    grid-row: 1;
}

.image-small-1,
.image-small-2 {
    height: 100%;
}

.image-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.wine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-container:hover .wine-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Responsive Design amélioré */
@media (max-width: 992px) {
    .section-content {
        gap: 40px;
    }

    .main-title {
        font-size: 36px;
    }

    .images-grid {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .wine-section {
        padding: 60px 0;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .text-content {
        padding-right: 0;
        text-align: center;
    }

    .section-tag::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .images-grid {
        height: 400px;
        grid-template-rows: 2fr 1fr;
    }

    .main-title {
        font-size: 32px;
    }

    .container {
        padding: 0 15px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .images-grid {
        height: 350px;
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 1fr 1fr;
    }

    .image-large {
        grid-column: 1;
        grid-row: 1;
    }

    .image-small-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .image-small-2 {
        grid-column: 1;
        grid-row: 3;
    }

    .main-title {
        font-size: 28px;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-content>* {
    animation: fadeInUp 0.8s ease forwards;
}

.text-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.text-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.text-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

.text-content>*:nth-child(4) {
    animation-delay: 0.4s;
}

.text-content>*:nth-child(5) {
    animation-delay: 0.5s;
}

.text-content>*:nth-child(6) {
    animation-delay: 0.6s;
}

.text-content>*:nth-child(7) {
    animation-delay: 0.7s;
}

.image-container {
    animation: fadeInUp 0.8s ease forwards;
}

.image-container:nth-child(1) {
    animation-delay: 0.3s;
}

.image-container:nth-child(2) {
    animation-delay: 0.5s;
}

.image-container:nth-child(3) {
    animation-delay: 0.7s;
}


@media (min-width: 1500px) {

    .section-content {
        width: 68vw;
        margin-top: 5%;
        margin-left: -7%;
    }

}

.block-icon svg path {
    fill: #B43F34;
}


.cta-button {
    color: white !important;
    font-weight: bold !important;
}


.wine-separator {
    width: 70%;
    height: 0;
    border: 1px solid #EBEBEB;
    opacity: 1;
    margin: 5% auto 0 auto;
    display: block;
}


@media (min-width: 4000px) {


    #carousel::after {
        height: 500px;

    }
}


@media (min-width: 2000px) {
    .section-content {

        margin-left: -44%;
    }

    #carousel::after {
        height: 229px;

    }
}

@media (min-width: 3000px) {
    .section-content {

        margin-left: -96%;
    }
}


@media (max-width: 796px) {
    #carousel::after {
        display: none;

    }

    .el-sc__all {
        display: none;
    }
}



@media (min-width: 2000px) {
    .container .section-content {
        display: flex;
        padding: 2px 11%;
        justify-content: center;
        align-items: center;
        margin-left: 0%;
        margin-right: 0%;
    }

    .container:has(> .section-content) {

        width: 100%;

    }

    .images-grid {

        width: 51%;
    }

    .section-content {
        width: 100%;
    }


}





@media (min-width: 1400px) and (max-width: 1850px) {
    .section-content {

        margin-left: 0%;
    }
}



.product-miniature {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 480px;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 19%;
    border: 2px solid #ffffff;
}

.product-miniature:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* --- Image --- */
.thumbnail-container {
    position: relative;
    text-align: center;
}

.el-thumb {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
}

.el-thumb .product-thumbnail {
    display: block;
    width: 100%;
    height: 100% !important
}

.el-thumb picture {
    display: block;
    width: 100%;
    height: 100%
}

.el-thumb img {
    width: auto;
    max-width: 100%;
    max-height: 110%;
    object-fit: contain;
    margin-top: -20px;
}


.thumbnail-container img {
    max-width: 100%;
    height: auto;
}

/* --- Flags (nouveau, promo, bestseller, bio, etc.) --- */
.product-flags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    place-content: end !important;
}

.product-flag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.product-flag.new {
    background: #b4372f;
}

.product-flag.on-sale {
    background: #e67e22;
}

.product-flag.bestseller {
    background: #000;
}

.product-flag.bio {
    background: #2ecc71;
}

/* --- Description --- */
.product-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: left
}

.el-desc {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* pousse le bouton en bas */
    padding-top: 12px;
}


.el-desc .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3
}

.el-desc .el-provenance {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    line-height: 1.2
}

.el-desc .el-cta-wrap {
    margin-top: auto;
    position: static;
    align-self: flex-end
}

/* Nom produit */
.product-title {
    min-height: 2.6em;
    /* hauteur uniforme pour tous les titres */
    line-height: 1.3;
}

.el-provenance {
    min-height: 2.4em;
    /* hauteur uniforme pour la provenance */
}

/* Aligner la provenance avec le titre (mêmes marges et alignement gauche) */
.el-desc .product-title,
.el-desc .el-provenance {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    display: block
}

.el-desc .el-provenance {
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.3
}


.product-title a {
    color: #000;
    text-decoration: none;
}

.product-title a:hover {
    color: #b4372f;
}

/* Provenance */
.el-provenance {
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    min-height: 2.4em;
}

/* --- CTA En savoir plus --- */


.el-cta-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.el-cta {
    background: #b4372f;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.el-cta:hover {
    background: #922a24;
}


.product-title a {
    font-weight: 600 !important;
    font-size: 21px !important;
    line-height: 100%;
    top: 418px;
    left: 866px;
    color: #000000 !important;
    opacity: 1
}




/********** HTML Block Home Page - Elmeria Theme **********/

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    max-width: 1308px;
    margin: 40px auto;
    padding: 0 3px;
    margin-top: 13%;
    width: 67vw;

}

@media (min-width: 2000px) {
    .card-grid {
        max-width: 90%;
    }

    .card-tag {
        font-size: 17px !important;
    }

    .card-title {
        font-size: 40px !important;
    }

    .card-btn {

        font-size: 19px !important;

    }
}

.card {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card.slide-left {
    transform: translateX(-100px);
}

.card.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .card {
        transform: translateX(70px);
    }


}

@media (max-width: 600px) {
    .card {
        transform: translateY(40px);
    }

    .card.slide-left {
        transform: translateY(40px);
    }
}


div:has(> .card-grid) {
    justify-content: center;
    display: grid;
}


.card {
    background: #fff;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
    border-radius: 0;
}

.card-green {
    background: #008000;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-red {
    background: #a94442;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-black {
    background: #111;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tag {
    background: #fff;
    color: #008000;
    font-size: 14px;
    padding: 6px 18px;
    display: inline-block;
    margin-bottom: 22px;
    border-radius: 3px;
    width: 28%;
    text-align: center;
    font-weight: 600;
}

.card-red .card-tag {
    color: #a94442;
}

.card-black .card-tag {
    color: #111;
}

.card-title {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 22px;
    font-weight: bold;
    font-family: 'EB Garamond', serif;
}

.card-text {
    font-size: 19px;
    margin-bottom: 32px;
    line-height: 1.6;
    color: white !important;
    letter-spacing: 1px;
}

.card-btn {
    background: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 32px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    width: 41%;
    text-align: center;
}

.card-btn:hover {
    background: #fff;
    color: #222;
}

.card-mobile-img {
    display: none;
}

@media (max-width: 550px) {

    .card-grid {
        width: 100%;

    }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 60px;

    }

    .card-grid .card:nth-child(1) {
        order: 1;
    }

    .card-grid .card:nth-child(2) {
        order: 2;
    }

    .card-grid .card:nth-child(3) {
        order: 4;
    }

    .card-grid .card:nth-child(4) {
        order: 3;
    }

    .card-grid .card:nth-child(5) {
        order: 5;
    }

    .card-grid .card:nth-child(6) {
        order: 6;
    }

    .card-mobile-img {
        display: block;
        width: 100%;
        height: 240px;
        object-fit: cover;
        margin-bottom: 20px;
    }

    .card-img {
        display: none;
    }

    .card-green,
    .card-red,
    .card-black {
        padding: 32px 24px;
        text-align: center;
    }

    .card-tag {
        margin-top: 0;
        margin-bottom: 20px;
        width: auto;
    }

    .card-btn {
        width: auto;
    }
}

/* ====== About & Sakes Sections ====== */
.about-section,
.sakes-section {
    padding: 41px 0px;
}

.about-container,
.sakes-container {
    max-width: 1262px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: center;
}

.about-container {
    margin-top: 4% !important;
}

.section-title {
    font-weight: 700;
    font-size: 25px;
    color: #b43f34;
    margin: 0 0 16px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
    margin-bottom: 2%;
}


.product-sections {
    background-color: white;
    padding: 10px 9px 8px 21px;
    border: 1px solid #E9E9E9;
}

.section-paragraph {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 12px;
}

.section-author {
    font-weight: 700;
    margin: 18px 0 8px;
    color: black !important;
}

.about-image img,
.sakes-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.about-image img {
    border-radius: 0;
}

@media (min-width: 667px) and (max-width: 900px) {

    .about-image img,
    .sakes-image img {
        width: 63%;
    }

    .about-image {
        justify-items: center;
    }
}



@media (min-width: 2000px) {

    .about-container,
    .sakes-container {
        max-width: 90%;
    }

    .section-title {
        font-size: 33px;
    }

    .section-paragraph {
        font-size: 18px;
    }
}

.signature {
    width: 160px;
    height: auto;
    margin: 6px 0 18px;
    display: block;
}

.about-btn {
    background: #b43f34;
    border-color: #b43f34;
}

.about-btn:hover {
    background: transparent;
    color: #b43f34;
}

.sakes-btn {
    background: #b43f34;
    border-color: #b43f34;
}

.sakes-btn:hover {
    background: transparent;
    color: #b43f34;
}

.about-section .card-btn,
.sakes-section .card-btn {
    width: auto;
    white-space: nowrap;
    border-radius: 10px;
    padding: 12px 28px;
    margin-top: 5%;
}


.about-text {
    width: 92%;
}

/* Mobile */
@media (max-width: 900px) {


    .about-text {
        width: 100%;
    }

    .about-container,
    .sakes-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    p.section-author {
        text-align: center;
    }

    img.signature {
        width: 100%;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .sakes-image {
        order: 1;
    }

    .sakes-text {
        order: 2;
    }

    .about-section,
    .sakes-section {
        padding: 30px 16px;
    }

    .sakes-image img {
        border-radius: 12px;
    }

    .section-title {
        font-size: 20px;
        text-align: center;
    }

    .section-paragraph {
        text-align: center;
    }

    .about-section .card-btn,
    .sakes-section .card-btn {
        display: block;
        margin: 0 auto;
        text-align: center;
        width: fit-content;
    }
}



/* Pour tablettes et écrans moyens */
@media (max-width: 1400px) and (min-width: 901px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        width: 80vw;
        margin-top: 8%;
    }

    .card-tag {
        width: 34%;
    }

    .card {
        min-height: auto;
        /* éviter des cartes trop hautes */
    }

    .card-title {
        font-size: 22px;
    }

    .card-text {
        font-size: 15px;
    }

    .card-btn {
        font-size: 15px;
        padding: 10px 24px;
        width: auto;
    }
}

/* Forcer le même alignement à gauche pour titre + provenance */
.el-desc .product-title,
.el-desc .product-title a,
.el-desc .el-provenance {
    margin: 0;
    padding: 0;
    text-align: left;
    display: block;
}

/* Espacement régulier */
.el-desc .el-provenance {
    margin-top: 4px;
    /* petit espace sous le titre */
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #333;
}










/**
 * Styles pour l'interface de sélection de provenance
 */
#provenance_preview {
    margin-top: 10px;
    background-color: #e3f2fd;
    border-color: #2196f3;
    border-left: 4px solid #2196f3;
}

#provenance_preview strong {
    color: #1976d2;
}

#preview_text {
    font-size: 1.1em;
    font-weight: 500;
    color: #0d47a1;
}

#el_country_select {
    border-radius: 4px;
}

#el_provenance_input {
    border-radius: 4px;
}

.provenance-field-group {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.provenance-field-group h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.form-text.text-muted {
    font-style: italic;
    margin-top: 8px;
}

/* Animation pour l'aperçu */
#provenance_preview {
    transition: all 0.3s ease-in-out;
}

#provenance_preview.show {
    opacity: 1;
    transform: translateY(0);
}

#provenance_preview.hide {
    opacity: 0;
    transform: translateY(-10px);
}



/*********** Reassurance Block Home Page - Elmeria Theme ***********/


.blockreassurance .block-title {
    color: #B43F34 !important;
    margin-top: 8%;
    text-align: center;
    width: 96%;
}


@media (min-width: 2000px) {

    .blockreassurance .block-icon,
    .blockreassurance .block-icon img,
    .blockreassurance .block-icon svg {
        height: 113px;
    }
}


@media (max-width: 575px) {
    .blockreassurance {
        text-align: center;
    }
}

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

    .page-index .blockreassurance .col-sm-6,
    .col-sm-7 {
        float: left;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .blockreassurance .block-icon {
        float: none;
    }
}

@media (max-width: 575px) {

    .blockreassurance .block-icon img,
    .blockreassurance .block-icon svg {
        height: 47px;
        width: 74px;
        margin-left: -46%;
    }
}

.title_reassurance {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    font-weight: bold;
    font-size: 30px;
    line-height: 100%;
    color: #B43F34;
    margin-bottom: 7%;

}



div:has(> .block-social) {
    margin-bottom: 8%;
}


/*************** Product List Page - Elmeria Theme ***************/

.block-category.card.card-block.slide-left {
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);
}

div#subcategories {
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);
}

div#js-product-list {
    margin-bottom: 8%;
}


.pagination .page-list {
    padding: .375rem;
    margin-bottom: 0;
    background: #FEFCF8;
}


.block-categories .h6:hover {
    color: #000000 !important;
}

div#js-product-list-header {
    display: none !important;
}



/*************** Filtre de Recherche page de catégorie ***************/

.facet.clearfix:not(:last-child) {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}


#search_filters .facet .facet-title,
#search_filters_brands .facet .facet-title,
#search_filters_suppliers .facet .facet-title {
    font-size: 1rem;
    color: #B43F34;
    font-family: 'EB Garamond';
    font-size: 19px;
}


#search_filters>.h6,
#search_filters_brands>.h6,
#search_filters_suppliers>.h6 {

    color: #B43F34;
    font-family: 'EB Garamond', sans-serif;
    font-weight: bold;
}


button.btn-unstyle.select-title {
    border-radius: 9px;
}


.brands-sort .dropdown-menu,
.products-sort-order .dropdown-menu,
.suppliers-sort .dropdown-menu {
    width: 17.88rem;
}

.select-list.js-search-link {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 1px;
}

a.select-list.js-search-link:hover {
    background-color: #B43F34;

}

a.subcategory-name {
    color: #000000;
}

a.subcategory-name:hover {
    color: #B43F34 !important;
}



#subcategories ul li:hover .subcategory-image a {
    padding: 5px;
    border: 5px solid #B43F34;
}


.category-description {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.category-search-bar {
    margin-bottom: 30px;
}

.category-search-bar form {
    display: flex;
    gap: 10px;
    max-width: 100%;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.category-search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}




.category-search-bar button {
    padding: 0 15px;
    background: #B43F34;
    border: none;
    cursor: pointer;
    color: white;
}

.category-search-bar button[type="submit"] {
    padding: 0 20px;
    background: #B43F34;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    transition: background 0.2s;
}

.category-search-bar button[type="submit"]:hover {
    background: #922d25;
}


.category-search-bar button:hover {
    background: #eee;
}





.cat-name {
    font-size: 45px;
    color: #B43F34;
    font-family: 'EB Garamond', serif;
}




.cat-subtitle {
    width: 100%;
    font-weight: normal;
    color: #000000;
    margin-top: 4%;
    margin-bottom: 2%;
}

div#search_filters {
    border: 1px solid #EBEBEB;
}


#search_filters .ui-widget-header {
    background: #B43F34;
}

.block-categories {
    display: none;
}

div#subcategories {
    display: none !important;
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
}

.search-input-wrapper input {
    padding-right: 30px;
    /* espace pour la croix */
}

.clear-search {
    right: 8px;
    border: none;
    background: white;
    cursor: pointer;
    display: none;
    /* caché par défaut */
}

.clear-search i {
    font-size: 18px;
    color: #000000;
}

.clear-search:hover i {
    color: #333;
}

button.clear-search {
    background-color: white !important;
}

.col-lg-5.hidden-sm-down.total-products p {
    color: #000000;
    font-family: 'Encoda', sans-serif;
}

.page-category.container {
    width: 100vh;
}

#facet_50859 {
    column-count: 2;
    column-gap: 20px;
    padding: 0;
    list-style: none;
}

#facet_50859 li {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #facet_50859 {
        column-count: 1;
    }
}

.custom-checkbox input[type=checkbox]+span {
    border-radius: 6px;
}


.btn-tertiary {
    margin: .25rem 0;
    font-size: .875rem;
    font-weight: 400;
    color: #B43F34;
    text-transform: lowercase;
    background-color: transparent;
    border: 1px #B43F34 solid;
    border-radius: 10px;
    padding: 10px 18px;
}

.btn-tertiary:hover {
    color: white;
    background-color: #B43F34;

}



.btn-tertiary i {
    display: none;
}


/**** Block html end product list page *****/
.custom-selection {
    margin: 40px auto;
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 11%;
    width: 66vw;
}

.page-manufacturer .custom-selection {
    margin-left: 0%;
    width: 100%;
}

@media (min-width: 3015px) {
    .custom-selection {
        margin-left: -33%;
    }

}

@media (min-width: 2700px) and (max-width: 3000px) {
    .custom-selection {
        margin-left: -35%;
    }

}

@media (max-width: 1980px) {
    .custom-selection {
        margin-left: -40%;
    }

}

@media (min-width: 1981px) and (max-width: 2699px) {
    .custom-selection {
        margin-left: -37%;
    }

}


@media (max-width: 1800px) {
    .custom-selection {
        margin-left: -25%;
    }

}

@media (max-width: 1300px) {
    .custom-selection {
        margin-left: -20%;
    }

}

@media (max-width: 1000px) {
    .custom-selection {
        margin-left: -44%;
    }

}




.custom-selection h2 {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    color: #B43F34;
    margin-bottom: 20px;
}

.custom-selection p {
    font-family: 'Encode Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
    margin: 0;
}


/*************** Pagination ***************/


.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.page-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.page-list li {
    margin: 0 5px;
}

.page-list li a,
.page-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-list li a:hover {
    background-color: #f8f9fa;
    border-color: #B43F34;
    color: white;
}

.page-list li.current a {
    background-color: #B43F34;
    border-color: #B43F34;
    color: white;
}


.page-list li a.previous,
.page-list li a.next {
    font-weight: bold;
    background-color: transparent;
    border-color: #ddd;
}

.page-list li a.previous:hover,
.page-list li a.next:hover {
    background-color: #B43F34;
    border-color: #B43F34;
    color: white;
}

.page-list .spacer {
    border: none;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .pagination {
        flex-direction: column;
        text-align: center;
    }

    .col-md-4 {
        margin-bottom: 15px;
    }

    .page-list {
        flex-wrap: wrap;
    }
}

/******************* Branding Product Flags *******************/


.brands-list {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.brands-list>li {
    list-style: none;
    margin: 0;
}

.brand-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow .3s ease, transform .3s ease;
    overflow: hidden;
    display: block;
    margin-top: 2%;
    min-height: unset;
}

.brand-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.brand-card-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
}

.brand-logo {
    flex: 0 0 140px;
    height: 90px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-placeholder {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-initial {
    font-size: 24px;
    font-weight: 600;
    color: #495057;
}

.brand-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.brand-title a {
    color: #2c3e50;
    text-decoration: none;
}

.brand-title a:hover {
    color: #3498db;
}

.brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-products-count {
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.products-number {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.products-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.brand-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA */
.brand-actions {
    margin-top: 6px;
}




.btn-view-products {
    display: inline-block;
    background: #B43F34;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-view-products:hover {
    background: #a3392f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 63, 52, .25);
}

/* Responsive */
@media (max-width: 768px) {
    .brand-card-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .brand-logo {
        flex: none;
        height: 80px;
    }

    .brand-img {
        max-height: 80px;
    }

    .brand-actions .btn-view-products {
        width: 100%;
        text-align: center;
    }
}

/* Nettoyage/overrides de styles précédents qui gênaient */
.brands-container {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
}

.page-manufacturer ul {
    justify-content: initial;
    align-content: initial;
}

/**************** Page marque - Elmeria Theme ****************/

/* Bloc principal */
.manufacturer-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    margin-bottom: 30px;
}

/* Logo */
.manufacturer-logo img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Titre + textes */
.manufacturer-info {
    flex: 1;
}

.manufacturer-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.manufacturer-short {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #444;
}

.manufacturer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Grille produits */
.manufacturer-products {
    margin-top: 20px;
}


/**************** Page Not Found - Elmeria Theme ****************/





/*************** Product Page - Elmeria Theme ***************/


.blockreassurance_product {
    display: none;
}

.social-sharing {
    display: none;
}

/* --- Style général de la page produit personnalisée --- */
.product-page-custom {
    background-color: #FEFCF8;
    padding: 2rem;
}

/* --- Colonne de droite : Informations produit --- */
.product-title {
    font-family: 'EB Garamond';
    font-weight: bold;
    color: #B43F34;
    font-size: 29px;
    margin-bottom: 10px;
}

/* Style pour la provenance avec drapeau */
.product-provenance {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}



#product-description-short {
    margin-bottom: 25px;
    color: #333;
    line-height: 1.6;
}

.order-contact-box {
    border: 1px solid #B43F34;
    padding: 20px;
    margin-top: 20px;
    border-radius: 9px;
}

.order-contact-box .box-title {
    font-weight: bold;
    color: #B43F34;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'EB Garamond', serif;
}

.order-contact-box p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.order-contact-box .contact-info {
    display: flex;
    gap: 20%;
}

@media (max-width: 1205px) {
    .order-contact-box .contact-info {
        display: block;
    }
}

.order-contact-box .contact-line {
    display: flex;
    align-items: center;
}

.order-contact-box .contact-line .material-icons {
    margin-right: 10px;
    color: #B43F34;
}

/* --- Section des onglets (Description / Détails) --- */
.product-tabs-container {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-tabs-container .nav-tabs {
    border-bottom: 1px solid #ddd;
}

.product-tabs-container .nav-tabs .nav-item {
    margin-right: 20px;
}

.product-tabs-container .nav-tabs .nav-link {
    border: none;
    padding: 10px 0;
    color: #583535;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 1rem;
    font-family: 'EB Garamond';
}

.product-tabs-container .nav-tabs .nav-link.active,
.product-tabs-container .nav-tabs .nav-link:hover {
    border-bottom: 2px solid #B43F34;
    color: #B43F34;
    background-color: transparent;
    font-family: 'EB Garamond';
    font-weight: bold;
}

.product-tabs-container .tab-content {
    padding: 20px;
    background-color: #fff;
    border-top: none;
}

.product-description span {
    color: #000000;
}

.page-product .product-provenance {
    display: flex;
    font-style: normal;
    color: #000000;
}


.page-product .product-title {
    min-height: 0px;
    font-size: 40px;
}

.text-command {
    color: #000000 !important;

}

.product-description-full span {
    color: #000000 !important;
}

.product-description-full p {
    color: #000000 !important;
}


.page-product .tabs {
    padding: 1.25rem 0rem;
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #E9E9E9;
}


.page-product ul.nav.nav-tabs {
    padding-left: 2%;
}


.nav-tabs .nav-item+.nav-item {
    position: relative;
    margin-left: 10px;
}

.nav-tabs .nav-item+.nav-item::before {
    content: "";
    position: absolute;
    left: -14px;
    top: -50%;
    height: 150%;
    width: 1px;
    background-color: #ccc;
}

.product-accessories {
    margin-left: 3% !important;
}

.page-product .text-uppercase {
    color: #B43F34;
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    margin-top: 9%;
}

.page-product .wrapper .container {
    width: 1224px;
}

/********* Page a propos - Elmeria Theme *********/

.elmeria-about-section {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fdfcf9;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .product-page-custom {
        padding: 0rem;
    }

    .page-product .product-title {
        font-size: 27px;
    }

    .page-product .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-manufacturer .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-category .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-search .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .custom-selection {
        width: 100%;
        margin-left: 0%;
    }

    .cat-name {
        font-size: 34px;
    }

    .ybc-menu-vertical-button,
    .transition_floating .close_menu,
    .transition_full .close_menu {
        background-color: #B43F34 !important;
        color: #ffffff;
    }

    .mm_arrow {
        display: none;
    }

    span.mm_menu_content_title {
        pointer-events: none !important;
    }




    .page-manufacturer section .container {
        width: 100%;
    }

    .page-manufacturer img {
        width: 100%;
        height: auto;
    }
}

.brands-sort .dropdown-menu,
.products-sort-order .dropdown-menu,
.suppliers-sort .dropdown-menu {
    width: 90%;
}

.carousel-indicators {
    display: none;

}

@media (min-width: 1200px) and (max-width: 1499px) {

    .page-manufacturer .col-xl-3 {
        width: 46%;
    }
}

@media (min-width: 1500px) and (max-width: 1655px) {

    .page-manufacturer .col-xl-3 {
        width: 33%;
    }
}

@media (min-width: 800px) {

    .page-product .tabs {
        margin-left: 4%;
    }
}

@media (min-width: 2000px) {

    .page-cms #wrapper .container {
        width: 100% !important;
        max-width: 100%;
    }



    .elmeria-image-col img {
        max-width: 100% !important;

    }

    .elmeria-about-section {
        width: 55% !important;
    }


}

.elmeria-about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.elmeria-image-col {
    flex: 1;
    text-align: center;
}

.elmeria-image-col img {
    max-width: 366px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.elmeria-text-col {
    flex: 1.5;
}

.elmeria-about-section h1,
.elmeria-about-section h2,
.elmeria-about-section h3 {
    font-family: 'EB Garamond';
    color: #B43F34;
    font-weight: bold;
    font-size: 44px;
    margin-top: 0;
}


.elmeria-about-section h1 {
    margin-bottom: 7%;
}



.elmeria-about-section h3 {
    font-size: 22px;
    margin-top: 8%;
}

.elmeria-about-section p {
    margin-bottom: 15px;
    font-family: 'Raleway';
    color: black;
}

.elmeria-signature {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 25px;
}

.elmeria-button-container {
    text-align: center;
    margin-top: 30px;
}

.elmeria-discover-btn {
    display: inline-block;
    background-color: #B43F34;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

.elmeria-discover-btn:hover {
    background-color: #ffffff;
    color: #B43F34;
    border: 1px solid #B43F34;
}


@media (min-width: 768px) {


    .elmeria-about-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .elmeria-image-col {
        text-align: left;
    }

}

.page-content.page-cms {
    background-color: #FEFCF8 !important;
}

#main .page-content,
#main .page-footer,
#main .page-header {
    margin-bottom: 1.563rem;
}

header.page-header {
    display: none;
}

@media (min-width: 1300px) {

    .elmeria-about-section {
        width: 62vw;
        padding: 0 !important;
        max-width: none !important;
    }

}


@media (min-width: 1900px) {

    .elmeria-about-section {
        width: 113vh;

    }

}



@media (max-width: 768px) {

    .elmeria-about-section h1 {
        font-size: 37px !important;
        text-align: center;
    }
}


/* =================================================================== */
/*                     STYLES PAGE CONTACT                             */
/* =================================================================== */

/* ----- Structure générale de la page ----- */
.contact-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #414141;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-family: 'Georgia', serif;
    color: #B43F34;
    /* Couleur rouille/marron */
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1rem;
    color: #6c757d;
}

/* ----- Disposition en 2 colonnes ----- */
.contact-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-left-column {
    flex: 2;
    min-width: 300px;
}

.contact-right-column {
    flex: 1;
    min-width: 280px;
}

.page-contact .page-content.page-cms ul,
p {
    font-size: 15px;

}


/* ----- Style du formulaire (colonne de gauche) ----- */
.contact-form {
    padding: 30px;
    border: 1px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 11px;
}

.contact-form h3 {
    font-family: 'EB Garamond';
    color: #B43F34;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-form .form-group-row {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
}

.contact-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.contact-form .form-group-row+.form-group {
    margin-bottom: 15px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 7px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 0;
    font-size: 0.9rem;
    border-radius: 6px;
}

.contact-form .form-control::placeholder {
    color: #999;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: #B43F34;
    box-shadow: none;
}

.contact-form select.form-control-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.contact-form .gdpr-consent {
    font-size: 0.8rem;
    color: #777;
    margin-top: 20px;
}

.contact-form .gdpr-consent input {
    margin-right: 8px;
}

.contact-form .form-footer {
    text-align: left;
    margin-top: 20px;
    text-align: center;
}

.contact-form .form-footer .btn {
    background-color: #B43F34;
    color: #fff;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: none;
}

.contact-form .form-footer .btn:hover {
    background-color: #ffffff;
    color: #B43F34;
    border: 1px solid #B43F34;
}

/* ----- Blocs d'information (colonne de droite) ----- */
.contact-right-column>div {
    padding: 30px;
    border: 1px solid #f0e9e9;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border-radius: 17px;
}

.contact-right-column h3 {
    font-family: 'EB Garamond';
    font-weight: bold;
    color: #B43F34;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.contact-info-block .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-block .info-item:last-child {
    margin-bottom: 0;
}

.contact-info-block .info-item .material-icons {
    color: #B43F34;
    margin-right: 15px;
    font-size: 24px;
}

.contact-info-block .info-item div {
    display: flex;
    flex-direction: column;
}

.contact-info-block .info-item strong {
    font-weight: 600;
}

.contact-orders-block p {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* ----- Section FAQ ----- */
.contact-faq-section {
    margin-top: 60px;
    text-align: center;
}

.contact-faq-section h2 {
    font-family: 'Georgia', serif;
    color: #B43F34;
    font-size: 2rem;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 47px;
    box-shadow: antiquewhite;
    box-shadow: rgba(100, 100, 111, 0.05) 0px 2px 8px 0px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    color: #B43F34;
    border-radius: 6px;
}

.faq-question .material-icons {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    line-height: 1.7;
}

.faq-item.active .faq-question .material-icons {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Terroir — image de production */
.elmeria-terroir-image-container {
    max-width: 1100px;
    margin: 26px auto;
    padding: 12px;
    text-align: center;
}
.elmeria-terroir-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* box-shadow: 0 8px 24px rgba(0,0,0,0.12); */
    object-fit: cover;
    display: inline-block;
    max-height: 520px;
}
.elmeria-terroir-title-wrap {
    text-align: center;
    margin-top: 18px;
}
.elmeria-terroir-title {
    font-family: 'Raleway', 'Encode Sans', sans-serif;
    color: #B43F34;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 8px 0 14px;
    letter-spacing: 0.2px;
}
@media (max-width: 768px) {
    .elmeria-terroir-image-container { padding: 8px; margin: 18px 12px; }
    .elmeria-terroir-image { max-height: 360px; border-radius:6px; }
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .contact-main-content {
        flex-direction: column;
    }
}

.page-contact .card {
    all: unset;
}

.page-contact .js-content-wrapper {
    all: unset;
}

.page-contact .left-column {
    all: unset;
}

/* .page-contact .col-xs-12{
    all: unset;
}  */
.page-contact .col-md-8 {
    all: unset;
}

.page-contact .col-lg-9 {
    all: unset;
}

.page-contact #left-column {
    display: none;
}

.contact-form {
    width: 85%;

}

@media (min-width: 1200px) {
    .page-contact #wrapper .container {
        width: 65vw;
    }
}

.page-contact a:hover {
    color: #B43F34;
}

.page-contact a:active {
    color: #B43F34;
}




@media (min-width: 2000px) {
    .col-xxl-4 {
        flex: 0 0 24.333333%;
        max-width: 33.333333%;
    }

    .page-category #wrapper .container {
        width: 68%;
    }
}


/*********** Breadcrumb - Elmeria Theme ***********/

.home-icon {
    vertical-align: text-top;
    ;
    margin-right: 5px;
}


#wrapper .breadcrumb ol,
.list-group {
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
}

#wrapper .breadcrumb li:last-child {
    color: #B43F34;

}

.breadcrumb span {
    font-weight: 500;
}

.page-category #wrapper .breadcrumb ol,
.list-group {
    display: none;
}

/*********** Page Search - Elmeria Theme ***********/

.page-search .custom-selection {
    margin-left: 0% !important;
    width: 100% !important;
}


.carousel-fixed-title {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    font-size: 3rem;
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    color: white;
}


@media (max-width: 768px) {

    .carousel-fixed-title {

        font-size: 2rem;

    }

}

footer .row p {
    font-size: 15px;
}

footer a {
    font-size: 19px;
}


.js-search-filters-clear-all::first-letter {
    text-transform: uppercase;
}



/*********** 404 Page Not Found - Elmeria Theme ***********/


.page-not-found {
    background-color: #f4f4f4;
    font-family: 'Helvetica Neue', sans-serif;
    color: #333;
    padding: 50px 0;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.error-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

.error-message h1 {
    font-family: 'EB Garamond';
    font-size: 2.5rem;
    margin-top: 20px;
    color: #c0392b;
}

.error-message p {
    font-size: 14px;
    font-family: 'Encode Sans';
    margin: 10px 0;
}

.error-message a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.error-message a:hover {
    text-decoration: underline;
}

.search-bar {
    margin-top: 30px;
}

#pagenotfound .page-not-found,
#products .page-not-found {
    max-width: 100%;
}

.page-category #pagenotfound div#left-column {
    display: none !important;
}


#pagenotfound .page-not-found,
#products .page-not-found {
    padding: 1rem;
    margin: 0 auto;
    overflow: auto;
    font-size: .875rem;
    color: #7a7a7a;
    background: #ffffff00;
}


/* ----- Images centrées dans les paragraphes ----- */
.page-manufacturer p img {
    display: block;
    margin: 0 auto;
}

.brands-filters-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.brands-search-container {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.brands-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.brands-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-search:hover {
    color: #333;
}

.brands-sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.brands-sort-select {
    padding: 12px 35px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.brands-sort-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.brands-results-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

#brandsCount {
    color: #007bff;
    font-weight: 600;
}

.no-brands-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

#brandsList>li {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#brandsList>li.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .brands-filters-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .brands-search-container {
        min-width: 100%;
    }

    .brands-sort-container {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .brands-sort-select {
        width: 100%;
    }
}

.brands-filters-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.brands-search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    transition: transform 0.2s ease;
}

.brands-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.brands-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clear-search:hover {
    color: #333;
}

.brands-sort-container,
.brands-country-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.sort-label,
.country-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brands-sort-select,
.brands-country-select {
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.brands-sort-select:hover,
.brands-country-select:hover {
    border-color: #007bff;
}

.brands-sort-select:focus,
.brands-country-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.brands-results-info {
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

#brandsCount {
    color: #007bff;
    font-weight: 700;
    font-size: 16px;
}

.no-brands-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.no-brands-message p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .brands-filters-wrapper {
        flex-direction: column;
    }

    .brands-search-container,
    .brands-sort-container,
    .brands-country-container {
        width: 100%;
        min-width: 100%;
    }
}

/* Styles pour la page de marque vide */
.empty-brand-container {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.empty-brand-icon {
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-brand-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.empty-brand-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lead-text {
    font-size: 20px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.wine-icon {
    font-size: 28px;
    margin-right: 10px;
    vertical-align: middle;
}

.info-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.empty-brand-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-brand-actions .btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.empty-brand-actions .btn-primary {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.empty-brand-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.empty-brand-actions .btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.empty-brand-actions .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #bbb;
    transform: translateY(-2px);
}

.suggestions-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.suggestions-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 400;
}

.suggestion-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
}

.suggestion-link:hover {
    color: #0056b3;
    background: #e7f3ff;
    border-color: #007bff;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .empty-brand-title {
        font-size: 28px;
    }

    .empty-brand-content {
        padding: 30px 20px;
    }

    .lead-text {
        font-size: 18px;
    }

    .empty-brand-actions {
        flex-direction: column;
    }

    .empty-brand-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400&display=swap');

body {
    font-family: 'Raleway', sans-serif;
    background-color: #FEFCF8 !important;
}

/**** HEADER ****/

#header {
    margin-bottom: 0 !important;
}

.user-info span {
    display: none !important;
}

.cart-preview .header>span.hidden-sm-down:not(.cart-products-count) {
    display: none !important;
}

.blockcart.cart-preview.inactive div {
    display: flex;
}



/* LOGO */
#_desktop_logo img {
    max-height: 110px;
    /* plus gros */
}

/* Structure header */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}




/* BARRE DE RECHERCHE */
#search_widget {
    width: 100%;
}

/* COMPTE + PANIER */
.items-header {
    display: none;
    align-items: center;
    gap: 20px;
}

/* MENU */
.main-menu #_desktop_top_menu ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu #_desktop_top_menu li a {
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
}




.main-menu #_desktop_top_menu li a:hover {
    color: #a22;
}

#_desktop_search_bar #search_widget {
    width: 100%;
    height: 42px;
    position: relative;
}

#search_widget {
    min-width: 705px;
}

#_desktop_user_info {
    display: none;
}

@media (min-width: 1000px) and (max-width: 1289px) {
    #search_widget {
        min-width: 601px;
    }
}

#_desktop_search_bar #search_widget form {
    margin: 0;
    height: 100%;
}

#_desktop_search_bar #search_widget input[type="text"],
#_desktop_search_bar #search_widget input[type="search"] {
    width: 100%;
    height: 100%;
    padding: 0 20px 0 9px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
}

#_desktop_search_bar #search_widget input::placeholder {
    color: #999;
}

.mm_menus_li.sake_down>a {
    pointer-events: none;
}


a.ets_mm_url.sake_down {
    pointer-events: none;

}

#_desktop_search_bar #search_widget .material-icons.search {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    color: #B43F34;
    font-size: 20px;
    pointer-events: none;
    font-weight: bold;
}

/* Optionnel : effet au focus */
#_desktop_search_bar #search_widget input:focus {
    border-color: #B43F34;
    box-shadow: 0 0 5px rgba(180, 63, 52, 0.3);
}

#search_widget form i {
    padding: 0 !important;
}


@media (min-width: 576px) and (max-width: 800px) {
    .header-top .search-widgets {
        max-width: 35rem;
    }
}

@media (min-width: 769px) and (max-width: 1000px) {
    #search_widget {
        min-width: 300px;
    }
}

/**** Container for header ****/

@media (min-width: 1200px) {
    .container_header {
        width: 1407px;
        max-width: 100%;
    }
}



@media (min-width: 2500px) {
    .ets_mm_megamenu_content .container {
        width: 57%;
        max-width: 100%;
    }

    span.mm_menu_content_title {
        font-size: 19px;
    }
}

/**** Megamenu ****/


.ets_mm_megamenu.layout_layout1.show_icon_in_mobile.transition_fade.transition_floating.sticky_enabled.ets-dir-ltr.hook-default.single_layout.disable_sticky_mobile.hover.mm_menu_left.changestatus {
    position: relative;
}


@media (min-width: 768px) {
    .ets_mm_megamenu.sticky_enabled.scroll_heading {
        position: relative;
    }
}

.mm_menu_content_title:hover {
    color: #B43F34 !important;
    font-weight: 600 !important;
}

.ets_mm_block.mm_block_type_category a:hover {
    color: #B43F34 !important;
    font-weight: 600 !important;
}

.layout_layout1 .mm_menus_li:nth-child(2) {
    border-left: 0px !important;
}


@media (min-width: 768px) and (max-width: 1190px) {
    .ets_mm_megamenu.layout_layout1 {
        position: absolute;
        top: -76px !important;
        background-color: #ffffff00;
        padding: 0 7px;
        width: 14%;
    }

    .section-content {
        margin-top: 4%;
    }
}




.ybc-menu-toggle {
    color: #33333300 !important;
}

.layout_layout1 .mm_menus_li {
    border-right: 0px !important;
}

.layout_layout1 .mm_menus_li:last-child {
    border-right: 0px !important;
}

.layout_layout1 .ets_mm_megamenu_content {
    border: 0px !important;
}

.layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li:hover>a,
.layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a,
.layout_layout1:not(.ybc_vertical_menu) .mm_menus_li.menu_hover>a,
.ets_mm_megamenu.layout_layout1.ybc_vertical_menu:hover,
#header .layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li:hover>a,
#header .layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a,
#header .layout_layout1:not(.ybc_vertical_menu) .mm_menus_li.menu_hover>a,
.ets_mm_megamenu.layout_layout1.ybc_vertical_menu:hover {

    background: none !important;
}


.layout_layout1:not(.click_open_submenu) .mm_menus_li:hover>a,
.layout_layout1.click_open_submenu .mm_menus_li.open_li>a,
.layout_layout1 .mm_menus_li.active>a,
#header .layout_layout1:not(.click_open_submenu) .mm_menus_li:hover>a,
#header .layout_layout1.click_open_submenu .mm_menus_li.open_li>a,
#header .layout_layout1 .mm_menus_li.menu_hover>a,
.layout_layout1:hover .ybc-menu-vertical-button,
.layout_layout1 .mm_extra_item button[type="submit"]:hover i,
#header .layout_layout1 .mm_menus_li.active>a {
    color: black !important;
}

.layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li>a:before,
.layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a:before,
.layout_layout1.ybc_vertical_menu:hover .ybc-menu-vertical-button:before,
.layout_layout1:hover .ybc-menu-vertical-button .ybc-menu-button-toggle_icon_default .icon-bar,
.ybc-menu-vertical-button.layout_layout1:hover {
    background-color: #ec424800 !important;
}


.mm_menu_content_title {
    color: black;
    font-weight: 500;
}

.ets_mm_megamenu_content_content {

    justify-self: anchor-center;
}

.layout_layout1 .ets_mm_megamenu_content {
    background: linear-gradient(#ffffff00, #f2f2f200) repeat scroll 0 0 rgba(0, 0, 0, 0) !important;

}

/* --- MOBILE HEADER FIX --- */
@media (max-width: 768px) {
    .header-row {
        display: flex;
        flex-direction: column;
        /* on empile les éléments */
        align-items: center;
        gap: 10px;
    }

    /* Logo centré */
    #_desktop_logo {
        text-align: center;
        order: 1;
    }

    #_desktop_logo img {
        max-height: 80px;
    }

    /* Icônes compte + panier à droite du logo */
    .items-header {
        order: 2;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    /* Barre de recherche en dessous, full width */
    #_desktop_search_bar {
        order: 3;
        width: 100%;
        padding: 0 10px;
    }

    #_desktop_search_bar #search_widget {
        width: 100% !important;
        min-width: unset;
        /* supprime la contrainte desktop */
    }


    .ets_mm_megamenu.hook-default {
        position: absolute !important;
        top: 2%;
        background-color: #ffffff00 !important;
        padding: 0 7px !important;
        width: 14% !important;
    }

    .ybc-menu-toggle {
        color: #824c4c00 !important;
        display: block !important;
    }

    .ets_mm_megamenu_content div {
        background-color: rgba(255, 255, 255, 0) !important;
    }


    .carousel .carousel-item .caption {
        position: absolute !important;
        bottom: 0% !important;

    }

    .carousel .carousel-item img {
        height: 50vh !important;
    }

    .carousel .carousel-item .caption .display-1 {
        color: #ffffff !important;
    }




}




/****** Carrousel ******/

.carousel .carousel-item .caption {
    bottom: 35%;

}

.carousel-item figure {
    position: relative;
    margin: 0;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50% !important;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
}

.caption h2 {
    font-size: 2rem;
}


.carousel .carousel-item img {
    width: 100%;
    max-width: 100%;
    height: 41vw;

}

.carousel .carousel-inner {
    height: 100%;
}

.carousel {
    margin-bottom: -58px;
}

li.carousel-item.active figure {
    width: 100%;
}

.carousel .direction {
    display: none;
}

figcaption.caption {
    max-width: 100% !important;
}

figcaption.caption h2 {
    font-family: 'EB Garamond', sans-serif;
}


#carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 144px;
    background: url("/themes/elmeria/assets/img/montain.svg") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    z-index: 2;/
}


#wrapper {

    background: #FEFCF8 !important;
}

#header {

    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 0%) !important;
}


@media (max-width: 991px) {
    .carousel .carousel-item .caption {

        text-align: center;
        position: absolute;
        bottom: 28px;
        left: 90px;
        max-width: 340px;
        color: #fff;
    }

    .carousel .carousel-item .caption .display-1 {
        color: white;
    }
}

/*********** FOOTER ***********/

/* --- FOOTER CUSTOM --- */
#custom-footer {
    background: #fdfbf7;
    color: #222;
}

#custom-footer .footer-top {
    background: #B43F34;
    height: 67px;
    width: 100%;
    font-weight: 400;
}

#custom-footer .footer-container {
    padding: 40px 20px;
}

#custom-footer .footer-logo {
    margin-right: 80px;
}

#custom-footer .footer-links {
    margin-right: 20px;
}

#custom-footer .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 81%;
    margin: 0 auto;
}

#custom-footer .footer-col {
    flex: 1;
}

#custom-footer .footer-logo img {
    width: 261px;
    max-width: 100%;
    height: auto;
    margin-top: 0%;
}

#custom-footer .footer-logo .tagline {
    font-size: 14px;
    color: #B43F34;
    font-weight: bold;
}

#custom-footer ul {
    list-style: none;
    justify-items: center;
    padding: 0;
    margin: 0;
}

#custom-footer ul li {
    margin: 5px 0;
}

#custom-footer ul li a {
    text-decoration: none;
    color: #222;
    font-size: 19px;
}

#custom-footer ul li a:hover {
    color: #B43F34;
}

#custom-footer .footer-social {
    margin-top: 10px;
    text-align: center;
}

#custom-footer .footer-social a {
    display: inline-block;
    margin-right: 10px;
    font-size: 29px;
    color: #B43F34;
}

#custom-footer .footer-social a:hover {
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #custom-footer .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #custom-footer .footer-col {
        margin-bottom: 20px;
    }

    #custom-footer .footer-logo {
        margin-right: 0;
        display: flex;
        justify-content: center;
    }

    #custom-footer .footer-logo img {
        margin: 0 auto;
    }
}










/*************************** Product Page CSS ***************************/


.product-features>dl.data-sheet,
.product-flags {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    align-content: flex-end;
}

.product-flag.new {
    background-color: #B43F34 !important;

}


.page-product .el-desc .el-provenance {
    margin-top: 11%;
}

.page-product #header {
    margin-bottom: 0px !important;
}


.page-product .page-content.page-cms ul,
p {
    font-size: .9375rem;
    font-weight: 400;
    color: #000000;
}

.product-flag.new::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/etiquette.svg') no-repeat center center;
    background-size: contain;
}


.product-flags li.product-flag {
    border-radius: 7px;
}


section.product-accessories.clearfix .product-flags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}



/* Ou positionnez-le différemment si nécessaire */
.product-flag.bio {
    top: 50px;
    /* En dessous du flag "Nouveau" */
    right: 0px;
    background-color: #008000 !important;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.product-flag.bio::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/bio.svg') no-repeat center center;
    background-size: contain;
}


.product-flags li.product-flag.on-sale {

    background: #377a7d;
}


.product-flag.bestseller {
    top: 50px;
    right: 0px;
    background-color: #000000 !important;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.product-flag.bestseller::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/star.svg') no-repeat center center;
    background-size: contain;
    margin-bottom: 4%;
}


.product-flags li.product-flag {

    font-size: 13px;
    margin-top: 0%;

}


@media (min-width: 2200px) {


    .page-product .product-title {
        font-size: 51px;
    }

    .page-product .product-provenance {

        font-size: 20px;
    }

    .page-product .page-content.page-cms ul,
    p {
        font-size: 21px;
        letter-spacing: 1px;
        line-height: 139%;
    }

    .order-contact-box .box-title {
        font-size: 1.5rem !important;
    }

    .order-contact-box {
        margin-top: 9% !important;
    }

    .order-contact-box p {
        margin-bottom: 15px;
        font-size: 1.1rem;
    }


    p.text-command {
        font-size: 20px !important;
    }

    span.contact-line {
        font-size: 20px !important;
    }

    .product-flags li.product-flag {
        font-size: 15px;

    }

    a.ets_mm_url {
        font-size: 17px;
    }

    .ets_mm_block .mm_block_type_category {
        font-size: 17px;
    }

}


@media (min-width: 1700px) {



    .page-product #wrapper .container {
        width: 67%;

    }
}

.page-product .product-cover {
    background-color: white;
}

.page-product #product-modal .modal-content .modal-body .product-cover-modal,
.product-cover img {
    background: #ffffff;
}


.page-product .product-page-custom {
    margin-top: 5%;
}

#product #content {
    max-width: 100%;
}

.product-section--details h2 {
    color: #000000;
    font-weight: 600;
}

li.product-flag.bio {
    text-transform: none;
}

.product-features .h6 {
    font-weight: 600;
    color: #000000;
    margin: 0 0 16px;
    font-size: 25px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
    margin-bottom: 2%;
}


.page-product a {
    color: #000000;
    text-decoration: none;
}

.page-product a:hover {
    color: #B43F34;
    text-decoration: none;
}

.page-product .product-flags {
    position: relative;
    display: block;
    margin-bottom: 6%;

}


.page-product .product-flags li.product-flag {
    border-radius: 6px;

}


.tabs.product-tabs-container p {
    font-family: 'Encode Sans';
}

.tabs.product-tabs-container dt {
    font-family: 'Encode Sans';
}



/* Mise en page des sections produit */
.product-sections {
    margin-top: 24px;
}

.product-section {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.product-section:first-child {
    border-top: 0;
}

.section-title {
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Rendre visibles les anciens .tab-pane du partial product-details */
.product-section .tab-pane {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-section .tab-pane.fade {
    transition: none !important;
}

/* Pièces jointes */
.product-attachments .attachment-item {
    margin-bottom: 14px;
}

.product-attachments .attachment-title {
    margin: 0 0 6px;
}

.product-attachments .attachment-desc {
    margin: 0 0 8px;
    color: #666;
}



/************* Div histoire du produit *************/

.wine-section {
    background: #FEFCF8;
    padding-top: 3%;
    position: relative;
    overflow: hidden;
}

.wine-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(169, 68, 66, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.cta-button:hover {
    color: white !important;
}


.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: #FEFCF8 !important;

}

.text-content {
    padding-right: 20px;
}

.section-tag {
    color: #008000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2d5016;
}

.main-title {
    color: #a94442;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
}

.description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.highlight-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
    font-style: italic;
}

.mission-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.author {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #a94442;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #8b3735;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(169, 68, 66, 0.3);
}

.cta-button::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 21px;
    height: 19px;
    margin-left: 10px;
    background: url('/themes/elmeria/assets/img/arrow.svg') no-repeat center center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 570px;
}

.image-large {
    grid-column: 1 / 3;
    grid-row: 1;
}

.image-small-1,
.image-small-2 {
    height: 100%;
}

.image-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.wine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-container:hover .wine-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Responsive Design amélioré */
@media (max-width: 992px) {
    .section-content {
        gap: 40px;
    }

    .main-title {
        font-size: 36px;
    }

    .images-grid {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .wine-section {
        padding: 60px 0;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .text-content {
        padding-right: 0;
        text-align: center;
    }

    .section-tag::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .images-grid {
        height: 400px;
        grid-template-rows: 2fr 1fr;
    }

    .main-title {
        font-size: 32px;
    }

    .container {
        padding: 0 15px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .images-grid {
        height: 350px;
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 1fr 1fr;
    }

    .image-large {
        grid-column: 1;
        grid-row: 1;
    }

    .image-small-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .image-small-2 {
        grid-column: 1;
        grid-row: 3;
    }

    .main-title {
        font-size: 28px;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-content>* {
    animation: fadeInUp 0.8s ease forwards;
}

.text-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.text-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.text-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

.text-content>*:nth-child(4) {
    animation-delay: 0.4s;
}

.text-content>*:nth-child(5) {
    animation-delay: 0.5s;
}

.text-content>*:nth-child(6) {
    animation-delay: 0.6s;
}

.text-content>*:nth-child(7) {
    animation-delay: 0.7s;
}

.image-container {
    animation: fadeInUp 0.8s ease forwards;
}

.image-container:nth-child(1) {
    animation-delay: 0.3s;
}

.image-container:nth-child(2) {
    animation-delay: 0.5s;
}

.image-container:nth-child(3) {
    animation-delay: 0.7s;
}


@media (min-width: 1500px) {

    .section-content {
        width: 68vw;
        margin-top: 5%;
        margin-left: -7%;
    }

}

.block-icon svg path {
    fill: #B43F34;
}


.cta-button {
    color: white !important;
    font-weight: bold !important;
}


.wine-separator {
    width: 70%;
    height: 0;
    border: 1px solid #EBEBEB;
    opacity: 1;
    margin: 5% auto 0 auto;
    display: block;
}


@media (min-width: 4000px) {


    #carousel::after {
        height: 500px;

    }
}


@media (min-width: 2000px) {
    .section-content {

        margin-left: -44%;
    }

    #carousel::after {
        height: 229px;

    }
}

@media (min-width: 3000px) {
    .section-content {

        margin-left: -96%;
    }
}


@media (max-width: 796px) {
    #carousel::after {
        display: none;

    }

    .el-sc__all {
        display: none;
    }
}



@media (min-width: 2000px) {
    .container .section-content {
        display: flex;
        padding: 2px 11%;
        justify-content: center;
        align-items: center;
        margin-left: 0%;
        margin-right: 0%;
    }

    .container:has(> .section-content) {

        width: 100%;

    }

    .images-grid {

        width: 51%;
    }

    .section-content {
        width: 100%;
    }


}





@media (min-width: 1400px) and (max-width: 1850px) {
    .section-content {

        margin-left: 0%;
    }
}



.product-miniature {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 480px;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 19%;
    border: 2px solid #ffffff;
}

.product-miniature:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* --- Image --- */
.thumbnail-container {
    position: relative;
    text-align: center;
}

.el-thumb {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
}

.el-thumb .product-thumbnail {
    display: block;
    width: 100%;
    height: 100% !important
}

.el-thumb picture {
    display: block;
    width: 100%;
    height: 100%
}

.el-thumb img {
    width: auto;
    max-width: 100%;
    max-height: 110%;
    object-fit: contain;
    margin-top: -20px;
}


.thumbnail-container img {
    max-width: 100%;
    height: auto;
}

/* --- Flags (nouveau, promo, bestseller, bio, etc.) --- */
.product-flags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    place-content: end !important;
}

.product-flag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.product-flag.new {
    background: #b4372f;
}

.product-flag.on-sale {
    background: #e67e22;
}

.product-flag.bestseller {
    background: #000;
}

.product-flag.bio {
    background: #2ecc71;
}

/* --- Description --- */
.product-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: left
}

.el-desc {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* pousse le bouton en bas */
    padding-top: 12px;
}


.el-desc .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3
}

.el-desc .el-provenance {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    line-height: 1.2
}

.el-desc .el-cta-wrap {
    margin-top: auto;
    position: static;
    align-self: flex-end
}

/* Nom produit */
.product-title {
    min-height: 2.6em;
    /* hauteur uniforme pour tous les titres */
    line-height: 1.3;
}

.el-provenance {
    min-height: 2.4em;
    /* hauteur uniforme pour la provenance */
}

/* Aligner la provenance avec le titre (mêmes marges et alignement gauche) */
.el-desc .product-title,
.el-desc .el-provenance {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    display: block
}

.el-desc .el-provenance {
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.3
}


.product-title a {
    color: #000;
    text-decoration: none;
}

.product-title a:hover {
    color: #b4372f;
}

/* Provenance */
.el-provenance {
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    min-height: 2.4em;
}

/* --- CTA En savoir plus --- */


.el-cta-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.el-cta {
    background: #b4372f;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.el-cta:hover {
    background: #922a24;
}


.product-title a {
    font-weight: 600 !important;
    font-size: 21px !important;
    line-height: 100%;
    top: 418px;
    left: 866px;
    color: #000000 !important;
    opacity: 1
}




/********** HTML Block Home Page - Elmeria Theme **********/

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    max-width: 1308px;
    margin: 40px auto;
    padding: 0 3px;
    margin-top: 13%;
    width: 67vw;

}

@media (min-width: 2000px) {
    .card-grid {
        max-width: 90%;
    }

    .card-tag {
        font-size: 17px !important;
    }

    .card-title {
        font-size: 40px !important;
    }

    .card-btn {

        font-size: 19px !important;

    }
}

.card {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card.slide-left {
    transform: translateX(-100px);
}

.card.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .card {
        transform: translateX(70px);
    }


}

@media (max-width: 600px) {
    .card {
        transform: translateY(40px);
    }

    .card.slide-left {
        transform: translateY(40px);
    }
}


div:has(> .card-grid) {
    justify-content: center;
    display: grid;
}


.card {
    background: #fff;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
    border-radius: 0;
}

.card-green {
    background: #008000;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-red {
    background: #a94442;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-black {
    background: #111;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tag {
    background: #fff;
    color: #008000;
    font-size: 14px;
    padding: 6px 18px;
    display: inline-block;
    margin-bottom: 22px;
    border-radius: 3px;
    width: 28%;
    text-align: center;
    font-weight: 600;
}

.card-red .card-tag {
    color: #a94442;
}

.card-black .card-tag {
    color: #111;
}

.card-title {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 22px;
    font-weight: bold;
    font-family: 'EB Garamond', serif;
}

.card-text {
    font-size: 19px;
    margin-bottom: 32px;
    line-height: 1.6;
    color: white !important;
    letter-spacing: 1px;
}

.card-btn {
    background: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 32px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    width: 41%;
    text-align: center;
}

.card-btn:hover {
    background: #fff;
    color: #222;
}

.card-mobile-img {
    display: none;
}

@media (max-width: 550px) {

    .card-grid {
        width: 100%;

    }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 60px;

    }

    .card-grid .card:nth-child(1) {
        order: 1;
    }

    .card-grid .card:nth-child(2) {
        order: 2;
    }

    .card-grid .card:nth-child(3) {
        order: 4;
    }

    .card-grid .card:nth-child(4) {
        order: 3;
    }

    .card-grid .card:nth-child(5) {
        order: 5;
    }

    .card-grid .card:nth-child(6) {
        order: 6;
    }

    .card-mobile-img {
        display: block;
        width: 100%;
        height: 240px;
        object-fit: cover;
        margin-bottom: 20px;
    }

    .card-img {
        display: none;
    }

    .card-green,
    .card-red,
    .card-black {
        padding: 32px 24px;
        text-align: center;
    }

    .card-tag {
        margin-top: 0;
        margin-bottom: 20px;
        width: auto;
    }

    .card-btn {
        width: auto;
    }
}

/* ====== About & Sakes Sections ====== */
.about-section,
.sakes-section {
    padding: 41px 0px;
}

.about-container,
.sakes-container {
    max-width: 1262px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: center;
}

.about-container {
    margin-top: 4% !important;
}

.section-title {
    font-weight: 700;
    font-size: 25px;
    color: #b43f34;
    margin: 0 0 16px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
    margin-bottom: 2%;
}


.product-sections {
    background-color: white;
    padding: 10px 9px 8px 21px;
    border: 1px solid #E9E9E9;
}

.section-paragraph {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 12px;
}

.section-author {
    font-weight: 700;
    margin: 18px 0 8px;
    color: black !important;
}

.about-image img,
.sakes-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.about-image img {
    border-radius: 0;
}

@media (min-width: 667px) and (max-width: 900px) {

    .about-image img,
    .sakes-image img {
        width: 63%;
    }

    .about-image {
        justify-items: center;
    }
}



@media (min-width: 2000px) {

    .about-container,
    .sakes-container {
        max-width: 90%;
    }

    .section-title {
        font-size: 33px;
    }

    .section-paragraph {
        font-size: 18px;
    }
}

.signature {
    width: 160px;
    height: auto;
    margin: 6px 0 18px;
    display: block;
}

.about-btn {
    background: #b43f34;
    border-color: #b43f34;
}

.about-btn:hover {
    background: transparent;
    color: #b43f34;
}

.sakes-btn {
    background: #b43f34;
    border-color: #b43f34;
}

.sakes-btn:hover {
    background: transparent;
    color: #b43f34;
}

.about-section .card-btn,
.sakes-section .card-btn {
    width: auto;
    white-space: nowrap;
    border-radius: 10px;
    padding: 12px 28px;
    margin-top: 5%;
}


.about-text {
    width: 92%;
}

/* Mobile */
@media (max-width: 900px) {


    .about-text {
        width: 100%;
    }

    .about-container,
    .sakes-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    p.section-author {
        text-align: center;
    }

    img.signature {
        width: 100%;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .sakes-image {
        order: 1;
    }

    .sakes-text {
        order: 2;
    }

    .about-section,
    .sakes-section {
        padding: 30px 16px;
    }

    .sakes-image img {
        border-radius: 12px;
    }

    .section-title {
        font-size: 20px;
        text-align: center;
    }

    .section-paragraph {
        text-align: center;
    }

    .about-section .card-btn,
    .sakes-section .card-btn {
        display: block;
        margin: 0 auto;
        text-align: center;
        width: fit-content;
    }
}



/* Pour tablettes et écrans moyens */
@media (max-width: 1400px) and (min-width: 901px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        width: 80vw;
        margin-top: 8%;
    }

    .card-tag {
        width: 34%;
    }

    .card {
        min-height: auto;
        /* éviter des cartes trop hautes */
    }

    .card-title {
        font-size: 22px;
    }

    .card-text {
        font-size: 15px;
    }

    .card-btn {
        font-size: 15px;
        padding: 10px 24px;
        width: auto;
    }
}

/* Forcer le même alignement à gauche pour titre + provenance */
.el-desc .product-title,
.el-desc .product-title a,
.el-desc .el-provenance {
    margin: 0;
    padding: 0;
    text-align: left;
    display: block;
}

/* Espacement régulier */
.el-desc .el-provenance {
    margin-top: 4px;
    /* petit espace sous le titre */
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #333;
}










/**
 * Styles pour l'interface de sélection de provenance
 */
#provenance_preview {
    margin-top: 10px;
    background-color: #e3f2fd;
    border-color: #2196f3;
    border-left: 4px solid #2196f3;
}

#provenance_preview strong {
    color: #1976d2;
}

#preview_text {
    font-size: 1.1em;
    font-weight: 500;
    color: #0d47a1;
}

#el_country_select {
    border-radius: 4px;
}

#el_provenance_input {
    border-radius: 4px;
}

.provenance-field-group {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.provenance-field-group h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.form-text.text-muted {
    font-style: italic;
    margin-top: 8px;
}

/* Animation pour l'aperçu */
#provenance_preview {
    transition: all 0.3s ease-in-out;
}

#provenance_preview.show {
    opacity: 1;
    transform: translateY(0);
}

#provenance_preview.hide {
    opacity: 0;
    transform: translateY(-10px);
}



/*********** Reassurance Block Home Page - Elmeria Theme ***********/


.blockreassurance .block-title {
    color: #B43F34 !important;
    margin-top: 8%;
    text-align: center;
    width: 96%;
}


@media (min-width: 2000px) {

    .blockreassurance .block-icon,
    .blockreassurance .block-icon img,
    .blockreassurance .block-icon svg {
        height: 113px;
    }
}


@media (max-width: 575px) {
    .blockreassurance {
        text-align: center;
    }
}

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

    .page-index .blockreassurance .col-sm-6,
    .col-sm-7 {
        float: left;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .blockreassurance .block-icon {
        float: none;
    }
}

@media (max-width: 575px) {

    .blockreassurance .block-icon img,
    .blockreassurance .block-icon svg {
        height: 47px;
        width: 74px;
        margin-left: -46%;
    }
}

.title_reassurance {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    font-weight: bold;
    font-size: 30px;
    line-height: 100%;
    color: #B43F34;
    margin-bottom: 7%;

}



div:has(> .block-social) {
    margin-bottom: 8%;
}


/*************** Product List Page - Elmeria Theme ***************/

.block-category.card.card-block.slide-left {
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);
}

div#subcategories {
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);
}

div#js-product-list {
    margin-bottom: 8%;
}


.pagination .page-list {
    padding: .375rem;
    margin-bottom: 0;
    background: #FEFCF8;
}


.block-categories .h6:hover {
    color: #000000 !important;
}

div#js-product-list-header {
    display: none !important;
}



/*************** Filtre de Recherche page de catégorie ***************/

.facet.clearfix:not(:last-child) {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}


#search_filters .facet .facet-title,
#search_filters_brands .facet .facet-title,
#search_filters_suppliers .facet .facet-title {
    font-size: 1rem;
    color: #B43F34;
    font-family: 'EB Garamond';
    font-size: 19px;
}


#search_filters>.h6,
#search_filters_brands>.h6,
#search_filters_suppliers>.h6 {

    color: #B43F34;
    font-family: 'EB Garamond', sans-serif;
    font-weight: bold;
}


button.btn-unstyle.select-title {
    border-radius: 9px;
}


.brands-sort .dropdown-menu,
.products-sort-order .dropdown-menu,
.suppliers-sort .dropdown-menu {
    width: 17.88rem;
}

.select-list.js-search-link {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 1px;
}

a.select-list.js-search-link:hover {
    background-color: #B43F34;

}

a.subcategory-name {
    color: #000000;
}

a.subcategory-name:hover {
    color: #B43F34 !important;
}



#subcategories ul li:hover .subcategory-image a {
    padding: 5px;
    border: 5px solid #B43F34;
}


.category-description {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.category-search-bar {
    margin-bottom: 30px;
}

.category-search-bar form {
    display: flex;
    gap: 10px;
    max-width: 100%;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.category-search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}




.category-search-bar button {
    padding: 0 15px;
    background: #B43F34;
    border: none;
    cursor: pointer;
    color: white;
}

.category-search-bar button[type="submit"] {
    padding: 0 20px;
    background: #B43F34;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    transition: background 0.2s;
}

.category-search-bar button[type="submit"]:hover {
    background: #922d25;
}


.category-search-bar button:hover {
    background: #eee;
}





.cat-name {
    font-size: 45px;
    color: #B43F34;
    font-family: 'EB Garamond', serif;
}




.cat-subtitle {
    width: 100%;
    font-weight: normal;
    color: #000000;
    margin-top: 4%;
    margin-bottom: 2%;
}

div#search_filters {
    border: 1px solid #EBEBEB;
}


#search_filters .ui-widget-header {
    background: #B43F34;
}

.block-categories {
    display: none;
}

div#subcategories {
    display: none !important;
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
}

.search-input-wrapper input {
    padding-right: 30px;
    /* espace pour la croix */
}

.clear-search {
    right: 8px;
    border: none;
    background: white;
    cursor: pointer;
    display: none;
    /* caché par défaut */
}

.clear-search i {
    font-size: 18px;
    color: #000000;
}

.clear-search:hover i {
    color: #333;
}

button.clear-search {
    background-color: white !important;
}

.col-lg-5.hidden-sm-down.total-products p {
    color: #000000;
    font-family: 'Encoda', sans-serif;
}

.page-category.container {
    width: 100vh;
}

#facet_50859 {
    column-count: 2;
    column-gap: 20px;
    padding: 0;
    list-style: none;
}

#facet_50859 li {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #facet_50859 {
        column-count: 1;
    }
}

.custom-checkbox input[type=checkbox]+span {
    border-radius: 6px;
}


.btn-tertiary {
    margin: .25rem 0;
    font-size: .875rem;
    font-weight: 400;
    color: #B43F34;
    text-transform: lowercase;
    background-color: transparent;
    border: 1px #B43F34 solid;
    border-radius: 10px;
    padding: 10px 18px;
}

.btn-tertiary:hover {
    color: white;
    background-color: #B43F34;

}



.btn-tertiary i {
    display: none;
}


/**** Block html end product list page *****/
.custom-selection {
    margin: 40px auto;
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 11%;
    width: 66vw;
}

.page-manufacturer .custom-selection {
    margin-left: 0%;
    width: 100%;
}

@media (min-width: 3015px) {
    .custom-selection {
        margin-left: -33%;
    }

}

@media (min-width: 2700px) and (max-width: 3000px) {
    .custom-selection {
        margin-left: -35%;
    }

}

@media (max-width: 1980px) {
    .custom-selection {
        margin-left: -40%;
    }

}

@media (min-width: 1981px) and (max-width: 2699px) {
    .custom-selection {
        margin-left: -37%;
    }

}


@media (max-width: 1800px) {
    .custom-selection {
        margin-left: -25%;
    }

}

@media (max-width: 1300px) {
    .custom-selection {
        margin-left: -20%;
    }

}

@media (max-width: 1000px) {
    .custom-selection {
        margin-left: -44%;
    }

}




.custom-selection h2 {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    color: #B43F34;
    margin-bottom: 20px;
}

.custom-selection p {
    font-family: 'Encode Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
    margin: 0;
}


/*************** Pagination ***************/


.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.page-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.page-list li {
    margin: 0 5px;
}

.page-list li a,
.page-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-list li a:hover {
    background-color: #f8f9fa;
    border-color: #B43F34;
    color: white;
}

.page-list li.current a {
    background-color: #B43F34;
    border-color: #B43F34;
    color: white;
}


.page-list li a.previous,
.page-list li a.next {
    font-weight: bold;
    background-color: transparent;
    border-color: #ddd;
}

.page-list li a.previous:hover,
.page-list li a.next:hover {
    background-color: #B43F34;
    border-color: #B43F34;
    color: white;
}

.page-list .spacer {
    border: none;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .pagination {
        flex-direction: column;
        text-align: center;
    }

    .col-md-4 {
        margin-bottom: 15px;
    }

    .page-list {
        flex-wrap: wrap;
    }
}

/******************* Branding Product Flags *******************/


.brands-list {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.brands-list>li {
    list-style: none;
    margin: 0;
}

.brand-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow .3s ease, transform .3s ease;
    overflow: hidden;
    display: block;
    margin-top: 2%;
    min-height: unset;
}

.brand-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.brand-card-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
}

.brand-logo {
    flex: 0 0 140px;
    height: 90px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-placeholder {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-initial {
    font-size: 24px;
    font-weight: 600;
    color: #495057;
}

.brand-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.brand-title a {
    color: #2c3e50;
    text-decoration: none;
}

.brand-title a:hover {
    color: #3498db;
}

.brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-products-count {
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.products-number {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.products-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.brand-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA */
.brand-actions {
    margin-top: 6px;
}




.btn-view-products {
    display: inline-block;
    background: #B43F34;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-view-products:hover {
    background: #a3392f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 63, 52, .25);
}

/* Responsive */
@media (max-width: 768px) {
    .brand-card-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .brand-logo {
        flex: none;
        height: 80px;
    }

    .brand-img {
        max-height: 80px;
    }

    .brand-actions .btn-view-products {
        width: 100%;
        text-align: center;
    }
}

/* Nettoyage/overrides de styles précédents qui gênaient */
.brands-container {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
}

.page-manufacturer ul {
    justify-content: initial;
    align-content: initial;
}

/**************** Page marque - Elmeria Theme ****************/

/* Bloc principal */
.manufacturer-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    margin-bottom: 30px;
}

/* Logo */
.manufacturer-logo img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Titre + textes */
.manufacturer-info {
    flex: 1;
}

.manufacturer-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.manufacturer-short {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #444;
}

.manufacturer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Grille produits */
.manufacturer-products {
    margin-top: 20px;
}


/**************** Page Not Found - Elmeria Theme ****************/





/*************** Product Page - Elmeria Theme ***************/


.blockreassurance_product {
    display: none;
}

.social-sharing {
    display: none;
}

/* --- Style général de la page produit personnalisée --- */
.product-page-custom {
    background-color: #FEFCF8;
    padding: 2rem;
}

/* --- Colonne de droite : Informations produit --- */
.product-title {
    font-family: 'EB Garamond';
    font-weight: bold;
    color: #B43F34;
    font-size: 29px;
    margin-bottom: 10px;
}

/* Style pour la provenance avec drapeau */
.product-provenance {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}



#product-description-short {
    margin-bottom: 25px;
    color: #333;
    line-height: 1.6;
}

.order-contact-box {
    border: 1px solid #B43F34;
    padding: 20px;
    margin-top: 20px;
    border-radius: 9px;
}

.order-contact-box .box-title {
    font-weight: bold;
    color: #B43F34;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'EB Garamond', serif;
}

.order-contact-box p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.order-contact-box .contact-info {
    display: flex;
    gap: 20%;
}

@media (max-width: 1205px) {
    .order-contact-box .contact-info {
        display: block;
    }
}

.order-contact-box .contact-line {
    display: flex;
    align-items: center;
}

.order-contact-box .contact-line .material-icons {
    margin-right: 10px;
    color: #B43F34;
}

/* --- Section des onglets (Description / Détails) --- */
.product-tabs-container {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-tabs-container .nav-tabs {
    border-bottom: 1px solid #ddd;
}

.product-tabs-container .nav-tabs .nav-item {
    margin-right: 20px;
}

.product-tabs-container .nav-tabs .nav-link {
    border: none;
    padding: 10px 0;
    color: #583535;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 1rem;
    font-family: 'EB Garamond';
}

.product-tabs-container .nav-tabs .nav-link.active,
.product-tabs-container .nav-tabs .nav-link:hover {
    border-bottom: 2px solid #B43F34;
    color: #B43F34;
    background-color: transparent;
    font-family: 'EB Garamond';
    font-weight: bold;
}

.product-tabs-container .tab-content {
    padding: 20px;
    background-color: #fff;
    border-top: none;
}

.product-description span {
    color: #000000;
}

.page-product .product-provenance {
    display: flex;
    font-style: normal;
    color: #000000;
}


.page-product .product-title {
    min-height: 0px;
    font-size: 40px;
}

.text-command {
    color: #000000 !important;

}

.product-description-full span {
    color: #000000 !important;
}

.product-description-full p {
    color: #000000 !important;
}


.page-product .tabs {
    padding: 1.25rem 0rem;
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #E9E9E9;
}


.page-product ul.nav.nav-tabs {
    padding-left: 2%;
}


.nav-tabs .nav-item+.nav-item {
    position: relative;
    margin-left: 10px;
}

.nav-tabs .nav-item+.nav-item::before {
    content: "";
    position: absolute;
    left: -14px;
    top: -50%;
    height: 150%;
    width: 1px;
    background-color: #ccc;
}

.product-accessories {
    margin-left: 3% !important;
}

.page-product .text-uppercase {
    color: #B43F34;
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    margin-top: 9%;
}

.page-product .wrapper .container {
    width: 1224px;
}

/********* Page a propos - Elmeria Theme *********/

.elmeria-about-section {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fdfcf9;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .product-page-custom {
        padding: 0rem;
    }

    .page-product .product-title {
        font-size: 27px;
    }

    .page-product .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-manufacturer .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-category .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-search .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .custom-selection {
        width: 100%;
        margin-left: 0%;
    }

    .cat-name {
        font-size: 34px;
    }

    .ybc-menu-vertical-button,
    .transition_floating .close_menu,
    .transition_full .close_menu {
        background-color: #B43F34 !important;
        color: #ffffff;
    }

    .mm_arrow {
        display: none;
    }

    span.mm_menu_content_title {
        pointer-events: none !important;
    }




    .page-manufacturer section .container {
        width: 100%;
    }

    .page-manufacturer img {
        width: 100%;
        height: auto;
    }
}

.brands-sort .dropdown-menu,
.products-sort-order .dropdown-menu,
.suppliers-sort .dropdown-menu {
    width: 90%;
}

.carousel-indicators {
    display: none;

}

@media (min-width: 1200px) and (max-width: 1499px) {

    .page-manufacturer .col-xl-3 {
        width: 46%;
    }
}

@media (min-width: 1500px) and (max-width: 1655px) {

    .page-manufacturer .col-xl-3 {
        width: 33%;
    }
}

@media (min-width: 800px) {

    .page-product .tabs {
        margin-left: 4%;
    }
}

@media (min-width: 2000px) {

    .page-cms #wrapper .container {
        width: 100% !important;
        max-width: 100%;
    }



    .elmeria-image-col img {
        max-width: 100% !important;

    }

    .elmeria-about-section {
        width: 55% !important;
    }


}

.elmeria-about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.elmeria-image-col {
    flex: 1;
    text-align: center;
}

.elmeria-image-col img {
    max-width: 366px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.elmeria-text-col {
    flex: 1.5;
}

.elmeria-about-section h1,
.elmeria-about-section h2,
.elmeria-about-section h3 {
    font-family: 'EB Garamond';
    color: #B43F34;
    font-weight: bold;
    font-size: 44px;
    margin-top: 0;
}


.elmeria-about-section h1 {
    margin-bottom: 7%;
}



.elmeria-about-section h3 {
    font-size: 22px;
    margin-top: 8%;
}

.elmeria-about-section p {
    margin-bottom: 15px;
    font-family: 'Raleway';
    color: black;
}

.elmeria-signature {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 25px;
}

.elmeria-button-container {
    text-align: center;
    margin-top: 30px;
}

.elmeria-discover-btn {
    display: inline-block;
    background-color: #B43F34;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

.elmeria-discover-btn:hover {
    background-color: #ffffff;
    color: #B43F34;
    border: 1px solid #B43F34;
}


@media (min-width: 768px) {


    .elmeria-about-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .elmeria-image-col {
        text-align: left;
    }

}

.page-content.page-cms {
    background-color: #FEFCF8 !important;
}

#main .page-content,
#main .page-footer,
#main .page-header {
    margin-bottom: 1.563rem;
}

header.page-header {
    display: none;
}

@media (min-width: 1300px) {

    .elmeria-about-section {
        width: 62vw;
        padding: 0 !important;
        max-width: none !important;
    }

}


@media (min-width: 1900px) {

    .elmeria-about-section {
        width: 113vh;

    }

}



@media (max-width: 768px) {

    .elmeria-about-section h1 {
        font-size: 37px !important;
        text-align: center;
    }
}


/* =================================================================== */
/*                     STYLES PAGE CONTACT                             */
/* =================================================================== */

/* ----- Structure générale de la page ----- */
.contact-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #414141;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-family: 'Georgia', serif;
    color: #B43F34;
    /* Couleur rouille/marron */
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1rem;
    color: #6c757d;
}

/* ----- Disposition en 2 colonnes ----- */
.contact-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-left-column {
    flex: 2;
    min-width: 300px;
}

.contact-right-column {
    flex: 1;
    min-width: 280px;
}

.page-contact .page-content.page-cms ul,
p {
    font-size: 15px;

}


/* ----- Style du formulaire (colonne de gauche) ----- */
.contact-form {
    padding: 30px;
    border: 1px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 11px;
}

.contact-form h3 {
    font-family: 'EB Garamond';
    color: #B43F34;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-form .form-group-row {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
}

.contact-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.contact-form .form-group-row+.form-group {
    margin-bottom: 15px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 7px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 0;
    font-size: 0.9rem;
    border-radius: 6px;
}

.contact-form .form-control::placeholder {
    color: #999;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: #B43F34;
    box-shadow: none;
}

.contact-form select.form-control-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.contact-form .gdpr-consent {
    font-size: 0.8rem;
    color: #777;
    margin-top: 20px;
}

.contact-form .gdpr-consent input {
    margin-right: 8px;
}

.contact-form .form-footer {
    text-align: left;
    margin-top: 20px;
    text-align: center;
}

.contact-form .form-footer .btn {
    background-color: #B43F34;
    color: #fff;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: none;
}

.contact-form .form-footer .btn:hover {
    background-color: #ffffff;
    color: #B43F34;
    border: 1px solid #B43F34;
}

/* ----- Blocs d'information (colonne de droite) ----- */
.contact-right-column>div {
    padding: 30px;
    border: 1px solid #f0e9e9;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border-radius: 17px;
}

.contact-right-column h3 {
    font-family: 'EB Garamond';
    font-weight: bold;
    color: #B43F34;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.contact-info-block .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-block .info-item:last-child {
    margin-bottom: 0;
}

.contact-info-block .info-item .material-icons {
    color: #B43F34;
    margin-right: 15px;
    font-size: 24px;
}

.contact-info-block .info-item div {
    display: flex;
    flex-direction: column;
}

.contact-info-block .info-item strong {
    font-weight: 600;
}

.contact-orders-block p {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* ----- Section FAQ ----- */
.contact-faq-section {
    margin-top: 60px;
    text-align: center;
}

.contact-faq-section h2 {
    font-family: 'Georgia', serif;
    color: #B43F34;
    font-size: 2rem;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 47px;
    box-shadow: antiquewhite;
    box-shadow: rgba(100, 100, 111, 0.05) 0px 2px 8px 0px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    color: #B43F34;
    border-radius: 6px;
}

.faq-question .material-icons {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    line-height: 1.7;
}

.faq-item.active .faq-question .material-icons {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .contact-main-content {
        flex-direction: column;
    }
}

.page-contact .card {
    all: unset;
}

.page-contact .js-content-wrapper {
    all: unset;
}

.page-contact .left-column {
    all: unset;
}

/* .page-contact .col-xs-12{
    all: unset;
}  */
.page-contact .col-md-8 {
    all: unset;
}

.page-contact .col-lg-9 {
    all: unset;
}

.page-contact #left-column {
    display: none;
}

.contact-form {
    width: 85%;

}

@media (min-width: 1200px) {
    .page-contact #wrapper .container {
        width: 65vw;
    }
}

.page-contact a:hover {
    color: #B43F34;
}

.page-contact a:active {
    color: #B43F34;
}




@media (min-width: 2000px) {
    .col-xxl-4 {
        flex: 0 0 24.333333%;
        max-width: 33.333333%;
    }

    .page-category #wrapper .container {
        width: 68%;
    }
}


/*********** Breadcrumb - Elmeria Theme ***********/

.home-icon {
    vertical-align: text-top;
    ;
    margin-right: 5px;
}


#wrapper .breadcrumb ol,
.list-group {
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
}

#wrapper .breadcrumb li:last-child {
    color: #B43F34;

}

.breadcrumb span {
    font-weight: 500;
}

.page-category #wrapper .breadcrumb ol,
.list-group {
    display: none;
}

/*********** Page Search - Elmeria Theme ***********/

.page-search .custom-selection {
    margin-left: 0% !important;
    width: 100% !important;
}


.carousel-fixed-title {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    font-size: 3rem;
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    color: white;
}


@media (max-width: 768px) {

    .carousel-fixed-title {

        font-size: 2rem;

    }

}

footer .row p {
    font-size: 15px;
}

footer a {
    font-size: 19px;
}


.js-search-filters-clear-all::first-letter {
    text-transform: uppercase;
}



/*********** 404 Page Not Found - Elmeria Theme ***********/


.page-not-found {
    background-color: #f4f4f4;
    font-family: 'Helvetica Neue', sans-serif;
    color: #333;
    padding: 50px 0;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.error-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

.error-message h1 {
    font-family: 'EB Garamond';
    font-size: 2.5rem;
    margin-top: 20px;
    color: #c0392b;
}

.error-message p {
    font-size: 14px;
    font-family: 'Encode Sans';
    margin: 10px 0;
}

.error-message a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.error-message a:hover {
    text-decoration: underline;
}

.search-bar {
    margin-top: 30px;
}

#pagenotfound .page-not-found,
#products .page-not-found {
    max-width: 100%;
}

.page-category #pagenotfound div#left-column {
    display: none !important;
}


#pagenotfound .page-not-found,
#products .page-not-found {
    padding: 1rem;
    margin: 0 auto;
    overflow: auto;
    font-size: .875rem;
    color: #7a7a7a;
    background: #ffffff00;
}


/* ----- Images centrées dans les paragraphes ----- */
.page-manufacturer p img {
    display: block;
    margin: 0 auto;
}

.brands-filters-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.brands-search-container {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.brands-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.brands-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-search:hover {
    color: #333;
}

.brands-sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.brands-sort-select {
    padding: 12px 35px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.brands-sort-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.brands-results-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

#brandsCount {
    color: #007bff;
    font-weight: 600;
}

.no-brands-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

#brandsList>li {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#brandsList>li.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .brands-filters-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .brands-search-container {
        min-width: 100%;
    }

    .brands-sort-container {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .brands-sort-select {
        width: 100%;
    }
}

.brands-filters-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.brands-search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    transition: transform 0.2s ease;
}

.brands-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.brands-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clear-search:hover {
    color: #333;
}

.brands-sort-container,
.brands-country-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.sort-label,
.country-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brands-sort-select,
.brands-country-select {
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.brands-sort-select:hover,
.brands-country-select:hover {
    border-color: #007bff;
}

.brands-sort-select:focus,
.brands-country-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.brands-results-info {
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

#brandsCount {
    color: #007bff;
    font-weight: 700;
    font-size: 16px;
}

.no-brands-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.no-brands-message p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .brands-filters-wrapper {
        flex-direction: column;
    }

    .brands-search-container,
    .brands-sort-container,
    .brands-country-container {
        width: 100%;
        min-width: 100%;
    }
}

/* Styles pour la page de marque vide */
.empty-brand-container {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.empty-brand-icon {
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-brand-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.empty-brand-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lead-text {
    font-size: 20px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.wine-icon {
    font-size: 28px;
    margin-right: 10px;
    vertical-align: middle;
}

.info-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.empty-brand-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-brand-actions .btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.empty-brand-actions .btn-primary {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.empty-brand-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.empty-brand-actions .btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.empty-brand-actions .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #bbb;
    transform: translateY(-2px);
}

.suggestions-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.suggestions-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 400;
}

.suggestion-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
}

.suggestion-link:hover {
    color: #0056b3;
    background: #e7f3ff;
    border-color: #007bff;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .empty-brand-title {
        font-size: 28px;
    }

    .empty-brand-content {
        padding: 30px 20px;
    }

    .lead-text {
        font-size: 18px;
    }

    .empty-brand-actions {
        flex-direction: column;
    }

    .empty-brand-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400&display=swap');

body {
    font-family: 'Raleway', sans-serif;
    background-color: #FEFCF8 !important;
}

/**** HEADER ****/

#header {
    margin-bottom: 0 !important;
}

.user-info span {
    display: none !important;
}

.cart-preview .header>span.hidden-sm-down:not(.cart-products-count) {
    display: none !important;
}

.blockcart.cart-preview.inactive div {
    display: flex;
}



/* LOGO */
#_desktop_logo img {
    max-height: 110px;
    /* plus gros */
}

/* Structure header */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}




/* BARRE DE RECHERCHE */
#search_widget {
    width: 100%;
}

/* COMPTE + PANIER */
.items-header {
    display: none;
    align-items: center;
    gap: 20px;
}

/* MENU */
.main-menu #_desktop_top_menu ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu #_desktop_top_menu li a {
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
}




.main-menu #_desktop_top_menu li a:hover {
    color: #a22;
}

#_desktop_search_bar #search_widget {
    width: 100%;
    height: 42px;
    position: relative;
}

#search_widget {
    min-width: 705px;
}

#_desktop_user_info {
    display: none;
}

@media (min-width: 1000px) and (max-width: 1289px) {
    #search_widget {
        min-width: 601px;
    }
}

#_desktop_search_bar #search_widget form {
    margin: 0;
    height: 100%;
}

#_desktop_search_bar #search_widget input[type="text"],
#_desktop_search_bar #search_widget input[type="search"] {
    width: 100%;
    height: 100%;
    padding: 0 20px 0 9px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
}

#_desktop_search_bar #search_widget input::placeholder {
    color: #999;
}

.mm_menus_li.sake_down>a {
    pointer-events: none;
}


a.ets_mm_url.sake_down {
    pointer-events: none;

}

#_desktop_search_bar #search_widget .material-icons.search {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    color: #B43F34;
    font-size: 20px;
    pointer-events: none;
    font-weight: bold;
}

/* Optionnel : effet au focus */
#_desktop_search_bar #search_widget input:focus {
    border-color: #B43F34;
    box-shadow: 0 0 5px rgba(180, 63, 52, 0.3);
}

#search_widget form i {
    padding: 0 !important;
}


@media (min-width: 576px) and (max-width: 800px) {
    .header-top .search-widgets {
        max-width: 35rem;
    }
}

@media (min-width: 769px) and (max-width: 1000px) {
    #search_widget {
        min-width: 300px;
    }
}

/**** Container for header ****/

@media (min-width: 1200px) {
    .container_header {
        width: 1407px;
        max-width: 100%;
    }
}



@media (min-width: 2500px) {
    .ets_mm_megamenu_content .container {
        width: 57%;
        max-width: 100%;
    }

    span.mm_menu_content_title {
        font-size: 19px;
    }
}

/**** Megamenu ****/


.ets_mm_megamenu.layout_layout1.show_icon_in_mobile.transition_fade.transition_floating.sticky_enabled.ets-dir-ltr.hook-default.single_layout.disable_sticky_mobile.hover.mm_menu_left.changestatus {
    position: relative;
}


@media (min-width: 768px) {
    .ets_mm_megamenu.sticky_enabled.scroll_heading {
        position: relative;
    }
}

.mm_menu_content_title:hover {
    color: #B43F34 !important;
    font-weight: 600 !important;
}

.ets_mm_block.mm_block_type_category a:hover {
    color: #B43F34 !important;
    font-weight: 600 !important;
}

.layout_layout1 .mm_menus_li:nth-child(2) {
    border-left: 0px !important;
}


@media (min-width: 768px) and (max-width: 1190px) {
    .ets_mm_megamenu.layout_layout1 {
        position: absolute;
        top: -76px !important;
        background-color: #ffffff00;
        padding: 0 7px;
        width: 14%;
    }

    .section-content {
        margin-top: 4%;
    }
}




.ybc-menu-toggle {
    color: #33333300 !important;
}

.layout_layout1 .mm_menus_li {
    border-right: 0px !important;
}

.layout_layout1 .mm_menus_li:last-child {
    border-right: 0px !important;
}

.layout_layout1 .ets_mm_megamenu_content {
    border: 0px !important;
}

.layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li:hover>a,
.layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a,
.layout_layout1:not(.ybc_vertical_menu) .mm_menus_li.menu_hover>a,
.ets_mm_megamenu.layout_layout1.ybc_vertical_menu:hover,
#header .layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li:hover>a,
#header .layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a,
#header .layout_layout1:not(.ybc_vertical_menu) .mm_menus_li.menu_hover>a,
.ets_mm_megamenu.layout_layout1.ybc_vertical_menu:hover {

    background: none !important;
}


.layout_layout1:not(.click_open_submenu) .mm_menus_li:hover>a,
.layout_layout1.click_open_submenu .mm_menus_li.open_li>a,
.layout_layout1 .mm_menus_li.active>a,
#header .layout_layout1:not(.click_open_submenu) .mm_menus_li:hover>a,
#header .layout_layout1.click_open_submenu .mm_menus_li.open_li>a,
#header .layout_layout1 .mm_menus_li.menu_hover>a,
.layout_layout1:hover .ybc-menu-vertical-button,
.layout_layout1 .mm_extra_item button[type="submit"]:hover i,
#header .layout_layout1 .mm_menus_li.active>a {
    color: black !important;
}

.layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li>a:before,
.layout_layout1:not(.ybc_vertical_menu).click_open_submenu .mm_menus_li.open_li>a:before,
.layout_layout1.ybc_vertical_menu:hover .ybc-menu-vertical-button:before,
.layout_layout1:hover .ybc-menu-vertical-button .ybc-menu-button-toggle_icon_default .icon-bar,
.ybc-menu-vertical-button.layout_layout1:hover {
    background-color: #ec424800 !important;
}


.mm_menu_content_title {
    color: black;
    font-weight: 500;
}

.ets_mm_megamenu_content_content {

    justify-self: anchor-center;
}

.layout_layout1 .ets_mm_megamenu_content {
    background: linear-gradient(#ffffff00, #f2f2f200) repeat scroll 0 0 rgba(0, 0, 0, 0) !important;

}

/* --- MOBILE HEADER FIX --- */
@media (max-width: 768px) {
    .header-row {
        display: flex;
        flex-direction: column;
        /* on empile les éléments */
        align-items: center;
        gap: 10px;
    }

    /* Logo centré */
    #_desktop_logo {
        text-align: center;
        order: 1;
    }

    #_desktop_logo img {
        max-height: 80px;
    }

    /* Icônes compte + panier à droite du logo */
    .items-header {
        order: 2;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    /* Barre de recherche en dessous, full width */
    #_desktop_search_bar {
        order: 3;
        width: 100%;
        padding: 0 10px;
    }

    #_desktop_search_bar #search_widget {
        width: 100% !important;
        min-width: unset;
        /* supprime la contrainte desktop */
    }


    .page-index .ets_mm_megamenu.hook-default {
        position: absolute !important;
        top: 4%;
        background-color: #ffffff00 !important;
        padding: 0 7px !important;
        width: 14% !important;
        margin-left: 8%;
    }


    .ets_mm_megamenu.hook-default {
        top: 34%;
        margin-left: 10%;
    }

    .ybc-menu-toggle {
        color: #824c4c00 !important;
        display: block !important;
    }

    .ets_mm_megamenu_content div {
        background-color: rgba(255, 255, 255, 0) !important;
    }


    .carousel .carousel-item .caption {
        position: absolute !important;
        bottom: 0% !important;

    }

    .carousel .carousel-item img {
        height: 50vh !important;
    }

    .carousel .carousel-item .caption .display-1 {
        color: #ffffff !important;
    }




}




/****** Carrousel ******/

.carousel .carousel-item .caption {
    bottom: 35%;

}

.carousel-item figure {
    position: relative;
    margin: 0;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50% !important;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
}

.caption h2 {
    font-size: 2rem;
}


.carousel .carousel-item img {
    width: 100%;
    max-width: 100%;
    height: 41vw;

}

.carousel .carousel-inner {
    height: 100%;
}

.carousel {
    margin-bottom: -58px;
}

li.carousel-item.active figure {
    width: 100%;
}

.carousel .direction {
    display: none;
}

figcaption.caption {
    max-width: 100% !important;
}

figcaption.caption h2 {
    font-family: 'EB Garamond', sans-serif;
}


#carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 144px;
    background: url("/themes/elmeria/assets/img/montain.svg") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    z-index: 2;/
}


#wrapper {

    background: #FEFCF8 !important;
}

#header {

    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 0%) !important;
}


@media (max-width: 991px) {
    .carousel .carousel-item .caption {

        text-align: center;
        position: absolute;
        bottom: 28px;
        left: 90px;
        max-width: 340px;
        color: #fff;
    }

    .carousel .carousel-item .caption .display-1 {
        color: white;
    }
}

/*********** FOOTER ***********/

/* --- FOOTER CUSTOM --- */
#custom-footer {
    background: #fdfbf7;
    color: #222;
}

#custom-footer .footer-top {
    background: #B43F34;
    height: 67px;
    width: 100%;
    font-weight: 400;
}

#custom-footer .footer-container {
    padding: 40px 20px;
}

#custom-footer .footer-logo {
    margin-right: 80px;
}

#custom-footer .footer-links {
    margin-right: 20px;
}

#custom-footer .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 81%;
    margin: 0 auto;
}

#custom-footer .footer-col {
    flex: 1;
}

#custom-footer .footer-logo img {
    width: 261px;
    max-width: 100%;
    height: auto;
    margin-top: 0%;
}

#custom-footer .footer-logo .tagline {
    font-size: 14px;
    color: #B43F34;
    font-weight: bold;
}

#custom-footer ul {
    list-style: none;
    justify-items: center;
    padding: 0;
    margin: 0;
}

#custom-footer ul li {
    margin: 5px 0;
}

#custom-footer ul li a {
    text-decoration: none;
    color: #222;
    font-size: 19px;
}

#custom-footer ul li a:hover {
    color: #B43F34;
}

#custom-footer .footer-social {
    margin-top: 10px;
    text-align: center;
}

#custom-footer .footer-social a {
    display: inline-block;
    margin-right: 10px;
    font-size: 29px;
    color: #B43F34;
}

#custom-footer .footer-social a:hover {
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #custom-footer .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #custom-footer .footer-col {
        margin-bottom: 20px;
    }

    #custom-footer .footer-logo {
        margin-right: 0;
        display: flex;
        justify-content: center;
    }

    #custom-footer .footer-logo img {
        margin: 0 auto;
    }
}










/*************************** Product Page CSS ***************************/


.product-features>dl.data-sheet,
.product-flags {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    align-content: flex-end;
}

.product-flag.new {
    background-color: #B43F34 !important;

}


.page-product .el-desc .el-provenance {
    margin-top: 11%;
}

.page-product #header {
    margin-bottom: 0px !important;
}


.page-product .page-content.page-cms ul,
p {
    font-size: .9375rem;
    font-weight: 400;
    /* color: #ffffff; */
}

.product-flag.new::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/etiquette.svg') no-repeat center center;
    background-size: contain;
}


.product-flags li.product-flag {
    border-radius: 7px;
}


section.product-accessories.clearfix .product-flags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}



/* Ou positionnez-le différemment si nécessaire */
.product-flag.bio {
    top: 50px;
    /* En dessous du flag "Nouveau" */
    right: 0px;
    background-color: #008000 !important;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.product-flag.bio::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/bio.svg') no-repeat center center;
    background-size: contain;
}


.product-flags li.product-flag.on-sale {

    background: #377a7d;
}


.product-flag.bestseller {
    top: 50px;
    right: 0px;
    background-color: #000000 !important;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.product-flag.bestseller::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    background: url('../img/star.svg') no-repeat center center;
    background-size: contain;
    margin-bottom: 4%;
}


.product-flags li.product-flag {

    font-size: 13px;
    margin-top: 0%;

}


@media (min-width: 2200px) {


    .page-product .product-title {
        font-size: 51px;
    }

    .page-product .product-provenance {

        font-size: 20px;
    }

    .page-product .page-content.page-cms ul,
    p {
        font-size: 21px;
        letter-spacing: 1px;
        line-height: 139%;
    }

    .order-contact-box .box-title {
        font-size: 1.5rem !important;
    }

    .order-contact-box {
        margin-top: 9% !important;
    }

    .order-contact-box p {
        margin-bottom: 15px;
        font-size: 1.1rem;
    }


    p.text-command {
        font-size: 20px !important;
    }

    span.contact-line {
        font-size: 20px !important;
    }

    .product-flags li.product-flag {
        font-size: 15px;

    }

    a.ets_mm_url {
        font-size: 17px;
    }

    .ets_mm_block .mm_block_type_category {
        font-size: 17px;
    }

}


@media (min-width: 1700px) {



    .page-product #wrapper .container {
        width: 67%;

    }
}

.page-product .product-cover {
    background-color: white;
}

.page-product #product-modal .modal-content .modal-body .product-cover-modal,
.product-cover img {
    background: #ffffff;
}


.page-product .product-page-custom {
    margin-top: 5%;
}

#product #content {
    max-width: 100%;
}

.product-section--details h2 {
    color: #000000;
    font-weight: 600;
}

li.product-flag.bio {
    text-transform: none;
}

.product-features .h6 {
    font-weight: 600;
    color: #000000;
    margin: 0 0 16px;
    font-size: 25px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
    margin-bottom: 2%;
}


.page-product a {
    color: #000000;
    text-decoration: none;
}

.page-product a:hover {
    color: #B43F34;
    text-decoration: none;
}

.page-product .product-flags {
    position: relative;
    display: block;
    margin-bottom: 6%;

}


.page-product .product-flags li.product-flag {
    border-radius: 6px;

}


.tabs.product-tabs-container p {
    font-family: 'Encode Sans';
}

.tabs.product-tabs-container dt {
    font-family: 'Encode Sans';
}



/* Mise en page des sections produit */
.product-sections {
    margin-top: 24px;
}

.product-section {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.product-section:first-child {
    border-top: 0;
}

.section-title {
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Rendre visibles les anciens .tab-pane du partial product-details */
.product-section .tab-pane {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-section .tab-pane.fade {
    transition: none !important;
}

/* Pièces jointes */
.product-attachments .attachment-item {
    margin-bottom: 14px;
}

.product-attachments .attachment-title {
    margin: 0 0 6px;
}

.product-attachments .attachment-desc {
    margin: 0 0 8px;
    color: #666;
}



/************* Div histoire du produit *************/

.wine-section {
    background: #FEFCF8;
    padding-top: 3%;
    position: relative;
    overflow: hidden;
}

.wine-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(169, 68, 66, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.cta-button:hover {
    color: white !important;
}


.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: #FEFCF8 !important;

}

.text-content {
    padding-right: 20px;
}

.section-tag {
    color: #008000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2d5016;
}

.main-title {
    color: #a94442;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
}

.description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.highlight-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
    font-style: italic;
}

.mission-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.author {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #a94442;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #8b3735;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(169, 68, 66, 0.3);
}

.cta-button::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 21px;
    height: 19px;
    margin-left: 10px;
    background: url('/themes/elmeria/assets/img/arrow.svg') no-repeat center center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 570px;
}

.image-large {
    grid-column: 1 / 3;
    grid-row: 1;
}

.image-small-1,
.image-small-2 {
    height: 100%;
}

.image-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.wine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-container:hover .wine-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Responsive Design amélioré */
@media (max-width: 992px) {
    .section-content {
        gap: 40px;
    }

    .main-title {
        font-size: 36px;
    }

    .images-grid {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .wine-section {
        padding: 60px 0;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .text-content {
        padding-right: 0;
        text-align: center;
    }

    .section-tag::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .images-grid {
        height: 400px;
        grid-template-rows: 2fr 1fr;
    }

    .main-title {
        font-size: 32px;
    }

    .container {
        padding: 0 15px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .images-grid {
        height: 350px;
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 1fr 1fr;
    }

    .image-large {
        grid-column: 1;
        grid-row: 1;
    }

    .image-small-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .image-small-2 {
        grid-column: 1;
        grid-row: 3;
    }

    .main-title {
        font-size: 28px;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-content>* {
    animation: fadeInUp 0.8s ease forwards;
}

.text-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.text-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.text-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

.text-content>*:nth-child(4) {
    animation-delay: 0.4s;
}

.text-content>*:nth-child(5) {
    animation-delay: 0.5s;
}

.text-content>*:nth-child(6) {
    animation-delay: 0.6s;
}

.text-content>*:nth-child(7) {
    animation-delay: 0.7s;
}

.image-container {
    animation: fadeInUp 0.8s ease forwards;
}

.image-container:nth-child(1) {
    animation-delay: 0.3s;
}

.image-container:nth-child(2) {
    animation-delay: 0.5s;
}

.image-container:nth-child(3) {
    animation-delay: 0.7s;
}


@media (min-width: 1500px) {

    .section-content {
        width: 68vw;
        margin-top: 5%;
        margin-left: -7%;
    }

}

.block-icon svg path {
    fill: #B43F34;
}


.cta-button {
    color: white !important;
    font-weight: bold !important;
}


.wine-separator {
    width: 70%;
    height: 0;
    border: 1px solid #EBEBEB;
    opacity: 1;
    margin: 5% auto 0 auto;
    display: block;
}


@media (min-width: 4000px) {


    #carousel::after {
        height: 500px;

    }
}


@media (min-width: 2000px) {
    .section-content {

        margin-left: -44%;
    }

    #carousel::after {
        height: 229px;

    }
}

@media (min-width: 3000px) {
    .section-content {

        margin-left: -96%;
    }
}


@media (max-width: 796px) {
    #carousel::after {
        display: none;

    }

    .el-sc__all {
        display: none;
    }
}



@media (min-width: 2000px) {
    .container .section-content {
        display: flex;
        padding: 2px 11%;
        justify-content: center;
        align-items: center;
        margin-left: 0%;
        margin-right: 0%;
    }

    .container:has(> .section-content) {

        width: 100%;

    }

    .images-grid {

        width: 51%;
    }

    .section-content {
        width: 100%;
    }


}





@media (min-width: 1400px) and (max-width: 1850px) {
    .section-content {

        margin-left: 0%;
    }
}



.product-miniature {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 480px;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 19%;
    border: 2px solid #ffffff;
}

.product-miniature:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* --- Image --- */
.thumbnail-container {
    position: relative;
    text-align: center;
}

.el-thumb {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
}

.el-thumb .product-thumbnail {
    display: block;
    width: 100%;
    height: 100% !important
}

.el-thumb picture {
    display: block;
    width: 100%;
    height: 100%
}

.el-thumb img {
    width: auto;
    max-width: 100%;
    max-height: 110%;
    object-fit: contain;
    margin-top: -20px;
}


.thumbnail-container img {
    max-width: 100%;
    height: auto;
}

/* --- Flags (nouveau, promo, bestseller, bio, etc.) --- */
.product-flags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    place-content: end !important;
}

.product-flag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.product-flag.new {
    background: #b4372f;
}

.product-flag.on-sale {
    background: #e67e22;
}

.product-flag.bestseller {
    background: #000;
}

.product-flag.bio {
    background: #2ecc71;
}

/* --- Description --- */
.product-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: left
}

.el-desc {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* pousse le bouton en bas */
    padding-top: 12px;
}


.el-desc .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3
}

.el-desc .el-provenance {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    line-height: 1.2
}

.el-desc .el-cta-wrap {
    margin-top: auto;
    position: static;
    align-self: flex-end
}

/* Nom produit */
.product-title {
    min-height: 2.6em;
    /* hauteur uniforme pour tous les titres */
    line-height: 1.3;
}

.el-provenance {
    min-height: 2.4em;
    /* hauteur uniforme pour la provenance */
}

/* Aligner la provenance avec le titre (mêmes marges et alignement gauche) */
.el-desc .product-title,
.el-desc .el-provenance {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    display: block
}

.el-desc .el-provenance {
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.3
}


.product-title a {
    color: #000;
    text-decoration: none;
}

.product-title a:hover {
    color: #b4372f;
}

/* Provenance */
.el-provenance {
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    min-height: 2.4em;
}

/* --- CTA En savoir plus --- */


.el-cta-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.el-cta {
    background: #b4372f;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.el-cta:hover {
    background: #922a24;
}


.product-title a {
    font-weight: 600 !important;
    font-size: 21px !important;
    line-height: 100%;
    top: 418px;
    left: 866px;
    color: #000000 !important;
    opacity: 1
}




/********** HTML Block Home Page - Elmeria Theme **********/

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    max-width: 1308px;
    margin: 40px auto;
    padding: 0 3px;
    margin-top: 13%;
    width: 67vw;

}

@media (min-width: 2000px) {
    .card-grid {
        max-width: 90%;
    }

    .card-tag {
        font-size: 17px !important;
    }

    .card-title {
        font-size: 40px !important;
    }

    .card-btn {

        font-size: 19px !important;

    }
}

.card {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card.slide-left {
    transform: translateX(-100px);
}

.card.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .card {
        transform: translateX(70px);
    }


}

@media (max-width: 600px) {
    .card {
        transform: translateY(40px);
    }

    .card.slide-left {
        transform: translateY(40px);
    }
}


div:has(> .card-grid) {
    justify-content: center;
    display: grid;
}


.card {
    background: #fff;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
    border-radius: 0;
}

.card-green {
    background: #008000;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-red {
    background: #a94442;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-black {
    background: #111;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tag {
    background: #fff;
    color: #008000;
    font-size: 14px;
    padding: 6px 18px;
    display: inline-block;
    margin-bottom: 22px;
    border-radius: 3px;
    width: 28%;
    text-align: center;
    font-weight: 600;
}

.card-red .card-tag {
    color: #a94442;
}

.card-black .card-tag {
    color: #111;
}

.card-title {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 22px;
    font-weight: bold;
    font-family: 'EB Garamond', serif;
}

.card-text {
    font-size: 19px;
    margin-bottom: 32px;
    line-height: 1.6;
    color: white !important;
    letter-spacing: 1px;
}

.card-btn {
    background: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 32px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    width: 41%;
    text-align: center;
}

.card-btn:hover {
    background: #fff;
    color: #222;
}

.card-mobile-img {
    display: none;
}

@media (max-width: 550px) {

    .card-grid {
        width: 100%;

    }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 60px;

    }

    .card-grid .card:nth-child(1) {
        order: 1;
    }

    .card-grid .card:nth-child(2) {
        order: 2;
    }

    .card-grid .card:nth-child(3) {
        order: 4;
    }

    .card-grid .card:nth-child(4) {
        order: 3;
    }

    .card-grid .card:nth-child(5) {
        order: 5;
    }

    .card-grid .card:nth-child(6) {
        order: 6;
    }

    .card-mobile-img {
        display: block;
        width: 100%;
        height: 240px;
        object-fit: cover;
        margin-bottom: 20px;
    }

    .card-img {
        display: none;
    }

    .card-green,
    .card-red,
    .card-black {
        padding: 32px 24px;
        text-align: center;
    }

    .card-tag {
        margin-top: 0;
        margin-bottom: 20px;
        width: auto;
    }

    .card-btn {
        width: auto;
    }
}

/* ====== About & Sakes Sections ====== */
.about-section,
.sakes-section {
    padding: 41px 0px;
}

.about-container,
.sakes-container {
    max-width: 1262px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: center;
}

.about-container {
    margin-top: 4% !important;
}

.section-title {
    font-weight: 700;
    font-size: 25px;
    color: #b43f34;
    margin: 0 0 16px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
    margin-bottom: 2%;
}


.product-sections {
    background-color: white;
    padding: 10px 9px 8px 21px;
    border: 1px solid #E9E9E9;
}

.section-paragraph {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 12px;
}

.section-author {
    font-weight: 700;
    margin: 18px 0 8px;
    color: black !important;
}

.about-image img,
.sakes-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.about-image img {
    border-radius: 0;
}

@media (min-width: 667px) and (max-width: 900px) {

    .about-image img,
    .sakes-image img {
        width: 63%;
    }

    .about-image {
        justify-items: center;
    }
}



@media (min-width: 2000px) {

    .about-container,
    .sakes-container {
        max-width: 90%;
    }

    .section-title {
        font-size: 33px;
    }

    .section-paragraph {
        font-size: 18px;
    }
}

.signature {
    width: 160px;
    height: auto;
    margin: 6px 0 18px;
    display: block;
}

.about-btn {
    background: #b43f34;
    border-color: #b43f34;
}

.about-btn:hover {
    background: transparent;
    color: #b43f34;
}

.sakes-btn {
    background: #b43f34;
    border-color: #b43f34;
}

.sakes-btn:hover {
    background: transparent;
    color: #b43f34;
}

.about-section .card-btn,
.sakes-section .card-btn {
    width: auto;
    white-space: nowrap;
    border-radius: 10px;
    padding: 12px 28px;
    margin-top: 5%;
}


.about-text {
    width: 92%;
}

/* Mobile */
@media (max-width: 900px) {


    .about-text {
        width: 100%;
    }

    .about-container,
    .sakes-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    p.section-author {
        text-align: center;
    }

    img.signature {
        width: 100%;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .sakes-image {
        order: 1;
    }

    .sakes-text {
        order: 2;
    }

    .about-section,
    .sakes-section {
        padding: 30px 16px;
    }

    .sakes-image img {
        border-radius: 12px;
    }

    .section-title {
        font-size: 20px;
        text-align: center;
    }

    .section-paragraph {
        text-align: center;
    }

    .about-section .card-btn,
    .sakes-section .card-btn {
        display: block;
        margin: 0 auto;
        text-align: center;
        width: fit-content;
    }
}



/* Pour tablettes et écrans moyens */
@media (max-width: 1400px) and (min-width: 901px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        width: 80vw;
        margin-top: 8%;
    }

    .card-tag {
        width: 34%;
    }

    .card {
        min-height: auto;
        /* éviter des cartes trop hautes */
    }

    .card-title {
        font-size: 22px;
    }

    .card-text {
        font-size: 15px;
    }

    .card-btn {
        font-size: 15px;
        padding: 10px 24px;
        width: auto;
    }
}

/* Forcer le même alignement à gauche pour titre + provenance */
.el-desc .product-title,
.el-desc .product-title a,
.el-desc .el-provenance {
    margin: 0;
    padding: 0;
    text-align: left;
    display: block;
}

/* Espacement régulier */
.el-desc .el-provenance {
    margin-top: 4px;
    /* petit espace sous le titre */
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #333;
}










/**
 * Styles pour l'interface de sélection de provenance
 */
#provenance_preview {
    margin-top: 10px;
    background-color: #e3f2fd;
    border-color: #2196f3;
    border-left: 4px solid #2196f3;
}

#provenance_preview strong {
    color: #1976d2;
}

#preview_text {
    font-size: 1.1em;
    font-weight: 500;
    color: #0d47a1;
}

#el_country_select {
    border-radius: 4px;
}

#el_provenance_input {
    border-radius: 4px;
}

.provenance-field-group {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.provenance-field-group h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.form-text.text-muted {
    font-style: italic;
    margin-top: 8px;
}

/* Animation pour l'aperçu */
#provenance_preview {
    transition: all 0.3s ease-in-out;
}

#provenance_preview.show {
    opacity: 1;
    transform: translateY(0);
}

#provenance_preview.hide {
    opacity: 0;
    transform: translateY(-10px);
}



/*********** Reassurance Block Home Page - Elmeria Theme ***********/


.blockreassurance .block-title {
    color: #B43F34 !important;
    margin-top: 8%;
    text-align: center;
    width: 96%;
}


@media (min-width: 2000px) {

    .blockreassurance .block-icon,
    .blockreassurance .block-icon img,
    .blockreassurance .block-icon svg {
        height: 113px;
    }
}


@media (max-width: 575px) {
    .blockreassurance {
        text-align: center;
    }
}

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

    .page-index .blockreassurance .col-sm-6,
    .col-sm-7 {
        float: left;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .blockreassurance .block-icon {
        float: none;
    }
}

@media (max-width: 575px) {

    .blockreassurance .block-icon img,
    .blockreassurance .block-icon svg {
        height: 47px;
        width: 74px;
        margin-left: -46%;
    }
}

.title_reassurance {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    font-weight: bold;
    font-size: 30px;
    line-height: 100%;
    color: #B43F34;
    margin-bottom: 7%;

}



div:has(> .block-social) {
    margin-bottom: 8%;
}


/*************** Product List Page - Elmeria Theme ***************/

.block-category.card.card-block.slide-left {
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);
}

div#subcategories {
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);
}

div#js-product-list {
    margin-bottom: 8%;
}


.pagination .page-list {
    padding: .375rem;
    margin-bottom: 0;
    background: #FEFCF8;
}


.block-categories .h6:hover {
    color: #000000 !important;
}

div#js-product-list-header {
    display: none !important;
}



/*************** Filtre de Recherche page de catégorie ***************/

.facet.clearfix:not(:last-child) {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}


#search_filters .facet .facet-title,
#search_filters_brands .facet .facet-title,
#search_filters_suppliers .facet .facet-title {
    font-size: 1rem;
    color: #B43F34;
    font-family: 'EB Garamond';
    font-size: 19px;
}


#search_filters>.h6,
#search_filters_brands>.h6,
#search_filters_suppliers>.h6 {

    color: #B43F34;
    font-family: 'EB Garamond', sans-serif;
    font-weight: bold;
}


button.btn-unstyle.select-title {
    border-radius: 9px;
}


.brands-sort .dropdown-menu,
.products-sort-order .dropdown-menu,
.suppliers-sort .dropdown-menu {
    width: 17.88rem;
}

.select-list.js-search-link {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 1px;
}

a.select-list.js-search-link:hover {
    background-color: #B43F34;

}

a.subcategory-name {
    color: #000000;
}

a.subcategory-name:hover {
    color: #B43F34 !important;
}



#subcategories ul li:hover .subcategory-image a {
    padding: 5px;
    border: 5px solid #B43F34;
}


.category-description {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.category-search-bar {
    margin-bottom: 30px;
}

.category-search-bar form {
    display: flex;
    gap: 10px;
    max-width: 100%;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.category-search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}




.category-search-bar button {
    padding: 0 15px;
    background: #B43F34;
    border: none;
    cursor: pointer;
    color: white;
}

.category-search-bar button[type="submit"] {
    padding: 0 20px;
    background: #B43F34;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    transition: background 0.2s;
}

.category-search-bar button[type="submit"]:hover {
    background: #922d25;
}


.category-search-bar button:hover {
    background: #eee;
}





.cat-name {
    font-size: 45px;
    color: #B43F34;
    font-family: 'EB Garamond', serif;
}




.cat-subtitle {
    width: 100%;
    font-weight: normal;
    color: #000000;
    margin-top: 4%;
    margin-bottom: 2%;
}

div#search_filters {
    border: 1px solid #EBEBEB;
}


#search_filters .ui-widget-header {
    background: #B43F34;
}

.block-categories {
    display: none;
}

div#subcategories {
    display: none !important;
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
}

.search-input-wrapper input {
    padding-right: 30px;
    /* espace pour la croix */
}

.clear-search {
    right: 8px;
    border: none;
    background: white;
    cursor: pointer;
    display: none;
    /* caché par défaut */
}

.clear-search i {
    font-size: 18px;
    color: #000000;
}

.clear-search:hover i {
    color: #333;
}

button.clear-search {
    background-color: white !important;
}

.col-lg-5.hidden-sm-down.total-products p {
    color: #000000;
    font-family: 'Encoda', sans-serif;
}

.page-category.container {
    width: 100vh;
}

#facet_50859 {
    column-count: 2;
    column-gap: 20px;
    padding: 0;
    list-style: none;
}

#facet_50859 li {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #facet_50859 {
        column-count: 1;
    }
}

.custom-checkbox input[type=checkbox]+span {
    border-radius: 6px;
}


.btn-tertiary {
    margin: .25rem 0;
    font-size: .875rem;
    font-weight: 400;
    color: #B43F34;
    text-transform: lowercase;
    background-color: transparent;
    border: 1px #B43F34 solid;
    border-radius: 10px;
    padding: 10px 18px;
}

.btn-tertiary:hover {
    color: white;
    background-color: #B43F34;

}



.btn-tertiary i {
    display: none;
}


/**** Block html end product list page *****/
.custom-selection {
    margin: 40px auto;
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 11%;
    width: 66vw;
}

.page-manufacturer .custom-selection {
    margin-left: 0%;
    width: 100%;
}

@media (min-width: 3015px) {
    .custom-selection {
        margin-left: -33%;
    }

}

@media (min-width: 2700px) and (max-width: 3000px) {
    .custom-selection {
        margin-left: -35%;
    }

}

@media (max-width: 1980px) {
    .custom-selection {
        margin-left: -40%;
    }

}

@media (min-width: 1981px) and (max-width: 2699px) {
    .custom-selection {
        margin-left: -37%;
    }

}


@media (max-width: 1800px) {
    .custom-selection {
        margin-left: -25%;
    }

}

@media (max-width: 1300px) {
    .custom-selection {
        margin-left: -20%;
    }

}

@media (max-width: 1000px) {
    .custom-selection {
        margin-left: -44%;
    }

}




.custom-selection h2 {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    color: #B43F34;
    margin-bottom: 20px;
}

.custom-selection p {
    font-family: 'Encode Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
    margin: 0;
}


/*************** Pagination ***************/


.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.page-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.page-list li {
    margin: 0 5px;
}

.page-list li a,
.page-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-list li a:hover {
    background-color: #f8f9fa;
    border-color: #B43F34;
    color: white;
}

.page-list li.current a {
    background-color: #B43F34;
    border-color: #B43F34;
    color: white;
}


.page-list li a.previous,
.page-list li a.next {
    font-weight: bold;
    background-color: transparent;
    border-color: #ddd;
}

.page-list li a.previous:hover,
.page-list li a.next:hover {
    background-color: #B43F34;
    border-color: #B43F34;
    color: white;
}

.page-list .spacer {
    border: none;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .pagination {
        flex-direction: column;
        text-align: center;
    }

    .col-md-4 {
        margin-bottom: 15px;
    }

    .page-list {
        flex-wrap: wrap;
    }
}

/******************* Branding Product Flags *******************/


.brands-list {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.brands-list>li {
    list-style: none;
    margin: 0;
}

.brand-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow .3s ease, transform .3s ease;
    overflow: hidden;
    display: block;
    margin-top: 2%;
    min-height: unset;
}

.brand-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.brand-card-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
}

.brand-logo {
    flex: 0 0 140px;
    height: 90px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-placeholder {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-initial {
    font-size: 24px;
    font-weight: 600;
    color: #495057;
}

.brand-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.brand-title a {
    color: #2c3e50;
    text-decoration: none;
}

.brand-title a:hover {
    color: #3498db;
}

.brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-products-count {
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.products-number {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.products-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.brand-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA */
.brand-actions {
    margin-top: 6px;
}




.btn-view-products {
    display: inline-block;
    background: #B43F34;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-view-products:hover {
    background: #a3392f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 63, 52, .25);
}

/* Responsive */
@media (max-width: 768px) {
    .brand-card-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .brand-logo {
        flex: none;
        height: 80px;
    }

    .brand-img {
        max-height: 80px;
    }

    .brand-actions .btn-view-products {
        width: 100%;
        text-align: center;
    }
}

/* Nettoyage/overrides de styles précédents qui gênaient */
.brands-container {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
}

.page-manufacturer ul {
    justify-content: initial;
    align-content: initial;
}

/**************** Page marque - Elmeria Theme ****************/

/* Bloc principal */
.manufacturer-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    margin-bottom: 30px;
}

/* Logo */
.manufacturer-logo img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Titre + textes */
.manufacturer-info {
    flex: 1;
}

.manufacturer-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.manufacturer-short {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #444;
}

.manufacturer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Grille produits */
.manufacturer-products {
    margin-top: 20px;
}


/**************** Page Not Found - Elmeria Theme ****************/





/*************** Product Page - Elmeria Theme ***************/


.blockreassurance_product {
    display: none;
}

.social-sharing {
    display: none;
}

/* --- Style général de la page produit personnalisée --- */
.product-page-custom {
    background-color: #FEFCF8;
    padding: 2rem;
}

/* --- Colonne de droite : Informations produit --- */
.product-title {
    font-family: 'EB Garamond';
    font-weight: bold;
    color: #B43F34;
    font-size: 29px;
    margin-bottom: 10px;
}

/* Style pour la provenance avec drapeau */
.product-provenance {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}



#product-description-short {
    margin-bottom: 25px;
    color: #333;
    line-height: 1.6;
}

.order-contact-box {
    border: 1px solid #B43F34;
    padding: 20px;
    margin-top: 20px;
    border-radius: 9px;
}

.order-contact-box .box-title {
    font-weight: bold;
    color: #B43F34;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'EB Garamond', serif;
}

.order-contact-box p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.order-contact-box .contact-info {
    display: flex;
    gap: 20%;
}

@media (max-width: 1205px) {
    .order-contact-box .contact-info {
        display: block;
    }
}

.order-contact-box .contact-line {
    display: flex;
    align-items: center;
}

.order-contact-box .contact-line .material-icons {
    margin-right: 10px;
    color: #B43F34;
}

/* --- Section des onglets (Description / Détails) --- */
.product-tabs-container {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-tabs-container .nav-tabs {
    border-bottom: 1px solid #ddd;
}

.product-tabs-container .nav-tabs .nav-item {
    margin-right: 20px;
}

.product-tabs-container .nav-tabs .nav-link {
    border: none;
    padding: 10px 0;
    color: #583535;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 1rem;
    font-family: 'EB Garamond';
}

.product-tabs-container .nav-tabs .nav-link.active,
.product-tabs-container .nav-tabs .nav-link:hover {
    border-bottom: 2px solid #B43F34;
    color: #B43F34;
    background-color: transparent;
    font-family: 'EB Garamond';
    font-weight: bold;
}

.product-tabs-container .tab-content {
    padding: 20px;
    background-color: #fff;
    border-top: none;
}

.product-description span {
    color: #000000;
}

.page-product .product-provenance {
    display: flex;
    font-style: normal;
    color: #000000;
}


.page-product .product-title {
    min-height: 0px;
    font-size: 40px;
}

.text-command {
    color: #000000 !important;

}

.product-description-full span {
    color: #000000 !important;
}

.product-description-full p {
    color: #000000 !important;
}


.page-product .tabs {
    padding: 1.25rem 0rem;
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #E9E9E9;
}


.page-product ul.nav.nav-tabs {
    padding-left: 2%;
}


.nav-tabs .nav-item+.nav-item {
    position: relative;
    margin-left: 10px;
}

.nav-tabs .nav-item+.nav-item::before {
    content: "";
    position: absolute;
    left: -14px;
    top: -50%;
    height: 150%;
    width: 1px;
    background-color: #ccc;
}

.product-accessories {
    margin-left: 3% !important;
}

.page-product .text-uppercase {
    color: #B43F34;
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    margin-top: 9%;
}

.page-product .wrapper .container {
    width: 1224px;
}

/********* Page a propos - Elmeria Theme *********/

.elmeria-about-section {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fdfcf9;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .product-page-custom {
        padding: 0rem;
    }

    .page-product .product-title {
        font-size: 27px;
    }

    .page-product .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-manufacturer .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-category .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .page-search .product-miniature .thumbnail-container .product-thumbnail img {
        margin-top: 0%;
    }

    .custom-selection {
        width: 100%;
        margin-left: 0%;
    }

    .cat-name {
        font-size: 34px;
    }

    .ybc-menu-vertical-button,
    .transition_floating .close_menu,
    .transition_full .close_menu {
        background-color: #B43F34 !important;
        color: #ffffff;
    }

    .mm_arrow {
        display: none;
    }

    span.mm_menu_content_title {
        pointer-events: all !important;
    }




    .page-manufacturer section .container {
        width: 100%;
    }

    .page-manufacturer img {
        width: 100%;
        height: auto;
    }
}

.brands-sort .dropdown-menu,
.products-sort-order .dropdown-menu,
.suppliers-sort .dropdown-menu {
    width: 90%;
}

.carousel-indicators {
    display: none;

}

@media (min-width: 1200px) and (max-width: 1499px) {

    .page-manufacturer .col-xl-3 {
        width: 46%;
    }
}

@media (min-width: 1500px) and (max-width: 1655px) {

    .page-manufacturer .col-xl-3 {
        width: 33%;
    }
}

@media (min-width: 800px) {

    .page-product .tabs {
        margin-left: 4%;
    }
}

@media (min-width: 2000px) {

    .page-cms #wrapper .container {
        width: 100% !important;
        max-width: 100%;
    }



    .elmeria-image-col img {
        max-width: 100% !important;

    }

    .elmeria-about-section {
        width: 55% !important;
    }


}

.elmeria-about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.elmeria-image-col {
    flex: 1;
    text-align: center;
}

.elmeria-image-col img {
    max-width: 366px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.elmeria-text-col {
    flex: 1.5;
}

.elmeria-about-section h1,
.elmeria-about-section h2,
.elmeria-about-section h3 {
    font-family: 'EB Garamond';
    color: #B43F34;
    font-weight: bold;
    font-size: 44px;
    margin-top: 0;
}


.elmeria-about-section h1 {
    margin-bottom: 7%;
}



.elmeria-about-section h3 {
    font-size: 22px;
    margin-top: 8%;
}

.elmeria-about-section p {
    margin-bottom: 15px;
    font-family: 'Raleway';
    color: black;
}

.elmeria-signature {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 25px;
}

.elmeria-button-container {
    text-align: center;
    margin-top: 30px;
}

.elmeria-discover-btn {
    display: inline-block;
    background-color: #B43F34;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

.elmeria-discover-btn:hover {
    background-color: #ffffff;
    color: #B43F34;
    border: 1px solid #B43F34;
}


@media (min-width: 768px) {


    .elmeria-about-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .elmeria-image-col {
        text-align: left;
    }

}

.page-content.page-cms {
    background-color: #FEFCF8 !important;
}

#main .page-content,
#main .page-footer,
#main .page-header {
    margin-bottom: 1.563rem;
}

header.page-header {
    display: none;
}

@media (min-width: 1300px) {

    .elmeria-about-section {
        width: 62vw;
        padding: 0 !important;
        max-width: none !important;
    }

}


@media (min-width: 1900px) {

    .elmeria-about-section {
        width: 113vh;

    }

}



@media (max-width: 768px) {

    .elmeria-about-section h1 {
        font-size: 37px !important;
        text-align: center;
    }
}


/* =================================================================== */
/*                     STYLES PAGE CONTACT                             */
/* =================================================================== */

/* ----- Structure générale de la page ----- */
.contact-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #414141;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-family: 'Georgia', serif;
    color: #B43F34;
    /* Couleur rouille/marron */
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1rem;
    color: #6c757d;
}

/* ----- Disposition en 2 colonnes ----- */
.contact-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-left-column {
    flex: 2;
    min-width: 300px;
}

.contact-right-column {
    flex: 1;
    min-width: 280px;
}

.page-contact .page-content.page-cms ul,
p {
    font-size: 15px;

}


/* ----- Style du formulaire (colonne de gauche) ----- */
.contact-form {
    padding: 30px;
    border: 1px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 11px;
}

.contact-form h3 {
    font-family: 'EB Garamond';
    color: #B43F34;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-form .form-group-row {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
}

.contact-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.contact-form .form-group-row+.form-group {
    margin-bottom: 15px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 7px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 0;
    font-size: 0.9rem;
    border-radius: 6px;
}

.contact-form .form-control::placeholder {
    color: #999;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: #B43F34;
    box-shadow: none;
}

.contact-form select.form-control-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.contact-form .gdpr-consent {
    font-size: 0.8rem;
    color: #777;
    margin-top: 20px;
}

.contact-form .gdpr-consent input {
    margin-right: 8px;
}

.contact-form .form-footer {
    text-align: left;
    margin-top: 20px;
    text-align: center;
}

.contact-form .form-footer .btn {
    background-color: #B43F34;
    color: #fff;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: none;
}

.contact-form .form-footer .btn:hover {
    background-color: #ffffff;
    color: #B43F34;
    border: 1px solid #B43F34;
}

/* ----- Blocs d'information (colonne de droite) ----- */
.contact-right-column>div {
    padding: 30px;
    border: 1px solid #f0e9e9;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border-radius: 17px;
}

.contact-right-column h3 {
    font-family: 'EB Garamond';
    font-weight: bold;
    color: #B43F34;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.contact-info-block .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-block .info-item:last-child {
    margin-bottom: 0;
}

.contact-info-block .info-item .material-icons {
    color: #B43F34;
    margin-right: 15px;
    font-size: 24px;
}

.contact-info-block .info-item div {
    display: flex;
    flex-direction: column;
}

.contact-info-block .info-item strong {
    font-weight: 600;
}

.contact-orders-block p {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* ----- Section FAQ ----- */
.contact-faq-section {
    margin-top: 60px;
    text-align: center;
}

.contact-faq-section h2 {
    font-family: 'Georgia', serif;
    color: #B43F34;
    font-size: 2rem;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 47px;
    box-shadow: antiquewhite;
    box-shadow: rgba(100, 100, 111, 0.05) 0px 2px 8px 0px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    color: #B43F34;
    border-radius: 6px;
}

.faq-question .material-icons {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    line-height: 1.7;
}

.faq-item.active .faq-question .material-icons {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .contact-main-content {
        flex-direction: column;
    }
}

.page-contact .card {
    all: unset;
}

.page-contact .js-content-wrapper {
    all: unset;
}

.page-contact .left-column {
    all: unset;
}

/* .page-contact .col-xs-12{
    all: unset;
}  */
.page-contact .col-md-8 {
    all: unset;
}

.page-contact .col-lg-9 {
    all: unset;
}

.page-contact #left-column {
    display: none;
}

.contact-form {
    width: 85%;

}

@media (min-width: 1200px) {
    .page-contact #wrapper .container {
        width: 65vw;
    }
}

.page-contact a:hover {
    color: #B43F34;
}

.page-contact a:active {
    color: #B43F34;
}




@media (min-width: 2000px) {
    .col-xxl-4 {
        flex: 0 0 24.333333%;
        max-width: 33.333333%;
    }

    .page-category #wrapper .container {
        width: 68%;
    }
}


/*********** Breadcrumb - Elmeria Theme ***********/

.home-icon {
    vertical-align: text-top;
    ;
    margin-right: 5px;
}


#wrapper .breadcrumb ol,
.list-group {
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
}

#wrapper .breadcrumb li:last-child {
    color: #B43F34;

}

.breadcrumb span {
    font-weight: 500;
}

.page-category #wrapper .breadcrumb ol,
.list-group {
    display: none;
}

/*********** Page Search - Elmeria Theme ***********/

.page-search .custom-selection {
    margin-left: 0% !important;
    width: 100% !important;
}


.carousel-fixed-title {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    font-size: 3rem;
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    color: white;
}


@media (max-width: 768px) {

    .carousel-fixed-title {

        font-size: 2rem;

    }

}

footer .row p {
    font-size: 15px;
}

footer a {
    font-size: 14px;
}


.js-search-filters-clear-all::first-letter {
    text-transform: uppercase;
}



/*********** 404 Page Not Found - Elmeria Theme ***********/


.page-not-found {
    background-color: #f4f4f4;
    font-family: 'Helvetica Neue', sans-serif;
    color: #333;
    padding: 50px 0;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.error-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

.error-message h1 {
    font-family: 'EB Garamond';
    font-size: 2.5rem;
    margin-top: 20px;
    color: #c0392b;
}

.error-message p {
    font-size: 14px;
    font-family: 'Encode Sans';
    margin: 10px 0;
}

.error-message a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.error-message a:hover {
    text-decoration: underline;
}

.search-bar {
    margin-top: 30px;
}

#pagenotfound .page-not-found,
#products .page-not-found {
    max-width: 100%;
}

.page-category #pagenotfound div#left-column {
    display: none !important;
}


#pagenotfound .page-not-found,
#products .page-not-found {
    padding: 1rem;
    margin: 0 auto;
    overflow: auto;
    font-size: .875rem;
    color: #7a7a7a;
    background: #ffffff00;
}


/* ----- Images centrées dans les paragraphes ----- */
.page-manufacturer p img {
    display: block;
    margin: 0 auto;
}

.brands-filters-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.brands-search-container {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.brands-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.brands-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-search:hover {
    color: #333;
}

.brands-sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.brands-sort-select {
    padding: 12px 35px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.brands-sort-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.brands-results-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

#brandsCount {
    color: #007bff;
    font-weight: 600;
}

.no-brands-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

#brandsList>li {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#brandsList>li.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .brands-filters-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .brands-search-container {
        min-width: 100%;
    }

    .brands-sort-container {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .brands-sort-select {
        width: 100%;
    }
}

.brands-filters-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.brands-search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    transition: transform 0.2s ease;
}

.brands-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.brands-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clear-search:hover {
    color: #333;
}

.brands-sort-container,
.brands-country-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.sort-label,
.country-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brands-sort-select,
.brands-country-select {
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.brands-sort-select:hover,
.brands-country-select:hover {
    border-color: #007bff;
}

.brands-sort-select:focus,
.brands-country-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.brands-results-info {
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

#brandsCount {
    color: #007bff;
    font-weight: 700;
    font-size: 16px;
}

.no-brands-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.no-brands-message p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .brands-filters-wrapper {
        flex-direction: column;
    }

    .brands-search-container,
    .brands-sort-container,
    .brands-country-container {
        width: 100%;
        min-width: 100%;
    }
}

/* Styles pour la page de marque vide */
.empty-brand-container {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.empty-brand-icon {
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-brand-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.empty-brand-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lead-text {
    font-size: 20px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.wine-icon {
    font-size: 28px;
    margin-right: 10px;
    vertical-align: middle;
}

.info-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.empty-brand-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-brand-actions .btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.empty-brand-actions .btn-primary {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.empty-brand-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.empty-brand-actions .btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.empty-brand-actions .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #bbb;
    transform: translateY(-2px);
}

.suggestions-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.suggestions-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 400;
}

.suggestion-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
}

.suggestion-link:hover {
    color: #0056b3;
    background: #e7f3ff;
    border-color: #007bff;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .empty-brand-title {
        font-size: 28px;
    }

    .empty-brand-content {
        padding: 30px 20px;
    }

    .lead-text {
        font-size: 18px;
    }

    .empty-brand-actions {
        flex-direction: column;
    }

    .empty-brand-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #faf8f5;
}

.elmeria-sake-hero-section {
    background: #B43F34;
    color: white;
    padding: 28px 17px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* width: 100vw; */
}

.elmeria-sake-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><path d="M0,100 Q300,150 600,100 T1200,100 L1200,300 L0,300 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom;
    background-size: cover;
    /* width: 100vh; */
}

.elmeria-sake-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.elmeria-sake-hero-title {
    font-size: clamp(2rem, 5vw, 3.5em);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

p.elmeria-sake-hero-subtitle {
    color: white;
}

.elmeria-sake-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3em);
    opacity: 0.95;
    font-style: italic;
}

.elmeria-sake-main-container {
    max-width: 79%;
    margin: 0 auto;
    padding: 60px 20px;
}

.elmeria-sake-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    font-size: clamp(1rem, 2vw, 1.2em);
    color: #555;
}

.elmeria-sake-content-section {
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.elmeria-sake-content-section:nth-child(even) {
    flex-direction: row-reverse;
}

.elmeria-sake-text-wrapper {
    flex: 1;
}

.elmeria-sake-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.elmeria-sake-illustration-box {
    width: 100%;
    max-width: 450px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(180, 63, 52, 0.3);
    position: relative;
}

.elmeria-sake-illustration-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.elmeria-sake-illustration-box:hover .elmeria-sake-illustration-image {
    transform: scale(1.05);
}

.elmeria-sake-section-title {
    font-size: clamp(1.8rem, 4vw, 2.5em);
    color: #b43f34;
    margin-bottom: 25px;
    font-weight: 300;
}

.elmeria-sake-subsection-title {
    font-size: clamp(1.2rem, 3vw, 1.5em);
    color: #666;
    margin: 30px 0 15px;
    font-weight: 400;
}

.elmeria-sake-paragraph-text {
    margin-bottom: 20px;
    font-size: clamp(1rem, 2vw, 1.1em);
    color: #555;
}

/* NOUVELLE FRISE CHRONOLOGIQUE AMÉLIORÉE */
.elmeria-sake-timeline-container {
    background: linear-gradient(135deg, #ffffff 0%, #f9f6f3 100%);
    padding: 35px 20px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 80px 0;
    position: relative;
    /* width: 100%; */
    overflow: hidden;
}

.elmeria-sake-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(180, 63, 52, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.elmeria-sake-timeline-main-title {
    text-align: center;
    color: #b43f34;
    font-size: clamp(2rem, 4vw, 2.8em);
    margin-bottom: 20px;
    font-weight: 300;
    position: relative;
}

.elmeria-sake-timeline-subtitle {
    text-align: center;
    color: #666;
    font-size: clamp(1rem, 2vw, 1.1em);
    margin-bottom: 60px;
    font-style: italic;
}

.elmeria-sake-timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.elmeria-sake-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
            rgba(180, 63, 52, 0.2) 0%,
            #b43f34 20%,
            #b43f34 80%,
            rgba(180, 63, 52, 0.2) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(180, 63, 52, 0.3);
}

.elmeria-sake-timeline-entry {
    display: flex;
    align-items: stretch;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    min-height: 120px;
}

.elmeria-sake-timeline-entry:nth-child(1) {
    animation-delay: 0.1s;
}

.elmeria-sake-timeline-entry:nth-child(2) {
    animation-delay: 0.2s;
}

.elmeria-sake-timeline-entry:nth-child(3) {
    animation-delay: 0.3s;
}

.elmeria-sake-timeline-entry:nth-child(4) {
    animation-delay: 0.4s;
}

.elmeria-sake-timeline-entry:nth-child(5) {
    animation-delay: 0.5s;
}

.elmeria-sake-timeline-entry:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.elmeria-sake-timeline-entry:last-child {
    margin-bottom: 0;
}

.elmeria-sake-timeline-entry:nth-child(odd) {
    flex-direction: row;
}

.elmeria-sake-timeline-entry:nth-child(even) {
    flex-direction: row-reverse;
}

.elmeria-sake-timeline-date-box {
    width: 47%;
    text-align: right;
    padding-right: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-date-box {
    text-align: left;
    padding-right: 0;
    padding-left: 50px;
    justify-content: flex-start;
}

.elmeria-sake-timeline-date-text {
    font-size: clamp(1.4rem, 3vw, 2em);
    font-weight: 700;
    background: linear-gradient(135deg, #b43f34 0%, #d4574a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1.2;
    position: relative;
    padding: 8px 18px;
}

.elmeria-sake-timeline-date-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(180 63 52 / 0%);
    border-radius: 10px;
    z-index: -1;
}

.elmeria-sake-timeline-marker {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #b43f34 0%, #d4574a 100%);
    border: 5px solid white;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(180, 63, 52, 0.15), 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elmeria-sake-timeline-entry:hover .elmeria-sake-timeline-marker {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 0 15px rgba(180, 63, 52, 0.25), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.elmeria-sake-timeline-content-box {
    width: 110%;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.elmeria-sake-timeline-entry:nth-child(odd) .elmeria-sake-timeline-content-box::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid white;
    filter: drop-shadow(2px 0 3px rgba(0, 0, 0, 0.05));
}

.elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-content-box::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid white;
    filter: drop-shadow(-2px 0 3px rgba(0, 0, 0, 0.05));
}

.elmeria-sake-timeline-entry:hover .elmeria-sake-timeline-content-box {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(180, 63, 52, 0.2);
    border-color: rgba(180, 63, 52, 0.3);
}

.elmeria-sake-timeline-event-title {
    margin: 0 0 12px;
    color: #b43f34;
    font-size: clamp(1.1rem, 2.5vw, 1.5em);
    font-weight: 600;
}

.elmeria-sake-timeline-event-description {
    color: #666;
    font-size: clamp(0.95rem, 2vw, 1.05em);
    line-height: 1.1;
    padding: 1rem;
    letter-spacing: normal;
}

.elmeria-sake-craftsmanship-block {
    background: #B43F34;
    color: white;
    padding: 80px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(180, 63, 52, 0.3);
}

.elmeria-sake-craftsmanship-title {
    color: white;
    margin-bottom: 30px;
    font-size: clamp(2rem, 4vw, 2.5em);
    font-weight: 300;
}

.elmeria-sake-craftsmanship-paragraph {
    font-size: clamp(1rem, 2vw, 1.2em);
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.95);
}

.elmeria-sake-signature-block {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-top: 80px;
}

.elmeria-sake-signature-title {
    color: #b43f34;
    margin-bottom: 30px;
    font-size: clamp(2rem, 4vw, 2.5em);
    font-weight: 300;
}

.elmeria-sake-signature-paragraph {
    font-size: clamp(1rem, 2vw, 1.15em);
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
}

.elmeria-sake-author-name {
    margin-top: 40px;
    font-style: italic;
    color: #b43f34;
    font-size: clamp(1.1rem, 2.5vw, 1.3em);
    font-weight: 600;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .elmeria-sake-content-section {
        flex-direction: column !important;
        gap: 40px;
        margin-bottom: 60px;
    }

    .elmeria-sake-illustration-box {
        height: 250px;
        max-width: 100%;
    }

    .elmeria-sake-timeline-container {
        padding: 50px 20px;
        border-radius: 20px;
    }

    .elmeria-sake-timeline-wrapper {
        padding: 20px 0;
        padding-left: 0;
    }

    .elmeria-sake-timeline-line {
        left: 30px;
    }

    .elmeria-sake-timeline-entry,
    .elmeria-sake-timeline-entry:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 50px;
        min-height: auto;
        padding-left: 0;
        flex-direction: column !important;
    }

    .elmeria-sake-timeline-date-box,
    .elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-date-box {
        width: auto;
        text-align: left;
        padding: 0 0 20px 60px;
        justify-content: flex-start;
    }

    .elmeria-sake-timeline-date-text {
        font-size: 1.5rem;
        padding: 6px 14px;
    }

    .elmeria-sake-timeline-marker {
        left: 30px;
        top: 8px;
        transform: translate(-50%, 0);
        width: 20px;
        height: 20px;
        border-width: 4px;
        position: absolute;
    }

    .elmeria-sake-timeline-entry:hover .elmeria-sake-timeline-marker {
        transform: translate(-50%, 0) scale(1.3);
    }

    .elmeria-sake-timeline-content-box,
    .elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-content-box {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 25px 20px;
    }

    .elmeria-sake-timeline-entry:nth-child(odd) .elmeria-sake-timeline-content-box::before,
    .elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-content-box::before {
        left: -18px;
        right: auto;
        top: 30px;
        transform: translateY(0);
        border-right: 18px solid white;
        border-left: none;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
    }

    .elmeria-sake-timeline-main-title {
        margin-bottom: 15px;
    }

    .elmeria-sake-timeline-subtitle {
        margin-bottom: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .elmeria-sake-main-container {
        padding: 40px 15px;
    }

    .elmeria-sake-hero-section {
        padding: 60px 15px;
    }

    .elmeria-sake-timeline-container {
        padding: 38px 0px;
        margin: 60px 0;
    }

    .elmeria-sake-timeline-wrapper {
        padding: 20px 0;
    }

    .elmeria-sake-timeline-line {
        left: 25px;
    }

    .elmeria-sake-timeline-marker {
        left: 25px;
        top: 6px;
        width: 18px;
        height: 18px;
        border-width: 4px;
    }

    .elmeria-sake-timeline-date-box,
    .elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-date-box {
        padding: 0 0 18px 50px;
    }

    .elmeria-sake-timeline-date-text {
        font-size: 1.3rem;
        padding: 5px 12px;
    }

    .elmeria-sake-timeline-content-box,
    .elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-content-box {
        width: calc(100% - 50px);
        margin-left: 50px;
        padding: 20px 16px;
    }

    .elmeria-sake-timeline-entry:nth-child(odd) .elmeria-sake-timeline-content-box::before,
    .elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-content-box::before {
        left: -16px;
        top: 25px;
        border-right: 16px solid white;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }

    .elmeria-sake-timeline-event-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .elmeria-sake-timeline-event-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .elmeria-sake-craftsmanship-block,
    .elmeria-sake-signature-block {
        padding: 50px 20px;
    }

    .elmeria-sake-intro-text {
        margin-bottom: 60px;
    }
}

@media (max-width: 360px) {
    .elmeria-sake-timeline-container {
        padding: 35px 10px;
    }

    .elmeria-sake-timeline-line {
        left: 20px;
    }

    .elmeria-sake-timeline-marker {
        left: 20px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .elmeria-sake-timeline-date-box,
    .elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-date-box {
        padding: 0 0 15px 42px;
    }

    .elmeria-sake-timeline-date-text {
        font-size: 1.2rem;
        padding: 4px 10px;
    }

    .elmeria-sake-timeline-content-box,
    .elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-content-box {
        width: calc(100% - 42px);
        margin-left: 42px;
        padding: 18px 14px;
    }

    .elmeria-sake-timeline-event-title {
        font-size: 1.05rem;
    }

    .elmeria-sake-timeline-event-description {
        font-size: 0.9rem;
    }
}

.cms-id-7 #wrapper .container {
    width: 100% !important;
}

.cms-id-7 section#content {
    padding: 0 !important;
}

.cms-id-7 div#content-wrapper {
    padding: 0 !important;
}



.marquee-rtl {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #b4372f 0%, #d44439 100%);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}



@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Le bloc défilant */
.marquee-rtl>div {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 1.1em;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.3px;
    width: 100%;
    justify-content: center;
}

.marquee-rtl>div>span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

/* Icônes SVG */
.icon {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Séparateur moderne */
.marquee-rtl .separator {
    display: inline-block;
    margin: 0 2em;
    font-weight: 300;
    font-size: 1.2em;
    opacity: 0.7;
}

/* Effet hover sur les éléments (optionnel) */
.marquee-rtl>div>span:hover {
    transform: scale(1.05);
}



/* Responsive */
@media (max-width: 768px) {
    .marquee-rtl>div {
        font-size: 0.95em;
    }

    .icon {
        width: 16px;
        height: 16px;
    }

    .marquee-rtl .separator {
        margin: 0 1.5em;
    }
}


section.product-features {
    display: none;
}

.product-manufacturer a {
    width: 156px;
    display: block;
}

/* ========================================= */
/*   SECTION PIÈCES JOINTES - ELMERIA      */
/* ========================================= */

.product-section--attachments {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf9 100%);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(180, 63, 52, 0.08);
    border: 1px solid rgba(180, 63, 52, 0.1);
    margin-top: 30px;
}

.product-section--attachments .section-title {
    color: #B43F34;
    font-family: 'EB Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(180, 63, 52, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-section--attachments .section-title::before {
    content: '📎';
    font-size: 32px;
}

/* Container des pièces jointes */
.product-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.attachment-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 26px;
}

.attachment-list {
    display: grid;
    gap: 16px;
}

.attachment-preview {
    background: linear-gradient(145deg, #fdf8f4, #f4ede6);
    border: 1px solid #f1e4da;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.attachment-preview__header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid #e8ddd3;
}

.attachment-preview__label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b43f34;
    background: rgba(180, 63, 52, 0.08);
    border-radius: 30px;
    padding: 6px 12px;
    margin-bottom: 6px;
}

.attachment-preview__title {
    font-size: 18px;
    font-weight: 600;
    color: #1b1b1b;
    line-height: 1.35;
}

.attachment-preview__frame {
    position: relative;
    padding: 14px;
    background: #fff;
    border-top: 1px solid #f1e4da;
    border-bottom: 1px solid #f1e4da;
}

.attachment-preview__canvas-wrap {
    position: relative;
    min-height: 260px;
}

.attachment-preview__canvas {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #f1e4da;
}

.attachment-preview.is-loaded .attachment-preview__canvas {
    display: block;
}

.attachment-preview__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b625c;
    font-size: 14px;
    padding: 20px;
    border-radius: 10px;
    background: repeating-linear-gradient(135deg, #faf5f0, #faf5f0 12px, #f6ede6 12px, #f6ede6 24px);
    box-shadow: inset 0 0 0 1px #f1e4da;
}

.attachment-preview__actions {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    background: #f9f3ec;
    flex-wrap: wrap;
}

.attachment-preview__actions .btn {
    flex: 1 1 180px;
    text-align: center;
}

.attachment-preview__actions .btn.btn-primary {
    background-color: #B43F34;
    border-color: #B43F34;
    color: #fff;
}

.attachment-preview__actions .btn.btn-primary:hover {
    background-color: #8b2f26;
    border-color: #8b2f26;
}

.attachment-preview__actions .btn.btn-outline-secondary {
    border-color: #d3c3b8;
    color: #6b625c;
}

.attachment-preview__actions .btn.btn-outline-secondary:hover {
    background-color: #f1e4da;
    color: #3a312b;
}

.attachment-preview__actions .btn.attachment-preview__open {
    flex: 0 0 auto;
    padding-left: 0;
    padding-right: 0;
    color: #6b625c;
}

.attachment-preview__actions .btn.attachment-preview__open:hover {
    color: #B43F34;
}

@media (max-width: 992px) {
    .attachment-layout {
        grid-template-columns: 1fr;
    }

    .attachment-preview {
        position: relative;
        top: 0;
    }

    .attachment-preview__canvas-wrap {
        min-height: 220px;
    }
}

@media (max-width: 576px) {
    .attachment-preview__canvas-wrap {
        min-height: 200px;
    }

    .attachment-preview__actions {
        padding: 14px 14px 16px;
    }
}

/* Carte individuelle */
.attachment-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.attachment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #B43F34 0%, #8b2f26 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.attachment-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(180, 63, 52, 0.15);
    border-color: rgba(180, 63, 52, 0.2);
}

.attachment-item:hover::before {
    opacity: 1;
}

/* En-tête avec icône */
.attachment-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.attachment-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #B43F34 0%, #d4574a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(180, 63, 52, 0.25);
}

/* Titre du document */
.attachment-title {
    flex: 1;
    margin: 0;
}

.attachment-title a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.attachment-title a:hover {
    color: #B43F34;
}

/* Description */
.attachment-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bouton de téléchargement */
.attachment-item .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #B43F34 0%, #d4574a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(180, 63, 52, 0.2);
    width: 100%;
    justify-content: center;
}

.attachment-item .btn:hover {
    background: linear-gradient(135deg, #922a24 0%, #B43F34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(180, 63, 52, 0.3);
}

.attachment-item .btn::before {
    content: '⬇';
    font-size: 16px;
}

/* Badge de taille */
.attachment-size {
    display: inline-block;
    background: rgba(180, 63, 52, 0.1);
    color: #B43F34;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .product-section--attachments {
        padding: 30px 20px;
    }

    .product-attachments {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-section--attachments .section-title {
        font-size: 24px;
    }

    .attachment-item {
        padding: 20px;
    }

    .attachment-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .attachment-header {
        gap: 12px;
    }

    .attachment-title a {
        font-size: 16px;
    }

    .attachment-item .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.page-product a.el-cta {
    color: white;
}


.page-manufacturer .breadcrumb {
    display: none;
}

.ets_mm_megamenu_content_content {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: max(20px, calc((100vw - 1400px) / 2));
    padding-right: max(20px, calc((100vw - 1400px) / 2));
}


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

    #manufacturer table[style*="margin-left:auto"],
    tbody,
    tr {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    #manufacturer td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        text-align: center !important;
        padding: 10px 0;
    }

    #manufacturer td img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        float: none !important;
        margin: 0 auto !important;
    }
}


/* Style du conteneur principal */
.elmeria-importer-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

.elmeria-importer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elmeria-importer-section p:first-of-type {
    margin-bottom: 30px;
    color: #666;
    font-style: italic;
}

/* Transformation des paragraphes contenant des images en galerie */
/* On cible les p qui contiennent des images pour les aligner proprement */
.elmeria-importer-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* On s'assure que le titre et le texte prennent toute la largeur */
.elmeria-importer-section h3,
.elmeria-importer-section p:nth-child(2),
.elmeria-importer-section .elmeria-discover-btn {
    flex: 0 0 100%;
}

/* Style des paragraphes contenant les images */
.elmeria-importer-section p:has(img) {
    margin: 0;
    flex: 1 1 300px;
    /* Les images s'adaptent, minimum 300px de large */
    max-width: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.elmeria-importer-section p:has(img):hover {
    transform: translateY(-5px);
}

/* Style de l'image elle-même */
.elmeria-importer-section img {
    width: 100%;
    height: 100%;
    /* Hauteur fixe pour l'harmonie de la galerie */
    object-fit: cover;
    /* Recadre l'image proprement sans la déformer */
    display: block;
    transition: scale 0.5s ease;
}

.elmeria-importer-section p:has(img):hover img {
    scale: 1.05;
}

/* Style du bouton "Découvrir" */
.elmeria-discover-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: #8b0000;
    /* Un rouge vin élégant */
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.elmeria-discover-btn:hover {
    background-color: #5a0000;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}


.page-contact select.form-control:not([size]):not([multiple]) {
    height: calc(3.5rem - 2px);
}


.mm_menus_li.spirit_link>a.ets_mm_url {
    pointer-events: none !important;
    cursor: default;
}

.mm_menus_li.vin_link>a.ets_mm_url {
    pointer-events: none;
    cursor: default;
}



.elmeria-sake-timeline-entry:nth-child(even) .elmeria-sake-timeline-content-box::before{
    display: none;
}

.elmeria-sake-timeline-entry:nth-child(odd) .elmeria-sake-timeline-content-box::before{
    display: none;
}

.elmeria-sake-timeline-marker{
    display: none;
}

.elmeria-discover-btn{
    display: none;
}