/* =====================================================
   brico_home — Styles homepage refonte 2025
   Palette : blue #0B2B4A · orange #F07A1F · teal #4DD0C9
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,700;0,900;1,400;1,700&family=Inter:wght@400;500;600;700&family=Inter+Tight:ital,wght@0,500;0,600;0,700;1,500;1,600&family=JetBrains+Mono:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&display=swap');

/* ----- Variables ----- */
:root {
  --bh-blue:       #0B2B4A;
  --bh-blue-soft:  #143659;
  --bh-orange:     #F07A1F;
  --bh-orange-soft:#FFF1E5;
  --bh-teal:       #61d0c4;
  --bh-teal-dark:  #1FB5AE;
  --bh-teal-soft:  #E8FAF8;
  --bh-ink:        #1a1d22;
  --bh-graphite:   #3d434d;
  --bh-muted:      #6b7280;
  --bh-muted-soft: #9aa3af;
  --bh-line:       #e6e8ec;
  --bh-cream:      #fafaf7;
  --bh-soft:       #f5f6f8;
  --bh-white:      #ffffff;
}

#index .hidden {
  display: none !important;
}

/* Empêche le débordement horizontal causé par les blocs full-width (calc -50vw+50%) */
body#index {
  overflow-x: hidden;
}

#index .page-home {
  padding-right: 4px;
}

/* ----- Base helpers ----- */
#index .bh-hero,
#index .bh-reassure,
#index .bh-numbers,
#index .bh-reasons,
#index .bh-qualirepar,
#index .bh-newsletter {
  box-sizing: border-box;
}

#index .bh-hero *,
#index .bh-reassure *,
#index .bh-numbers *,
#index .bh-reasons *,
#index .bh-qualirepar *,
#index .bh-newsletter * {
  box-sizing: border-box;
}

.bh-container {
  max-width: 1110px;
  margin: 0 auto;
}

.bh-orange { font-size: 26px; color: var(--bh-orange); }
.bh-orange-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; color: var(--bh-orange); font-weight: 600; }
.bh-teal { color: var(--bh-teal); }
.bh-muted { color: var(--bh-muted); }

.bh-section-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 34px;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bh-blue);
}

.bh-section-desc {
  font-size: 14.5px;
  color: var(--bh-graphite);
  margin-top: 14px;
  line-height: 1.55;
}

.bh-section-sub {
  font-size: 14.5px;
  color: var(--bh-muted);
  margin: 8px 0 0;
  max-width: 620px;
  line-height: 1.5;
}

/* ----- Icons ----- */
.bh-icon {
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.bh-icon--teal  {
  width: 44px;
  height: 44px;
}
.bh-icon--teal-dark { background: rgba(77,208,201,.15); width: 40px; height: 40px; margin-bottom: 14px; }
.bh-icon--orange { background: var(--bh-orange-soft); width: 40px; height: 40px; }
.bh-icon--sm { width: 36px; height: 36px; }

/* ----- Buttons ----- */
.bh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  transition: filter .15s;
  text-decoration: none;
}
.bh-btn:hover { filter: brightness(1.06); }

.bh-btn--orange { background: var(--bh-orange); color: #fff; padding: 13px 22px; font-size: 15px; }
.bh-btn--dark   { background: var(--bh-blue); color: #fff; padding: 12px 20px; font-size: 14.5px; }
.bh-btn--outline { background: transparent; color: var(--bh-blue); border: 1.5px solid var(--bh-blue); padding: 12px 20px; font-size: 14.5px; }
.bh-btn--teal {
  background: var(--bh-teal);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
}
.bh-btn--sm     { padding: 10px 16px; font-size: 13px; border-radius: 8px; }
.bh-btn--lg {
  padding: 15px 26px;
  font-size: 16px;
  color: #fff;
  background: #103152;
  text-transform: uppercase;
}
.bh-btn--lg:hover {
  background: #275380;
}

/* ----- Nav buttons (hero) ----- */
.bh-nav-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--bh-line);
  background: var(--bh-white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s;
}
.bh-nav-btn--active {
  border-color: var(--bh-blue);
  background: var(--bh-blue);
}

/* =====================================================
   HERO
   ===================================================== */
.bh-hero {
  border-bottom: 1px solid var(--bh-line);
}

.bh-hero__grid {
  padding: 4px 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- Éditorial (colonne gauche) ---- */
.bh-hero__editorial {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 4px 4px 10px 4px rgba(0, 0, 0, 0.08);
}

.bh-hero__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bh-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  color: var(--bh-graphite);
  width: fit-content;
  margin-bottom: 12px;
}

/* Carte conseillère (flottante top-right) */
.bh-hero__advisor {
position: absolute;
    top: -18px;
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    box-shadow: 0 12px 32px -10px rgba(11, 43, 74, .18);
    transform: rotate(5deg);
    z-index: 2;
}

.bh-hero__advisor-img {
  height: 110px;
  background-image: url(../img/etienne.png);
  background-color: #ede8e0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.bh-hero__advisor-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(210,200,185,0) 0px,   rgba(210,200,185,0) 12px,
    rgba(190,182,168,.55) 12px, rgba(190,182,168,.55) 13px
  );
}

