/* ================================================================
   BÈTA Industrie — Client Cases Page Styles  v2
   ================================================================ */

/* ----------------------------------------------------------------
   1. Hero Section
   ---------------------------------------------------------------- */

.bicc-cases-hero {
  position: relative;
}

.bicc-hero__tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.bicc-cases-hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  color: #fff !important;
  letter-spacing: -0.015em;
  margin-bottom: 18px !important;
}

.bicc-hero__title-accent {
  color: #fff;
  font-weight: inherit;
}

.bicc-cases-hero__intro {
  font-size: 0.9875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 100%;
  margin: 0;
}

/* Stats — clean strip, no glassmorphism */
.bicc-hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,60%);
  background: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.bicc-hero-stat {
  text-align: left;
  padding-right: 40px;
}

.bicc-hero-stat--divider {
  width: 1px;
  height: 32px;
  align-self: center;
  background: rgba(255,255,255,60%);
  flex-shrink: 0;
  margin-right: 40px;
}

.bicc-hero-stat__number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.bicc-hero-stat__label {
  font-size: 0.775rem;
  color: rgba(255,255,255,0.42);
  font-weight: 400;
  letter-spacing: 0;
}

/* ----------------------------------------------------------------
   2. Filter Bar
   ---------------------------------------------------------------- */

.bicc-cases-section {
  background: #F7F8FA;
}

.bicc-cases-filters {
  background: #fff;
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 28px;
  border: 1px solid #E5E9EF;
  position: sticky;
  top: 72px;
  z-index: 100;
}

.bicc-filter-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: nowrap;
}

.bicc-filter-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px;
  flex: 1 1 0%;
  min-width: 0;
}

.bicc-filter-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9CA3AF;
}

/* ---- Dropdown select ---- */

.bicc-select-wrap {
  display: block;
  position: relative !important;
  width: 100%;
}

.bicc-select {
  display: block !important;
  width: 100% !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: #F8FAFC !important;
  border: 1px solid #DDE1E7 !important;
  border-radius: 6px !important;
  padding: 10px 38px 10px 13px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.4 !important;
  font-family: inherit !important;
  box-shadow: none !important;
  background-image: none !important;
}

.bicc-select:hover {
  border-color: #9CA3AF !important;
  background: #fff !important;
}

.bicc-select:focus {
  border-color: #0D2B52 !important;
  box-shadow: 0 0 0 3px rgba(13,43,82,0.08) !important;
  outline: none !important;
  background: #fff !important;
}

.bicc-select--active {
  border-color: #0D2B52 !important;
  background: #EEF2FF !important;
  color: #0D2B52 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.bicc-select-chevron {
  position: absolute !important;
  right: 11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none;
  color: #B0B8C4;
  transition: color 0.15s ease;
  z-index: 1;
  display: block !important;
}

.bicc-select-wrap:focus-within .bicc-select-chevron {
  color: #0D2B52;
}

/* Result count */
.bicc-cases-count {
  font-size: 12.5px;
  color: #9CA3AF;
  font-weight: 400;
  margin: 0 0 18px 0;
  min-height: 18px;
}

.bicc-cases-count strong {
  color: #0D2B52;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   3. Cases Grid
   ---------------------------------------------------------------- */

.bicc-cases-container {
  position: relative;
  min-height: 320px;
}

#bicc-cases-grid {
  transition: opacity 0.2s ease;
}

#bicc-cases-grid .bicc-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1100px) {
  #bicc-cases-grid .bicc-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #bicc-cases-grid .bicc-cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ----------------------------------------------------------------
   4. Case Card
   ---------------------------------------------------------------- */

.bicc-case-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #E5E8EE;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.bicc-case-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
  border-color: #D0D5DD;
}

/* Image area */
.bicc-case-card__image-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.bicc-case-card__image-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 57%;
  background: #EEF0F3;
  overflow: hidden;
}

.bicc-case-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.bicc-case-card:hover .bicc-case-card__img {
  transform: scale(1.04);
}

.bicc-case-card__img-placeholder {
  position: absolute;
  inset: 0;
  background: #E2E6EB;
}

/* Market badges — image overlay, top-left */
.bicc-case-card__market-tags {
  position: absolute;
  top: 11px;
  left: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 1;
}

