/*
Theme Name: Sélection MGH Child
Theme URI: https://selectionmgh.com
Template: hello-elementor
Author: Octantis Team
Author URI: https://octantis.ca
Version: 3.4.9.12.2.4.543.1783448555
Updated: 2026-07-07 14:22:35

*/

.no-br-mobile{
    display: none !important;
}
.site-header-sticky {
    transition: transform 0.3s ease-in-out;
}

body.scrolling-down .site-header-sticky {
    transform: translateY(calc(-1 * var(--topbar-height, 0px)));
}

body.scrolling-up .site-header-sticky,
body:not(.scrolling-up):not(.scrolling-down) .site-header-sticky {
    transform: translateY(0);
}
@keyframes shrink-logo {
    from {
        width: 200px; /* ta taille normale */
    }
    to {
        width: 120px; /* taille rapetissée */
    }
}

.menu-logo img {
    animation: shrink-logo linear;
    animation-timeline: scroll(root);
    animation-range: 0px 150px;
    animation-fill-mode: both;
    animation-duration: 1ms; /* requis par certains navigateurs pour appliquer l'animation */
}

/* Fallback par défaut si pas de support */
.elementor-element-0be9875.home-menu-nav {
    background-color: transparent;
}

/* Applique seulement si le navigateur supporte scroll() */
.elementor-element-0be9875.home-menu-nav {
    background-color: transparent;
    transition: background-color 0.3s ease; /* utile pour le fallback JS aussi */
}

@supports (animation-timeline: scroll()) {
    @keyframes header-color-change {
        from { background-color: transparent; }
        to { background-color: #1D0A03; }
    }

    .elementor-element-0be9875.home-menu-nav {
        animation: header-color-change linear;
        animation-timeline: scroll(root);
        animation-range: 600px 800px;
        animation-fill-mode: both;
        animation-duration: 1ms;
    }
}

/* Ligne infos produit (drapeau, producteur, specs) */
.smgh-ligne-wrap {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
.smgh-ligne-item {
    font-weight: 600;
    white-space: nowrap;
}
.smgh-sep {
    width: 2px;
    height: 40px;
    background-color: #6F7365;
    flex-shrink: 0;
}
.smgh-drapeau-img {
    width: 24px;
    height: 18px;
    display: block;
    border-radius: 2px;
}
.smgh-item-certification {
    color: #2e7d32;
    font-weight: 700;
}

.prix-par-bouteille > .elementor-shortcode
{

	color: #090402;
	font-family: "Urbanist", Sans-serif;
	font-size: 40px;
	font-weight: 700;

}

.prix-par-bouteille-loop > .elementor-shortcode {
	font-family: "Urbanist", Sans-serif;
	font-size: 20px;
	font-weight: 600;
}



.smgh-sku-cat {
    font-family: 'urbanist', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #4D4B49;
}
.smgh-sep-vertical {
    width: 2px;
    height: 40px;
    background-color: #6F7365;
}
.smgh-cat-label {
    font-weight: 600;
}
.smgh-cat-link {
    color: #333;
    text-decoration: underline;
}
.smgh-cat-link:hover {
    color: #4DB6AC;
}
.smgh-cat-link {
    margin: 0 !important;
    padding: 0 !important;
    display: inline;
}



/*Gravity Form*/

:root {
    --color-primary: #2b0f05;
    --color-secondary: #574F44 ;
    --color-tertiary: #F6F6F6;
}


#gform_wrapper_1 #gform_fields_1{
    gap: 20px;
}
#gform_wrapper_1 #gform_fields_1 input[type="text"], #gform_wrapper_1 #gform_fields_1 input[type="email"], #gform_wrapper_1 #gform_fields_1 input[type="tel"], #gform_wrapper_1 #gform_fields_1 textarea{
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: var(--color-tertiary);
    padding: 15px 10px;
    font-family: 'urbanist', sans-serif;
    font-size: 17px;
}
#gform_wrapper_1 #gform_fields_1 input[type="text"]:focus,
#gform_wrapper_1 #gform_fields_1 input[type="email"]:focus,
#gform_wrapper_1 #gform_fields_1 input[type="tel"]:focus,
#gform_wrapper_1 #gform_fields_1 textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #51B3B3;
}

#gform_wrapper_1 #gform_submit_button_1{
    font-family: 'urbanist', sans-serif;
    font-size: 18px;
    font-weight: 700;
    background-color: #51B3B3;
    color: #FFF;
    border: none;
    border-radius: 0;
}
/* #gform_wrapper_1 #gform_submit_button_1::after {
    content: "";
    display: inline-block;
    width: 25px; 
    height: 25px; 
    vertical-align: middle;
    margin-left: 5px;
    
    
    background-color: var(--color-primary);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L10.59 3.41 17.17 10H4v2h13.17l-6.58 6.59L12 22l10-10z"/></svg>') no-repeat center;
    -webkit-mask-size: contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L10.59 3.41 17.17 10H4v2h13.17l-6.58 6.59L12 22l10-10z"/></svg>') no-repeat center;
    mask-size: contain;
} */

#gform_wrapper_1 #gform_submit_button_1:hover {
    background-color: #530E0E;
    color: #FFF;
}

/* Changement de couleur de la flèche au hover */
/* #gform_wrapper_1 #gform_submit_button_1:hover::after {
    background-color: var(--color-secondary);
} */

/* =========================================================
   PRODUCT ORDER ROW
   ========================================================= */

/* Main Elementor container holding add-to-cart + IP button */
.elementor-element-da2b2ce {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0 !important;
}


/* =========================================================
   ADD TO CART AREA
   ========================================================= */

.elementor-element-354b749 {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}