.bh-hero__advisor-info {
  padding: 10px 12px 13px;
}

.bh-hero__advisor-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bh-ink);
  margin-top: 4px;
}

.bh-hero__advisor-quote {
  font-size: 11.5px;
  color: var(--bh-muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Titre éditorial */
.bh-hero__title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(28px, 1.5vw, 25px);
  font-weight: 900;
  font-style: normal;
  line-height: 0.7;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  max-width: 100%;
}
.bh-hero__title span:nth-of-type(1) {
  color: #404040;
}
.bh-hero__title span:nth-of-type(2) {
  font-size: clamp(18px, 1.1vw, 22px);
  color: #ed8626;
}

.bh-hero__title em {
  font-style: italic;
  font-weight: 700;
}

.bh-hero__body {
  position: relative;
  font-size: 14px;
  color: #404040;
  line-height: 1.4;
  max-width: 100%;
  margin: 10px;
  padding: 10px;
}

.bh-hero__left-team {
  position: absolute;
  bottom: -12px;
  left: -12px;
  /*position: relative;
  bottom: -18px;
  left: 30px;
  width: 268px;
  background: #f5efd7;
  border-radius: 14px;
  padding: 2px 4px 4px 4px;
  transform: rotate(-8deg);
  overflow: auto;*/
}
.bh-hero__left-team img {
  width: 270px;
}
.bh-hero__left-team__icon {
  float: left;
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
.bh-hero__left-team__title {
  float: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--bh-ink);
  text-transform: uppercase;
  padding-top: 7px;
}
.bh-hero__left-team__sub {
  float: left;
  font-size: 12.5px;
  color: var(--bh-muted);
}

/* Bouton + mini stats sur la même ligne */
.bh-hero__bottom-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.bh-hero__mini-stats {
  display: flex;
  gap: 24px;
}

.bh-mini-stat__value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--bh-blue);
  line-height: 1;
}

.bh-mini-stat__label {
  font-size: 12.5px;
  color: var(--bh-muted);
  margin-top: 3px;
  text-transform: uppercase;
}

/* ---- Cartes contact (hero left) ---- */
.bh-hero__contacts {
  flex: none;
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bh-contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffeab4;;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(27,26,23,.04);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s, transform .18s;
}
.bh-contact-card:hover {
  box-shadow: 0 8px 24px rgba(27,26,23,.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.bh-hero__contacts .bh-contact-card:nth-child(1) { transform: rotate(2deg); }
.bh-hero__contacts .bh-contact-card:nth-child(2) { transform: rotate(-2deg); }
.bh-hero__contacts .bh-contact-card:nth-child(3) { transform: rotate(2deg); }
.bh-hero__contacts .bh-contact-card:hover { transform: translateY(-2px) rotate(0deg); }

.bh-contact-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  color: #16794F;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bh-contact-card__icon img {
  width: 34px;
}

.bh-contact-card__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--bh-ink);
  text-transform: uppercase;
}

.bh-contact-card__sub {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--bh-muted);
  margin-top: 3px;
}

/* =====================================================
   BLOC DÉTECTION (colonne droite desktop)
   ===================================================== */
