/* BM Services — surcouche charte (voir doc/concept_site.md) */
:root {
  --bm-primary: #190A71;
  --bm-accent: #CF5725;
  --bm-white: #FFFFFF;
}

a.last_list_atag:hover {
  color: var(--bm-white) !important;
}

/*
 * CTAs : couleurs BM (taille / flex définis plus bas).
 */
.get_started.button1,
.get_started.button2 {
  color: var(--bm-white) !important;
  background-color: var(--bm-accent) !important;
  background-image: none !important;
  border: 2px solid var(--bm-accent) !important;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
}

.get_started.button1:hover,
.get_started.button2:hover {
  color: var(--bm-white) !important;
  background-color: var(--bm-primary) !important;
  border-color: var(--bm-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.dropdown-item:hover {
  color: var(--bm-accent) !important;
}

.bm-accent-link {
  color: var(--bm-accent) !important;
  font-weight: 600;
}

/* CTAs hero / bandeaux : côte à côte, espacement */
.bm-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
}

.bm-cta-group .get_started {
  margin-bottom: 0;
}

.bm-cta-group.justify-content-center {
  justify-content: center;
}

/* Bandeaux CTA (.bm-gradient-section) : fond blanc, texte noir (CTA orange inchangés) */
.bm-gradient-section h1,
.bm-gradient-section h2,
.bm-gradient-section h3,
.bm-gradient-section h4,
.bm-gradient-section h5,
.bm-gradient-section h6,
.bm-gradient-section p,
.bm-gradient-section li,
.bm-gradient-section .text-size-16,
.bm-gradient-section .text-size-18 {
  color: #000000 !important;
}

.bm-gradient-section {
  background: #ffffff !important;
}

/* Liens hors boutons CTA, si présents */
.bm-gradient-section a:not(.get_started) {
  color: #000000 !important;
}

.bm-gradient-section--accent {
  background: #ffffff !important;
}

.bm-gradient-section--accent h1,
.bm-gradient-section--accent h2,
.bm-gradient-section--accent h3,
.bm-gradient-section--accent p,
.bm-gradient-section--accent .text-size-18 {
  color: #000000 !important;
}

.bm-gradient-section--accent a:not(.get_started) {
  color: #000000 !important;
}

/* ========== Vitrine : pas de scroll horizontal parasite ========== */
body.bm-vitrine {
  overflow-x: hidden;
}

/* ========== Hero : titres et chapô plus compacts ========== */
.banner_outer .banner-section .banner_content.bm-hero .bm-hero-kicker {
  font-size: 12px !important;
  letter-spacing: 0.14em !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}

.banner_outer .banner-section .banner_content.bm-hero .bm-hero-title {
  font-size: clamp(1.4rem, 4vw, 2.1rem) !important;
  line-height: 1.22 !important;
  margin-bottom: 12px !important;
  font-weight: 700 !important;
}

.banner_outer .banner-section .banner_content.bm-hero .bm-hero-lead {
  font-size: clamp(0.9rem, 2.6vw, 1.05rem) !important;
  line-height: 1.55 !important;
  margin-bottom: 16px !important;
  font-weight: 400 !important;
}

/* ========== CTAs : taille réduite + icônes alignées ========== */
.get_started.button1,
.get_started.button2 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 16px !important;
  line-height: 1.35 !important;
  padding: 11px 18px 11px 20px !important;
  border-radius: 24px !important;
}

.get_started .bm-cta-icon {
  font-size: 1.05em;
  margin-right: 2px;
  flex-shrink: 0;
}

.get_started.button1 figure,
.get_started.button2 figure {
  margin-left: 8px !important;
}

.get_started.button1 figure img,
.get_started.button2 figure img {
  max-height: 14px;
  width: auto;
}

/* Bouton formulaire (contact) désactivé */
.subscribe_now.bm-btn-disabled,
button.bm-btn-disabled {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px !important;
  padding: 11px 20px !important;
  border-radius: 24px !important;
  background-color: rgba(25, 10, 113, 0.45) !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  width: 100%;
  max-width: 100%;
}

