/* BusinessFes — Sector hub pages (tourisme, santé, professionnels) */

.bf-hub {
  --bf-h-ink: #0f172a;
  --bf-h-muted: #475569;
  --bf-h-radius: 20px;
  overflow-x: clip;
}

.bf-hub * {
  box-sizing: border-box;
}

/* Hero base */
.bf-hub-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 5vw, 3.5rem);
  color: #f8fafc;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.bf-hub-hero--has-image .bf-hub-hero__mesh {
  opacity: 0.35;
}

.bf-hub-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bf-hub-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.bf-hub-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bf-hub-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff !important;
}

.bf-hub-hero__title-main {
  display: block;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bf-hub-hero__title-accent {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.92em;
  opacity: 0.95;
}

.bf-hub-hero__lead {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.9);
}

.bf-hub-hero .bf-search-cta {
  justify-content: center;
  margin: 0;
  padding: 0;
}

.bf-hub-hero .bf-search-cta__btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--bf-h-ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.bf-hub-hero .bf-search-cta__btn:hover {
  color: var(--bf-h-ink);
  transform: translateY(-2px);
}

/* Theme: Tourisme */
.bf-hub--tourism .bf-hub-hero {
  background: linear-gradient(145deg, #0369a1 0%, #0e7490 40%, #1e40af 100%);
}

.bf-hub--tourism .bf-hub-hero__mesh {
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(56, 189, 248, 0.3), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(251, 191, 36, 0.15), transparent 50%);
}

.bf-hub--tourism .bf-hub-hero__eyebrow { color: #bae6fd; }
.bf-hub--tourism .bf-hub-hero__title-accent {
  background: linear-gradient(90deg, #fde68a, #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theme: Santé */
.bf-hub--health .bf-hub-hero {
  background: linear-gradient(145deg, #047857 0%, #0d9488 45%, #134e4a 100%);
}

.bf-hub--health .bf-hub-hero__mesh {
  background:
    radial-gradient(ellipse 70% 50% at 15% 25%, rgba(110, 231, 183, 0.25), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(167, 243, 208, 0.12), transparent 50%);
}

.bf-hub--health .bf-hub-hero__eyebrow { color: #a7f3d0; }
.bf-hub--health .bf-hub-hero__title-accent {
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theme: Professionnels */
.bf-hub--pro .bf-hub-hero {
  background: linear-gradient(145deg, #4338ca 0%, #5b21b6 45%, #312e81 100%);
}

.bf-hub--pro .bf-hub-hero__mesh {
  background:
    radial-gradient(ellipse 65% 50% at 20% 30%, rgba(167, 139, 250, 0.3), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(196, 181, 253, 0.15), transparent 50%);
}

.bf-hub--pro .bf-hub-hero__eyebrow { color: #ddd6fe; }
.bf-hub--pro .bf-hub-hero__title-accent {
  background: linear-gradient(90deg, #e9d5ff, #f3e8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cards section */
.bf-hub-cards {
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.bf-hub-cards__head {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.bf-hub-cards__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--bf-h-ink);
}

.bf-hub-cards__head p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bf-h-muted);
}

.bf-hub-cards__grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .bf-hub-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bf-hub--health .bf-hub-cards__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bf-hub--health .bf-hub-card:last-child:nth-child(3n+1),
  .bf-hub--health .bf-hub-card:last-child:nth-child(5) {
    grid-column: span 1;
  }
}

.bf-hub-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--bf-h-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bf-hub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.bf-hub-card__media {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.bf-hub-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.5) 100%);
}

.bf-hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bf-hub-card:hover .bf-hub-card__media img {
  transform: scale(1.06);
}

.bf-hub-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.bf-hub-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem 1.35rem;
}

.bf-hub-card__body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bf-h-ink);
}

.bf-hub--tourism .bf-hub-card__body h3 { color: #0369a1; }
.bf-hub--health .bf-hub-card__body h3 { color: #047857; }
.bf-hub--pro .bf-hub-card__body h3 { color: #5b21b6; }

.bf-hub-card__emoji {
  margin-right: 0.35rem;
}

.bf-hub-card__body p {
  flex: 1;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--bf-h-muted);
}

.bf-hub-card__cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bf-h-ink);
}

.bf-hub-card:hover .bf-hub-card__cta {
  color: #4f46e5;
}

/* Bottom CTA */
.bf-hub-cta {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.bf-hub--tourism .bf-hub-cta {
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
}

.bf-hub--health .bf-hub-cta {
  background: linear-gradient(135deg, #064e3b, #047857);
}

.bf-hub--pro .bf-hub-cta {
  background: linear-gradient(135deg, #3730a3, #5b21b6);
}

.bf-hub-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: #f8fafc;
}

.bf-hub-cta__inner h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
}

.bf-hub-cta__inner p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.9);
}

.bf-hub-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.bf-hub-btn {
  display: inline-flex;
  padding: 0.85rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.bf-hub-btn:hover {
  transform: translateY(-2px);
}

.bf-hub-btn--light {
  color: var(--bf-h-ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bf-hub-btn--outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
}

.bf-hub-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Full bleed */
.entry-content .bf-hub {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
