/* En-tête au téléphone et à la tablette (< 1024 px), sur toutes les pages (2026-11-10, sa demande : « menu dans le
   coin haut gauche avec 3 barres qui ouvre un menu rétractable »). Une seule rangée : les 3 barres, le logo et le nom
   court, l'appel. La barre « MENU + » est partie ; « Soumission » reste dans la barre collée en bas de l'écran.
   Le menu glisse de la gauche (fenêtre <dialog>, Menu.v1.js). Le bureau ne change pas.
   Classes « bh- » : le CSS compilé d'Astro ne connaît que les classes d'origine. */

/* les 3 barres */
.bh-barres {
  display: grid;
  gap: 4px;
  width: 20px;
}
.bh-barres span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* le nom : court au téléphone, entier dès qu'il y a la place */
.bh-nom-long {
  display: none;
}
@media (min-width: 640px) {
  .bh-nom-court {
    display: none;
  }
  .bh-nom-long {
    display: inline;
  }
}

/* le tiroir */
.bh-tiroir {
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  width: min(86vw, 360px);
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0 auto 0 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  background: #fff;
  color: #1c1917;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
  overscroll-behavior: contain;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bh-tiroir[open] {
  display: flex;
}
.bh-tiroir.bh-ouvert {
  transform: none;
}
.bh-tiroir:focus {
  outline: none;
}
.bh-tiroir::backdrop {
  background: rgba(10, 10, 9, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .bh-tiroir {
    transition: none;
  }
}
.bh-tiroir-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid #e7e5e4;
}
.bh-tiroir-marque {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c1917;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.bh-tiroir-marque img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.bh-tiroir-fermer {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  background: #fff;
  color: #1c1917;
  font: 400 30px/1 system-ui, sans-serif;
  cursor: pointer;
}
.bh-tiroir-fermer:hover {
  border-color: #000;
}
.bh-tiroir-fermer:focus-visible,
.bh-tiroir a:focus-visible {
  outline: 3px solid #a3b818;
  outline-offset: 2px;
}
.bh-tiroir-liens {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
}
.bh-tiroir-liens a {
  font-size: 17px;
}
.bh-tiroir-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
}
.bh-tiroir-soumission,
.bh-tiroir-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.bh-tiroir-soumission {
  padding: 14px 16px;
  background: #d9f04a;
  color: #0a0a09;
}
.bh-tiroir-tel {
  padding: 13px 16px;
  border: 1px solid #d6d3d1;
  color: #1c1917;
}
.bh-tiroir-tel svg {
  width: 18px;
  height: 18px;
}
.bh-tiroir-pied {
  margin: 0;
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e7e5e4;
  color: #78716c;
  font-size: 12px;
  font-weight: 600;
}

/* Bureau étroit (1024 à ~1180 px, iPad à l'horizontale) : « À propos » ne se casse plus sur deux lignes */
nav[aria-label="Principale"] a {
  white-space: nowrap;
}
