/* Header TennisBox — repris du snippet WPCode 19970 (2026-10-02). */
/* Variables + police : declarees sur .tbh ET sur .tbh-cartpanel.
IMPORTANT : le JS deplace le panier flottant dans <body> (pour echapper aux
ancetres en transform/overflow qui cassent position:fixed). Il n'est donc
PLUS un descendant de .tbh : sans ce rappel, il n'heriterait ni des
variables (var(--tbh-orange) invalide -> les styles Astra reprennent le
dessus), ni de la police, ni des resets ci-dessous. */
.tbh,
.tbh-cartpanel{
--tbh-navy:#004b76;
--tbh-orange:#cb5223;
--tbh-cream:#f8ebe1;
--tbh-yellow:#f0d246;
--tbh-red:#b92121;
font-family:'Inter',system-ui,sans-serif;
font-size:16px;
line-height:1.4;
}
.tbh{
color:#fff;
position:relative;
z-index:9999;
}
.tbh,
.tbh *,
.tbh-cartpanel,
.tbh-cartpanel *{
box-sizing:border-box;
}
.tbh a,
.tbh-cartpanel a{
text-decoration:none!important;
color:inherit;
margin:0;
box-shadow:none;
}
.tbh nav,
.tbh ul,
.tbh li{
margin:0;
padding:0;
list-style:none;
}
.tbh img{
max-width:none!important;
}
/* ================= BARRE ================= */
.tbh-bar{
display:grid!important;
grid-template-columns:1fr auto 1fr;
align-items:center!important;
gap:24px;
min-height:114px;
background:var(--tbh-orange);
padding:12px clamp(20px,4vw,56px)!important;
border-bottom:1px solid rgba(0,0,0,.08);
box-shadow:0 2px 16px rgba(120,40,10,.18);
}
.tbh-nav{
display:flex!important;
align-items:center!important;
gap:6px;
}
.tbh-nav.left{
justify-content:flex-start;
}
.tbh-nav.right{
justify-content:flex-end;
flex-direction:row!important;
flex-wrap:nowrap!important;
}
.tbh-link{
display:inline-flex!important;
align-items:center;
gap:7px;
padding:11px 16px;
border-radius:12px;
font-weight:700;
font-size:16px!important;
line-height:1.2;
letter-spacing:.3px;
color:#fff;
transition:background .2s,color .2s;
}
.tbh-link:hover{
background:rgba(255,255,255,.16);
}
.tbh-link.active{
background:#fff;
color:var(--tbh-orange);
}
/* ================= LOGO ================= */
.tbh-logo{
display:flex;
align-items:center;
justify-self:center;
}
.tbh-logo-img{
height:90px!important;
width:auto!important;
display:block;
object-fit:contain;
}
/* ================= ACTIONS ================= */
.tbh-actions{
display:flex!important;
flex-direction:row!important;
align-items:center!important;
justify-content:flex-end!important;
flex-wrap:nowrap!important;
gap:14px;
margin-left:6px;
position:relative;
top:1px;
}
.tbh-sep{
flex:0 0 auto;
width:1px;
height:30px;
background:rgba(255,255,255,.45);
margin:0 6px 0 12px;
}
.tbh-ico-btn{
display:inline-flex!important;
align-items:center!important;
justify-content:center!important;
width:42px!important;
height:42px!important;
min-width:42px!important;
padding:0!important;
margin:0!important;
background:#fff!important;
color:var(--tbh-orange)!important;
border-radius:50%;
position:relative;
box-shadow:0 2px 8px rgba(0,0,0,.12)!important;
transition:transform .15s,box-shadow .15s;
}
.tbh-ico-btn:hover{
transform:scale(1.1);
box-shadow:0 6px 16px rgba(0,0,0,.22)!important;
}
.tbh-ico-btn svg{
width:22px!important;
height:22px!important;
display:block;
}
.tbh-cart-count{
position:absolute;
top:-4px;
right:-4px;
min-width:18px;
height:18px;
padding:0 4px;
background:var(--tbh-navy)!important;
color:#fff!important;
border-radius:9px;
font-size:11px;
font-weight:700;
line-height:1;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 0 0 2px #fff;
}
/* Panier vide -> pastille masquee. WooCommerce retire cette classe des qu'il y
a des articles (fragment "span.tbh-cart-count" du snippet WPCode). */
.tbh-cart-count.is-empty{
display:none!important;
}
/* ================= PANIER FLOTTANT (off-canvas) =================
Remplace le flyout Astra, qui n'existe plus depuis que le header est
du HTML custom (.ast-site-header-cart / #astra-mobile-cart-drawer
ne sont plus rendus). Le contenu est injecte par WooCommerce via le
fragment "div.widget_shopping_cart_content" du snippet WPCode. */
.tbh-cartpanel{
position:fixed;
top:0;
right:0;
bottom:0;
left:0;
z-index:99999;
visibility:hidden;
pointer-events:none;
}
.tbh-cartpanel.is-open{
visibility:visible;
pointer-events:auto;
}
.tbh-cartpanel-overlay{
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
background:rgba(0,30,50,.45);
opacity:0;
transition:opacity .25s;
cursor:pointer;
}
.tbh-cartpanel.is-open .tbh-cartpanel-overlay{
opacity:1;
}
.tbh-cartpanel-inner{
position:absolute;
top:0;
right:0;
height:100%;
width:min(400px,92vw);
background:#fff;
box-shadow:-10px 0 40px rgba(0,40,70,.22);
display:flex;
flex-direction:column;
transform:translateX(100%);
transition:transform .28s ease;
}
.tbh-cartpanel.is-open .tbh-cartpanel-inner{
transform:translateX(0);
}
.tbh-cartpanel-head{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding:18px 20px;
background:var(--tbh-orange);
color:#fff;
font-weight:800;
font-size:17px;
letter-spacing:.3px;
}
.tbh-cartpanel-close{
width:34px!important;
height:34px!important;
display:flex!important;
align-items:center!important;
justify-content:center!important;
border-radius:50%;
background:rgba(255,255,255,.18)!important;
color:#fff!important;
font-size:18px;
line-height:1;
cursor:pointer;
transition:background .2s,color .2s;
}
.tbh-cartpanel-close:hover{
background:#fff!important;
color:var(--tbh-orange)!important;
}
.tbh-cartpanel-body{
flex:1;
overflow-y:auto;
padding:16px 20px 24px;
color:#1a2733;
}
/* --- Contenu du panneau : template-parts/mini-cart.php (classes .tbx-mc-*) ---
Ne dépend plus du gabarit d'Elementor Pro (.elementor-menu-cart__*) ni de celui
de WooCommerce : le thème produit lui-même le balisage. */
.tbh-cartpanel-body{
display:flex;
flex-direction:column;
padding:0;
}
.tbh-cartpanel .widget_shopping_cart_content{
display:flex;
flex-direction:column;
flex:1 0 auto;
}
.tbh-cartpanel .blockUI.blockOverlay{
background:rgba(255,255,255,.7)!important;
}
.tbx-mc-list{
list-style:none;
margin:0;
padding:8px 20px;
flex:1 0 auto;
}
.tbx-mc-item{
display:grid;
grid-template-columns:64px minmax(0,1fr) 30px;
gap:14px;
align-items:center;
padding:14px 0;
border-bottom:1px solid #eee5dc;
margin:0;
}
.tbx-mc-item:last-child{
border-bottom:0;
}
.tbx-mc-thumb{
display:block;
width:64px;
height:64px;
border-radius:14px;
overflow:hidden;
background:#f8ebe1;
}
.tbx-mc-thumb img,
.tbx-mc-img{
display:block;
width:100%!important;
height:100%!important;
object-fit:cover;
margin:0!important;
border-radius:0!important;
}
.tbx-mc-info{
display:flex;
flex-direction:column;
gap:4px;
min-width:0;
}
.tbx-mc-name{
color:#0f2a3d!important;
font-size:14.5px;
font-weight:700;
line-height:1.3;
overflow-wrap:anywhere;
}
a.tbx-mc-name:hover{
color:var(--tbh-orange)!important;
}
.tbx-mc-info dl.variation{
display:flex;
flex-wrap:wrap;
gap:2px 6px;
margin:0;
font-size:12.5px;
color:#5a6b7c;
}
.tbx-mc-info dl.variation dt,
.tbx-mc-info dl.variation dd,
.tbx-mc-info dl.variation p{
margin:0;
padding:0;
font-weight:400;
}
.tbx-mc-qty{
color:#5a6b7c;
font-size:13px;
}
.tbx-mc-qty .amount{
color:var(--tbh-navy);
font-weight:800;
}
.tbh-cartpanel a.tbx-mc-remove{
width:30px;
height:30px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
background:#f7ecec!important;
color:var(--tbh-red)!important;
font-size:19px;
font-weight:700;
line-height:1;
transition:background .2s,color .2s;
}
.tbh-cartpanel a.tbx-mc-remove::before,
.tbh-cartpanel a.tbx-mc-remove::after{
content:none!important;
}
.tbh-cartpanel a.tbx-mc-remove:hover,
.tbh-cartpanel a.tbx-mc-remove:focus-visible{
background:var(--tbh-red)!important;
color:#fff!important;
}
.tbx-mc-foot{
position:sticky;
bottom:0;
display:flex;
flex-direction:column;
gap:10px;
padding:18px 20px 22px;
background:#fff;
border-top:1px solid #eee5dc;
box-shadow:0 -12px 24px -18px rgba(0,40,70,.35);
}
.tbx-mc-total{
display:flex;
align-items:baseline;
justify-content:space-between;
gap:12px;
margin:0 0 2px;
color:#0f2a3d;
font-size:15px;
font-weight:600;
}
.tbx-mc-total strong{
color:var(--tbh-navy);
font-size:22px;
font-weight:900;
letter-spacing:-.02em;
}
.tbx-mc-promo{
margin:0 0 4px;
padding:9px 12px;
border-radius:12px;
background:#fbefe9;
color:#8a3a19;
font-size:12.5px;
line-height:1.4;
text-align:center;
}
.tbx-mc-promo strong{
font-weight:800;
letter-spacing:.04em;
}
.tbh-cartpanel a.tbx-mc-btn{
display:flex;
align-items:center;
justify-content:center;
min-height:48px;
padding:12px 20px;
border-radius:999px;
font-size:15px;
font-weight:800;
text-align:center;
transition:background .2s,color .2s,border-color .2s;
}
.tbh-cartpanel a.tbx-mc-btn--main{
background:var(--tbh-orange);
color:#fff!important;
border:2px solid var(--tbh-orange);
}
.tbh-cartpanel a.tbx-mc-btn--main:hover{
background:#b0451c;
border-color:#b0451c;
}
.tbh-cartpanel a.tbx-mc-btn--ghost{
background:#fff;
color:var(--tbh-navy)!important;
border:2px solid rgba(0,75,118,.25);
}
.tbh-cartpanel a.tbx-mc-btn--ghost:hover{
border-color:var(--tbh-navy);
}
.tbx-mc-empty{
display:flex;
flex-direction:column;
align-items:center;
gap:8px;
padding:48px 28px;
text-align:center;
}
.tbx-mc-empty-title{
margin:0;
color:#0f2a3d;
font-size:17px;
font-weight:800;
}
.tbx-mc-empty-text{
margin:0 0 14px;
color:#5a6b7c;
font-size:14px;
line-height:1.5;
}
.tbx-mc-empty .tbx-mc-btn{
align-self:stretch;
}
/* ================= DROPDOWN DESKTOP ================= */
.tbh-drop{
position:relative;
}
.tbh-drop > .tbh-link .caret{
transition:transform .2s;
}
.tbh-drop.open > .tbh-link .caret{
transform:rotate(180deg);
}
.tbh-submenu{
position:absolute;
top:calc(100% + 10px);
left:0;
min-width:230px;
background:#fff;
border:1px solid rgba(0,75,118,.10);
border-radius:14px;
padding:8px;
box-shadow:0 18px 44px rgba(0,40,70,.16);
opacity:0;
visibility:hidden;
transform:translateY(8px);
transition:.2s;
z-index:50;
}
.tbh-drop.open .tbh-submenu{
opacity:1;
visibility:visible;
transform:translateY(0);
}
.tbh-submenu a{
display:block;
padding:11px 14px;
border-radius:10px;
color:var(--tbh-navy);
font-weight:600;
font-size:14px;
}
.tbh-submenu a:hover{
background:var(--tbh-cream);
color:var(--tbh-orange);
}
.tbh-submenu .tbh-sub-all{
font-weight:800;
color:var(--tbh-orange);
border-radius:0;
border-bottom:1px solid rgba(0,75,118,.12);
margin-bottom:5px;
padding-bottom:13px;
}
/* ================= BURGER PREMIUM ================= */
.tbh-toggle{
position:absolute;
width:1px;
height:1px;
opacity:0;
pointer-events:none;
margin:0;
}
.tbh-burger{
display:none;
position:relative;
width:58px;
height:58px;
cursor:pointer;
user-select:none;
align-items:center;
justify-content:center;
border-radius:14px;
transition:background .25s ease, transform .25s ease;
}
.tbh-burger:hover{
background:rgba(255,255,255,.08);
}
.tbh-burger:active{
transform:scale(.96);
}
.tbh-burger::before,
.tbh-burger::after,
.tbh-burger span{
content:"";
position:absolute;
left:50%;
width:32px;
height:4px;
border-radius:999px;
background:#fff;
transform:translateX(-50%);
transition:top .28s ease, transform .28s ease, opacity .22s ease;
box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.tbh-burger::before{
top:18px;
}
.tbh-burger span{
top:27px;
}
.tbh-burger::after{
top:36px;
}
.tbh-toggle:checked ~ .tbh-bar .tbh-burger::before{
top:27px;
transform:translateX(-50%) rotate(45deg);
}
.tbh-toggle:checked ~ .tbh-bar .tbh-burger span{
opacity:0;
transform:translateX(-50%) scale(.5);
}
.tbh-toggle:checked ~ .tbh-bar .tbh-burger::after{
top:27px;
transform:translateX(-50%) rotate(-45deg);
}
/* ================= DRAWER MOBILE ================= */
.tbh-drawer{
display:none;
}
.tbh-drawer-inner{
padding:14px clamp(16px,4vw,32px) 22px;
display:flex;
flex-direction:column;
gap:0;
}
.tbh-mi{
flex:0 0 auto;
width:34px;
height:34px;
border-radius:9px;
background:rgba(255,255,255,.16);
display:inline-flex;
align-items:center;
justify-content:center;
transition:background .2s;
}
.tbh-mi svg{
width:19px;
height:19px;
display:block;
}
.tbh-dgroup{
background:rgba(0,0,0,.12);
border-left:3px solid var(--tbh-yellow);
border-radius:12px;
padding:6px;
margin:4px 0 8px;
}
.tbh-dsub{
display:flex!important;
align-items:center;
gap:10px;
padding:11px 14px;
color:#fff;
font-weight:600;
font-size:14px;
border-radius:9px;
}
.tbh-dsub .dot{
flex:0 0 auto;
width:7px;
height:7px;
border-radius:50%;
background:var(--tbh-yellow);
}
.tbh-dsub.strong{
font-weight:800;
color:var(--tbh-yellow);
border-bottom:1px solid rgba(255,255,255,.18);
border-radius:0;
margin-bottom:4px;
padding-bottom:12px;
}
/* ================= RESPONSIVE ================= */
@media(max-width:1240px){
.tbh-bar{
gap:14px;
padding:12px clamp(16px,3vw,32px)!important;
}
.tbh-link{
padding:10px 12px;
font-size:15px!important;
}
.tbh-logo-img{
height:76px!important;
}
}
@media(max-width:1024px){
.tbh-bar{
grid-template-columns:auto 1fr auto;
min-height:96px;
}
.tbh-burger{
display:flex!important;
}
.tbh-logo{
justify-self:center;
}
.tbh-nav.left{
display:none!important;
}
.tbh-nav.right > .tbh-link,
.tbh-sep{
display:none!important;
}
.tbh-actions{
margin-left:0;
gap:12px;
top:2px;
}
.tbh-toggle:checked ~ .tbh-drawer{
display:block;
position:absolute;
left:0;
right:0;
top:100%;
background:var(--tbh-orange);
box-shadow:0 18px 34px rgba(120,40,10,.28);
border-bottom:1px solid rgba(0,0,0,.08);
max-height:85vh;
overflow-y:auto;
z-index:1001;
}
.tbh-drawer .tbh-link{
justify-content:flex-start;
width:100%;
gap:12px;
border-radius:10px;
padding:10px 14px;
border-bottom:1px solid rgba(255,255,255,.14);
}
.tbh-drawer .tbh-link:last-child{
border-bottom:0;
}
.tbh-drawer .tbh-link:hover,
.tbh-drawer .tbh-link:active,
.tbh-drawer .tbh-dsub:hover,
.tbh-drawer .tbh-dsub:active{
background:#fff!important;
color:var(--tbh-orange)!important;
}
.tbh-drawer .tbh-link:hover .tbh-mi,
.tbh-drawer .tbh-link:active .tbh-mi,
.tbh-drawer .tbh-link.active .tbh-mi{
background:rgba(203,82,35,.12);
}
.tbh-drawer .tbh-dsub:hover .dot,
.tbh-drawer .tbh-dsub:active .dot{
background:var(--tbh-orange);
}
.tbh-drawer .tbh-link.active{
background:#fff;
color:var(--tbh-orange);
border-bottom:0;
}
}
@media(min-width:1025px){
.tbh-drawer{
display:none!important;
}
}
@media(max-width:560px){
.tbh-logo-img{
height:68px!important;
}
.tbh-burger{
width:54px;
height:54px;
}
.tbh-burger::before,
.tbh-burger::after,
.tbh-burger span{
width:30px;
height:4px;
}
.tbh-ico-btn{
width:40px!important;
height:40px!important;
min-width:40px!important;
}
.tbh-actions{
gap:10px;
}
}
@media(prefers-reduced-motion:reduce){
.tbh *{
transition:none!important;
}
}
/* ================= PANNEAU RECHERCHE ================= */
.tbh-search{
position:absolute;
top:100%;
left:0;
right:0;
z-index:1002;
background:#fff;
box-shadow:0 18px 34px rgba(0,40,70,.18);
border-bottom:1px solid rgba(0,75,118,.10);
transform:translateY(-12px);
opacity:0;
visibility:hidden;
transition:transform .22s ease, opacity .22s ease, visibility .22s;
overflow:hidden; /* filet de securite anti-debordement mobile */
}
.tbh-search.is-open{
transform:translateY(0);
opacity:1;
visibility:visible;
}
.tbh-search-inner{
max-width:920px;
margin:0 auto;
padding:22px clamp(16px,4vw,32px);
display:flex;
align-items:center;
gap:12px;
}
.tbh-search-form{
flex:1;
min-width:0; /* autorise le shrink en flex : sinon le form ne descend pas sous la largeur de son contenu */
display:flex;
align-items:center;
gap:10px;
background:var(--tbh-cream);
border:1px solid #dcdcdc; /* liseré gris clair franc, remplace l'ancien rgba navy */
border-radius:14px;
padding:6px 6px 6px 16px;
transition:border-color .2s, box-shadow .2s;
}
.tbh-search-form:focus-within{
border-color:var(--tbh-orange);
box-shadow:0 0 0 3px rgba(203,82,35,.12);
}
.tbh-search-icon{
flex:0 0 auto;
width:22px;
height:22px;
color:var(--tbh-navy);
opacity:.7;
}
.tbh-search-input{
flex:1;
min-width:0; /* CRUCIAL : sans ca l'input refuse de shrink sous la largeur de son placeholder et pousse le bouton Rechercher hors ecran en mobile */
width:100%;
border:0!important;
outline:0!important;
-webkit-appearance:none;
appearance:none;
box-shadow:none!important;
background:transparent;
font-family:inherit;
font-size:16px;
font-weight:500;
color:var(--tbh-navy);
padding:12px 0;
}
/* Tue le focus-ring bleu/dotted du navigateur meme quand l'input est focus */
.tbh-search-input:focus,
.tbh-search-input:focus-visible,
.tbh-search-input:active{
outline:0!important;
border:0!important;
box-shadow:none!important;
}
/* iOS Safari : <input type="search"> vient avec sa propre deco (croix,
loupe, cadre pointille au focus). On desactive tout ca proprement. */
.tbh-search-input::-webkit-search-decoration,
.tbh-search-input::-webkit-search-cancel-button,
.tbh-search-input::-webkit-search-results-button,
.tbh-search-input::-webkit-search-results-decoration{
-webkit-appearance:none!important;
appearance:none!important;
display:none!important;
}
.tbh-search-input::placeholder{
color:#66727d;
font-weight:400;
}
.tbh-search-submit{
flex:0 0 auto;
border:0!important;
background:var(--tbh-orange)!important;
color:#fff!important;
font-family:inherit!important;
font-weight:800!important;
font-size:14px!important;
letter-spacing:.3px!important;
padding:12px 22px!important;
border-radius:10px!important;
cursor:pointer;
box-shadow:none!important;
text-transform:none!important;
transition:background .2s, transform .15s;
}
.tbh-search-submit:hover{
background:#a8421c!important;
color:#fff!important;
transform:translateY(-1px);
}
.tbh-search-close{
flex:0 0 auto;
width:38px!important;
height:38px!important;
min-width:38px!important;
padding:0!important;
display:inline-flex!important;
align-items:center!important;
justify-content:center!important;
background:transparent!important;
border:0!important;
border-radius:50%!important;
color:var(--tbh-navy)!important;
font-size:22px!important;
line-height:1!important;
font-weight:400!important;
cursor:pointer;
box-shadow:none!important;
transition:background .2s, color .2s;
}
.tbh-search-close:hover{
background:var(--tbh-cream)!important;
color:var(--tbh-orange)!important;
}
@media(max-width:560px){
.tbh-search-inner{
padding:16px 14px;
gap:8px;
}
.tbh-search-form{
padding:4px 4px 4px 12px;
gap:8px;
}
.tbh-search-input{
font-size:15px;
padding:10px 0;
}
.tbh-search-submit{
padding:10px 14px;
font-size:13px;
}
.tbh-search-close{
display:none;
}
}

/* =====================================================================
 * NOUVEAU DESIGN (maquette 2026) — .tbh--2026
 * Barre orange de 80 px : logo à gauche, liens en pastilles, recherche et
 * compte en cercles bordés, bouton blanc « Panier ». Mobile : burger à
 * gauche, logo au centre, recherche + panier à droite.
 * Les règles ci-dessus (héritées du snippet) gardent le menu mobile, la
 * recherche et le panier flottant ; ici on ne change que la barre.
 * ===================================================================== */
.tbh--2026 .tbh-bar{
display:flex!important;
align-items:center!important;
gap:56px;
min-height:80px;
padding:0 max(clamp(20px,5.5vw,80px),calc((100% - 1280px) / 2))!important;
border-bottom:0;
box-shadow:none;
}
.tbh--2026 .tbh-logo{
flex:none;
justify-self:auto;
}
.tbh--2026 .tbh-logo-img{
height:58px!important;
}
.tbh--2026 .tbh-nav.left{
flex:1 1 auto;
gap:6px;
}
.tbh--2026 .tbh-link{
padding:10px 16px;
border-radius:999px;
font-size:15.5px!important;
font-weight:600;
letter-spacing:0;
}
.tbh--2026 .tbh-link:hover,
.tbh--2026 .tbh-drop.open > .tbh-link{
background:rgba(255,255,255,.14);
}
.tbh--2026 .tbh-link.active{
background:rgba(255,255,255,.22);
color:#fff;
}
.tbh--2026 .tbh-drop > .tbh-link .caret{
font-size:10px;
}
.tbh--2026 .tbh-actions{
flex:none;
gap:10px;
margin-left:auto;
top:0;
}
.tbh--2026 .tbh-ico-btn{
width:44px!important;
height:44px!important;
min-width:44px!important;
border:1.5px solid rgba(255,255,255,.5)!important;
background:transparent!important;
color:#fff!important;
box-shadow:none!important;
}
.tbh--2026 .tbh-ico-btn:hover{
transform:none;
background:rgba(255,255,255,.14)!important;
box-shadow:none!important;
}
.tbh--2026 .tbh-ico-btn svg{
width:19px!important;
height:19px!important;
}
/* Bouton « Panier » : pastille blanche avec icône + texte */
.tbh--2026 .tbh-ico-btn.cart{
width:auto!important;
gap:8px;
padding:0 18px!important;
border:0!important;
border-radius:999px;
background:#fff!important;
color:var(--tbh-orange)!important;
font-size:15px;
font-weight:700;
}
.tbh--2026 .tbh-ico-btn.cart:hover{
background:#fff!important;
transform:translateY(-1px);
}
.tbh--2026 .tbh-cart-count{
top:-6px;
right:-6px;
}
/* Écrans moyens : on resserre */
@media(max-width:1240px){
.tbh--2026 .tbh-bar{
gap:28px;
}
.tbh--2026 .tbh-link{
padding:10px 12px;
font-size:15px!important;
}
}
/* Tablette et mobile : burger + logo centré + recherche/panier */
@media(max-width:1024px){
.tbh--2026 .tbh-bar{
display:grid!important;
grid-template-columns:1fr auto 1fr;
gap:12px;
min-height:68px;
padding:0 16px!important;
}
.tbh--2026 .tbh-burger{
justify-self:start;
}
.tbh--2026 .tbh-logo{
justify-self:center;
}
.tbh--2026 .tbh-logo-img{
height:50px!important;
}
.tbh--2026 .tbh-actions{
justify-self:end;
gap:6px;
}
.tbh--2026 .tbh-ico-btn.account{
display:none!important;
}
.tbh--2026 .tbh-ico-btn.search{
border-color:transparent!important;
}
.tbh--2026 .tbh-ico-btn.cart{
width:44px!important;
padding:0!important;
border-radius:50%;
}
.tbh--2026 .tbh-cart-label{
display:none;
}
}
/* Burger plus fin, comme la maquette (3 traits, le dernier plus court) */
.tbh--2026 .tbh-burger{
width:44px;
height:44px;
padding:0 10px;
background:transparent;
border:0;
box-shadow:none;
}
.tbh--2026 .tbh-burger::before,
.tbh--2026 .tbh-burger::after,
.tbh--2026 .tbh-burger span{
width:24px;
height:2.5px;
border-radius:2px;
}
@media(max-width:560px){
.tbh--2026 .tbh-logo-img{
height:50px!important;
}
.tbh--2026 .tbh-burger{
width:44px;
height:44px;
}
.tbh--2026 .tbh-burger::before,
.tbh--2026 .tbh-burger::after,
.tbh--2026 .tbh-burger span{
width:24px;
height:2.5px;
}
.tbh--2026 .tbh-ico-btn{
width:44px!important;
height:44px!important;
min-width:44px!important;
}
}
/* Position des 3 traits pour un bouton de 44 px (le dernier, plus court, aligné à gauche) */
.tbh--2026 .tbh-burger::before,
.tbh--2026 .tbh-burger::after,
.tbh--2026 .tbh-burger span{
box-shadow:none;
}
.tbh--2026 .tbh-burger::before{top:14px;}
.tbh--2026 .tbh-burger span{top:21px;}
.tbh--2026 .tbh-burger::after{
top:28px;
left:10px;
width:17px;
transform:none;
}
.tbh--2026 .tbh-toggle:checked ~ .tbh-bar .tbh-burger::before{
top:21px;
transform:translateX(-50%) rotate(45deg);
}
.tbh--2026 .tbh-toggle:checked ~ .tbh-bar .tbh-burger::after{
top:21px;
left:50%;
width:24px;
transform:translateX(-50%) rotate(-45deg);
}
.tbh--2026 .tbh-burger:hover{
background:rgba(255,255,255,.14);
}

/* =====================================================================
 * Menu harmonisé (retour d'Elsa, 2026-10-11) : mêmes libellés (« Box Animation »…) et mêmes pastilles
 * de couleur des Box dans le menu ordinateur et le menu mobile ; page en cours marquée partout
 * (classe active posée par le serveur : blog et articles, fiches produit → Catalogue + leur Box,
 * panier, compte). Menu mobile en minuscules comme sur ordinateur.
 * ===================================================================== */
.tbh-submenu a.tbh-sub-box{
display:flex;
align-items:center;
gap:10px;
font-size:15px;
}
.tbh-submenu .dot,
.tbh-dsub .dot{
flex:none;
width:9px;
height:9px;
border-radius:50%;
background:var(--dot,var(--tbh-yellow));
}
.tbh-submenu a.tbh-sub-box.active{
background:var(--tbh-cream);
color:var(--tbh-orange);
font-weight:800;
}
.tbh-drawer .tbh-dsub .dot{
box-shadow:0 0 0 2px #fff;
}
.tbh-drawer .tbh-dsub.active{
background:#fff!important;
color:var(--tbh-orange)!important;
font-weight:800;
}
.tbh--2026 .tbh-ico-btn.account.active{
border-color:#fff!important;
background:#fff!important;
color:var(--tbh-orange)!important;
}
.tbh--2026 .tbh-ico-btn.cart.active{
box-shadow:0 0 0 3px rgba(255,255,255,.45)!important;
}
.tbh-drawer .tbh-link{
text-transform:none;
}

/* =====================================================================
 * Style BD (Elsa, 2026-11-08 ; maquette refonte/maquettes/bd-menu-footer-2026-11-08/) : barre orange unie (trame de
 * points retirée à la demande d'Elsa), logo penché avec ombre bleue comme dans le pied de page, onglet de la page en
 * cours et bouton Panier en « vignette BD » (fond blanc, contour bleu marine, ombre nette décalée, légèrement penchés).
 * Sous-menu, burger et menu mobile dans le même esprit.
 * ===================================================================== */
.tbh--2026 {
--bd-navy: #004b76;
--bd-r: 16px 22px 14px 24px / 22px 14px 24px 16px; /* coins irréguliers, « dessinés à la main » */
}
/* Logo : même version que dans le pied de page (penché, ombre nette bleue) */
.tbh--2026 .tbh-logo-img {
rotate: -4deg;
filter: drop-shadow(3px 3px 0 var(--bd-navy));
}
/* Onglet de la page en cours, survol et menu Catalogue ouvert : vignette BD */
.tbh--2026 .tbh-nav .tbh-link.active,
.tbh--2026 .tbh-nav .tbh-link:hover,
.tbh--2026 .tbh-drop.open > .tbh-link {
background: #fff;
color: var(--bd-navy) !important;
border-radius: var(--bd-r);
box-shadow: inset 0 0 0 2px var(--bd-navy), 3px 3px 0 var(--bd-navy);
rotate: -2deg;
}
/* Panier : vignette BD penchée dans l'autre sens */
.tbh--2026 .tbh-ico-btn.cart,
.tbh--2026 .tbh-ico-btn.cart:hover,
.tbh--2026 .tbh-ico-btn.cart.active {
border: 2.5px solid var(--bd-navy) !important;
border-radius: var(--bd-r);
box-shadow: 3px 4px 0 var(--bd-navy) !important;
rotate: 2deg;
}
/* Recherche et compte : cercles blancs avec la même ombre nette */
.tbh--2026 .tbh-ico-btn:not(.cart) {
border: 2px solid #fff !important;
box-shadow: 2px 3px 0 rgba(0, 40, 70, .45) !important;
}
/* Sous-menu Catalogue : case de BD */
.tbh--2026 .tbh-submenu {
border: 2.5px solid var(--bd-navy);
border-radius: var(--bd-r);
box-shadow: 5px 6px 0 var(--bd-navy);
}

/* Tablette et téléphone : burger en vignette BD, panier rond bordé, menu déroulant orange tramé */
@media (max-width: 1024px) {
.tbh--2026 .tbh-bar {
border-bottom: 0;
}
.tbh--2026 .tbh-burger,
.tbh--2026 .tbh-burger:hover {
background: #fff;
border-radius: var(--bd-r);
box-shadow: inset 0 0 0 2px var(--bd-navy), 3px 3px 0 var(--bd-navy);
rotate: -2deg;
}
.tbh--2026 .tbh-burger::before,
.tbh--2026 .tbh-burger::after,
.tbh--2026 .tbh-burger span {
background: var(--bd-navy);
}
.tbh--2026 .tbh-ico-btn.cart,
.tbh--2026 .tbh-ico-btn.cart:hover,
.tbh--2026 .tbh-ico-btn.cart.active {
border-radius: 50%;
}
.tbh--2026 .tbh-ico-btn.search {
box-shadow: none !important;
}
.tbh--2026 .tbh-toggle:checked ~ .tbh-drawer {
border-top: 3px solid var(--bd-navy);
border-bottom: 4px solid var(--bd-navy);
}
.tbh--2026 .tbh-drawer .tbh-link.active,
.tbh--2026 .tbh-drawer .tbh-link:hover,
.tbh--2026 .tbh-drawer .tbh-link:active {
background: #fff !important;
color: var(--bd-navy) !important;
border-bottom-color: transparent;
border-radius: var(--bd-r);
box-shadow: inset 0 0 0 2px var(--bd-navy), 3px 3px 0 var(--bd-navy);
rotate: -1deg;
}
.tbh--2026 .tbh-drawer .tbh-link.active .tbh-mi,
.tbh--2026 .tbh-drawer .tbh-link:hover .tbh-mi {
background: rgba(0, 75, 118, .1);
color: var(--bd-navy);
}
.tbh--2026 .tbh-drawer .tbh-dsub.active,
.tbh--2026 .tbh-drawer .tbh-dsub:hover {
background: #fff !important;
color: var(--bd-navy) !important;
border-radius: 12px;
box-shadow: inset 0 0 0 2px var(--bd-navy), 2px 2px 0 var(--bd-navy);
}
}

/* Menu qui réapparaît en remontant la page (header.js) : posé en haut de l'écran, avec une petite descente. */
.tbh.tbh--float {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 9999;
box-shadow: 0 8px 24px rgba(0, 30, 50, .28);
animation: tbh-drop .22s ease-out;
}

body.admin-bar .tbh.tbh--float {
top: 32px;
}

@media (max-width: 782px) {
body.admin-bar .tbh.tbh--float {
top: 46px;
}
}

@keyframes tbh-drop {
from { translate: 0 -100%; }
to { translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
.tbh.tbh--float { animation: none; }
}

/* Barre d'annonce « -20 % sur votre première commande » (inc/promo-bar.php) : fine, tout en haut, au-dessus du menu. */
.tb-announce {
position: relative;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 8px 14px;
padding: 9px 16px;
background: #004b76;
color: #fff;
font-family: 'Inter', system-ui, sans-serif;
font-size: 14px;
font-weight: 700;
line-height: 1.3;
text-align: center;
}

.tb-announce__txt {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
gap: 8px 12px;
margin: 0;
}

.tb-announce__pct {
padding: 3px 10px;
border-radius: 999px;
background: #f2c230;
color: #004b76;
font-weight: 900;
}

.tb-announce .tb-announce__code {
padding: 3px 10px;
border: 2px dashed #fff;
border-radius: 8px;
background: transparent;
color: #fff;
font-family: ui-monospace, Menlo, Consolas, monospace;
font-size: 13px;
font-weight: 800;
letter-spacing: .14em;
}

.tb-announce .tb-announce__copy {
padding: 5px 14px;
border: 0;
border-radius: 999px;
background: #fff;
color: #004b76;
font: inherit;
font-size: 13px;
font-weight: 800;
cursor: pointer;
}

.tb-announce .tb-announce__copy:hover {
background: #f2c230;
}

@media (max-width: 600px) {
.tb-announce { font-size: 13px; padding: 8px 12px; }
}

.tb-announce__short {
display: none;
}

@media (max-width: 600px) {
.tb-announce__long { display: none; }
.tb-announce__short { display: inline; }
.tb-announce { gap: 6px 10px; padding: 7px 12px; }
.tb-announce__txt { gap: 6px 10px; }
}

/* Barre d'annonce, version 1 « ton sur ton » (Elsa, 2026-11-08) : même orange que le menu, un ton plus foncé ; plus de bleu ni de jaune. */
.tb-announce {
background: #a8421b;
}

.tb-announce .tb-announce__pct {
padding: 0;
border-radius: 0;
background: none;
color: #fff;
font-weight: 900;
}

.tb-announce .tb-announce__pct::after {
content: " ·";
opacity: .6;
}

.tb-announce .tb-announce__code {
border-color: rgba(255, 255, 255, .7);
}

.tb-announce .tb-announce__copy {
border: 1.5px solid rgba(255, 255, 255, .55);
background: rgba(255, 255, 255, .18);
color: #fff;
}

.tb-announce .tb-announce__copy:hover {
background: #fff;
color: #a8421b;
}

/* « -20 % » mis en valeur dans la barre d'annonce : pastille blanche, texte orange foncé, plus grand (Elsa, 2026-11-09) ; reste dans les tons du menu. */
.tb-announce .tb-announce__pct {
padding: 4px 14px;
border-radius: 999px;
background: #fff;
box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
color: #a8421b;
font-size: 17px;
font-weight: 900;
letter-spacing: -.01em;
line-height: 1.1;
}

.tb-announce .tb-announce__pct::after {
content: none;
}

@media (max-width: 600px) {
.tb-announce .tb-announce__pct { padding: 3px 12px; font-size: 16px; }
}

/* =====================================================================
 * Barre de recherche, style BD (Elsa, 2026-11-09) : panneau crème à petits points, champ en pilule à contour épais et ombre
 * nette, bouton orange avec la flèche dans un rond blanc (comme les autres boutons), croix dans un rond.
 * ===================================================================== */
html body .tbh-search {
	background-color: #f8ebe1;
	border-bottom: 3px solid #004b76;
	box-shadow: 0 14px 0 -6px rgba(0, 40, 70, .12);
}

html body .tbh-search-inner {
	max-width: 960px;
	padding: 26px clamp(16px, 4vw, 32px) 30px;
	gap: 16px;
}

html body .tbh-search-form {
	gap: 12px;
	padding: 6px 6px 6px 8px;
	border: 3px solid #004b76;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 0 rgba(0, 40, 70, .22);
	transition: border-color .2s, box-shadow .2s, transform .15s;
}

html body .tbh-search-form:focus-within {
	border-color: #cb5223;
	box-shadow: 0 6px 0 rgba(203, 82, 35, .35);
	transform: translateY(-1px);
}

html body .tbh-search-icon {
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 9px;
	border-radius: 50%;
	background: #004b76;
	color: #fff;
	opacity: 1;
}

html body .tbh-search-input {
	font-size: 17px;
	font-weight: 600;
	padding: 13px 0;
}

html body .tbh-search-input::placeholder {
	color: #66727d;
	font-weight: 500;
}

html body .tbh-search-submit {
	display: inline-flex !important;
	align-items: center;
	gap: 12px;
	padding: 6px 6px 6px 22px !important;
	border-radius: 999px !important;
	background: #cb5223 !important;
	box-shadow: 0 4px 0 rgba(120, 40, 10, .45) !important;
	font-size: 15px !important;
	letter-spacing: 0 !important;
	transition: transform .15s, box-shadow .15s, background-color .2s;
}

html body .tbh-search-submit::after {
	content: "→";
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: #cb5223;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
}

html body .tbh-search-submit:hover {
	background: #cb5223 !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 0 rgba(120, 40, 10, .45) !important;
}

html body .tbh-search-submit:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 rgba(120, 40, 10, .45) !important;
}

html body .tbh-search-close {
	width: 46px !important;
	height: 46px !important;
	min-width: 46px !important;
	border: 3px solid #004b76 !important;
	background: #fff !important;
	box-shadow: 0 4px 0 rgba(0, 40, 70, .22) !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	transition: transform .15s, background-color .2s, color .2s;
}

html body .tbh-search-close:hover {
	background: #cb5223 !important;
	border-color: #cb5223 !important;
	color: #fff !important;
	transform: translateY(-2px);
}

html body .tbh-search-close:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 rgba(0, 40, 70, .22) !important;
}

