/* ============================================================================
 * Hero B2B — split 60/40, sobre Actua Formation
 *
 * Spec UI/UX :
 *   - Background ivoire chaud, texte graphite
 *   - Eyebrow JetBrains Mono small caps cuivre
 *   - H1 sans-serif 48px (40px tablet / 32px mobile), poids 600
 *   - Lead 18px (16px mobile), graphite à 85%
 *   - Preuve sociale inline (note Google + claim)
 *   - CTA primaire orange-brique + CTA ghost
 *   - Photo droite avec badge "À 45 min de Paris"
 *
 * Aucun JS requis. Aucune animation d'apparition.
 * ========================================================================= */

/* Reset legacy .hero rules from sections.css when used with .hero-b2b */
.hero.hero-b2b {
  background: var(--color-ivoire-chaud, #f5efe6);
  color: var(--color-graphite, #1f2326);
  padding: var(--space-16, 96px) 0 var(--space-12, 64px);
  min-height: auto;
  overflow: visible;
}

.hero-b2b__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8, 32px);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-b2b__grid {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    gap: var(--space-12, 64px);
  }
}

/* --- Content (left column) ------------------------------------------------ */
.hero-b2b__content {
  min-width: 0;
}

.hero-b2b__eyebrow {
  margin: 0 0 var(--space-4, 16px);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cuivre, #8c5a3c);
}

@media (min-width: 768px) {
  .hero-b2b__eyebrow {
    font-size: 0.8125rem;
  }
}

.hero-b2b__title {
  margin: 0 0 var(--space-6, 24px);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-graphite, #1f2326);
  max-width: 22ch;
  text-wrap: balance;
}

.hero-b2b__lead {
  margin: 0 0 var(--space-8, 32px);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(31, 35, 38, 0.85);
  max-width: 56ch;
}

@media (min-width: 768px) {
  .hero-b2b__lead {
    font-size: 1.125rem;
  }
}

/* --- Social proof inline -------------------------------------------------- */
.hero-b2b__social-proof {
  margin: 0 0 var(--space-8, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3, 12px);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-graphite, #1f2326);
}

.hero-b2b__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.hero-b2b__rating:hover,
.hero-b2b__rating:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-b2b__stars {
  color: var(--color-orange-brique, #c2410c);
  letter-spacing: 0.05em;
}

.hero-b2b__separator {
  color: rgba(31, 35, 38, 0.4);
}

.hero-b2b__claim {
  color: rgba(31, 35, 38, 0.7);
}

/* --- CTAs ----------------------------------------------------------------- */
.hero-b2b__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  margin: 0;
}

.hero-b2b__ctas .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-b2b__ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4, 16px);
  }

  .hero-b2b__ctas .btn {
    width: auto;
  }
}

/* --- Tap-to-call discret sous les CTAs ------------------------------------ */
.hero-b2b__phone {
  margin: var(--space-4, 16px) 0 0;
  font-size: 0.875rem;
  color: rgba(31, 35, 38, 0.65);
}

.hero-b2b__phone a {
  color: var(--color-graphite, #1f2326);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-orange-brique, #c2410c);
}

.hero-b2b__phone a:hover,
.hero-b2b__phone a:focus-visible {
  color: var(--color-orange-brique, #c2410c);
}

/* --- Media (right column) ------------------------------------------------- */
.hero-b2b__media {
  min-width: 0;
}

.hero-b2b__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  border-radius: 2px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-b2b__photo {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

.hero-b2b__badge {
  position: absolute;
  bottom: var(--space-4, 16px);
  left: var(--space-4, 16px);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: 10px 14px;
  background: rgba(31, 35, 38, 0.92);
  color: var(--color-ivoire-chaud, #f5efe6);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.hero-b2b__badge-dot {
  color: var(--color-orange-brique, #c2410c);
  font-size: 0.625rem;
}

/* --- Mobile : photo en premier, contenu ensuite --------------------------- */
@media (max-width: 1023px) {
  .hero-b2b {
    padding: var(--space-8, 32px) 0 var(--space-12, 64px);
  }

  .hero-b2b__media {
    order: -1;
  }
}