.bh-hero__detect {
  border-radius: 10px;
  position: relative;
  min-height: 170px;
  background: radial-gradient(ellipse at 18% 45%, rgba(59, 130, 246, 0.55) 0%, transparent 55%),
              radial-gradient(ellipse at 95% 10%, rgba(77, 208, 201, 0.32) 0%, transparent 85%),
              radial-gradient(ellipse at 90% 90%, rgba(15, 52, 96, 0.7) 0%, transparent 50%),
              linear-gradient(148deg, #0e3875 0%, #081b36 100%);
  overflow: hidden;
}

/* Badge dans le bloc detect */
.bh-hero__detect .bh-hero-badge {
  display: none !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #f07a1f;
  background: #fff;
  border: none;
  border-radius: 0 0 8px 0;
  padding: 5px 9px;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}

/* bpphonedetect desktop : flex standard, visual à gauche du main */
.bh-hero__detect .bppd-card {
  padding: 15px;
  overflow: hidden;
}
.bh-hero__detect .bppd-detect-row {
  margin-top: 4px;
}
.bh-hero__detect .bppd-help-toggle {
  display: block;
  position: static;
  width: auto;
  height: auto;
  padding: 4px 0 0;
  font-size: 12px;
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}
.bh-hero__detect .bppd-help-toggle span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  vertical-align: middle;
}

/* Aide IMEI */
.bh-hero__detect .bppd-help {
  background: #ffeab4;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #404040;
}

/* Textes en blanc sur fond coloré */
.bh-hero__detect #bppd-detect {
  --bppd-blue: #fff;
  --bppd-graphite: rgba(255, 255, 255, 0.85);
  --bppd-mute: rgba(255, 255, 255, 0.65);
  --bppd-ink: #fff;
}
.bh-hero__detect #bppd-detect .bppd-chip {
  color: #0b2b4a;
}
.bh-hero__detect #bppd-detect .bppd-chip--other {
  min-height: auto;
  color: #0b2b4a;
  flex-basis: 100%;
}

/* 3 chips détectés : largeur égale */
.bh-hero__detect #bppd-detect .bppd-chips:not(.bppd-chips--full) .bppd-chip:not(.bppd-chip--other) {
  flex: 1;
  text-align: center;
}

/* Carousel "Autre modèle" */
.bh-hero__detect #bppd-detect .bppd-chips-wrap {
  position: relative;
}
.bh-hero__detect #bppd-detect .bppd-chips--full {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.bh-hero__detect #bppd-detect .bppd-chips--full::-webkit-scrollbar {
  display: none;
}
.bh-hero__detect #bppd-detect .bppd-chips--full .bppd-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.bh-hero__detect #bppd-detect .bppd-scroll-hint {
  position: absolute;
  right: -1px;
  top: -1px;
  bottom: 0;
  width: 36px;
  height: calc(100% + 2px);
  background: linear-gradient(to right, transparent, #0b2b4a 70%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  color: #fff;
  font-size: 20px;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* =====================================================
   BLOC DIAGNOSTIC (mobile uniquement)
   ===================================================== */
.bh-hero__diag {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(ellipse at 82% 45%, rgba(59, 130, 246, 0.55) 0%, transparent 55%),
              radial-gradient(ellipse at 5% 10%, rgba(77, 208, 201, 0.32) 0%, transparent 85%),
              radial-gradient(ellipse at 10% 90%, rgba(15, 52, 96, 0.7) 0%, transparent 50%),
              linear-gradient(32deg, #0e3875 0%, #081b36 100%);
}

.bh-hero__diag .bpdg-accroche {
  background: transparent !important;
  border: none;
  position: relative;
  border-radius: 10px;
}
.bh-hero__diag #bpdg-app {
  max-width: none;
  margin: 0;
}
.bh-hero__diag .bpdg-card {
  margin: 0;
  border-radius: 10px;
  padding: 18px 18px 16px;
}
.bh-hero__diag .bpdg-accroche-title {
  font-size: 19px;
  margin-bottom: 6px;
}
.bh-hero__diag .bpdg-badge {
  margin-bottom: 6px;
}
.bh-hero__diag .bpdg-accroche-sub {
  font-size: 13px;
  margin-bottom: 10px;
}
.bh-hero__diag .bh-hero-badge {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #f07a1f;
  background: #fff;
  border: none;
  border-radius: 0 0 8px 0;
  padding: 5px 9px;
  position: absolute;
  top: 0;
  left: 0;
}


/* =====================================================
   RÉASSURANCE
   ===================================================== */
.bh-reassure {
  background: var(--bh-white);
}

.bh-reassure__grid {
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.bh-reassure__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--bh-line);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(27, 26, 23, .04);
}

.bh-reassure__item .bh-icon img {
  height: 36px;
}

