/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
:root {
    --primary: #202944;
    --secondary: #A6542F;
    --tertiary: #56242a;
    --color_txt: #7a7a7a;
    --bg-light: #fff8f3;
    --white: #fff;
    --font_text: 'moderat';
}

@font-face {
    font-family: "moderat";
    src: url(../fonts/Moderat-Condensed-Thin.woff2) format("woff2"), url(../fonts/Moderat-Condensed-Thin.woff) format("woff"), url(../fonts/Moderat-Condensed-Thin.otf) format("opentype");
    font-style: normal;
    font-weight: 200
}

@font-face {
    font-family: "moderat";
    src: url(../fonts/Moderat-Condensed-Light.woff2) format("woff2"), url(../fonts/Moderat-Condensed-Light.woff) format("woff"), url(../fonts/Moderat-Condensed-Light.otf) format("opentype");
    font-style: normal;
    font-weight: 300
}

@font-face {
    font-family: "moderat";
    src: url(../fonts/Moderat-Condensed-Light.woff2) format("woff2"), url(../fonts/Moderat-Condensed-Light.woff) format("woff"), url(../fonts/Moderat-Condensed-Light.otf) format("opentype");
    font-style: normal;
    font-weight: 400
}

@font-face {
    font-family: "moderat";
    src: url(../fonts/Moderat-Condensed-Medium.woff2) format("woff2"), url(../fonts/Moderat-Condensed-Medium.woff) format("woff"), url(../fonts/Moderat-Condensed-Medium.otf) format("opentype");
    font-style: normal;
    font-weight: 500
}

@font-face {
    font-family: "moderat";
    src: url(../fonts/Moderat-Condensed-Bold.woff2) format("woff2"), url(../fonts/Moderat-Condensed-Bold.woff) format("woff"), url(../fonts/Moderat-Condensed-Bold.otf) format("opentype");
    font-style: normal;
    font-weight: 600
}

@font-face {
    font-family: "moderat";
    src: url(../fonts/Moderat-Condensed-Bold.woff2) format("woff2"), url(../fonts/Moderat-Condensed-Bold.woff) format("woff"), url(../fonts/Moderat-Condensed-Bold.otf) format("opentype");
    font-style: normal;
    font-weight: 700
}

@font-face {
    font-family: "moderat";
    src: url(../fonts/Moderat-Condensed-Black.woff2) format("woff2"), url(../fonts/Moderat-Condensed-Black.woff) format("woff"), url(../fonts/Moderat-Condensed-Black.otf) format("opentype");
    font-style: normal;
    font-weight: 800
}

@font-face {
    font-family: "moderat";
    src: url(../fonts/Moderat-Condensed-Black.woff2) format("woff2"), url(../fonts/Moderat-Condensed-Black.woff) format("woff"), url(../fonts/Moderat-Condensed-Black.otf) format("opentype");
    font-style: normal;
    font-weight: 900
}

@media (min-width: 1300px) {
    .container {
        width: 1240px;
        max-width: 100%;
    }
}

@media (min-width: 1500px) {
    .container {
        width: 1340px;
        max-width: 100%;
    }
}

@media (min-width: 1700px) {
    .container {
        width: 1540px;
        max-width: 100%;
    }
}

*:not(i) {
    font-family: var(--font_text);
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
.title {
    font-family: var(--font_title) !important;
    color: var(--primary);
}

.bg-light {
    background-color: var(--bg-light);
}

h1.title {
    font-weight: 300;
    z-index: 1;
    font-size: 48px;
    color: var(--secondary);
}

p {
    color: var(--primary);
    font-weight: 500;
}

#wrapper {
    background-color: var(--white);
}

#header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    transition: 0.2s ease-in-out;
    box-shadow: none;
}

#header .header-nav .blockcart.active a:hover,
#header .header-nav .cart-preview.active a,
#header .header-nav .cart-preview.active i,
#header .header-top a[data-depth="0"],
#header #search_widget form i,
#header a,
#header {
    color: #fff;
    transition: 0.2s ease-in-out;
}

