/* =========================================================
   JADE INSPIRATIONS
   HEADER PREMIUM + MENU CASCADE
   ========================================================= */

.jade-topbar {
    position: relative;
    z-index: 120;
    background: #28221e;
    color: rgba(255,255,255,.88);
}

.jade-topbar-inner {
    min-height: 32px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 24px;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .11em;
    text-transform: uppercase;
}

.jade-topbar-inner span:nth-child(2) {
    opacity: .58;
}

.jade-topbar-inner span:last-child {
    text-align: right;
}


/* =========================================================
   HEADER
   ========================================================= */

.jade-header {
    position: sticky;
    top: 0;
    z-index: 110;

    background: rgba(253,251,248,.98);

    border-bottom:
        1px solid rgba(70,53,42,.08);

    box-shadow:
        0 10px 32px rgba(48,36,28,.045);

    backdrop-filter: blur(15px);
}

.jade-header-main {
    min-height: 112px;

    display: grid;

    grid-template-columns:
        minmax(220px,270px)
        minmax(360px,1fr)
        auto;

    align-items: center;

    gap: 40px;
}


/* LOGO */

.jade-logo-link,
.jade-logo-link .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.jade-logo-link img,
.jade-logo-link .custom-logo {
    width: auto;

    max-width: 235px;
    max-height: 78px;

    display: block;

    object-fit: contain;
}


/* =========================================================
   SEARCH
   ========================================================= */

.jade-search-form {
    width: 100%;
    max-width: 650px;

    min-height: 48px;

    margin-inline: auto;

    display: flex;
    align-items: center;

    overflow: hidden;

    border:
        1px solid rgba(84,64,50,.15);

    border-radius: 999px;

    background: #fff;

    box-shadow:
        0 7px 20px rgba(54,40,30,.035);
}

.jade-search-icon {
    width: 20px;
    height: 20px;

    margin-left: 20px;

    flex: 0 0 auto;

    color: #927864;
}

.jade-search-icon svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.jade-search-form input[type="search"] {
    flex: 1;

    min-width: 0;
    min-height: 46px;

    padding: 0 14px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #3d332c;

    font-size: 12px;
}

.jade-search-form button {
    align-self: stretch;

    padding-inline: 22px;

    border: 0;

    background: transparent;
    color: #604a3a;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .09em;
    text-transform: uppercase;

    cursor: pointer;
}

.jade-search-form button:hover {
    background: #332a25;
    color: #fff;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.jade-header-actions {
    display: flex;
    align-items: center;

    gap: 24px;
}

.jade-header-action {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #362e29;

    text-decoration: none;
}

.jade-action-text {
    display: flex;
    flex-direction: column;
}

.jade-header-action small {
    color: #9b8c81;

    font-size: 7px;
    font-weight: 750;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.jade-header-action strong {
    font-size: 10px;
}

.jade-action-circle {
    position: relative;

    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(80,60,47,.13);

    border-radius: 999px;

    background: #fff;
}

.jade-action-circle svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jade-cart-count {
    position: absolute;

    right: -7px;
    top: -7px;

    min-width: 19px;
    height: 19px;

    padding-inline: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid #fff;

    border-radius: 999px;

    background: #a77b58;
    color: #fff;

    font-size: 7px;
}


/* =========================================================
   NAV PRINCIPALE
   ========================================================= */

.jade-navigation {
    position: relative;

    border-top:
        1px solid rgba(75,58,47,.075);

    background: #fff;
}

.jade-navigation-inner {
    min-height: 55px;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 18px;
}

.jade-nav-link {
    position: relative;

    min-height: 55px;

    padding: 0 17px;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #443930;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .045em;
}

.jade-nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #b18460;

    transform: translateX(-50%);

    transition: width .2s ease;
}

.jade-nav-link:hover::after,
.jade-boutique-menu:hover
.jade-boutique-trigger::after {
    width: calc(100% - 30px);
}

.jade-nav-link:hover {
    color: #8f684a;
}

.jade-boutique-trigger svg {
    width: 9px;
    height: 6px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.4;

    transition: transform .2s ease;
}

.jade-boutique-menu:hover
.jade-boutique-trigger svg {
    transform: rotate(180deg);
}


/* =========================================================
   MEGA MENU BOUTIQUE
   MODELE OFFICIEL
   ========================================================= */

.jade-boutique-menu {
    position: static;
    display: flex;
    align-items: stretch;
}

.jade-mega {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    background: #fff;

    border-top:
        1px solid rgba(72,54,42,.07);

    border-bottom:
        1px solid rgba(72,54,42,.10);

    box-shadow:
        0 24px 55px rgba(43,31,23,.13);

    transition:
        opacity .16s ease,
        visibility .16s ease;
}


/*
 * Le menu ne s'ouvre QUE sur Boutique
 * ou lorsque la souris est déjà dans le panneau.
 */