.bh-reassure__label {
  font-weight: 600;
  color: var(--bh-ink);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.bh-reassure__desc {
  font-size: 11.5px;
  color: var(--bh-muted);
  margin-top: 3px;
  line-height: 1.4;
  text-align: center;
}

/* Nav flèches carousel reassure (visible uniquement mobile via JS) */
.bh-reassure-nav {
  display: none;
}

/* =====================================================
   WIDGETS ROW (carousel · model_parts · award)
   ===================================================== */
.bh-hero__widgets {
  display: grid;
  grid-template-columns: 3fr 3fr 2fr;
  gap: 18px;
  padding: 0 0 24px;
  align-items: stretch;
}

.bh-hero__widgets > .bh-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.bh-hero__widgets .bh-card--qualirepar__checks {
  gap: 6px;
  margin: 10px 0 12px;
}

.bh-hero__widgets .bh-card__desc {
  font-size: 12.5px;
  margin-top: 6px;
}

/* ----- Cards génériques ----- */
.bh-card {
  background: var(--bh-white);
  border: 1px solid var(--bh-line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: rgba(11,43,74,.18) 0 10px 30px -20px;
}

.bh-card__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bh-card__title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 19px;
  color: var(--bh-ink);
  font-weight: 700;
}

.bh-card__desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--bh-muted);
  line-height: 1.5;
}

/* ---- IMEI ---- */
.bh-card.bh-card--imei {
  background: #fff2d0cf;
  border: 1px solid #f07a1f;
}
.bh-imei-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  background: #f07a1f;
}

.bh-imei-input {
  margin-top: 16px;
  border: 1.5px solid var(--bh-line);
  border-radius: 10px;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  background: #fff;
  transition: border-color .2s;
}

.bh-imei-input--done {
  border-color: #22c55e;
}

.bh-imei-counter {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--bh-muted);
  white-space: nowrap;
  transition: color .2s;
}

.bh-imei-counter--done {
  color: #22c55e;
  font-weight: 600;
}

.bh-imei-input__field {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--bh-ink);
  padding: 10px 0;
}
.bh-imei-input__field::placeholder {
  font-size: 12px;
}

.bh-imei-hint {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--bh-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Carousel (hero card) ---- */
.bh-hero__card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bh-line);
  background: var(--bh-white);
  display: flex;
  flex-direction: column;
}

.bh-hero__badge {
  position: absolute;
  top: 18px; left: 22px;
  z-index: 2;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  color: var(--bh-orange);
  font-weight: 600;
  background: rgba(255,255,255,.92);
  padding: 6px 10px;
  border-radius: 4px;
}

.bh-hero__dots {
  position: absolute;
  top: 18px; right: 22px;
  z-index: 10;
  display: flex;
  gap: 6px;
}

.bh-hero__slides-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bh-hero__slide {
  display: none;
  flex: 1;
  flex-direction: column;
  position: relative;
}

.bh-hero__slide--active {
  display: flex;
  animation: bh-fade-in 0.45s ease forwards;
}

@keyframes bh-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nav prev/next au bas de la carte */
.bh-hero__nav {
  position: absolute;
  bottom: 30px; right: 30px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.bh-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(11,43,74,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width .25s, background .2s;
}
.bh-dot--active {
  width: 24px;
  background: var(--bh-blue);
}

.bh-hero__media {
  position: relative;
  background: var(--bh-white);
  overflow: hidden;
}

.bh-hero__placeholder {
  height: 214px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--bh-line);
  background-color: #e6edf5;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.bh-hero__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, rgb(230 237 245 / 31%) 0px, rgb(230 237 245 / 0%) 10px, rgb(153 188 236 / 18%) 10px, rgba(212, 223, 238, 0.7) 11px);
}

.bh-hero__price-tag {
  position: absolute;
  top: 108px;
  right: 28px;
  background: var(--bh-blue);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  transform: rotate(-3deg);
  box-shadow: rgba(11,43,74,.4) 0 10px 30px -10px;
}

.bh-hero__price-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-top: 4px;
}

.bh-hero__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 30px;
  line-height: 0.8;
  letter-spacing: -.025em;
  color: var(--bh-blue);
  margin: 0;
  font-weight: 700;
}

.bh-hero__subtitle {
  font-size: 14.5px;
  color: var(--bh-graphite);
  line-height: 1.55;
  max-width: 370px;
  margin: 12px 0 0;
}

.bh-hero__title-link,
.bh-hero__subtitle-link {
  text-decoration: none;
  display: block;
}

.bh-hero__title-link:hover .bh-hero__title { color: var(--bh-orange); }
.bh-hero__subtitle-link:hover .bh-hero__subtitle { color: var(--bh-ink); }

