/* Custom CSS Module Grouping */
@import url('./servicesprofessionnels.css');

.absolute.right-6.top-8.sm\:top-12.z-20.flex.items-center.space-x-2 {
    top: 0.3rem !important;
}
.flex.flex-col.sm\:flex-row.items-start.sm\:items-center.justify-between.gap-3.sm\:gap-4.pb-5.sm\:pb-6.border-b.border-slate-100 {
    padding-bottom: 1.25rem !important;
}
    /* Custom styling for glassmorphic elements and crisp automotive UI */
    .glass-card {
      background: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(226, 232, 240, 0.8);
    }
    .dark-glass {
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .custom-scrollbar::-webkit-scrollbar {
      height: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 9999px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 9999px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
      background: #008a3e;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    .no-scrollbar {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }

    .mega-menu {
      transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .group:hover .mega-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    /* ScoutCar Instant Valuation Simulator - Mobile & Nice Select Enhancements */
    .scoutcar-simulator-container {
      box-sizing: border-box;
    }

    /* Nice Select Dark Theme & Full-Width Responsive Overrides */
    .scoutcar-simulator-container .nice-select {
      width: 100% !important;
      max-width: 100% !important;
      float: none !important;
      display: flex !important;
      align-items: center !important;
      background-color: #1e293b !important;
      border: 1px solid #334155 !important;
      color: #f8fafc !important;
      border-radius: 0.75rem !important;
      height: 42px !important;
      line-height: 40px !important;
      padding-left: 0.75rem !important;
      padding-right: 2rem !important;
      font-size: 0.8125rem !important;
      box-sizing: border-box !important;
      cursor: pointer !important;
    }

    .scoutcar-simulator-container .nice-select:hover,
    .scoutcar-simulator-container .nice-select:focus,
    .scoutcar-simulator-container .nice-select.open {
      border-color: #008a3e !important;
    }

    .scoutcar-simulator-container .nice-select.disabled {
      opacity: 0.55 !important;
      cursor: not-allowed !important;
      pointer-events: none !important;
      border-color: #334155 !important;
      color: #94a3b8 !important;
    }

    .scoutcar-simulator-container .nice-select.disabled .current {
      color: #94a3b8 !important;
    }

    .scoutcar-simulator-container .nice-select:after {
      border-bottom: 2px solid #94a3b8 !important;
      border-right: 2px solid #94a3b8 !important;
      right: 14px !important;
      width: 6px !important;
      height: 6px !important;
      margin-top: -4px !important;
    }

    .scoutcar-simulator-container .nice-select.open:after {
      transform: rotate(-135deg) !important;
    }

    .scoutcar-simulator-container .nice-select .current {
      display: block !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      max-width: 100% !important;
      color: #f8fafc !important;
      font-weight: 500 !important;
    }

    .scoutcar-simulator-container .nice-select .list {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      background-color: #0f172a !important;
      border: 1px solid #334155 !important;
      border-radius: 0.75rem !important;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
      max-height: 220px !important;
      overflow-y: auto !important;
      z-index: 50 !important;
      margin-top: 4px !important;
      left: 0 !important;
      right: 0 !important;
      box-sizing: border-box !important;
    }

    .scoutcar-simulator-container .nice-select .option {
      color: #cbd5e1 !important;
      line-height: 38px !important;
      min-height: 38px !important;
      padding-left: 0.75rem !important;
      padding-right: 0.75rem !important;
      font-size: 0.8125rem !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }

    .scoutcar-simulator-container .nice-select .option:hover,
    .scoutcar-simulator-container .nice-select .option.focus,
    .scoutcar-simulator-container .nice-select .option.selected.focus {
      background-color: #1e293b !important;
      color: #22c55e !important;
    }

    .scoutcar-simulator-container .nice-select .option.selected {
      font-weight: 700 !important;
      color: #22c55e !important;
      background-color: rgba(0, 138, 62, 0.15) !important;
    }

    /* Range Sliders Mobile & Touch Enhancements */
    .scoutcar-simulator-container input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 8px;
      background: #334155;
      border-radius: 9999px;
      outline: none;
      margin: 8px 0;
    }

    .scoutcar-simulator-container input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #008a3e;
      border: 2px solid #ffffff;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
      transition: transform 0.1s ease;
    }

    .scoutcar-simulator-container input[type="range"]::-webkit-slider-thumb:active {
      transform: scale(1.15);
    }

    .scoutcar-simulator-container input[type="range"]::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #008a3e;
      border: 2px solid #ffffff;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    /* Hide action icons on mobile (< 640px) */
    @media (max-width: 639px) {
      .scoutcar-mobile-hide-icon {
        display: none !important;
      }
    }

    /* New Car Showcase Slider Tabs - Touch scrolling & mobile layout */
    #slider-tabs-container {
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    /* ==========================================================================
       Car Brand Slider (Neuf Section) - Premium Automotive Brand Selector
       ========================================================================== */
    .brand-slider-wrapper {
      position: relative;
      width: 100%;
    }

    .brand-slider-container {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
      container-type: inline-size;
      container-name: brandslider;
    }

    .brand-slider-container::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    .brand-slider-track {
      display: flex;
      align-items: stretch;
      gap: 10px;
      width: max-content;
      min-width: 100%;
      box-sizing: border-box;
      padding: 6px 2px;
    }

    /* Fallback responsive item widths */
    .brand-slide-item {
      flex: 0 0 calc((100% - 10px) / 2);
      width: calc((100% - 10px) / 2);
      min-width: 110px;
      box-sizing: border-box;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
      transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                  border-color 0.2s ease,
                  box-shadow 0.2s ease;
    }

    .brand-slide-item:hover {
      border-color: #008a3e;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 138, 62, 0.08), 0 2px 4px rgba(0, 0, 0, 0.03);
    }

    @media (min-width: 640px) {
      .brand-slider-track {
        gap: 12px;
      }
      .brand-slide-item {
        flex: 0 0 calc((100% - 24px) / 3);
        width: calc((100% - 24px) / 3);
        min-width: 130px;
      }
    }

    @media (min-width: 1024px) {
      .brand-slider-track {
        gap: 12px;
      }
      .brand-slide-item {
        flex: 0 0 calc((100% - 60px) / 6);
        width: calc((100% - 60px) / 6);
        min-width: 120px;
      }
    }

    /* Container query overrides: exactly 6 items on desktop, 3 on tablet, 2 on mobile */
    @container brandslider (min-width: 0px) {
      .brand-slide-item {
        flex: 0 0 calc((100cqw - 10px) / 2) !important;
        width: calc((100cqw - 10px) / 2) !important;
      }
    }

    @container brandslider (min-width: 640px) {
      .brand-slide-item {
        flex: 0 0 calc((100cqw - 24px) / 3) !important;
        width: calc((100cqw - 24px) / 3) !important;
      }
    }

    @container brandslider (min-width: 1024px) {
      .brand-slide-item {
        flex: 0 0 calc((100cqw - 60px) / 6) !important;
        width: calc((100cqw - 60px) / 6) !important;
      }
    }

    /* Partner brand logos inside neuf-section cards */
    #neuf-section .neuf-brand-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 76px;
      height: 44px;
      margin: 0 auto 6px;
      overflow: hidden;
      background: transparent;
      padding: 0;
      flex-shrink: 0;
    }

    @media (min-width: 640px) {
      #neuf-section .neuf-brand-logo {
        max-width: 84px;
        height: 50px;
        margin-bottom: 7px;
      }
    }

    @media (min-width: 1024px) {
      #neuf-section .neuf-brand-logo {
        max-width: 88px;
        height: 80px;
        margin-bottom: 8px;
      }
    }

    #neuf-section .neuf-brand-logo img,
    #neuf-section .brand-logo-img {
      display: block;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      object-position: center;
      transition: transform 0.2s ease;
    }

    #neuf-section .brand-slide-item:hover .neuf-brand-logo img,
    #neuf-section .brand-slide-item:hover .brand-logo-img {
      transform: scale(1.05);
    }

    #neuf-section .neuf-brand-logo.has-logo .neuf-brand-initial,
    #neuf-section .neuf-brand-logo img + .neuf-brand-initial {
      display: none !important;
    }

    #neuf-section .neuf-brand-initial {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      font-size: 17px;
      font-weight: 700;
      color: #334155;
      background-color: #f1f5f9;
      border-radius: 10px;
    }

    @media (min-width: 640px) {
      #neuf-section .neuf-brand-initial {
        width: 50px;
        height: 50px;
        font-size: 19px;
      }
    }

    /* Typography */
    .brand-slide-item .brand-name {
      font-size: 12px;
      font-weight: 600;
      color: #0f172a;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      padding: 0 4px;
    }

    @media (min-width: 640px) {
      .brand-slide-item .brand-name {
        font-size: 13.5px;
      }
    }

    .brand-slider-btn {
      user-select: none;
      touch-action: manipulation;
    }

    /* Mobile-only enhancements: significantly larger brand cards and logos (< 640px) */
    @media (max-width: 639.98px) {
      .brand-slider-track {
        gap: 12px;
        padding: 8px 4px;
      }

      .brand-slide-item {
        flex: 0 0 calc((100% - 12px) / 2) !important;
        width: calc((100% - 12px) / 2) !important;
        min-width: 135px !important;
        min-height: 145px !important;
        padding: 14px 10px !important;
      }

      #neuf-section .neuf-brand-logo {
        max-width: 96px !important;
        height: 62px !important;
        margin: 0 auto 8px !important;
      }

      #neuf-section .neuf-brand-logo img,
      #neuf-section .brand-logo-img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 56px !important;
        object-fit: contain !important;
        object-position: center !important;
      }

      #neuf-section .neuf-brand-initial {
        width: 52px !important;
        height: 52px !important;
        font-size: 20px !important;
      }

      .brand-slide-item .brand-name {
        font-size: 13px !important;
        line-height: 1.25 !important;
      }

      .brand-slide-item .brand-subtitle {
        font-size: 10.5px !important;
        margin-top: 3px !important;
      }
    }

    @container brandslider (max-width: 639.98px) {
      .brand-slide-item {
        flex: 0 0 calc((100cqw - 12px) / 2) !important;
        width: calc((100cqw - 12px) / 2) !important;
        min-width: 135px !important;
        min-height: 124px !important;
        padding: 14px 10px !important;
      }

      #neuf-section .neuf-brand-logo {
        max-width: 96px !important;
        height: 62px !important;
        margin: 0 auto 8px !important;
      }

      #neuf-section .neuf-brand-logo img,
      #neuf-section .brand-logo-img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 65px !important;
        object-fit: contain !important;
        object-position: center !important;
      }
    }

    /* ==========================================================================
       ScoutCar Magazine (Editorial Section) - Robust Unified CSS Grid Layout
       ========================================================================== */
    .scout-mag-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .scout-mag-featured {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .scout-mag-secondary {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .scout-mag-card {
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    @media (max-width: 767px) {
      .scout-mag-secondary {
        display: flex;
        flex-direction: column;
        gap: 8px;
        row-gap: 8px;
        height: auto;
        justify-content: flex-start;
      }
      .scout-mag-secondary > .scout-mag-card {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 8px;
      }
      .scout-mag-secondary > .scout-mag-card > a {
        height: auto;
      }
    }

    @media (min-width: 1024px) {
      .scout-mag-layout {
        grid-template-columns: 7fr 5fr;
        grid-template-rows: repeat(3, 1fr);
        column-gap: 20px;
        row-gap: 10px;
        align-items: stretch;
      }
      .scout-mag-featured {
        grid-column: 1;
        grid-row: 1 / span 3;
        height: 100%;
      }
      .scout-mag-secondary {
        display: contents;
      }
      .scout-mag-card {
        grid-column: 2;
        height: 100%;
      }
    }

    /* Collapse stacked section padding between Discovery listings and Moto arrivals */
    #catalog {
      padding-bottom: 0.5rem;
    }
    #motos-arrivages {
      padding-top: 0.5rem;
    }

    #motos-arrivages .favorite-toggle-btn {
      pointer-events: auto;
    }
    .favorite-toggle-btn:hover {
      background-color: #fff;
    }

    /* Verified badge on homepage vehicle cards (image area, below favorite) */
    #catalog .sl-verified-badge {
      position: absolute;
      top: 2.75rem;
      right: 0.625rem;
      width: 32px;
      height: 32px;
      z-index: 5;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      box-shadow: none;
    }
    #catalog .sl-verified-badge svg {
      width: 100%;
      height: 100%;
      display: block;
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
    }
    @media (min-width: 640px) {
      #catalog .sl-verified-badge {
        width: 36px;
        height: 36px;
      }
    }