.bicc-case-card__market-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Market colors — solid, no transparency or blur */
.bicc-market--chemicals             { background: #C2410C; }
.bicc-market--water_treatment       { background: #0369A1; }
.bicc-market--food_and_beverages    { background: #15803D; }
.bicc-market--sustainable_solutions { background: #0F766E; }
.bicc-market--oil_and_gas           { background: #B91C1C; }
.bicc-market--horticulture          { background: #6D28D9; }
.bicc-market--agriculture_manure    { background: #92400E; }
.bicc-market--utilities             { background: #4B5563; }

/* Card body */
.bicc-case-card__body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bicc-case-card__client {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9CA3AF;
  margin-bottom: 5px;
}

.bicc-case-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.48;
  color: #0069b4;
  margin: 0 0 9px 0;
}

.bicc-case-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.bicc-case-card__title a:hover {
  color: #0D2B52;
}

.bicc-case-card__excerpt {
  font-size: 15px;
  line-height: inherit;
  color: #000000;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card footer */
.bicc-case-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  margin-top: 13px;
  border-top: 1px solid #F3F4F6;
}

.bicc-case-card__product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bicc-case-card__product-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: #F3F4F6;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #6B7280;
  white-space: nowrap;
}

.bicc-case-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 700;
  color: #0069b4;
  text-decoration: none;
  transition: color 0.15s, gap 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.bicc-case-card__read-more:hover {
  color: #1A4B8C;
  gap: 8px;
}

.bicc-case-card__read-more svg {
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   5. Loading State
   ---------------------------------------------------------------- */

.bicc-cases-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 14px;
  color: #9CA3AF;
  font-size: 13.5px;
}

.bicc-cases-loading__spinner {
  width: 30px;
  height: 30px;
  border: 2px solid #E5E7EB;
  border-top-color: #0D2B52;
  border-radius: 50%;
  animation: bicc-spin 0.7s linear infinite;
}

@keyframes bicc-spin {
  to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------
   6. No Results State
   ---------------------------------------------------------------- */

.bicc-cases-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 20px;
  text-align: center;
  gap: 6px;
}

.bicc-no-results__icon {
  margin-bottom: 6px;
}

.bicc-cases-no-results h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
}

.bicc-cases-no-results p {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.65;
  max-width: 340px;
  margin: 0 0 18px 0;
}

.bicc-reset-filters {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: #0D2B52;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.bicc-reset-filters:hover {
  background: #1A4B8C;
}

/* ----------------------------------------------------------------
   7. CTA Section
   ---------------------------------------------------------------- */

.bicc-cases-cta {
  position: relative;
}

.bicc-cta__title {
  color: #fff !important;
  font-size: clamp(1.625rem, 3vw, 2.125rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  max-width: 600px;
/*   margin-left: auto !important; */
  margin-right: auto !important;
}

.bicc-cta__subtitle p {
  color: rgba(255,255,255,80%) !important;
  font-size: 0.9375rem !important;
  line-height: 1.75;
}

/* Buttons */
.bicc-btn--green {
  background-color: #3A8C3F !important;
  border-color: #3A8C3F !important;
  color: #fff !important;
}

.bicc-btn--green:hover {
  background-color: #2a6e2e !important;
  border-color: #2a6e2e !important;
}

.bicc-btn--outline-white {
  background: transparent !important;
  border-color: rgba(255,255,255,0.28) !important;
  color: rgba(255,255,255,0.88) !important;
}

.bicc-btn--outline-white:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.55) !important;
}

/* ----------------------------------------------------------------
   8. Responsive
   ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .bicc-cases-filters {
    position: static;
    padding: 14px 16px;
  }
}

@media (max-width: 600px) {
  .bicc-filter-row {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .bicc-filter-group {
    flex: 1 1 100% !important;
  }

  .bicc-hero__stats {
    flex-wrap: wrap;
  }

  .bicc-hero-stat {
    flex: 1 1 40%;
    padding-right: 20px;
    padding-top: 16px;
  }

  .bicc-hero-stat--divider {
    display: none;
  }
}

/* ----------------------------------------------------------------
   9. Section label (shared)
   ---------------------------------------------------------------- */

.bicc-section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
/*   text-transform: uppercase; */
  letter-spacing: 0.14em;
  color: #3A8C3F;
  margin-bottom: 10px;
}