/* Colonne aside */
.bh-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Model parts ---- */
.bh-model-parts {
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--bh-line);
  background: var(--bh-soft);
  display: flex;
  flex-direction: column;
  min-width: 0;   /* empêche le grid blowout */
  overflow: hidden;
}

/* Masquer bh-model-parts en mode "choix de modèle" (chips iPhone/iPad) */
.bh-model-parts:has(.bppd-cat-tile) {
  display: none;
}

/* Liste verticale dans bh-model-parts : photo gauche, nom+prix droite */
.bh-model-parts .bppd-carousel {
  width: 100%;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  overflow-y: hidden;   /* hauteur max fixée par JS selon nb tuiles */
  padding-bottom: 0;
  scroll-behavior: smooth;
}
.bh-model-parts .bppd-tile {
  flex: 0 0 auto;
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
}
.bh-model-parts .bppd-tile img,
.bh-model-parts .bppd-tile .bppd-tile-ph {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}
.bh-model-parts .bppd-tile-name {
  flex: 1;
  font-size: 12px;
  line-height: 1.35;
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding-right: 10px;
  color: var(--bppd-ink);   /* texte sombre sur tuile blanche */
}
.bh-model-parts .bppd-tile-price {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--bppd-blue);
}
/* Flèches verticales injectées par JS */
.bh-parts-nav {
  position: absolute;
  display: flex;
  top: 6px;
  right: 16px;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 14px;
}
.bh-parts-nav__btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #626568;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: background 0.2s;
}
.bh-parts-nav__btn:hover { background: rgba(255, 255, 255, 0.28); }
.bh-parts-nav__btn:disabled { opacity: 0.3; cursor: default; }

/* ---- Award ---- */
.bh-card--award {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 !important;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  background: #0d675d;
}
.bh-card--award img {
  max-height: 346px;
  width: auto;
}

.bh-card--award__title {
  font-size: 15px;
  color: var(--bh-blue);
  font-weight: 700;
  margin-top: 2px;
  font-family: 'Inter Tight', sans-serif;
}

.bh-award-badge {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--bh-orange-soft);
  display: grid;
  place-items: center;
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--bh-orange);
  flex-shrink: 0;
}

/* ---- Carte qualirepar compact (widget) ---- */
.bh-card--qualirepar {
  background: var(--bh-teal-soft);
  border-color: rgba(77,208,201,.3);
  display: flex;
  flex-direction: column;
}

.bh-card--qualirepar__checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 16px;
}

.bh-card--qualirepar__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bh-graphite);
  font-weight: 500;
}

/* Carte dark */
.bh-card--dark {
  background: radial-gradient(circle at 100% 0%, #143659 0%, var(--bh-blue) 60%) var(--bh-blue);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border: none;
  box-shadow: none;
}


.bh-card--dark__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.bh-card--dark__sub {
  font-size: 13px;
  color: #b8c4d3;
  margin-top: 8px;
}

.bh-play-btn {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--bh-orange);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: filter .15s;
}
.bh-play-btn:hover { filter: brightness(1.08); }

/* =====================================================
   BANDE TUTOS
   ===================================================== */
.bh-tutos-strip {
  background: radial-gradient(circle at 100% 0%, #143659 0%, var(--bh-blue) 60%) var(--bh-blue);
  margin: 0 0 20px 0;
  border-radius: 10px;
}
.bh-tutos-strip:hover {
  background: radial-gradient(circle at 100% 0%, #346ba2 0%, var(--bh-blue) 60%) var(--bh-blue);
}

.bh-tutos-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 50px 20px 20px;
}

.bh-tutos-strip__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 2px;
}

.bh-tutos-strip__sub {
  font-size: 13px;
  color: #b8c4d3;
  margin-top: 6px;
}

.bh-tutos-strip__devices {
  display: flex;
  align-items: center;
  gap: 50px;
}
.bh-tutos-strip__devices span {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bh-tutos-strip__devices span img {
  height: 40px;
}
.bh-tutos-strip__devices span p {
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    margin: 6px 0 0 0;
}

/* =====================================================
   QUALIREPAR (pleine largeur)
   ===================================================== */
.bh-qualirepar {
  background: var(--bh-teal-soft);
  padding: 28px 24px 20px;
  border-radius: 10px;
  margin: 26px 0;
}

.bh-qualirepar__card {
  display: flex;
  align-items: center;
  gap: 40px;
}

.bh-qualirepar__card > :first-child {
  flex: 1 1 0;
  min-width: 0;
}

.bh-qualirepar__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--bh-blue);
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.bh-qualirepar__desc {
  font-size: 14px;
  color: var(--bh-graphite);
  margin-top: 8px;
  line-height: 1.55;
  max-width: none;
}

