/* ============================================================
   BLACKTINT — TRUST BAR (Social proof sitewide)
   Bandeau de réassurance affiché juste sous le header
   sur toutes les pages du site.
   ============================================================ */

/* Hauteur estimée de la trust bar par breakpoint — utilisée pour
   compenser le body en mode mobile (position: fixed). */
:root {
  --bt-trustbar-height: 44px;
}

.bt-trustbar {
  background: linear-gradient(90deg, #1A1A1A 0%, #2a2a2a 50%, #1A1A1A 100%);
  border-top: 1px solid rgba(243, 146, 0, 0.25);
  border-bottom: 2px solid #F39200;
  padding: 10px 16px;
  position: relative;
  z-index: 50;
  overflow: hidden;
}

.bt-trustbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.bt-trustbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.bt-trustbar__stars {
  display: inline-flex;
  gap: 2px;
  color: #F39200;
  font-size: 15px;
  letter-spacing: 1px;
}

.bt-trustbar__rating {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #FFFFFF;
}

.bt-trustbar__rating strong {
  color: #F39200;
  font-size: 18px;
}

.bt-trustbar__separator {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.bt-trustbar__count {
  color: #FFFFFF;
  font-weight: 600;
}

.bt-trustbar__count strong {
  color: #F39200;
  font-weight: 800;
}

.bt-trustbar__google {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(243, 146, 0, 0.4);
  border-radius: 20px;
  transition: all 0.25s ease;
  font-size: 13px;
  font-weight: 600;
}

.bt-trustbar__google i {
  color: #4285F4; /* Google blue */
  background: #FFFFFF;
  padding: 3px;
  border-radius: 50%;
  font-size: 11px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bt-trustbar__google:hover {
  background: #F39200;
  border-color: #F39200;
  color: #1A1A1A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243, 146, 0, 0.35);
}

.bt-trustbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.bt-trustbar__badge i {
  color: #F39200;
}

/* ============ RESPONSIVE ============
   NB : à partir de 1024px, le sidebar `.site-header` est masqué
   (translateX -100%) et seul `.header-top` (position: fixed) reste
   au sommet. On ancre alors la trust bar juste dessous, en fixed,
   pour garantir sa visibilité constante (réassurance permanente).
   Le body reçoit un padding-top compensatoire dans le même bloc. */

@media (max-width: 1024px) {
  /* Trust bar en position fixe, ancrée sous le header-top */
  .bt-trustbar {
    position: fixed;
    top: var(--bt-topbar-height);
    left: 0;
    right: 0;
    z-index: 1000; /* sous .header-top (1001) et .menu-toggle (1100),
                      mais au-dessus du contenu de la page */
  }
  /* Compensation du body : le contenu doit être décalé de la hauteur
     de la topbar + de la trust bar pour ne pas passer dessous */
  body {
    padding-top: calc(var(--bt-topbar-height) + var(--bt-trustbar-height));
  }
  /* Le bouton burger orange doit se replacer sous la trust bar,
     sinon il chevauche le nouveau bandeau fixe */
  .menu-toggle {
    top: calc(var(--bt-topbar-height) + var(--bt-trustbar-height) + 12px);
  }
}

@media (max-width: 768px) {
  :root {
    --bt-trustbar-height: 40px;
    /* En mobile, le header-top s'affiche sur 2 lignes (horaires puis
       téléphone+email) ⇒ sa hauteur réelle est ~64px et non les 38-44px
       déclarés dans style.css. On corrige la variable ici pour que la
       trust bar en position fixed vienne se caler juste dessous. */
    --bt-topbar-height: 64px;
  }
  .bt-trustbar {
    padding: 8px 12px;
  }
  .bt-trustbar__inner {
    gap: 10px;
    font-size: 13px;
  }
  .bt-trustbar__rating {
    font-size: 15px;
  }
  .bt-trustbar__rating strong {
    font-size: 16px;
  }
  .bt-trustbar__stars {
    font-size: 14px;
  }
  .bt-trustbar__separator {
    display: none;
  }
  .bt-trustbar__badge {
    display: none; /* On masque le badge secondaire sur mobile pour éviter la surcharge */
  }
  .bt-trustbar__google {
    padding: 4px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --bt-trustbar-height: 38px;
    --bt-topbar-height: 62px; /* même logique 2 lignes sur mobile étroit */
  }
  .bt-trustbar {
    padding: 7px 8px;
  }
  .bt-trustbar__inner {
    gap: 8px;
    font-size: 12px;
    justify-content: center; /* Centré pour éviter la troncature du bouton à droite */
    flex-wrap: nowrap; /* Une seule ligne compacte */
  }
  .bt-trustbar__count {
    font-size: 12px;
  }
  .bt-trustbar__rating {
    font-size: 14px;
  }
  .bt-trustbar__rating strong {
    font-size: 15px;
  }
  .bt-trustbar__stars {
    font-size: 12px;
    letter-spacing: 0;
  }
  .bt-trustbar__google {
    padding: 3px 8px;
    font-size: 11px;
  }
  .bt-trustbar__google i {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  /* Sur mobile étroit, on abrège le libellé du compteur en masquant
     le suffixe « Google vérifiés » — le logo Google est déjà présent
     dans le chip à droite, l'info reste donc lisible. */
  .bt-trustbar__count {
    font-size: 12px;
    white-space: nowrap;
  }
  .bt-trustbar__count-long {
    display: none;
  }
}

/* ============================================================
   GOOGLE REVIEWS BLOCK — Bloc note prominent (homepage)
   Affiché en tête de la section témoignages sur l'accueil.
   ============================================================ */

.google-reviews-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border: 1px solid rgba(243, 146, 0, 0.2);
  border-radius: 20px;
  padding: 32px 40px;
  margin: 0 auto 48px auto;
  max-width: 900px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(243, 146, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* Petit accent doré en haut à gauche */
.google-reviews-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #F39200 0%, #FFC65C 50%, #F39200 100%);
}

.google-reviews-block__rating {
  text-align: center;
  min-width: 140px;
}

.google-reviews-block__score {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: #1A1A1A;
  line-height: 1;
  letter-spacing: -1px;
}

.google-reviews-block__score-max {
  font-size: 24px;
  color: #999;
  font-weight: 600;
  margin-left: 4px;
}

.google-reviews-block__stars {
  color: #F39200;
  font-size: 22px;
  letter-spacing: 3px;
  margin: 8px 0 4px 0;
}

.google-reviews-block__label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.google-reviews-block__divider {
  width: 1px;
  height: 90px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}

.google-reviews-block__count {
  text-align: center;
  min-width: 160px;
}

.google-reviews-block__count-number {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: #F39200;
  line-height: 1;
  letter-spacing: -1px;
}

.google-reviews-block__count-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.google-reviews-block__count-label i {
  color: #4285F4;
  font-size: 16px;
}

.google-reviews-block__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.google-reviews-block__trust {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.google-reviews-block__trust i {
  color: #4CAF50;
}

/* ============ RESPONSIVE Google Reviews Block ============ */
@media (max-width: 768px) {
  .google-reviews-block {
    gap: 20px;
    padding: 24px 20px;
    margin-bottom: 32px;
  }
  .google-reviews-block__divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  }
  .google-reviews-block__score,
  .google-reviews-block__count-number {
    font-size: 44px;
  }
  .google-reviews-block__stars {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .google-reviews-block__rating,
  .google-reviews-block__count,
  .google-reviews-block__cta {
    min-width: 0;
    width: 100%;
  }
}
