/* Accueil (2026-11-10) — styles propres à la page, classes « bh- » : le CSS compilé d'Astro ne connaît que
   les classes d'origine.
   1. L'entrée : texte à gauche, deux de ses photos de chantier à droite, note Google en direct, et la bande
      « 250+ / Garantie / 24/7 / RBQ / CMEQ » entière dans le premier écran.
   2. « Nos réalisations » : ses autres photos de chantier, en grille, qui s'ouvrent en grand (Galerie.v1.js),
      et une case « Soumission » qui complète la grille.
   3. Le président : une carte avec son portrait à côté de « On livre. Comme du monde. », vers la page À propos.
   4. « Nos services » (2026-11-11) : 8 services en 2 colonnes au téléphone (2 écrans au lieu de 8) et en 4 × 2 au
      bureau, photos allégées srv-*-{480,800}.{avif,jpg}. Style épuré (sa demande : « du texte en gras sous les
      photos, rends ça plus clean et moderne ») : photo arrondie sans cadre, nom en demi-gras dessous.
   Le point d'intérêt de chaque photo (object-position) est posé sur l'image elle-même, dans la page. */
.bh-entree {
  --bh-fond: #0a0a09;
  --bh-accent: #d9f04a;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bh-fond);
  color: #fff;
}
.bh-fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 600px at 80% 40%, rgba(217, 240, 74, 0.12), transparent 62%),
    radial-gradient(760px 480px at 6% 8%, rgba(217, 240, 74, 0.07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
}
.bh-grille {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 28px;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 28px 16px 26px;
}
.bh-surtitre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d6d3d1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bh-point {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--bh-accent);
  box-shadow: 0 0 0 4px rgba(217, 240, 74, 0.18);
}
.bh-titre {
  margin: 20px 0 0;
  font-size: clamp(2.25rem, 10.5vw, 3.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.bh-accent {
  color: var(--bh-accent);
}
.bh-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

/* Les photos : au téléphone, deux côte à côte sous la note Google */
.bh-visuel {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}
.bh-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #1c1917;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}
.bh-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bh-photo--principale,
.bh-photo--seconde {
  height: clamp(210px, 58vw, 320px);
}

/* Pas de phrase sous le titre (retirée à sa demande, téléphone et ordinateur : « surchargé ») : le lieu se lit
   dans la pastille. Au téléphone, il y tient sur une ligne dès 360 px de large, lettres un peu resserrées ;
   le numéro est dans l'en-tête et la barre du bas ; le bouton de soumission prend la largeur. */
.bh-surtitre-lieu {
  display: none;
}
@media (min-width: 360px) {
  .bh-surtitre-lieu {
    display: inline;
  }
}
@media (min-width: 360px) and (max-width: 479.98px) {
  .bh-surtitre {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}
@media (max-width: 639.98px) {
  .bh-tel {
    display: none;
  }
  .bh-soumission {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* La note Google, en carte blanche : sous la phrase (téléphone, tablette), sur les photos (bureau) */
.bh-google--texte {
  margin-top: 22px;
}
.bh-google--photos {
  display: none !important;
}
.bh-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 11px 16px 11px 13px;
  border-radius: 14px;
  background: #fff;
  color: #1c1917;
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bh-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -18px rgba(0, 0, 0, 0.75);
}
.bh-google:focus-visible {
  outline: 3px solid var(--bh-accent);
  outline-offset: 3px;
}
.bh-google svg.bh-g {
  width: 24px;
  height: 24px;
  flex: none;
}
.bh-google-note {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.bh-google-droite {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bh-etoiles {
  display: flex;
  gap: 2px;
  color: #fbbf24;
}
.bh-etoiles svg {
  width: 15px;
  height: 15px;
}
.bh-google-nombre {
  color: #57534e;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.bh-google-fleche {
  margin-left: 2px;
  color: #a8a29e;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}
.bh-google:hover .bh-google-fleche {
  color: #1c1917;
  transform: translateX(2px);
}

/* Tablette */
@media (min-width: 640px) {
  .bh-grille {
    padding: 40px 32px 32px;
    gap: 36px;
  }
  .bh-titre {
    font-size: clamp(3rem, 8vw, 4.5rem);
  }
  .bh-photo--principale,
  .bh-photo--seconde {
    height: clamp(280px, 44vw, 380px);
  }
}

/* Bureau : deux colonnes, l'entrée et sa bande tiennent dans l'écran sous l'en-tête */
@media (min-width: 1024px) {
  .bh-entree {
    min-height: calc(100svh - var(--bh-entete, 81px));
  }
  .bh-grille {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(40px, 5vw, 80px);
    padding: clamp(28px, 5vh, 64px) 32px clamp(24px, 4vh, 48px);
  }
  .bh-titre {
    margin-top: 24px;
    font-size: clamp(3rem, min(5.6vw, 8.6vh), 5.4rem);
  }
  /* sans phrase, le titre et les boutons se centrent en hauteur sur les photos */
  .bh-texte {
    align-self: center;
  }
  .bh-actions {
    margin-top: 32px;
    gap: 14px;
  }
  .bh-visuel {
    position: relative;
    display: block;
    height: clamp(400px, 62vh, 620px);
  }
  .bh-photo {
    position: absolute;
    border-radius: 22px;
  }
  .bh-photo--principale {
    top: 0;
    right: 0;
    width: 76%;
    height: 100%;
  }
  .bh-photo--seconde {
    left: 0;
    bottom: 7%;
    width: 40%;
    height: auto;
    aspect-ratio: 3 / 4;
    border: 6px solid var(--bh-fond);
    border-radius: 24px;
    outline: none;
  }
  .bh-google--texte {
    display: none;
  }
  .bh-google--photos {
    display: inline-flex !important;
  }
  .bh-google {
    position: absolute;
    top: 8%;
    left: 4%;
    z-index: 2;
    padding: 13px 18px 13px 15px;
    gap: 12px;
  }
  .bh-google-note {
    font-size: 1.9rem;
  }
}

/* Une entrée qui se pose, sans plus ; rien pour qui demande moins de mouvement */
@media (prefers-reduced-motion: no-preference) {
  .bh-photo,
  .bh-google {
    animation: bh-pose 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .bh-photo--seconde {
    animation-delay: 0.15s;
  }
  .bh-google {
    animation-delay: 0.3s;
  }
}
@keyframes bh-pose {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ 2. Nos réalisations */
.bh-galerie {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.bh-tuile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #1c1917;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
  color: #fff;
  text-decoration: none;
}
.bh-tuile picture {
  display: block;
  width: 100%;
  height: 100%;
}
.bh-tuile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bh-tuile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.bh-legende {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  z-index: 1;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.bh-tuile:hover img {
  transform: scale(1.04);
}
.bh-tuile:focus-visible {
  outline: 3px solid #d9f04a;
  outline-offset: 3px;
}
/* 7 photos + la case « Soumission » = 8 cases : 2 colonnes au téléphone, 4 dès la tablette — jamais de case orpheline */
.bh-tuile-appel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  aspect-ratio: 3 / 4;
  padding: 16px 14px;
  border-radius: 14px;
  background: #d9f04a;
  color: #0a0a09;
  text-decoration: none;
  transition: background 0.2s ease;
}
.bh-tuile-appel:hover {
  background: #e6f87a;
}
.bh-tuile-appel:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.bh-appel-sur {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.bh-appel-titre {
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.bh-appel-bouton {
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
@media (min-width: 640px) {
  .bh-galerie {
    gap: 16px;
    margin-top: 56px;
  }
}
@media (min-width: 768px) {
  .bh-galerie {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .bh-galerie {
    gap: 24px;
  }
  .bh-tuile,
  .bh-tuile-appel {
    border-radius: 18px;
  }
  .bh-tuile-appel {
    padding: 24px 22px;
  }
  .bh-legende {
    right: 16px;
    bottom: 14px;
    left: 16px;
    font-size: 13.5px;
  }
  .bh-appel-bouton {
    align-self: flex-start;
    padding: 11px 16px;
    border-radius: 10px;
    background: #0a0a09;
    color: #fff;
    text-decoration: none;
  }
}

/* ------------------------------------------------------------------ 3. Le président, à côté de « On livre. Comme du monde. » */
.bh-pourquoi-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.bh-president {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.bh-president:hover {
  border-color: rgba(217, 240, 74, 0.45);
  background: rgba(255, 255, 255, 0.07);
}
.bh-president:focus-visible {
  outline: 3px solid #d9f04a;
  outline-offset: 3px;
}
.bh-president picture {
  display: block;
  flex: none;
}
.bh-president img {
  display: block;
  width: 72px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
}
.bh-president-texte {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bh-president-nom {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bh-president-titre {
  color: #a8a29e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.bh-president-lien {
  margin-top: 7px;
  color: #d9f04a;
  font-size: 13px;
  font-weight: 700;
}

/* La visionneuse : la photo en grand, par-dessus tout (fenêtre <dialog>, couche supérieure) */
.bh-visionneuse {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 9, 0.97);
  color: #fff;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.bh-visionneuse:focus {
  outline: none;
}
.bh-visionneuse::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.bh-visionneuse figure {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  margin: 0;
  padding: 64px 16px 28px;
}
.bh-visionneuse picture {
  display: contents;
}
.bh-visionneuse img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.bh-visionneuse figcaption {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.bh-v-compte {
  color: #a8a29e;
  font-weight: 600;
}
.bh-v-bouton {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 700 26px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bh-v-bouton:hover {
  background: rgba(255, 255, 255, 0.18);
}
.bh-v-bouton:focus-visible {
  outline: 3px solid #d9f04a;
  outline-offset: 2px;
}
.bh-v-fermer {
  top: 12px;
  right: 12px;
}
.bh-v-prec,
.bh-v-suiv {
  top: 50%;
  transform: translateY(-50%);
}
.bh-v-prec {
  left: 12px;
}
.bh-v-suiv {
  right: 12px;
}
/* Au téléphone, les flèches passent sous la photo (on glisse aussi du doigt) */
@media (max-width: 639.98px) {
  .bh-v-prec,
  .bh-v-suiv {
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .bh-v-prec {
    left: 16px;
  }
  .bh-v-suiv {
    right: 16px;
  }
  .bh-visionneuse figure {
    padding-bottom: 80px;
  }
  .bh-visionneuse img {
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
  }
}

/* ------------------------------------------------------------------ 4. Nos services */
.bh-services {
  padding: 56px 0 64px;
}
.bh-services-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.bh-services-grille > li {
  display: flex;
}
/* Pas de cadre : la photo arrondie, le nom dessous ; toute la carte est le lien */
.bh-service {
  display: flex;
  flex: 1;
  flex-direction: column;
  border-radius: 14px;
  color: #1c1917;
  text-decoration: none;
}
.bh-service:focus-visible {
  outline: 3px solid #1c1917;
  outline-offset: 4px;
}
.bh-service-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #f5f5f4;
}
.bh-service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bh-service-texte {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 2px 0;
}
.bh-service-titre {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.bh-service-desc,
.bh-service-plus {
  display: none;
}
@media (min-width: 768px) {
  .bh-services-grille {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 16px;
  }
}
/* Au bureau : le nom, la phrase en gris, « En savoir plus » discret, alignés d'une carte à l'autre */
@media (min-width: 1024px) {
  .bh-services {
    padding: 96px 0;
  }
  .bh-services-grille {
    gap: 44px 24px;
    margin-top: 48px;
  }
  .bh-service,
  .bh-service-photo {
    border-radius: 16px;
  }
  .bh-service-texte {
    padding: 16px 2px 0;
  }
  .bh-service-titre {
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  }
  .bh-service-desc {
    display: block;
    margin: 6px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #78716c;
  }
  .bh-service-plus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #44403c;
    transition: gap 0.25s ease, color 0.25s ease;
  }
}
@media (hover: hover) {
  .bh-service:hover .bh-service-photo img {
    transform: scale(1.04);
  }
  .bh-service:hover .bh-service-plus {
    gap: 10px;
    color: #000;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bh-service-photo img,
  .bh-service-plus {
    transition: none;
  }
}
