/* Bulle Nature - les barres : navbar, barre de contexte, barre du pouce. Une seule grammaire.
   Ce fichier vient APRES site.css et n'est pas touche par l'import de la vitrine : les corrections de barres
   y vivent, site.css reste celui de la vitrine. Les regles sous body.bn-barres ne valent que pour la boutique. */
:root {
  --h-contexte: 56px; --h-pouce: 56px;
  --barre-fond: #FAF7F2; --barre-ombre: 0 8px 20px rgba(34, 38, 35, .07); --rayon-puce: var(--rayon-pilule);
}
@media (max-width: 640px) { :root { --h-contexte: 52px; } }

/* ---- la navbar, partout : jamais de retour a la ligne, fond opaque -------------------------------- */
.entete { background: var(--barre-fond); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav a, .entete-actions .bouton, .marque { white-space: nowrap; }
.marque img { transition: height .35s var(--pose); }
.entete-actions .entete-cadeau { display: inline-flex; }
/* Bureau : logo a gauche, menu juste apres (ecart fixe), actions poussees a droite (gap fixe), meme hauteur 44 px
   et meme ligne mediane a toutes les largeurs. Meme conteneur (.bande) que le contenu de la page. */
@media (min-width: 1240px) {
  .entete-corps { justify-content: flex-start; gap: 0; }
  .marque img { height: 66px; }
  .entete.compacte .marque img { height: 52px; }
  .nav { margin-left: 32px; gap: 22px; }
  .nav a { font-size: .88rem; }
  .entete-actions { margin-left: auto; gap: 12px; padding-left: 20px; }
  .entete-actions .entree-panier { margin-left: 4px; }
  .entete-actions .bouton { height: 44px; box-sizing: border-box; padding: 0 22px; font-size: .88rem; line-height: 1; }
}
/* En dessous de la largeur ou tout ne tient plus sur une ligne : le menu (meme regles que site.css, plus tot). */
@media (max-width: 1239px) {
  .nav, .entete-actions .bouton { display: none; }
  .brulure {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 46px; height: 46px; align-items: center;
  }
  .brulure span {
    display: block; width: 26px; height: 1.5px; background: var(--sapin);
    transition: transform .45s var(--pose), width .45s var(--pose), background .3s ease;
  }
  .brulure span:nth-child(2) { width: 17px; align-self: flex-end; margin-right: 10px; }
  .brulure[aria-expanded="true"] span { background: var(--creme); }
  .brulure[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .brulure[aria-expanded="true"] span:nth-child(2) { width: 26px; margin-right: 0; transform: translateY(-3.75px) rotate(-45deg); }
  :root { --haut-entete: 70px; }
  .marque img { height: 56px; }
  .entete.volet-ouvert { background: transparent; border-bottom-color: transparent; box-shadow: none; z-index: 995; }
  .entete.volet-ouvert .marque img { filter: brightness(0) invert(1); }
  .entete.compacte .marque img { height: 42px; }
}
@media (max-width: 1239px) { .entete-actions .entete-cadeau { display: none; } }

/* ---- la boutique : trois etages, une grammaire ----------------------------------------------------- */
body.bn-barres .entete { border-bottom: 0; transition: transform .4s var(--pose); }
body.bn-barres .entete-corps { height: var(--haut-entete); }
body.bn-barres.entete-repliee .entete { transform: translateY(-100%); }
.barre-contexte {
  position: sticky; top: var(--haut-entete); z-index: 890;
  background: var(--barre-fond); border-bottom: var(--filet); box-shadow: var(--barre-ombre);
  transition: top .4s var(--pose);
}
body.bn-barres.entete-repliee .barre-contexte { top: 0; }
.bc-corps { display: flex; align-items: center; gap: 12px; height: var(--h-contexte); }
.bc-bulle { flex: none; display: flex; align-items: center; }

/* la barre du pouce : meme fond, meme filet, meme ombre, memes puces que les deux autres */
body.bn-barres .barre-pouce {
  align-items: center; min-height: var(--h-pouce); padding: 6px;
  background: var(--barre-fond); -webkit-backdrop-filter: none; backdrop-filter: none;
  border: var(--filet); border-radius: var(--rayon-puce); box-shadow: var(--barre-ombre);
}
body.bn-barres .barre-pouce .bouton { min-height: 44px; padding: 0 6px; }
body.bn-barres .barre-pouce .bouton-trait { border-color: var(--sapin); color: var(--sapin); }
body.bn-barres .barre-pouce .bouton-trait:hover { background: rgba(30, 51, 39, .06); }
@media (max-width: 640px) {
  body.bn-barres .pied { padding-bottom: calc(var(--e-l) + var(--h-pouce) + 24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  body.bn-barres .entete, .barre-contexte, .marque img { transition: none !important; }
}

/* ---- la fin de la navbar : Carte cadeau (contour terracotta) · icone Panier · Prendre Rendez-vous (vert plein) ---- */
.entete-actions { gap: 12px; align-items: center; }
.entete-actions .brulure { margin-left: 0; }
.entete-actions .bouton-plein { background: var(--sapin); color: var(--creme); box-shadow: none; }
.entete-actions .bouton-plein:hover { background: #2b4a39; }
.entree-panier { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; color: var(--sapin); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .25s; }
.entree-panier:hover { background: rgba(30, 51, 39, .08); }
.entree-panier svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.entree-panier .ep-libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.entree-panier .ep-n { position: absolute; top: 3px; right: 1px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9999px; background: var(--sapin); color: var(--creme); font-size: .68rem; font-weight: 600; line-height: 1; }
.entree-panier.ep-vide .ep-n { display: none; }
.entree-panier:focus-visible, .entete-actions .bouton:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
