/* Base Backgrounds */
body {
  background-color: #000000 !important;
}

header {
  background-color: #ffffff !important;
}

/* Header Text & Navigation */
a.popup-hide {
  color: #000000 !important;
}

a.popup-hide:hover {
  color: #e4cb70 !important;
}

.nav-trigger {
  background: #2a3352;
  border-radius: 6px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-trigger .fa.fa-bars,
.nav-trigger .fa.fa-bars::before {
  color: #f8fafc !important;
}

.nav-trigger:hover .fa.fa-bars,
.nav-trigger:hover .fa.fa-bars::before {
  color: #dbeafe !important;
}

/* Hide Unwanted Elements */
.btn.map.btn-with-image.custom {
  display: none !important;
}

#sb_map,
#sb_map_view,
#sb_map iframe,
.title-section:has(+ #sb_map),
.title-section:has(+ div #sb_map),
#sb_map_view ~ iframe {
  display: none !important;
}

/* Company Logo */
/* Note: Ensure the URL points to the direct image file (e.g. .png / .jpg) */
.brand.company-logo-only .logo a img {
  content: url('https://i.imgur.com/2FAZQQB.png') !important;
  display: block !important;
  max-width: 80% !important;
  height: auto !important;
}

.brand.company-logo-only .logo a:hover img {
  transform: scale(1.07) !important;
  opacity: 0.8 !important;
}

/* Main Booking Button */
.btn.book.btn-with-icon.custom {
  padding: 16px 32px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  min-width: 200px !important;
  width: auto !important;
  height: auto !important;
  min-height: 50px !important;
  transition: transform 0.3s ease !important;
  position: absolute !important;
  margin: 40px 0 10px 0 !important;
}

.btn.book.btn-with-icon.custom:hover {
  transform: scale(1.05) !important;
}

/* Remove default checkmark */
.btn.book.btn-with-icon.custom::after {
  content: none !important;
}

/* Inner link styling - font-size 0 hides default text */
.btn.book.btn-with-icon.custom a {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
}

/* Calendar icon */
.btn.book.btn-with-icon.custom a::before {
  content: "" !important;
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
  background-image: url('https://i.imgur.com/4Ld8aVe.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Replacement text */
.btn.book.btn-with-icon.custom a::after {
  content: "Pour réserver ou s'inscrire à nos événements" !important;
  font-size: 20px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  display: inline !important;
}

/* Mobile responsive alignment */
@media screen and (max-width: 768px) {
  .btn.book.btn-with-icon.custom {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .btn.book.btn-with-icon.custom:hover {
    transform: translateX(-50%) scale(1.05) !important;
  }
}

/* Main Sections & Schedule */
.section-wrapper .title-main,
#sb_main .title-main {
  color: #000000 !important;
}

#schedule.section,
#contacts.section,
#about-us.section.with-sidebar {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Time View & Booking Grid */
#sb_timeview_container {
  background-color: #2a3352 !important;
  color: #ffffff !important;
  padding: 20px !important;
  border-radius: 8px !important;
}

#sb_timeview_container .cell.free {
  background-color: rgba(59, 130, 246, 0.3) !important;
  color: #ffffff !important;
  transition: background-color 0.2s ease !important;
}

#sb_timeview_container .cell.free.hovered {
  background-color: rgba(228, 203, 112, 0.6) !important;
  color: #000000 !important;
}

#sb_timeview_container .cell.free:hover {
  background-color: rgba(228, 203, 112, 1) !important;
  color: #000000 !important;
  z-index: 10 !important;
  position: relative !important;
  transform: scale(1.10) !important;
}

.available .circle {
  background-color: #2f4b83 !important;
  border-color: #2f4b83 !important;
}

#sb_booking_company_time,
#sb_booking_company_time .time,
#sb_booking_company_time .time div,
#sb_booking_company_time .time b {
  color: #ffffff !important;
}

/* Back Button */
#sb_back_button,
#sb_back_button a,
#sb_back_button a span,
#sb_back_button a .fa-angle-left {
  color: #ffffff !important;
}

#sb_back_button a:hover,
#sb_back_button a:hover span {
  color: #dbeafe !important;
}

#sb_back_to_bookings .back-to-services,
#sb_back_to_bookings .back-to-services span {
  color: #ffffff !important;
}

.cap.mg {
  color: #000000 !important;
}

.alert.alert-info {
  color: #ffffff !important;
}

/* Reviews Section */
#sb_reviews_add_container .title-main,
#sb_reviews_list_container .title-main,
#sb_reviews_add_container .cap,
#sb_reviews_list_container .cap,
.btn-bar__social-links .btn--txt {
  color: #e3d7c4 !important;
}