#header #search_widget::after {
    background-color: #fff;
}

#header.active,
#header:hover {
    background-color: rgba(255, 255, 255, 1) !important;
}
#header.active .header-nav .blockcart.active a:hover,
#header.active .header-nav .cart-preview.active a,
#header.active .header-nav .cart-preview.active i,
#header.active .header-top a[data-depth="0"],
#header.active #search_widget form i,
#header.active a,
#header.active,
#header:hover .header-top a[data-depth="0"],
#header:hover #search_widget form i,
#header:hover a,
#header:hover {
    color: var(--primary);
}

#header .header-top a[data-depth="0"]:hover {
    color: var(--secondary);
}

#header .header-top a[data-depth="0"] {
    position: relative;
    overflow: hidden;
}

#header .menu>ul>li {
    line-height: 0;
}

#header .header-top a[data-depth="0"]::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: 0.3s ease-in-out;
}

#header .header-top a[data-depth="0"]:hover::after {
    left: 0;
    width: 100%;
}

#header.active #search_widget::after,
#header:hover #search_widget::after {
    background-color: var(--primary);
}

/***Menu **/


.top-menu[data-depth="0"] {
    display: flex;
    flex-wrap: nowrap;
}

.top-menu[data-depth="0"] > li {
    flex-shrink: 1;
    min-width: 0;
}

.top-menu[data-depth="0"] > li > a[data-depth="0"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#header .menu>ul>li {
    position: relative;
}

.top-menu .sub-menu {
    width: auto;
    min-width: none;
    margin-top: -1px;
}

.top-menu .sub-menu .top-menu[data-depth="1"] {
    display: flex;
}

#header a[data-depth="1"] {
    color: var(--tertiary);
}

#header a[data-depth="2"] {
    color: var(--color_txt);
}

.pad-h {
    padding-top: 82px;
}

#module-fa_customboxbuilder-configurator .pad-h,
#module-fa_customboxbuilder-builder .pad-h {
    padding-top: 0;
}

body#checkout #header .header-nav {
    padding: 0;
}
@media(max-width:1580px){
    .top-menu a[data-depth="0"] {
        font-size: 1rem;
    }
}
@media(max-width:1495px){
    .top-menu a[data-depth="0"] {
        font-size: 0.9rem;
    }
}
@media(max-width:1390px){
    .top-menu a[data-depth="0"] {
        font-size: 0.8rem;
    }
}
@media(max-width:1290px){
    .top-menu a[data-depth="0"] {
        font-size: 0.7rem;
        font-weight: 500;
    }
}
@media(max-width:1150px){
    .top-menu a[data-depth="0"] {
        font-size: 0.6rem;
        font-weight: 500;
    }
}
@media(max-width:1050px){
    .top-menu a[data-depth="0"] {
        font-size: 0.5rem;
        font-weight: 500;
    }
}
@media(max-width:962px){
    .top-menu a[data-depth="0"] {
        font-size: 0.55rem;
        font-weight: 500;
    }
}
@media(max-width:880px){
    .top-menu a[data-depth="0"] {
        font-size: 0.5rem;
        font-weight: 500;
    }
}
@media(max-width:820px){
    .top-menu a[data-depth="0"] {
        font-size: 0.45rem; 
        font-weight: 500;
    }
}
*:focus{
    outline: none !important;
    outline-offset: 0;
}
.breadcrumb {
    background-image: url(../img/breadcrumb.jpg);
    background-size: 100%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    margin-top: -1px;
}

.breadcrumb h1,
.breadcrumb ol {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 15px;
    background: #ffffffc5;
    backdrop-filter: blur(6px);
    gap: 20px;
    border-radius: 6px;
}

.breadcrumb ol li {
    font-size: 20px;
}

.breadcrumb ol li::before {
    content: "/";
    margin-right: 10px;
}

.breadcrumb ol li:first-child:before {
    content: "";
}


#carousel {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
}

