/* ══════════════════════════════════════════════════════════
   AFRICA CONSORTIUM BTP — CSS ADDITIONNEL
   À ajouter à la fin de style.css
   ══════════════════════════════════════════════════════════ */

/* ══ BARRE D'APPEL FIXE MOBILE ══════════════════════════════ */
.mobile-call-bar {
  display: none; /* Caché sur desktop */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 12px;
  gap: 8px;
  /* Pousser le contenu au-dessus sur mobile */
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.mcb-call, .mcb-wa, .mcb-devis {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.mcb-call {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.25);
}
.mcb-call:hover { background: rgba(16,185,129,0.25); }

.mcb-wa {
  background: rgba(37,211,102,0.15);
  color: #4ade80;
  border: 1px solid rgba(37,211,102,0.25);
}
.mcb-wa:hover { background: rgba(37,211,102,0.25); }

.mcb-devis {
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
}
.mcb-devis:hover { background: var(--orange-dk); }

/* Afficher seulement sur mobile */
@media (max-width: 768px) {
  .mobile-call-bar {
    display: flex;
  }

  /* Espace en bas pour ne pas masquer le contenu */
  body {
    padding-bottom: 72px;
  }

  /* Déplacer WA float au-dessus de la barre */
  .wa-float {
    bottom: 90px !important;
  }
  .back-top {
    bottom: 90px !important;
  }
}

/* ══ VALIDATION FORMULAIRE EN TEMPS RÉEL ════════════════════ */
.form-input.valid,
.form-select.valid,
.form-textarea.valid {
  border-color: #10b981 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.field-error-msg {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
  align-items: center;
  gap: 4px;
}

.field-error-msg.visible {
  display: flex;
}

/* ══ BADGE FACEBOOK VISIBLE ════════════════════════════════ */
.fb-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(24,119,242,0.1);
  border: 1px solid rgba(24,119,242,0.2);
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.fb-social-proof:hover {
  background: rgba(24,119,242,0.18);
  transform: translateY(-2px);
}

.fb-social-proof-num {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.fb-social-proof-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* ══ SECTION PARTENAIRES / CERTIFICATIONS ════════════════════ */
.partners-section {
  background: var(--gray-100);
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.partners-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 24px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.partner-badge:hover {
  border-color: rgba(245,110,15,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.partner-badge-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.partner-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.partner-badge-sub {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ══ SLIDER TÉMOIGNAGES ═════════════════════════════════════ */
.testi-slider-wrap {
  position: relative;
  overflow: hidden;
}

.testi-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testi-slider-track .testi-card {
  flex: 0 0 calc(33.33% - 14px);
  min-width: calc(33.33% - 14px);
}

.testi-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.tsn-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: all 0.2s ease;
}

.tsn-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.tsn-dots {
  display: flex;
  gap: 6px;
}

.tsn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tsn-dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .testi-slider-track .testi-card {
    flex: 0 0 calc(100% - 0px);
    min-width: calc(100% - 0px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .testi-slider-track .testi-card {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }
}

/* ══ GOOGLE MAPS IFRAME ══════════════════════════════════════ */
.maps-container {
  border-radius: 16px;
  overflow: hidden;
  height: 240px;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
}

.maps-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ══ LAZY LOAD IMAGES ═══════════════════════════════════════ */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}