.jade-boutique-menu:hover > .jade-mega,
.jade-mega:hover {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   GRILLE 5 COLONNES
   ========================================================= */

.jade-official-mega {
    display: grid;

    grid-template-columns:
        1.05fr
        .78fr
        1.35fr
        1.25fr
        1.35fr;

    gap: 0;

    align-items: start;

    padding-top: 24px;
    padding-bottom: 28px;
}

.jade-mega-column {
    min-width: 0;

    padding: 0 20px;

    border-right:
        1px solid rgba(74,56,43,.09);
}

.jade-mega-column:first-child {
    padding-left: 4px;
}

.jade-mega-column:last-child {
    padding-right: 4px;

    border-right: 0;
}


/* =========================================================
   IMAGES
   ========================================================= */

.jade-mega-image {
    width: 100%;
    height: 92px;

    margin-bottom: 14px;

    padding: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        1px solid rgba(78,59,46,.07);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #f3ebe3,
            #fbf9f6
        );

    text-decoration: none;
}

.jade-mega-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   RACINE
   ========================================================= */

.jade-mega-root {
    position: relative;

    margin-bottom: 12px;
    padding-bottom: 9px;

    display: block;

    border-bottom:
        1px solid rgba(73,55,43,.12);

    color: #382e28;

    text-decoration: none;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;
    font-weight: 400;

    line-height: 1.15;
}

.jade-mega-root::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 30px;
    height: 1px;

    background: #b18460;
}


/* =========================================================
   PARENTS
   ========================================================= */

.jade-mega-section {
    margin-bottom: 12px;
}

.jade-mega-parent,
.jade-mega-simple {
    display: block;

    color: #493d35;

    text-decoration: none;

    font-size: 10px;
    font-weight: 750;

    line-height: 1.35;
}

.jade-mega-parent {
    margin-bottom: 5px;
}

.jade-mega-simple {
    padding: 5px 0;
}


/* =========================================================
   ENFANTS
   ========================================================= */

.jade-mega-children {
    padding-left: 10px;

    display: flex;
    flex-direction: column;

    border-left:
        1px solid rgba(169,127,93,.18);
}

.jade-mega-children a {
    position: relative;

    padding:
        3px 0
        3px 8px;

    display: block;

    color: #86786e;

    text-decoration: none;

    font-size: 9px;
    font-weight: 500;

    line-height: 1.35;

    transition:
        color .15s ease,
        padding-left .15s ease;
}

.jade-mega-children a::before {
    content: "";

    position: absolute;

    left: -1px;
    top: 50%;

    width: 4px;
    height: 1px;

    background: #c1a087;
}

.jade-mega-root:hover,
.jade-mega-parent:hover,
.jade-mega-simple:hover,
.jade-mega-children a:hover {
    color: #9b704f;
}

.jade-mega-children a:hover {
    padding-left: 11px;
}


/* =========================================================
   PAS DE ZONE DE HOVER FANTOME
   ========================================================= */

.jade-boutique-menu::before,
.jade-boutique-menu::after {
    display: none;
}


/* =========================================================
   RESPONSIVE DESKTOP
   ========================================================= */

@media (max-width: 1180px) {

    .jade-official-mega {
        grid-template-columns:
            repeat(5,minmax(0,1fr));

        padding-inline: 10px;
    }

    .jade-mega-column {
        padding-inline: 12px;
    }

    .jade-mega-image {
        height: 76px;
    }

    .jade-mega-root {
        font-size: 16px;
    }

    .jade-mega-parent,
    .jade-mega-simple {
        font-size: 9px;
    }

    .jade-mega-children a {
        font-size: 8px;
    }

}


/* =========================================================
   MOBILE
   =========================================================
   Le menu mobile est gere exclusivement par :
   assets/css/mobile-premium-v2.css

   Ne pas remettre de CSS mobile ici.
   ========================================================= */

/* JADE_DESKTOP_HEADER_FINAL_START */

@media (min-width: 1025px) {

    .jade-nav-link {
        font-size:13px;
    }

    .jade-mega-root {
        font-size:13px;
    }

    .jade-navigation .jade-mega-children a {
        font-size:12px;
    }

    .jade-header-actions,
    .jade-header-actions a {
        font-size:13px;
    }

}

/* JADE_DESKTOP_HEADER_FINAL_END */



/* ==========================================================
   ACCESSIBILITE - CONTRASTE LIBELLES COMPTE / PANIER
   Uniquement "Votre espace" et "Votre sélection"
========================================================== */

.jade-header .jade-action-text small {
    color: #6b5140;
    opacity: 1;
}


/* ==========================================================
   ACCESSIBILITE - CONTRASTE LIBELLES COMPTE / PANIER
   Uniquement "Votre espace" et "Votre sélection"
========================================================== */