@media (max-width: 560px) {
	html body .tbh-search-inner {
		padding: 18px 14px 22px;
	}

	html body .tbh-search-form {
		gap: 8px;
		padding: 4px 4px 4px 6px;
	}

	html body .tbh-search-icon {
		padding: 7px;
		width: 18px;
		height: 18px;
	}

	html body .tbh-search-input {
		font-size: 15px;
		padding: 10px 0;
	}

	html body .tbh-search-submit {
		gap: 8px;
		padding: 4px 4px 4px 14px !important;
		font-size: 13px !important;
	}

	html body .tbh-search-submit::after {
		width: 30px;
		height: 30px;
		font-size: 15px;
	}
}

/* Recherche et Mon compte : au survol, le rond se remplit de blanc et l'icône passe à l'orange (Elsa, 2026-11-12). */
.tbh--2026 .tbh-ico-btn:not(.cart) {
	transition: background-color .2s, color .2s, transform .15s !important;
}

.tbh--2026 .tbh-ico-btn:not(.cart):hover,
.tbh--2026 .tbh-ico-btn:not(.cart):focus-visible {
	background: #fff !important;
	color: #cb5223 !important;
	transform: translateY(-2px);
}

.tbh--2026 .tbh-ico-btn:not(.cart):active {
	transform: translateY(1px);
}