#carousel::after {
    content: "";
    position: absolute;
    width: 100%;
    bottom: -3px;
    left: 0;
    height: 150px;
    background-image: url(../img/vinetcoffretslide.png);
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: 99;
    background-position: bottom;
}

.carousel .carousel-inner {
    height: auto;
    margin-bottom: 0;
}

.carousel .carousel-item img {
    max-width: none;
}

.carousel .carousel-item figure {
    display: inline-block;
    margin: 0;
    width: 100%;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 50px;
}

#_desktop_logo {
    display: flex;
    align-items: center;
    padding-left: 50px;
}

#header .logo {
    max-width: 105px;
}

#_desktop_top_menu {
    flex: 1;
}

#header .header-nav {
    border-bottom: none;
}

#header .header-top {
    padding: 0;
}

.top-menu a[data-depth="0"] {
    padding: 40px .625rem;
}

#search_widget form input {
    background-color: transparent;

}

#search_widget {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    max-width: 40px;
    transition: 0.3s ease-in-out;
}

@media  (min-width: 992px) {
    #search_widget {
        min-width: 40px;
    }

    #search_widget.active {
        min-width: 12.5rem;
    }
}
#search_widget.active {
        min-width: 12.5rem;
    }
#search_widget::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: 10px;
    width: calc(100% - 60px);
    height: 1px;
    transition: 0.2s ease-in-out;
}

#_desktop_cart .header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#_desktop_cart .header .cart-products-count {
    position: absolute;
    transform: translateX(-50%);
    bottom: -20px;
    left: 50%;
}


/* HOME */

.featured-products .products-section-title {
    font-size: 34px;
    text-align: left;
    position: relative;
}

.featured-products .products-section-title::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    left: 0;
    bottom: -15px;
    transition: 0.3s ease-in-out 0.2s;
}

.featured-products .products-section-title.active::after {
    width: 15%;
}

.fadeintop {
    transform: translateY(100px);
    opacity: 0;
    transition:
        transform 1s cubic-bezier(0.23, 1, 0.32, 1) 0.1s,
        opacity 1s cubic-bezier(0.23, 1, 0.32, 1) 0.0s;
}

.fadeintop.active {
    transform: translateY(0);
    opacity: 1;
}

.btn.btn-primary,
.btn.btn-primary:hover {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    position: relative;
    overflow: hidden;
    transition: 0.2s ease-in-out;
}

.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 7px 10px -1px rgba(0, 0, 0, 0.25);
}



/* Miniature Product */

.product-miniature .highlighted-informations {
    display: none;
}

.product-miniature .product-description {
    height: 100px !important;
}

.product-miniature .product-description,
.product-miniature .thumbnail-container {
    background: transparent;
}

.product-miniature .product-title a {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}

.product-miniature .product-price-and-shipping {
    color: var(--color_txt);
    font-size: 24px;
}

.product-miniature .thumbnail-container {
    transition: 0.3s ease-in-out;
    border: 1px solid var(--primary);
    cursor: pointer;
}

.product-miniature:hover .thumbnail-container {
    transform: translateY(-2px);
    box-shadow: 0px 7px 10px -1px rgba(0, 0, 0, 0.25);
}

.video-background {
    position: relative;
    height: 50vh;
    /* plein écran */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    /* empêche de cliquer sur la vidéo */
}

.video-embed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    /* 100 * 16/9 pour remplir sans bande noire */
    height: 100vh;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.video-content {
    position: relative;
    z-index: 1;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem 3rem;
    border-radius: 1rem;
}

.msg-prev {
    font-weight: 600;
    color: var(--primary);
}

.cms-id-4 .content {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 40px 0
}

.cms-id-4 h1.title {
    margin-bottom: 30px;
}

.cms-id-4 .img_sec {
    overflow: hidden;
}

.cms-id-4 .info_sec{
    width: 65%;
}
.cms-id-4 .img_sec {
    width: 35%;
}

.cms-id-4 .img_sec.active img {
    transform: scale(1) translateX(0);
}