.jade-header .jade-action-text small {
    color: #6b5140;
    opacity: 1;
}


/* ==========================================================
   ACCESSIBILITE - CONTRASTE LIBELLES COMPTE / PANIER
   Uniquement "Votre espace" et "Votre sélection"
========================================================== */

.jade-header .jade-action-text small {
    color: #6b5140;
    opacity: 1;
}


/* ==========================================================
   HEADER DESKTOP - MON COMPTE / MON PANIER
========================================================== */

@media (min-width: 769px) {

    .jade-header .jade-action-text strong {
        font-size: 12px;
    }

}


/* ==========================================================
   MEGA MENU DESKTOP - CATEGORIES PRINCIPALES
========================================================== */

@media (min-width: 769px) {

    .jade-mega-root {
        font-weight: 700;
    }

}


/* ==========================================================
   MEGA MENU PC - HIERARCHIE TYPOGRAPHIQUE
========================================================== */

@media (min-width: 769px) {

    /* Catégories principales */
    .jade-mega-root {
        font-size: 14px;
        font-weight: 700;
    }

    /* Sous-catégories */
    .jade-mega-parent,
    .jade-mega-simple {
        font-size: 13px;
        font-weight: 600;
    }

    /* Sous-sous-catégories */
    .jade-mega-children a {
        font-size: 12px;
        font-weight: 400;
    }

}

/* JADE_SEO_SKIP_LINK_EXTERNAL_START */

.jade-skip-link{
		position:fixed;
		left:12px;
		top:12px;
		z-index:999999;
		padding:10px 14px;
		background:#2B2B2B;
		color:#fff!important;
		text-decoration:none;
		transform:translateY(-180%);
		transition:transform .15s ease;
	}
	.jade-skip-link:focus{
		transform:translateY(0);
	}

/* JADE_SEO_SKIP_LINK_EXTERNAL_END */

/* JADE_HEADER_MOBILE_LAYOUT_FIX_START */

/*
 * Header mobile Jade Inspirations.
 *
 * Le menu coulissant reste géré exclusivement par mobile-menu.css.
 * Ici on corrige uniquement la disposition du header principal custom :
 * hamburger + logo + actions sur la première ligne,
 * recherche sur toute la largeur sur la seconde ligne.
 */
@media (max-width: 900px) {

    .jade-header .jade-header-main {
        min-height: 0;

        grid-template-columns:
            44px
            minmax(0, 1fr)
            auto;

        grid-template-rows:
            auto
            auto;

        column-gap: 10px;
        row-gap: 10px;

        align-items: center;

        padding-top: 10px;
        padding-bottom: 12px;
    }

    .jade-header .jade-mobile-toggle {
        grid-column: 1;
        grid-row: 1;
    }

    .jade-header .jade-brand {
        grid-column: 2;
        grid-row: 1;

        min-width: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .jade-header .jade-logo-link,
    .jade-header .jade-logo-link .custom-logo-link {
        min-width: 0;
        max-width: 100%;
    }

    .jade-header .jade-logo-link img,
    .jade-header .jade-logo-link .custom-logo {
        width: auto;
        max-width: 100%;
        max-height: 58px;
    }

    .jade-header .jade-header-actions {
        grid-column: 3;
        grid-row: 1;

        min-width: 0;

        gap: 8px;
    }

    /*
     * Sur mobile, les icônes restent visibles.
     * Les libellés desktop ne doivent pas élargir le header.
     */
    .jade-header .jade-action-text {
        display: none;
    }

    .jade-header .jade-search {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;
        min-width: 0;
        max-width: 100%;

        margin: 0;
    }

    .jade-header .jade-search-form {
        width: 100%;
        min-width: 0;
        max-width: none;

        margin: 0;
    }

    .jade-header .jade-search-form input[type="search"] {
        width: 100%;
        min-width: 0;
    }

}

/* JADE_HEADER_MOBILE_LAYOUT_FIX_END */

/* JADE_HIDE_DESKTOP_NAV_ON_MOBILE_START */

/*
 * Le menu hamburger / panneau mobile est géré par mobile-menu.css.
 * La navigation horizontale ci-dessous est exclusivement desktop.
 */
@media (max-width: 900px) {

    .jade-header .jade-navigation {
        display: none !important;
    }

}

/* JADE_HIDE_DESKTOP_NAV_ON_MOBILE_END */

/* JADE_HIDE_MOBILE_TOGGLE_DESKTOP_START */

/*
 * Le bouton hamburger appartient exclusivement au header mobile.
 * Il ne doit jamais occuper une cellule de la grille desktop.
 */
@media (min-width: 901px) {

    .jade-header .jade-mobile-toggle {
        display: none !important;
    }

}

/* JADE_HIDE_MOBILE_TOGGLE_DESKTOP_END */