.bh-qualirepar__cta {
  flex: none;
}

.bh-check-item {
  background: var(--bh-white);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #f0f2f5;
}

.bh-check-item__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--bh-ink);
}

.bh-check-item__sub {
  font-size: 12.5px;
  color: var(--bh-muted);
  margin-top: 2px;
}

/* =====================================================
   CHIFFRES
   ===================================================== */
.bh-numbers {
  background: var(--bh-cream);
  padding: 40px 0;
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.bh-numbers__grid {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
}


.bh-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bh-line);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bh-line);
  cursor: pointer;
}

.bh-stat {
  background: var(--bh-white);
  padding: 26px 22px;
}

.bh-stat__value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--bh-blue);
  letter-spacing: -.02em;
  line-height: 1;
}

.bh-stat__label {
  font-size: 13px;
  color: var(--bh-muted);
  margin-top: 8px;
}

/* =====================================================
   5 BONNES RAISONS
   ===================================================== */
.bh-reasons {
  background: var(--bh-soft);
  padding: 40px 0;
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.bh-reasons__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.bh-reason {
  background: var(--bh-white);
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.bh-reason:hover {
  box-shadow: 0 8px 24px rgba(11,43,74,.1);
}

.bh-reason__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bh-reason__num {
  font-size: 11px;
  color: var(--bh-muted-soft);
  font-weight: 600;
}

.bh-reason__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  color: var(--bh-blue);
  font-weight: 700;
}

.bh-reason__desc {
  font-size: 13px;
  color: var(--bh-graphite);
  line-height: 1.55;
}

/* =====================================================
   NEWSLETTER
   ===================================================== */
.bh-newsletter {
    background: var(--bh-soft);
    padding: 36px;
    margin: 30px 0 -60px;
    border-radius: 10px;
}

.bh-newsletter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.bh-newsletter__title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  color: var(--bh-blue);
  font-weight: 700;
}

.bh-newsletter__desc {
  font-size: 13px;
  color: var(--bh-muted);
  margin-top: 4px;
}

.bh-newsletter__form {
  display: flex;
  gap: 8px;
  background: var(--bh-white);
  border: 1.5px solid var(--bh-line);
  border-radius: 10px;
  padding: 4px 4px 4px 14px;
  align-items: center;
}

.bh-newsletter__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  padding: 10px 0;
  font-family: inherit;
}

.block_newsletter {
  display: none;
}

/* =====================================================
   CMS SEO ONGLETS
   ===================================================== */
.home_seo_bottom {
  padding-top: 15px;
  box-shadow: 0 8px 24px rgba(11,43,74,.1);
  border-radius: 10px;
  clear: both;
  margin: 40px auto;
  overflow: hidden;
}
.home_seo_bottom .hsb_tabs {
  display: flex;
  z-index: 2;
  justify-content: space-between;
  padding: 0 70px;
}
.home_seo_bottom .hsb_tabs .hsb_tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: #404040;
  padding: 15px;
  border-radius: 10px 10px 0 0;
}
.home_seo_bottom .hsb_tabs .hsb_tab img {
  height: 36px;
}
.home_seo_bottom .hsb_tabs .hsb_tab h3 {
  font-size: 13px;
  text-align: center;
}
.home_seo_bottom .hsb_tabs .hsb_tab.active {
  bottom: -2px;
  background: var(--bh-cream);
  border-left: 2px solid #c1c1c1;
  border-top: 2px solid #c1c1c1;
  border-right: 2px solid #c1c1c1;
}
.home_seo_bottom .hsb_tabs .hsb_tab:not(.active) {
  position: relative;
  top: 6px;
  transition: .5s ease;
}
.home_seo_bottom .hsb_tabs .hsb_tab:not(.active):hover {
  bottom: 0;
  background: var(--bh-cream);
  cursor: pointer;
}
.home_seo_bottom .hsb_tabs .hsb_tab:not(.active):not(:last-child)::after {
  position: absolute;
  content: '';
  top: 20%;
  right: 0;
  width: 1px;
  height: 60%;
  background: #f1f1f1;
}
/*
.home_seo_bottom .hsb_tabs .hsb_tab:first-of-type {
  border-radius: 10px 0 0 0;
}
.home_seo_bottom .hsb_tabs .hsb_tab:last-of-type {
  border-radius: 0 10px 0 0;
}
*/

