/* Dégradé sur les trois images de la section 'Nos services' */
.card-overlay {
  position: relative;
  overflow: hidden;
}

.card-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      color-mix(in srgb, var(--color-primary) 70%, transparent) 50%,
      transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.card-overlay>* {
  position: relative;
  z-index: 2;
}

/* Style du carousel (en réalité 4 galeries d'images mais full custom) */
#brxe-smaqwb {
  display: flex;
  /* gap: 20px; */
  overflow: hidden;
  position: relative;
}

#brxe-smaqwb .brxe-image-gallery {
  flex: 0 0 calc(25% - 15px);
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 0;
}

#brxe-smaqwb .brxe-image-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      color-mix(in srgb, var(--color-primary) 70%, transparent) 40%,
      transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#brxe-smaqwb .brxe-image-gallery:hover::after {
  opacity: 1;
}

/* Cache tout sauf la 1ère image */
#brxe-smaqwb .brxe-image-gallery .bricks-layout-item:not(:first-child) {
  display: none;
}

#brxe-smaqwb .brxe-image-gallery .bricks-layout-item:first-child {
  margin: 0 !important;
}

#brxe-smaqwb .brxe-image-gallery .bricks-layout-item:first-child img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

#brxe-smaqwb .brxe-image-gallery:hover .bricks-layout-item:first-child img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  pointer-events: none;
}

#brxe-smaqwb .brxe-image-gallery:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gallery-overlay .gallery-title {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 36px;
  font-family: "Tilt Warp", sans-serif;
  margin-bottom: 0px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.gallery-overlay .btn-voir-photos {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid white;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.installations-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  width: 100%;
}

.inst-btn {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 5px solid #1d2b57;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.inst-btn i {
  font-size: 28px;
  color: #1d2b57;
}

.inst-btn:hover {
  background: #E54528;
  border-color: #E54528;
}

.inst-btn:hover i {
  color: white;
}

.inst-scrollbar {
  flex: 1 1 0;
  min-width: 0;
  height: 12px;
  background: #d4d7de;
  border-radius: 999px;
  position: relative;
}

.inst-thumb {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #1d2b57;
  border-radius: 999px;
  transition: transform 0.3s ease;
}

/* Mobile */
@media (max-width: 991px) {
  #brxe-smaqwb .brxe-image-gallery {
    flex: 0 0 100%;
  }
}

/* Pour afficher l'overlay et le bouton en format mobile / tablette */
@media (max-width: 991px) {
  #brxe-smaqwb .brxe-image-gallery::after {
    opacity: 1;
  }

  #brxe-smaqwb .brxe-image-gallery .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

#brxe-zdctxf i {
  transition: color 0.3s ease;
}

#brxe-zdctxf:hover i {
  color: var(--color-secondary);
}

#brxe-fkcdve {
  position: relative;
}

#brxe-wqqkas {
  position: sticky;
  top: 80px;
  z-index: 1;
}

#brxe-vzptpl {
  position: relative;
  z-index: 2;
}

.inst-btn.inst-prev i {
  transform: rotate(90deg);
}

.inst-btn.inst-next i {
  transform: rotate(-90deg);
}

#brxe-gqqihq .btn-fill::after {
  content: "→";
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: right 0.3s ease, opacity 0.3s ease;
}

#brxe-gqqihq .btn-fill:hover::after {
  right: 16px;
  opacity: 1;
}

#brxe-gqqihq .btn-fill:hover {
  padding-right: 56px;
  transition: color 0.3s ease, padding-right 0.3s ease;
}