/* ============================================================
   ScoutCar Services Professionnels - Pixel-Perfect Card Redesign
   Reference: 424px W x 432px H (Image: 187px, Content: 245px)
   ============================================================ */

/* Card Container - Exact Dimensions & Clean Aesthetics (432px baseline) */
.sc-home-pro-card,
.sc-home-pro-card.sc-provider-card,
.sc-home-pro-card.sc-card-top {
  width: 100% !important;
  max-width: 424px !important;
  height: auto !important;
  min-height: auto !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.sc-home-pro-card:hover,
.sc-home-pro-card.sc-provider-card:hover,
.sc-home-pro-card.sc-card-top:hover {
  transform: translateY(-3px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03) !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
}

.sc-home-pro-card:focus-visible {
  outline: 2px solid #008a3e !important;
  outline-offset: 2px !important;
}

.sc-home-pro-card .sc-home-pro-media,
.sc-home-pro-media {
  position: relative !important;
  width: 100% !important;
  height: 187px !important;
  max-height: 187px !important;
  background-color: #f1f5f9 !important;
  overflow: hidden !important;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sc-home-pro-media .sc-provider-img {
  width: 100% !important;
  height: 187px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.sc-home-pro-card:hover .sc-home-pro-media .sc-provider-img {
  transform: scale(1.04) !important;
}

/* Content Area (~245px baseline) */
.sc-home-pro-card .sc-home-pro-body,
.sc-home-pro-body {
  height: auto !important;
  min-height: auto !important;
  padding: 20px 24px 18px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: none !important;
}

.sc-home-pro-top-content {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
  width: 100% !important;
}

.sc-card-badges-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 24px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

.sc-home-pro-card .sc-badge-verified,
.sc-badge.sc-badge-verified {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(0, 123, 255, 0.1) !important;
  background-color: rgba(0, 123, 255, 0.1) !important;
  color: #007BFF !important;
  border: 1px solid #007BFF !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  width: fit-content !important;
}

.sc-home-pro-card .sc-badge-verified .material-symbols-outlined,
.sc-badge.sc-badge-verified .material-symbols-outlined {
  color: #007BFF !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 20 !important;
}

/* Recommandé Badge */
.sc-home-pro-card .sc-badge-recom,
.sc-badge.sc-badge-recom {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background-color: #fef3c7 !important;
  color: #92400e !important;
  padding: 3px 10px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  width: fit-content !important;
}

.sc-home-pro-card .sc-badge-recom .material-symbols-outlined,
.sc-badge.sc-badge-recom .material-symbols-outlined {
  color: #92400e !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 20 !important;
}

/* Badges Row Layout */
.sc-card-badges-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

/* Badges inside .sc-home-pro-media (top-left corner) */
.sc-home-pro-media .sc-media-badge-top,
.sc-home-pro-media .sc-media-badge.sc-media-badge-top {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  border-radius: 5px !important;
  width: fit-content !important;
  max-width: calc(100% - 24px) !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  background: #FFE6F7 !important;
  color: #CC0687 !important;
}

.sc-home-pro-media .sc-media-badge .sc-media-badge-icon {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: inherit !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.sc-home-pro-media .sc-media-badge .sc-media-badge-text {
  color: inherit !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Badges in Badges Row - Reuses sc-media-badge styling */
.sc-home-pro-card .sc-card-badges-row .sc-media-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  border-radius: 5px !important;
  width: fit-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  margin-left: auto !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge.sc-media-badge-top,
.sc-home-pro-card .sc-card-badges-row .sc-media-badge-top {
  background: #FFE6F7 !important;
  color: #CC0687 !important;
  border-color: rgba(204, 6, 135, 0.2) !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge.sc-media-badge-new,
.sc-home-pro-card .sc-card-badges-row .sc-media-badge-new {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #E08A00 !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge-new .sc-media-badge-icon {
  display: none !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge .sc-media-badge-icon {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: inherit !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge .sc-media-badge-text {
  color: inherit !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Sponsorisé Badge */

.sc-home-pro-card .sc-badge-sponsored-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 10px !important;
  background-color: #FFEDD5 !important;
  color: #C2410C !important;
  border: 1px solid rgba(194, 65, 12, 0.2) !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Row 2: Provider Name with Verified Icon */
.sc-home-pro-body .sc-provider-name {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 0 10px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.sc-home-pro-body .sc-provider-link {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sc-home-pro-body .sc-provider-link:hover {
  color: #008a3e !important;
}

.sc-home-pro-body .sc-provider-name .sc-verified-icon,
.sc-verified-icon {
  font-family: 'Material Symbols Outlined' !important;
  color: #007BFF !important;
  font-size: 18px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 20 !important;
  user-select: none !important;
}

.sc-provider-meta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 20px !important;
  margin-bottom: 10px !important;
  font-size: 0.875rem !important;
  width: 100% !important;
}

.sc-provider-meta-row .sc-provider-location {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #64748b !important;
  font-size: 0.875rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 55% !important;
}

.sc-provider-meta-row .sc-loc-icon {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 16px !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
}

.sc-provider-meta-row .sc-provider-rating-box {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  font-size: 0.875rem !important;
  margin-left: auto !important;
}

.sc-provider-meta-row .sc-star-icon {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 16px !important;
  color: #f59e0b !important;
  font-variation-settings: 'FILL' 1, 'wght' 600 !important;
  flex-shrink: 0 !important;
}

.sc-provider-meta-row .sc-rating-val {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 0.875rem !important;
}

.sc-provider-meta-row .sc-reviews-count {
  color: #64748b !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
}

.sc-home-pro-body .sc-provider-specialty {
  font-size: 0.875rem !important;
  color: #64748b !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Bottom CTA Container */
.sc-home-pro-bottom,
.sc-home-pro-body .sc-home-pro-bottom {
  margin-top: 8px !important;
  padding-top: 0 !important;
  width: 100% !important;
}

.sc-home-pro-body .sc-card-divider {
  border: 0 !important;
  border-top: 1px solid #f1f5f9 !important;
  margin: 0 0 10px 0 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

/* Row 6: Bottom CTA - Modern Pill-shaped Green Style */
.sc-home-pro-cta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 8px 10px 8px 18px !important;
  background: linear-gradient(
    135deg,
    rgb(0 138 62 / var(--tw-bg-opacity, 1)) 0%,
    rgb(0 110 50 / var(--tw-bg-opacity, 1)) 100%
) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  text-decoration: none !important;
  user-select: none !important;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
}

.sc-home-pro-cta-row .sc-cta-text {
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
}

.sc-home-pro-cta-row .sc-cta-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  color: #16a34a !important;
  font-family: 'Material Symbols Outlined' !important;
  font-size: 16px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.25s ease, color 0.25s ease !important;
}

/* Hover effects */
.sc-home-pro-card:hover .sc-home-pro-cta-row,
.sc-home-pro-cta-row:hover {
  transform: translateY(-2px) !important;
 background: linear-gradient(
    135deg,
    rgb(0 138 62 / var(--tw-bg-opacity, 1)) 0%,
    rgb(0 110 50 / var(--tw-bg-opacity, 1)) 100%
) !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
}

.sc-home-pro-card:hover .sc-cta-arrow,
.sc-home-pro-cta-row:hover .sc-cta-arrow {
  transform: translateX(3px) !important;
  color: #15803d !important;
}

@media (max-width: 480px) {
  .sc-home-pro-card,
  .sc-home-pro-card.sc-provider-card,
  .sc-home-pro-card.sc-card-top {
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }
  .sc-home-pro-media,
  .sc-home-pro-card .sc-home-pro-media {
    height: 170px !important;
  }
  .sc-home-pro-media .sc-provider-img {
    height: 170px !important;
  }
  .sc-home-pro-body,
  .sc-home-pro-card .sc-home-pro-body {
    height: auto !important;
    min-height: auto !important;
    padding: 18px 20px 16px 20px !important;
  }
}

/* ==========================================================================
   Hero H1 Visual Hierarchy (Brand vs Subtitle)
   ========================================================================== */
.sc-hero-heading {
  margin: 0 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
}

.sc-hero-brand {
  display: inline !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 2.25rem !important; /* Mobile (36px) */
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
}

.sc-hero-separator {
  display: inline !important;
  /* ScoutCar Green Accent */
  font-weight: 900 !important;
  font-size: 2.25rem !important;
  line-height: 1.1 !important;
  margin-right: 0.25rem !important;
}

.sc-hero-title {
  display: block !important;
  margin-top: 0.45rem !important;
  color: #cbd5e1 !important; /* Softer slate-300 / white-gray */
  font-weight: 600 !important; /* Lighter weight than 900 */
  font-size: 1.25rem !important; /* Mobile (20px) */
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
}

@media (min-width: 640px) {
  .sc-hero-brand,
  .sc-hero-separator {
    font-size: 3rem !important; /* Tablet (48px) */
  }
  .sc-hero-title {
    font-size: 1.625rem !important; /* Tablet (26px) */
    margin-top: 0.55rem !important;
  }
}

@media (min-width: 1024px) {
  .sc-hero-brand,
  .sc-hero-separator {
    font-size: 3.75rem !important; /* Desktop (60px) */
  }
  .sc-hero-title {
    font-size: 2rem !important; /* Desktop (32px) */
    margin-top: 0.7rem !important;
  }
}

/* App Store & Google Play Download Badges & Promo Centering */
.sc-app-promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sc-app-promo-content .sc-app-promo-badge {
  align-self: flex-start;
}

.sc-app-promo-content h2 {
  text-align: center;
}

.sc-app-promo-content p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.sbx-app-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding-top: 0.5rem;
  width: 100%;
}

.sbx-app-buttons a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.sbx-store-badge {
  width: auto;
  height: auto;
  max-height: 48px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  image-rendering: -webkit-optimize-contrast;
}

.sbx-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

@media (max-width: 640px) {
  .sbx-app-buttons {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .sbx-store-badge {
    max-height: 40px;
    width: auto;
    height: auto;
  }
}

/* END: Custom CSS Module Grouping */