.cms-id-4 .img_sec img {
    max-width: 100%;
    height: auto;
    transition: 8s cubic-bezier(0.1, 1, 0.3, 1);
    transform: scale(1.4) translateX(-63px);
}

#footer_about {
    text-align: center;
    padding-top: 35px;
}

#footer_about img {
    max-width: 120px;
    height: auto;
}
@media (max-width: 767px) {
    .cms-id-4 .content {
        flex-direction: column;
    }
    .cms-id-4 .info_sec, .cms-id-4 .img_sec {
        width: 100%;
    }
}

/* Products view switcher */

.products-view-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 20px;
    padding: 3px;
    border: 1px solid #e5e2dd;
    border-radius: 6px;
    background: #fff;
}

.products-view-switcher .view-switcher-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    color: #b9b4ac;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s ease-in-out, background 0.2s ease-in-out;
}

.products-view-switcher .view-switcher-btn i {
    font-size: 17px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-view-switcher .view-switcher-btn:hover {
    color: var(--primary);
}

.products-view-switcher .view-switcher-btn.active {
    background: var(--bg-light);
    color: var(--primary);
}

/* Grid 4 columns mode */

.products.view-grid-4 > .product {
    width: 25%;
    max-width: 25%;
    flex: 0 0 25%;
}

/* List view mode */

.products.view-list {
    display: block;
}

.products.view-list > .product {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 20px;
}

.products.view-list .product-miniature article {
    display: flex;
    align-items: stretch;
    gap: 25px;
}

.products.view-list .thumbnail-container {
    display: flex;
    gap: 25px;
    width: 100%;
}

.products.view-list .thumbnail-top {
    flex: 0 0 220px;
    max-width: 220px;
}

.products.view-list .product-description {
    height: auto !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.products.view-list .product-list-view-extra {
    display: block;
    margin-top: 10px;
}

.products.view-list .product-description-short {
    color: var(--color_txt);
    font-size: 14px;
    margin-bottom: 10px;
}

.products.view-list .product-list-features {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--color_txt);
}

.products.view-list .product-list-bottom-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.products.view-list .product-list-availability {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.products:not(.view-list) .product-list-view-extra {
    display: none;
}

/** Product **/

.product-prices {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.product-prices div {
    margin-bottom: 0;
}

.current-price-value,
.has-discount.product-price,
.product-prices .tax-shipping-delivery-label {
    color: var(--secondary);
}

.has-discount .discount {
    background-color: var(--secondary);
}

#product #content {
    max-width: none;
}

#footer .links,
#block_myaccount_infos {
    text-align: center;
    min-width: max-content;
}

#footer .row_footer {
    display: flex;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 767px) {
    #footer .row_footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
    }
    .top-menu[data-depth="0"] {
        flex-direction: column;
    }
}

.footer-container .links ul,
#footer,
body#checkout #footer {
    background-color: var(--bg-light);
    padding-top: 0;
}

.footer-container .links ul>li {
    border-bottom: none;
}

@media (max-width: 991px) {
    .carousel {
        left: 0;
        width: 100%;
        padding-bottom: .5rem;
        margin-left: 0;
    }
}

#header .header-nav .cart-preview.active {
    background-color: transparent;
}


#cms-page-9::after {
    content: "";
    position: absolute;
    width: 95%;
    height: 54%;
    background-color: transparent;
    border: 2px solid #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.3s ease-in-out,
        height 0.3s ease-in-out,
        opacity 0.1s ease-in-out 0.1s,
        top 0s ease-in-out ,
        border-width 0.3s ease-in-out 0.1s;

}
        
#cms-page-9:hover::after {
    width: 0%;
    height: 0%;
    opacity: 0.2;
    border-width: 1px;
    transition: width 0.3s ease-in-out,
        height 0.3s ease-in-out,
        opacity 0.1s ease-in-out 0.1s,
        border-width 0.3s ease-in-out 0.1s;
}
#header.active #cms-page-9::after,
#header:hover #cms-page-9::after{
    border-color:var(--primary);
}