/* ========== Mobile : lisibilité et zones tactiles ========== */
@media (max-width: 991.98px) {
  .banner_outer .banner-section .banner_content.bm-hero .bm-hero-title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
  }

  .banner_outer .banner-section .banner_wrapper .banner-image img {
    max-height: 320px;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 767.98px) {
  .bm-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .bm-cta-group .get_started.button1,
  .bm-cta-group .get_started.button2 {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .bm-gradient-section .get_started.button1,
  .bm-gradient-section .get_started.button2,
  .bm-gradient-section--accent .get_started.button1,
  .bm-gradient-section--accent .get_started.button2 {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
  }

  .banner_outer .banner-section .banner_content {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .banner_outer .banner-section .banner_content.bm-hero .bm-hero-lead {
    margin-bottom: 14px !important;
  }

  /* Sous-bannières pages intérieures */
  .sub-banner .banner-section .banner_content h1 {
    font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
    line-height: 1.25 !important;
  }

  .footer-section .first-column a[href^="mailto:"] {
    word-break: break-word;
  }

  .navbar-toggler {
    min-width: 48px;
    min-height: 44px;
    padding: 10px 12px;
  }

  .footer-section .icons .get_started.button1 {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
  }

  .sub-banner .main-header .navbar-collapse {
    max-height: 75vh;
    overflow-y: auto;
  }

  /* CTAs centrés en tête de page service */
  .text-center > .get_started.d-inline-block {
    display: inline-flex !important;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
  }

}

/*
 * Coordonnées sous le logo (bloc .lower) : masqué sur toute la vitrine.
 * body.bm-vitrine = toutes les pages qui chargent site_views/header.php (Site/*).
 */
body.bm-vitrine .footer-section .lower {
  visibility: hidden !important;
}

/* Colonne CTA « Un projet ? » : retrait à gauche sur grand écran */
@media (min-width: 992px) {
  .bm-footer-cta-col {
    padding-left: 2rem;
  }
}

@media (max-width: 575.98px) {
  .get_started.button1,
  .get_started.button2 {
    font-size: 15px !important;
    padding: 10px 14px 10px 16px !important;
  }

  .banner_outer .banner-section .banner_content.bm-hero .bm-hero-title {
    font-size: 1.3rem !important;
  }

  .banner_outer .banner-section .banner_content.bm-hero .bm-hero-lead {
    font-size: 0.95rem !important;
  }

  section.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ========== Galeries « réalisations » (pages services) ========== */
.bm-showcase-section .bm-showcase-lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.bm-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .bm-showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .bm-showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.1rem;
  }
}

.bm-showcase-grid .bm-showcase-item {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(25, 10, 113, 0.12);
  outline: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 1;
  background: #f0f0f5;
}

.bm-showcase-grid .bm-showcase-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(25, 10, 113, 0.2);
}

.bm-showcase-grid .bm-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-showcase-grid .bm-showcase-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.bm-pillar-shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(25, 10, 113, 0.1);
  aspect-ratio: 4 / 3;
  background: #e8e8ef;
}

.bm-pillar-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-showcase-split-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(25, 10, 113, 0.14);
}

.bm-showcase-split-img img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.bm-showcase-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .bm-showcase-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bm-showcase-strip .bm-strip-cell {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 22px rgba(25, 10, 113, 0.11);
  background: #e8e8ef;
}

.bm-showcase-strip .bm-strip-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-solution-card-img {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8e8ef;
}

.bm-solution-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-solution-card-body {
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 22px rgba(25, 10, 113, 0.08);
  height: 100%;
}

.bm-panneaux-hero-grid {
  display: grid;
  grid-template-columns: 250px;
  gap: 0.85rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  justify-items: center;
}

@media (min-width: 576px) {
  .bm-panneaux-hero-grid {
    grid-template-columns: repeat(2, 250px);
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .bm-panneaux-hero-grid {
    grid-template-columns: repeat(3, 250px);
    gap: 1rem;
  }
}

.bm-panneaux-hero-grid .bm-showcase-item {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(25, 10, 113, 0.12);
  outline: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 250px;
  height: 250px;
  aspect-ratio: 1;
  background: #f0f0f5;
}

.bm-panneaux-hero-grid .bm-showcase-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(25, 10, 113, 0.2);
}

.bm-panneaux-hero-grid .bm-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bm-panneaux-hero-grid .bm-showcase-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* ========== Service cards (home) : texte lisible au hover ========== */
.service-section .service_contentbox .service-box.box-mb:hover {
  background-image: none !important;
  background-color: #ffffff !important;
}

.service-section .service-box.box-mb:hover h4,
.service-section .service-box.box-mb:hover p {
  color: #000000 !important;
}

/* ========== Modale images (Magnific Popup) : overlay + bouton fermer ========== */
.mfp-bg {
  background: rgba(0, 0, 0, 0.88) !important;
  opacity: 1 !important;
}

.mfp-wrap .mfp-content {
  filter: drop-shadow(0 18px 55px rgba(0, 0, 0, 0.55));
}

.mfp-close {
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: 34px !important;
  line-height: 40px !important;
  width: 44px !important;
  height: 44px !important;
  text-align: center !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  top: -52px !important;
  right: 0 !important;
}

.mfp-close:hover,
.mfp-close:focus {
  background: rgba(0, 0, 0, 0.75) !important;
  outline: none !important;
}

/* ========== Sous-bannière page Location panneaux ========== */
.sub-banner.sub-bannerpanneau::after {
  background-image: url('../images/sub-bannerbackgroundpanneau.webp') !important;
}

.sub-banner.sub-bannerfournitures::after {
  background-image: url('../images/fournituresminieres/RealisationFournitureMiniere1.jpeg') !important;
  background-position: center !important;
  background-size: cover !important;
}

/* ========== Sous-bannière page Design & impression ========== */
.sub-banner.sub-bannerimpression::after {
  background-image: url('../images/impressions/RealisationImpression01.jpeg') !important;
  background-position: center !important;
  background-size: cover !important;
}
