/* ------------------------------------------------------------------
   Baumgartner Jonas SA — refonte 2026-07 (retours client du 27.07.2026)
   Pastilles prestations, galeries projets défilantes, calque d'accueil.
   Autonome : ne dépend d'aucune classe SP Page Builder.
   ------------------------------------------------------------------ */

:root {
  --bjs-green: #025f1d;
  --bjs-ink: #373a36;
  --bjs-line: #9d9d9d;
  --bjs-sans: 'Noto Sans', Arial, sans-serif;
}

.bjs-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ------------------------- Accueil : calque sur le carrousel À propos */
/* Posé au-dessus du carrousel et non dans une slide : titre et boutons
   restent affichés quelle que soit l'image en cours. */

.sppb-carousel.sppb-carousel-pro { position: relative; }

/* SP Page Builder fige le carrousel d'accueil à 800 px via un <style> inline,
   sans repli. Sur un écran court (iPhone SE, laptop 13"), les boutons de
   sélection passaient sous la ligne de flottaison — or c'est justement ce
   qu'on doit voir en arrivant. On borne la hauteur : le +100 px compense la
   remontée du carrousel sous l'en-tête (#sp-main-body a une marge négative).
   Le préfixe `body` sert à passer devant le <style> inline, chargé après. */
body #sppb-addon-1644339952034 .sppb-carousel-pro .sppb-item {
  height: clamp(420px, calc(100svh + 100px), 800px);
}

.bjs-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 30px 40px;
  pointer-events: none;
}

.bjs-hero-overlay-title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  text-align: center;
}

.bjs-hero-overlay-title h1 {
  margin: 0;
  color: #fff;
  font-size: 2.6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .55);
}

.bjs-hero-choices {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1100px;
  flex: 0 0 auto;
}

.bjs-hero-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  text-align: center;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  background: rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: #fff;
  text-decoration: none;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.bjs-hero-choice:hover,
.bjs-hero-choice:focus-visible {
  background: rgba(255, 255, 255, .92);
  border-color: #fff;
  color: var(--bjs-green);
}

.bjs-hero-choice strong {
  display: block;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}


@media (max-width: 767.98px) {
  .bjs-hero-overlay { padding: 0 18px 24px; }
  .bjs-hero-overlay-title h1 { font-size: 1.6rem; }
  .bjs-hero-choices { grid-template-columns: 1fr; gap: 12px; }
  .bjs-hero-choice { min-height: 62px; padding: 12px 16px; border-radius: 16px; }
  .bjs-hero-choice strong { font-size: 1.05rem; }
}

/* ------------------------------------------- Titre sur photo fixe -- */

/* Ancrage du titre sur la photo fixe des pages services. Le :not() est
   indispensable : sans lui cette règle (3 classes) l'emporte sur le
   .sppb-carousel-inner>.next{position:absolute} de SP Page Builder (2 classes),
   la slide entrante reste dans le flux pendant la transition et le carrousel
   d'accueil double de hauteur — titre et boutons sautaient de 400 et 800 px
   à chaque changement d'image. */
.sppb-carousel-pro .sppb-item.sppb-item-has-bg:not(.next):not(.prev) { position: relative; }

.bjs-hero-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
}

.bjs-hero-title .bjs-hero-brand {
  font-size: 1.2rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: bold;
  color: #fff;
}

.bjs-hero-title h1 {
  font-size: 2.1rem;
  margin: 10px 0 0;
  text-transform: uppercase;
  font-weight: bold;
  color: #fff;
}

@media (max-width: 767.98px) {
  .bjs-hero-title .bjs-hero-brand { font-size: 1rem; }
  .bjs-hero-title h1 { font-size: 1.5rem; }
}

/* ---------------------------------------------------- Pastilles ---- */

.bjs-pastilles {
  padding: 70px 0 20px;
}

.bjs-pastilles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.bjs-pastille {
  border: 1px solid var(--bjs-line);
  border-radius: 22px;
  padding: 34px 26px 30px;
  text-align: center;
  background: #fff;
}

.bjs-pastille h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 22px;
  color: var(--bjs-ink);
  text-transform: uppercase;
  font-weight: bold;
}

