/* Box Design 97 - page d'accueil */
.bd97-home {
  --b-blue: #2c4491;
  --b-green: #68a668;
  --b-green-l: #72bb78;
  --b-red: #ca5058;
  --b-text: #777;
  font-family: "Convergence", "Helvetica Neue", Arial, sans-serif;
}
body#index { overflow-x: hidden; }
#index #wrapper { padding-top: 0; }
#index #content-wrapper, #index #main, #index #content { padding: 0; }
#index .page-home { margin-bottom: 0; }

/* Sections pleine largeur (sortent du conteneur) */
.bd97-fullwidth {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
}

/* ---------- Slider ---------- */
.bd97-slider {
  height: var(--bd97-h, 520px);
  overflow: hidden;
  background: #222;
}
.bd97-slides, .bd97-slide { position: absolute; inset: 0; }
.bd97-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bd97-slide.is-active { opacity: 1; z-index: 1; }
.bd97-slide-caption { text-align: center; padding: 0 70px; max-width: 1100px; position: relative; z-index: 2; pointer-events: none; }
.bd97-slide-link { position: absolute; inset: 0; z-index: 1; }
.bd97-slide-title {
  color: #fff;
  font-size: 1.9rem;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
  margin: 0 0 .75rem;
  font-weight: 700;
}
.bd97-slide-sub {
  color: #fff;
  font-size: 1.15rem;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
  margin: 0 0 .5rem;
  font-weight: 700;
}
.bd97-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 52px;
  border: 0;
  border-radius: 3px;
  background: rgba(44, 68, 145, .75);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.bd97-arrow:hover { background: var(--b-green); }
.bd97-prev { left: 8px; }
.bd97-next { right: 8px; }
.bd97-dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.bd97-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.bd97-dot.is-active { background: var(--b-blue); }

/* ---------- Qui sommes-nous ---------- */
.bd97-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1050px;
  margin: 70px auto 80px;
  padding: 0 15px;
}
.bd97-about-card {
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
  padding: 2.5rem 2.25rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.bd97-about-card h2 {
  color: var(--b-blue);
  font-size: 1.6rem;
  text-transform: none;
  margin-bottom: 1.25rem;
}
.bd97-about-card p { color: var(--b-text); font-size: .95rem; line-height: 1.65; margin-bottom: .75rem; }
.bd97-about-image {
  margin-left: -10px;
  border: 6px solid var(--b-blue);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
}
.bd97-about-image img { display: block; width: 100%; height: auto; }
.bd97-btn {
  margin-top: 1.25rem;
  padding: .7rem 1.6rem;
  font-size: .8rem;
}

/* ---------- Produits importants ---------- */
.bd97-parallax {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 50px 0;
}
.bd97-featured {
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .3);
}
.bd97-featured-head {
  background: var(--b-blue);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  padding: .55rem;
  font-size: .95rem;
}
.bd97-badge {
  display: inline-block;
  background: var(--b-red);
  color: #fff;
  font-size: .65rem;
  padding: .15rem .4rem;
  margin-left: .35rem;
  vertical-align: middle;
}
.bd97-featured-body {
  display: grid;
  grid-template-columns: 26% 1fr;
}
.bd97-featured-side { background-size: cover; background-position: center; min-height: 360px; }
.bd97-featured-body.bd97-no-side { grid-template-columns: 1fr; }

/* ---------- Carrousels ---------- */
.bd97-carousel { position: relative; padding: 18px 44px; min-width: 0; }
.bd97-featured-body > * { min-width: 0; }
.bd97-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.bd97-carousel-track::-webkit-scrollbar { display: none; }
.bd97-carousel-track > * {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}
.bd97-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 46px;
  border: 0;
  background: var(--b-green);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  opacity: .9;
}
.bd97-carousel-btn:hover { opacity: 1; background: var(--b-blue); }
.bd97-carousel-prev { left: 6px; }
.bd97-carousel-next { right: 6px; }