/* Quantity + Commander on same line */
.elementor-element-354b749 .e-atc-qty-button-holder {
    display: flex !important;
    align-items: stretch !important;
    gap: 18px !important;
}


/* Quantity */
.elementor-element-354b749 .quantity {
    margin: 0 !important;
}


/* Quantity input */
.elementor-element-354b749 .quantity input.qty {
    width: 145px !important;
    height: 40px !important;

    margin: 0 !important;

    border-radius: 0 !important;
    box-sizing: border-box !important;
}


/* Commander button */
.elementor-element-354b749 .single_add_to_cart_button {
    width: 292px !important;
    height: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 20px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #55b4b8 !important;
    color: #fff !important;

    border-radius: 0 !important;
    border: 0 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
}


/* =========================================================
   6 x 750ml
   ========================================================= */

.elementor-element-dad5a34 {
    flex-basis: 100% !important;
    width: 100% !important;

    margin-top: 16px !important;
    margin-bottom: 0 !important;
}


/* Text position */
.elementor-element-dad5a34 {
    padding-left: 0 !important;
}


/* =========================================================
   IP BUTTON
   ========================================================= */

#ip-button {
	/* position: relative !important; */
	/* display: inline-flex !important; */
	/* align-items: center !important; */
	/* justify-content: flex-start !important; */
	/* width: 342px !important; */
	/* height: 40px !important; */
	/* min-height: 40px !important; */
	/* margin-left: 40px !important; */
	padding: 0 90px 0 20px !important;
	background: #dc2932 !important;
	background-color: #dc2932 !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-align: left !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	cursor: pointer !important;
	height: 40px;
	line-height: 40px;
}


/* Separator line */
/*#ip-button::before {*/
/*    content: "" !important;*/

/*    position: absolute !important;*/

/*    left: -22px !important;*/
/*    top: 0 !important;*/

/*    width: 2px !important;*/
/*    height: 40px !important;*/

/*    background: #55b4b8 !important;*/
/*}*/


/* French logo */
#ip-button::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: -12px !important;
    width: 86px !important;
    height: 100% !important;
    background-image: url("/wp-content/uploads/2026/03/logo-IP-row.webp") !important;
    background-repeat: no-repeat !important;
    background-position: right !important;
    background-size: contain !important;
    pointer-events: none !important;
}

/* English logo */
html[lang^="en"] #ip-button::after {
    background-image: url("/wp-content/uploads/2026/03/logo-PI-row-en.webp") !important;
}


/* Hover */
#ip-button:hover {
    background: #c5232d !important;
    color: #fff !important;
}
/*#ip-button p {
    margin: 0px !important;
    padding: 9px 0;
}*/

.piloop #ip-button {
	font-size: 0 !important;
	background-position: center;

}

.piloop {
	width: 110px;
	margin-right: 2em;
}


.piloop #ip-button::after
{
    top: 0 !important;
    right: unset !important;
    left:  15px;
}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .elementor-element-da2b2ce {
        display: block !important;
    }

    .elementor-element-354b749 .e-atc-qty-button-holder {
        gap: 10px !important;
    }

    .elementor-element-354b749 .quantity input.qty {
        width: 110px !important;
    }

    .elementor-element-354b749 .single_add_to_cart_button {
        width: auto !important;
        flex: 1 !important;
    }

    /*#ip-button {
        width: 100% !important;

        margin-left: 0 !important;
        margin-top: 20px !important;

        padding-right: 80px !important;
    }*/

    #ip-button::before {
        display: none !important;
    }
}






/* ==============================================
   INFORMATIONS DÉTAILLÉES PRODUIT
   ============================================== */

.smgh-infos-produit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 60px;
    width: 100%;
}

.smgh-info-produit-item {
    min-width: 0;
}

.smgh-info-produit-label {
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.25;
}

.smgh-info-produit-value {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.smgh-info-produit-value p {
    margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {

    .smgh-infos-produit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 40px;
    }

}

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

    .smgh-infos-produit-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

}



/* =========================================================
   PRODUCT TABS
   ========================================================= */

.smgh-product-tabs {
    width: 100%;
}


/* =========================================================
   TAB NAVIGATION
   ========================================================= */

.smgh-tabs-nav {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #5cc5c7;
    gap: 50px;
    overflow-x: auto;
    scrollbar-width: none;
}

.smgh-tabs-nav::-webkit-scrollbar {
    display: none;
}

.smgh-tab-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 22px 32px 24px 0;
    margin: 0;

    font-family: inherit;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;

    color: #888;
    cursor: pointer;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        font-weight 0.2s ease;
}

.smgh-tab-button:hover {
    color: #333;
    background: transparent;
}

.smgh-tab-button.active {
    color: #111;
    font-weight: 700;
    background-color: transparent;
}


/* =========================================================
   PANELS
   ========================================================= */

.smgh-tabs-content {
    width: 100%;
}

.smgh-tab-panel {
    display: none;
    padding: 30px 0;
}

.smgh-tab-panel.active {
    display: block;
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.smgh-infos-produit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 60px;
    row-gap: 28px;
    width: 100%;
}

.smgh-info-produit-item {
    min-width: 0;
}

.smgh-info-produit-label {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
}

.smgh-info-produit-value {
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.smgh-product-description {
    max-width: 100%;
    line-height: 1.65;
}

.smgh-product-description > :first-child {
    margin-top: 0;
}

.smgh-product-description > :last-child {
    margin-bottom: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .smgh-infos-produit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
        row-gap: 26px;
    }

    .smgh-tab-button {
        font-size: 22px;
        padding: 20px 24px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .smgh-tab-button {
        font-size: 18px;
        padding: 16px 18px;
    }

    .smgh-tab-panel {
        padding: 24px 0;
    }

    .smgh-infos-produit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}