.home_seo_bottom .hsb_contents {
  padding: 30px;
  background: var(--bh-cream);
  border-top: 2px solid #c1c1c1;
}
.home_seo_bottom .hsb_contents .hsb_content h4 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 36px;
}
.home_seo_bottom .hsb_contents .hsb_content h4::after {
  display: block;
  content: '';
  position: relative;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #61d0c4;
}
.home_seo_bottom .hsb_contents .hsb_content p {
  color: #404040;
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  line-height: 1.6;
}
.home_seo_bottom .hsb_contents .hsb_content ul {
  line-height: 1.2;
}
.home_seo_bottom .hsb_contents .hsb_content ul li {
  position: relative;
  margin: 10px 0 0 0;
  padding-left: 30px;
}
.home_seo_bottom .hsb_contents .hsb_content ul li::before {
  content: '';
  position: absolute;
  display: inline-block;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: url(../../../../img/cms/HOMEPAGE/ICONS/homepage_check.svg);
  background-size: cover;
  margin: -2px 12px 0 0;
  vertical-align: -4px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
  #index .bbs_breadcrumbs {
    display: none;
  }
  .bh-hero__editorial {
    flex-direction: column;
  }
  .bh-reassure__grid { grid-template-columns: repeat(4, 1fr); }
  .bh-reasons__grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .bh-hero__grid      { gap: 16px; padding-bottom: 16px; }
  .bh-hero__editorial { flex-direction: column; align-items: flex-start; }
  .bh-hero__widgets { grid-template-columns: 1fr 1fr; }
  .bh-hero__advisor { width: 160px; }
  .bh-qualirepar__card { flex-direction: column; align-items: flex-start; }
  .bh-numbers__grid { grid-template-columns: 1fr; gap: 32px; }
  .bh-newsletter__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {

  .bh-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }
  .bh-hero__grid {
    order: 1;
    z-index: 2;
    padding: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .bh-hero__editorial {
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .bh-reassure {
    order: 2;
    margin-top: 20px;
  }
  .bh-hero__widgets {
    order: 3;
    grid-template-columns: 1fr;
    padding: 0 0 32px; 
    margin-top: 20px;
  }
  .bh-hero__advisor { position: static; width: auto; float: right; width: 160px; margin: 0 0 12px 16px; }
  .bh-hero__title { font-size: 32px; max-width: 100%; }
  .bh-hero__contacts {
      flex-direction: row;
      width: 100%;
      gap: 12px;
  }
  .bh-contact-card {
    flex-direction: column;
    width: 33%;
    padding: 4px;
  }
  .bh-contact-card__title {
    font-size: 12px;
    text-align: center;
  }
  .bh-contact-card__sub {
      text-align: center;
  }
  .bh-reassure__grid {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 8px;
    padding: 8px 16px 4px;
    margin: 0;
  }
  .bh-reassure__grid::-webkit-scrollbar { display: none; }
  .bh-reassure__item {
    flex: 0 0 calc(33.333% - 6px);
    scroll-snap-align: start;
    min-width: 0;
  }
  .bh-reassure__desc { display: none; }
  .bh-numbers__grid { grid-template-columns: 1fr; }
  .bh-stats { grid-template-columns: repeat(2, 1fr); }
  .bh-qualirepar__title { font-size: 18px; }
  .bh-section-title { font-size: 26px; }

  .bh-hero__detect {
    min-height: 194px;
  }
  /* .bh-hero__diag shown only on phones via its own breakpoint below */
  .bh-hero__detect .bppd-card {
    padding: 15px;
    overflow: hidden;
  }
  .bh-hero__detect .bppd-help {
    position: absolute;
    display: flex;
    inset: 0;
    z-index: 6;
    margin: 0;
    border-radius: 0;
    align-items: center;
    padding: 20px;
    font-size: 16px;
    text-align: center;
  }
  .bh-hero__detect .bppd-help-toggle span {
    color: #404040;
    font-size: 30px;
    vertical-align: middle;
  }
  /* Mobile : visual + help-toggle sur même ligne, detect-main pleine largeur */
  .bh-hero__detect .bppd-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    row-gap: 6px;
  }
  .bh-hero__detect .bppd-detect-row {
    display: contents;
    margin-top: 0;
  }
  .bh-hero__detect .bppd-visual {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 44px;
    min-height: 0;
  }
  .bh-hero__detect .bppd-visual svg {
    max-height: 48px;
    width: 44px;
  }
  .bh-hero__detect .bppd-detect-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bh-hero__detect .bppd-help-toggle {
    z-index: 7;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -26px;
  }
  .bh-hero__detect .bppd-identify,
  .bh-hero__detect .bppd-identify-msg {
    grid-column: 1 / -1;
  }
  .bppd-notmine {
    margin-top: -10px;
  }

  .bh-model-parts {
    order: 1;
  }
  .bppd-card {
    padding: 8px 14px 0;
  }
  .bh-model-parts .bppd-strip-more {
    float: right;
    margin: 6px 0;
  }
  .bh-model-parts .bh-parts-nav {
    display: none;
  }

  /* Carousel horizontal sur mobile */
  .bh-model-parts .bppd-carousel {
    flex-direction: row;
    overflow-x: scroll;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 8px;
    padding: 8px;
    margin-top: 0;
    max-height: none !important;
  }
  .bh-model-parts .bppd-carousel::-webkit-scrollbar { display: none; }
  .bh-model-parts .bppd-tile {
    flex: 0 0 calc(50% - 4px);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px 8px;
    scroll-snap-align: start;
  }
  .bh-model-parts .bppd-tile img,
  .bh-model-parts .bppd-tile .bppd-tile-ph {
    width: 64px;
    height: 64px;
  }
  .bh-model-parts .bppd-tile-name {
    padding-right: 0;
  }
  .bh-hero__card {
    order: 2;
  }
  .bh-card--award {
    order: 3;
  }

  .bh-model-parts .bppd-badge {
    display: none;
  }

  .bh-reassure .bh-reassure__item:nth-child(5) {
    display: flex;
  }

  .bh-card--award img {
    max-height: 180px;
    margin: 10px -8px 10px 0;
  }

  .bh-tutos-strip {
    margin: 0;
  }
  .bh-tutos-strip__inner {
    flex-direction: column;
    padding: 15px;
  }
  .bh-tutos-strip__title {
    font-size: 18px;
  }
  .bh-tutos-strip__devices {
    align-items: flex-start;
    gap: 15px;
    margin-top: -14px;
  }
  .bh-tutos-strip__devices span.tutos_orange_play {
    display: none;
  }
  .bh-tutos-strip__devices span p {
    font-size: 11px;
    text-align: center;
  }

  .bh-numbers {
    padding: 40px 20px;
  }
  .bh-numbers__grid {
    gap: 0;
  }
  .bh-stat__value {
    font-size: 28px;
  }
  .bh-qualirepar__card {
    gap: 0;
  }

  .bh-reasons {
    padding: 20px;
  }
  .bh-reasons .bh-section-title {
    font-size: 20px;
  }
  .bh-reasons__grid { 
    grid-template-columns: 100%;
  }
  .bh-section-sub {
    font-size: 13px; 
  }
  .bh-reasons .bh-reason {
    position: relative;
    padding: 10px 10px 10px 60px;
  }
  .bh-reasons .bh-reason__top {
    position: absolute;
    top: 10px;
    left: 10px;
  }
  .bh-reasons .bh-reason__top .bh-mono {
    display: none;
  }
  .bh-reasons .bh-reason .bh-reason__title {
    margin-bottom: -10px;
  }


  .bh-cms-content {
    margin: 10px auto;
  }
  .home_seo_bottom {
    padding: 0;
  }
  .home_seo_bottom .hsb_tabs {
    flex-direction: column;
    border-bottom: none;
    padding: 0 0 8px 0;
  }
  .home_seo_bottom .hsb_tabs .hsb_tab {
    flex-direction: row;
    top: 0;
    bottom: 0;
    padding: 4px;
  }
  .home_seo_bottom .hsb_tabs .hsb_tab.active,
  .home_seo_bottom .hsb_tabs .hsb_tab:not(.active) {
    top: 0;
    bottom: 0;
    border: none;
  }
  .home_seo_bottom .hsb_tabs .hsb_tab img {
    width: 26px;
    margin-left: 4px;
  }
  .home_seo_bottom .hsb_tabs .hsb_tab h3 {
    font-size: 11px;
    text-align: left;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-left: 10px;
  }

}

@media (max-width: 480px) {
  .bh-hero__diag {
    display: block;
  }
}