.bjs-pastille h3 .bjs-amp {
  display: block;
  font-weight: normal;
}

.bjs-pastille p {
  margin: 0;
  font-family: var(--bjs-sans);
  font-variant-caps: small-caps;
  font-size: 0.86rem;
  line-height: 1.75;
  color: #555;
}

.bjs-pastille p + p {
  margin-top: 12px;
}

/* ------------------------------------------------ Galeries projets - */

.bjs-projets {
  padding: 40px 0 70px;
}

.bjs-projet + .bjs-projet {
  margin-top: 64px;
}

.bjs-projet-titre {
  font-size: 1.3rem;
  margin: 0 0 14px;
  color: var(--bjs-ink);
  text-transform: uppercase;
  font-weight: bold;
}

.bjs-strip {
  position: relative;
}

.bjs-strip-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.bjs-strip-track::-webkit-scrollbar { display: none; }

.bjs-strip-item {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  display: block;
  height: 340px;
  overflow: hidden;
  background: #eee;
}

.bjs-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.bjs-strip-item:hover img { transform: scale(1.04); }

.bjs-strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--bjs-ink);
  cursor: pointer;
  padding: 0;
  line-height: 0;
  z-index: 2;
}

.bjs-strip-btn svg { width: 34px; height: 18px; }
.bjs-strip-btn:hover { color: var(--bjs-green); }
.bjs-strip-btn[disabled] { opacity: .25; cursor: default; }
.bjs-strip-prev { left: -52px; }
.bjs-strip-next { right: -52px; }

/* ------------------------------------------------- En savoir plus -- */

.bjs-plus {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--bjs-sans);
  font-size: 0.95rem;
  color: var(--bjs-ink);
}

.bjs-plus-icon {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--bjs-ink);
  border-radius: 50%;
  flex: 0 0 26px;
}

.bjs-plus-icon::before,
.bjs-plus-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--bjs-ink);
  transform: translate(-50%, -50%);
  transition: opacity .2s ease;
}

.bjs-plus-icon::before { width: 12px; height: 1px; }
.bjs-plus-icon::after  { width: 1px; height: 12px; }

.bjs-plus[aria-expanded="true"] .bjs-plus-icon::after { opacity: 0; }
.bjs-plus:hover { color: var(--bjs-green); }
.bjs-plus:hover .bjs-plus-icon { border-color: var(--bjs-green); }
.bjs-plus:hover .bjs-plus-icon::before,
.bjs-plus:hover .bjs-plus-icon::after { background: var(--bjs-green); }

/* display:grid l'emporterait sur le display:none par défaut de [hidden] */
.bjs-fiche[hidden] { display: none; }

.bjs-fiche {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 40px;
  font-family: var(--bjs-sans);
  font-size: 0.9rem;
  max-width: 900px;
}

.bjs-fiche div {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #e6e6e6;
}

.bjs-fiche dt {
  color: #8a8a8a;
  font-weight: normal;
  flex: 0 0 42%;
}

.bjs-fiche dd {
  margin: 0;
  color: var(--bjs-ink);
}

/* ------------------------------------------------------ Responsive - */

/* Les flèches débordent tant que la fenêtre est plus étroite que
   .bjs-wrap (1400 px) + 2×52 px de gouttière : en dessous, on les rentre. */
@media (max-width: 1503.98px) {
  .bjs-strip-prev { left: 4px; }
  .bjs-strip-next { right: 4px; }
  .bjs-strip-btn {
    background: rgba(255, 255, 255, .82);
    border-radius: 50%;
  }
}

@media (max-width: 991.98px) {
  .bjs-pastilles-grid { grid-template-columns: repeat(2, 1fr); }
  .bjs-strip-item { flex-basis: calc((100% - 16px) / 2); height: 280px; }
  .bjs-fiche { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 767.98px) {
  .bjs-wrap { padding: 0 18px; }
  .bjs-pastilles { padding: 44px 0 10px; }
  .bjs-pastilles-grid { grid-template-columns: 1fr; gap: 16px; }
  .bjs-projet + .bjs-projet { margin-top: 46px; }
  .bjs-strip-item { flex-basis: 86%; height: 230px; }
}
