/* Header et footer WE BJJ sans Elementor. Valeurs relevées sur le header ElementsKit : carte blanche 1200px, rayon 10, ombre douce,
   liens 12px capitales +1.5px, survol sable, bouton sable 16px 600 capitales rayon 8, logo 160px (115px sur mobile). */
.wbj-header { position: sticky; top: 0; z-index: 100; background: #fff; padding: 20px 20px 0; transition: transform .3s ease; font-family: "DM Sans", system-ui, sans-serif; }
body.wbj-shop-skin .wbj-header { background: #fbf9f4; }
.wbj-header.is-away { transform: translateY(-110%); }
/* Ordinateur : au défilement le header reste visible, en version fine. */
.wbj-header-card, .wbj-header .wbj-logo, .wbj-header a.wbj-hbtn { transition: all .25s ease; }
@media (min-width: 1025px) {
    .wbj-header.is-compact { padding-top: 8px; }
    .wbj-header.is-compact .wbj-header-card { min-height: 54px; padding-top: 4px; padding-bottom: 4px; }
    .wbj-header.is-compact .wbj-logo { width: 124px; }
    .wbj-header.is-compact a.wbj-hbtn { padding: 13px 16px 12px; font-size: 14px !important; }
}
.wbj-header-card { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 32px; background: #fff; border-radius: 10px; box-shadow: 0 10px 70px rgba(16,27,34,.08); padding: 8px 8px 8px 30px; min-height: 71px; }
.wbj-logo { display: block; flex: 0 0 auto; width: 160px; line-height: 0; }
.wbj-logo svg { width: 100%; height: auto; display: block; }
.wbj-nav { margin: 0 auto; }
.wbj-nav-list, .wbj-panel-list, .wbj-footer ul { list-style: none; margin: 0; padding: 0; }
.wbj-nav-list { display: flex; align-items: center; gap: 30px; }
.wbj-nav-list > li { margin: 0; }
/* Le thème impose 16px, sa couleur et pas d'espacement à tous les liens du header : on reprend la main. */
header.wbj-header .wbj-nav .wbj-nav-list > li > a { display: block; padding: 12px 0; font-family: "DM Sans", system-ui, sans-serif !important; font-size: 12px !important; line-height: 16px !important; letter-spacing: 1.5px !important; text-transform: uppercase; font-weight: 500 !important; color: #232527 !important; text-decoration: none; white-space: nowrap; transition: color .15s; }
header.wbj-header .wbj-nav .wbj-nav-list > li > a:hover, header.wbj-header .wbj-nav .wbj-nav-list > li.current-menu-item > a, header.wbj-header .wbj-nav .wbj-nav-list > li.current-menu-parent > a, header.wbj-header .wbj-nav .wbj-nav-list > li.current-category-ancestor > a { color: #232527 !important; background: linear-gradient(transparent 78%, rgba(233,187,113,.75) 78%) no-repeat 0 0 / 100% calc(100% - 8px); }
a.wbj-hbtn, .wbj-header a.wbj-hbtn, .wbj-panel a.wbj-hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #e9bb71; color: #232527 !important; font-family: "DM Sans", system-ui, sans-serif; font-size: 16px !important; line-height: 16px !important; letter-spacing: normal !important; font-weight: 600 !important; text-transform: uppercase; text-decoration: none; border-radius: 8px; padding: 18px 20px 17px; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.wbj-hbtn:hover { color: #232527; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(233,187,113,.45); }
.wbj-burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; margin-left: auto; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.wbj-burger span { display: block; width: 24px; height: 2px; background: #232527; border-radius: 2px; }

.wbj-panel-back { position: fixed; inset: 0; z-index: 9998; background: rgba(35,37,39,.45); }
.wbj-panel-back[hidden] { display: none; }
.wbj-panel { position: fixed; inset: 0; z-index: 9999; width: 100%; background: #fff; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; transform: translateX(105%); transition: transform .28s ease; overflow-y: auto; font-family: "DM Sans", system-ui, sans-serif; visibility: hidden; }
.wbj-panel.is-open { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(16,27,34,.18); }
.wbj-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wbj-panel .wbj-logo { width: 115px; }
.wbj-panel-x { width: 44px; height: 44px; border: 0; background: #fbf9f4; border-radius: 8px; font-size: 26px; line-height: 1; color: #232527; cursor: pointer; }
.wbj-panel-list > li { margin: 0; border-bottom: 1px solid #ece9e2; }
.wbj-panel .wbj-panel-list > li > a { display: block; padding: 16px 2px; font-family: "DM Serif Text", Georgia, serif !important; font-size: 22px !important; line-height: 28px !important; letter-spacing: -.4px !important; font-weight: 400 !important; text-transform: none; color: #232527 !important; text-decoration: none; }
.wbj-panel .wbj-panel-list > li.current-menu-item > a { color: #9b71f7 !important; }
.wbj-panel .wbj-panel-list > li.wbj-menu-back > a::before { content: "\2190"; display: inline-block; margin-right: 10px; color: #9b71f7; font-family: "DM Sans", system-ui, sans-serif; }
.wbj-hbtn-full { width: 100%; }
.wbj-panel-block { margin-top: 18px; }
.wbj-panel-h { font-size: 11.5px; line-height: 16px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; color: #9b71f7; margin: 0 0 10px; font-family: "DM Sans", system-ui, sans-serif !important; }
.wbj-panel-levels { display: flex; gap: 8px; flex-wrap: wrap; }
.wbj-panel .wbj-panel-levels a { display: inline-flex; gap: 8px; align-items: center; background: #fbf9f4; border-radius: 8px; padding: 12px 14px; font-size: 11.5px !important; line-height: 16px; letter-spacing: 1.3px !important; text-transform: uppercase; font-weight: 500 !important; color: #232527 !important; text-decoration: none; }
.wbj-panel-levels i { width: 20px; height: 7px; border-radius: 3px; display: inline-block; }
.wbj-panel a.wbj-panel-card { display: block; margin-top: 18px; background: #232527; border-radius: 10px; padding: 18px 16px 16px; color: #fff !important; text-decoration: none; }
.wbj-panel-card small { display: block; font-size: 10.5px; line-height: 14px; letter-spacing: 1.3px; text-transform: uppercase; color: #e9bb71; font-weight: 600; }
.wbj-panel-card b { display: block; font-family: "DM Serif Text", Georgia, serif; font-weight: 400; font-size: 19px; line-height: 25px; margin: 4px 0 14px; color: #fff; }
.wbj-panel-card .wbj-hbtn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #e9bb71; color: #232527; border-radius: 8px; padding: 15px 16px 14px; font-size: 14px; line-height: 16px; font-weight: 600; text-transform: uppercase; }
.wbj-socials { display: flex; gap: 10px; margin-top: 18px; }
.wbj-socials a { width: 44px; height: 44px; border-radius: 8px; background: #fbf9f4; display: grid; place-items: center; color: #232527 !important; transition: background .15s, color .15s; }
.wbj-socials a:hover { background: #232527; color: #fff !important; }
.wbj-footer .wbj-socials a { background: #fff; }
body.wbj-panel-open { overflow: hidden; }

@media (max-width: 1024px) {
    .wbj-header { padding: 10px 12px 8px; }
    .wbj-header-card { padding: 4px 8px 4px 18px; min-height: 52px; gap: 12px; box-shadow: 0 6px 30px rgba(16,27,34,.1); }
    .wbj-header .wbj-logo { width: 115px; }
    /* Sur mobile, pas de bouton dans la barre du haut : Boutique et Le média sont des lignes du burger. */
    .wbj-nav, header.wbj-header a.wbj-hbtn, .wbj-header .wbj-header-card a.wbj-hbtn { display: none !important; }
    .wbj-burger { display: flex; }
}
@media (min-width: 1025px) { .wbj-panel, .wbj-panel-back { display: none !important; } .wbj-nav-list .wbj-menu-mobile { display: none; } }

/* Sous-menus visuels (ordinateur) */
.wbj-header-card { position: relative; }
.wbj-mega { display: none; }
@media (min-width: 1025px) {
    /* Le panneau se cale sur la carte du header, pas sur l'entrée de menu (le thème met les li en position relative). */
    header.wbj-header .wbj-nav, header.wbj-header .wbj-nav-list, header.wbj-header .wbj-nav-list > li { position: static !important; }
    .wbj-mega { display: block; position: absolute; left: 0; right: 0; top: 100%; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 5; }
    .wbj-nav-list > li:hover > .wbj-mega, .wbj-nav-list > li:focus-within > .wbj-mega { opacity: 1; visibility: visible; transform: none; }
    .wbj-mega-in { background: #fff; border-radius: 10px; box-shadow: 0 24px 70px rgba(16,27,34,.16); padding: 28px 32px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
    .wbj-mega-h { font-family: "DM Sans", system-ui, sans-serif !important; font-size: 11.5px; line-height: 16px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; color: #9b71f7; margin: 0 0 14px; }
    header.wbj-header .wbj-mega a { text-transform: none; letter-spacing: normal !important; text-decoration: none; color: #232527 !important; }
    header.wbj-header a.wbj-mega-level { display: flex; align-items: center; gap: 10px; background: #fbf9f4; border-radius: 8px; padding: 13px 16px; margin: 0 0 8px; font-size: 12px !important; line-height: 16px; letter-spacing: 1.5px !important; text-transform: uppercase; font-weight: 500; }
    header.wbj-header a.wbj-mega-level:hover { background: #f3eee2; }
    .wbj-mega-level i { width: 24px; height: 8px; border-radius: 3px; display: inline-block; }
    header.wbj-header a.wbj-mega-all { display: inline-block; margin-top: 10px; font-size: 14px !important; font-weight: 600 !important; text-decoration: underline; text-underline-offset: 5px; }
    .wbj-mega-posts > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .wbj-mega-post .wbj-im { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #f1eee7; margin-bottom: 12px; }
    .wbj-mega-post img { width: 100%; height: 100%; object-fit: cover; display: block; }
    header.wbj-header .wbj-mega-post b { display: block; font-family: "DM Serif Text", Georgia, serif; font-weight: 400; font-size: 19px; line-height: 25px; letter-spacing: -.35px; }
    header.wbj-header a.wbj-mega-post:hover b { color: #7a4fe0; }
    header.wbj-header a.wbj-mega-link { display: block; padding: 9px 0; border-bottom: 1px solid #ece9e2; font-family: "DM Serif Text", Georgia, serif !important; font-size: 17px !important; line-height: 23px !important; font-weight: 400 !important; }
    header.wbj-header a.wbj-mega-link:hover { color: #7a4fe0 !important; }
    .wbj-mega-in:has(.wbj-mega-shop) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .wbj-mega-shop { background: #232527; border-radius: 10px; padding: 22px 24px; }
    .wbj-mega-shop .wbj-mega-h { color: #e9bb71; }
    .wbj-mega-rayons { display: flex; flex-wrap: wrap; gap: 8px; }
    header.wbj-header .wbj-mega-rayons a { border: 1.5px solid rgba(255,255,255,.4); border-radius: 8px; padding: 10px 14px; color: #fff !important; font-size: 12px !important; line-height: 16px; letter-spacing: 1.5px !important; text-transform: uppercase; font-weight: 500; }
    header.wbj-header .wbj-mega-rayons a:hover { background: rgba(255,255,255,.12); }
    header.wbj-header .wbj-mega-shop a.wbj-mega-all { color: #e9bb71 !important; margin-top: 16px; }
}

/* Footer */
.wbj-footer { background: #fbf9f4; padding: 64px 20px 32px; font-family: "DM Sans", system-ui, sans-serif; color: rgba(36,38,40,.75); font-size: 15px; line-height: 24px; }
.wbj-footer-in { max-width: 1185px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.wbj-footer-brand { padding-bottom: 28px; }
footer.wbj-footer p, footer.wbj-footer span { font-family: "DM Sans", system-ui, sans-serif !important; }
.wbj-footer-brand p { margin: 16px 0 0; max-width: 340px; font-size: 15px; line-height: 24px; }
.wbj-footer .wbj-logo { width: 140px; }
.wbj-footer-h { font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: #232527; margin: 0 0 14px; }
.wbj-footer ul { display: grid; gap: 8px; }
.wbj-footer-col { border-top: 1px solid #e6e0d2; }
.wbj-footer-col summary { list-style: none; cursor: pointer; margin: 0; padding: 16px 28px 16px 0; position: relative; }
.wbj-footer-col summary::-webkit-details-marker { display: none; }
.wbj-footer-col summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 22px; font-weight: 400; color: #9b71f7; letter-spacing: 0; }
.wbj-footer-col[open] summary::after { content: "\2212"; }
.wbj-footer-col ul { padding-bottom: 18px; }
.wbj-footer-cities { max-width: 1185px; margin: 28px auto 0; padding-top: 22px; border-top: 1px solid #e6e0d2; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.wbj-footer-cities .wbj-footer-h { margin: 0 8px 0 0; flex-basis: 100%; }
footer.wbj-footer .wbj-footer-cities a { background: #fff; border-radius: 8px; padding: 9px 13px; font-size: 12px !important; line-height: 16px !important; letter-spacing: 1.3px !important; text-transform: uppercase !important; font-weight: 500 !important; color: #232527 !important; }
.wbj-footer-note { max-width: 1185px; margin: 24px auto 0; font-size: 13px; line-height: 20px; color: #69727d; }
.wbj-footer-legal span:last-child { display: flex; gap: 18px; flex-wrap: wrap; }
body.wbj-chrome .back-to-top { display: none !important; }
.wbj-footer li { margin: 0; }
.wbj-footer a, footer.wbj-footer ul li a { color: inherit !important; text-decoration: none; font-size: 15px !important; line-height: 24px !important; font-weight: 400 !important; letter-spacing: normal !important; text-transform: none !important; }
footer.wbj-footer .wbj-footer-legal a { font-size: 13px !important; }
footer.wbj-footer a:hover { color: #9b71f7 !important; }
.wbj-footer-legal { max-width: 1185px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid #e6e0d2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: #69727d; }
@media (min-width: 600px) { .wbj-footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wbj-footer-brand { grid-column: 1 / -1; } }
@media (min-width: 600px) { .wbj-footer-in { gap: 0 32px; } }
@media (min-width: 1025px) {
    .wbj-footer { padding: 80px 40px 36px; }
    .wbj-footer-in { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
    .wbj-footer-brand { grid-column: auto; }
    .wbj-footer-col { border-top: 0; }
    .wbj-footer-col summary { pointer-events: none; padding: 0; margin: 0 0 14px; }
    .wbj-footer-col summary::after { content: none; }
    .wbj-footer-col ul { padding-bottom: 0; }
    .wbj-footer-cities .wbj-footer-h { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) { .wbj-header, .wbj-panel { transition: none; } }