/* Carte produit */
.bd97-card {
  background: #fff;
  border: 2px solid rgba(104, 166, 104, .55);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.bd97-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  padding: 10px;
  background: #fff;
}
.bd97-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bd97-card a, .bd97-card a:hover { text-decoration: none; }
.bd97-card-name {
  display: block;
  color: #000;
  font-size: .78rem;
  text-transform: uppercase;
  padding: .75rem .75rem .5rem;
  min-height: 3.6em;
}
.bd97-card-name:hover { color: var(--b-green); text-decoration: none; }
.bd97-card-btn {
  display: block;
  margin: auto .75rem .75rem;
  background: var(--b-blue);
  color: #fff;
  padding: .55rem;
  font-size: .82rem;
}
.bd97-card-btn:hover, .bd97-card-btn:focus { background: var(--b-green); color: #fff; text-decoration: none; }
.bd97-card-green .bd97-card-btn { background: var(--b-green-dark, #5c9370); }
.bd97-card-green .bd97-card-btn:hover { background: var(--b-blue); }
.bd97-card-green { border-color: var(--b-green); }

/* ---------- Services ---------- */
.bd97-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  padding: 60px 15px;
  max-width: 1100px;
  box-shadow: 0 8px 12px -10px rgba(0, 0, 0, .25);
}
.bd97-service {
  text-align: center;
  padding: 0 1.75rem;
  border-left: 1px solid #e6e6e6;
}
.bd97-service:first-child { border-left: 0; }
.bd97-services-1 { grid-template-columns: 1fr; }
.bd97-services-2 { grid-template-columns: repeat(2, 1fr); }
.bd97-service-link, .bd97-service-link:hover { color: inherit; text-decoration: none; }
.bd97-service-link:hover h3 { color: var(--b-green); }
.bd97-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.bd97-circle img { max-width: 100%; max-height: 100%; }
.bd97-service h3 { color: #000; font-size: 1rem; text-transform: none; margin-bottom: .6rem; }
.bd97-service p { color: var(--b-text); font-size: .88rem; line-height: 1.55; }

/* ---------- Onglets produits ---------- */
.bd97-tabs-section {
  background: linear-gradient(172deg, #fff 0 36%, var(--b-blue) 36% 100%);
  padding: 50px 0 60px;
  margin-top: 30px;
}
.bd97-tabs-nav { display: flex; justify-content: center; margin-bottom: 26px; }
.bd97-tab {
  border: 2px solid var(--b-blue);
  background: #fff;
  color: #666;
  text-transform: uppercase;
  font-size: .8rem;
  padding: .45rem 1rem;
  cursor: pointer;
  font-family: inherit;
}
.bd97-tab + .bd97-tab { border-left: 0; }
.bd97-tab.is-active { background: var(--b-blue); color: #fff; }
.bd97-tab-panel { display: none; }
.bd97-tab-panel.is-active { display: block; }

/* ---------- Partenaires ---------- */
.bd97-partners { padding: 60px 0 40px; }
.bd97-section-title {
  text-align: center;
  color: #000;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.bd97-carousel-logos .bd97-carousel-track > * { flex-basis: calc((100% - 60px) / 4); }
.bd97-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #fff;
}
.bd97-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Texte SEO : en bas de l'accueil, petit texte repliable ---------- */
.bd97-seo { background: #f6f7f9; border-top: 1px solid #e6e8ee; padding: 28px 15px 22px; }
.bd97-seo-inner { max-width: 1170px; margin: 0 auto; color: #6b6b6b; line-height: 1.6; font-size: 13px; }
.bd97-seo-h1 { color: var(--b-blue); font-size: 1.05rem; text-align: left; text-transform: none; margin: 0 0 .6rem; }
.bd97-seo-text { position: relative; overflow: hidden; transition: max-height .35s ease; }
.bd97-seo-text h2 { color: var(--b-blue); font-size: .95rem; margin: 1rem 0 .35rem; text-transform: none; }
.bd97-seo-text h3 { color: #444; font-size: .88rem; margin: .8rem 0 .3rem; text-transform: none; }
.bd97-seo-text p, .bd97-seo-text li { margin-bottom: .45rem; font-size: 13px; color: #6b6b6b; }
.bd97-seo.is-collapsed .bd97-seo-text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
  background: linear-gradient(rgba(246, 247, 249, 0), #f6f7f9);
  pointer-events: none;
}
.bd97-seo-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .6rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--b-blue); font-family: inherit; font-size: 13px; text-transform: uppercase;
}
.bd97-seo-toggle:hover, .bd97-seo-toggle:focus { color: var(--b-green); outline: none; }
.bd97-seo-sign {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--b-blue); color: #fff; font-size: 15px; line-height: 1;
}
.bd97-seo-toggle:hover .bd97-seo-sign { background: var(--b-green); }

/* ---------- Carte + coordonnées ---------- */
.bd97-contact-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: #cfe3f2;
}
.bd97-map { overflow: hidden; position: relative; }
.bd97-map img { position: absolute; inset: 0; }
.bd97-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd97-contact-panel { background-size: cover; background-position: center; display: flex; }
.bd97-contact-panel > .bd97-contact-overlay { flex: 1; }
.bd97-contact-overlay {
  background: rgba(44, 68, 145, .82);
  color: #fff;
  padding: 2rem 2.5rem;
  text-align: center;
  font-size: .9rem;
}
.bd97-contact-overlay h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
  margin: .75rem 0 .5rem;
}
.bd97-contact-overlay p { color: #fff; margin-bottom: .6rem; line-height: 1.6; }
.bd97-contact-overlay a { color: #fff; text-decoration: underline; }
.bd97-contact-overlay a:hover { color: var(--b-green-l); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .bd97-slider { height: min(var(--bd97-h, 520px), 380px); }
  .bd97-slide-title { font-size: 1.35rem; }
  .bd97-slide-sub { font-size: .95rem; }
  .bd97-carousel-track > * { flex-basis: calc((100% - 20px) / 2); }
  .bd97-carousel-logos .bd97-carousel-track > * { flex-basis: calc((100% - 40px) / 3); }
  .bd97-featured-body { grid-template-columns: 1fr; }
  .bd97-featured-side { display: none; }
}
@media (max-width: 767px) {
  .bd97-slider { height: min(var(--bd97-h, 520px), 300px); }
  .bd97-slide-caption { padding: 0 48px; }
  .bd97-slide-title { font-size: 1.1rem; }
  .bd97-slide-sub { font-size: .8rem; }
  .bd97-about { grid-template-columns: 1fr; margin: 40px auto; }
  .bd97-about-image { margin: 20px 0 0; }
  .bd97-parallax { background-attachment: scroll; }
  .bd97-carousel-track > * { flex-basis: 100%; }
  .bd97-carousel-logos .bd97-carousel-track > * { flex-basis: calc((100% - 20px) / 2); }
  .bd97-services { grid-template-columns: 1fr; gap: 2rem; }
  .bd97-service { border-left: 0; }
  .bd97-contact-map { grid-template-columns: 1fr; }
  .bd97-tabs-section { background: linear-gradient(180deg, #fff 0 18%, var(--b-blue) 18% 100%); }
}

/* ---------- Formulaire de devis ---------- */
.bd97-devis-intro { text-align: center; margin-bottom: 1.5rem; color: #555; }
.bd97-devis-intro strong { color: #2c4491; }
.bd97-devis-form { max-width: 820px; margin: 0 auto; }
.bd97-devis-form .bd97-needs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem 1rem; }
.bd97-devis-form .bd97-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
.bd97-devis-form label { font-weight: 600; color: #333; }
.bd97-devis-form .bd97-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bd97-devis-form .btn-primary { min-width: 200px; }
@media (max-width: 767px) {
  .bd97-devis-form .bd97-needs, .bd97-devis-form .bd97-grid { grid-template-columns: 1fr; }
}

/* Boutons WhatsApp (pied de page) */
.bd97-whatsapp { display: flex; flex-direction: column; gap: .4rem; align-items: center; margin-top: .9rem; }
.bd97-whatsapp a { display: inline-flex; align-items: center; gap: .4rem; background: #25d366; color: #fff; padding: .35rem .8rem; border-radius: 20px; font-size: .8rem; }
.bd97-whatsapp a:hover { background: #1ebe5a; color: #fff; text-decoration: none; }
.bd97-whatsapp-row { flex-direction: row; justify-content: center; flex-wrap: wrap; }