/* Bandeau « commandes pas encore ouvertes » (inc/commandes-fermees.php, Elsa 2026-11-17). */
.tb-announce--closed {
	justify-content: center;
	background: var(--tbx-navy, #004b76);
	text-align: center;
}

.tb-announce--closed .tb-announce__txt {
	justify-content: center;
	font-weight: 600;
}

.tb-orders-closed-msg {
	font-weight: 600;
}

.tb-orders-closed-msg {
	margin: 0 0 12px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #f8ebe1;
	color: #004b76;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

/* Menu sur téléphone (Elsa, 2026-11-18) : la ligne de la page en cours ne déborde plus (pas d'inclinaison, ombre
 * réduite, petite marge pour l'ombre) ; sur écran tactile, une ligne touchée ne garde plus l'aspect « sélectionné »
 * (À propos et Contact restaient blancs tous les deux). Hauteur du menu : header.js. Ordinateur inchangé. */
@media (max-width: 767px) {
	.tbh--2026 .tbh-toggle:checked ~ .tbh-drawer {
		overflow-x: hidden;
		overscroll-behavior: contain;
	}

	.tbh--2026 .tbh-drawer-inner {
		padding-right: 20px;
		padding-bottom: 26px;
	}

	.tbh--2026 .tbh-drawer .tbh-link.active,
	.tbh--2026 .tbh-drawer .tbh-link:hover,
	.tbh--2026 .tbh-drawer .tbh-link:active {
		box-shadow: inset 0 0 0 2px var(--bd-navy), 2px 2px 0 var(--bd-navy);
		rotate: 0deg;
	}
}

@media (max-width: 767px) and (hover: none) {
	.tbh--2026 .tbh-drawer .tbh-link:hover:not(.active),
	.tbh--2026 .tbh-drawer .tbh-dsub:hover:not(.active) {
		background: transparent !important;
		color: #fff !important;
		box-shadow: none;
	}

	.tbh--2026 .tbh-drawer .tbh-dsub.strong:hover:not(.active) {
		color: var(--tbh-yellow) !important;
	}

	.tbh--2026 .tbh-drawer .tbh-link:hover:not(.active) .tbh-mi {
		background: rgba(255, 255, 255, .16);
		color: inherit;
	}

}
