/**
 * Accueil + GEIQ BTP 56 — v10.54.0.
 *
 * - Accueil : composition validée, copie à gauche et chiffres à droite.
 * - BTP : bloc chiffres carmin, icônes restaurées, spotlight métiers retiré.
 */

/* ══════════════════════════════════════════════════════════════════
   Accueil — hero V3 validé, chiffres ouverts sans cadres imbriqués
   ══════════════════════════════════════════════════════════════════ */

body.home.geiq56-home-btp-v10540.has-hero-photo .hero {
  position: relative;
  min-height: max(760px, 100svh);
  padding: 0 !important;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(18, 13, 18, .94) 0%, rgba(20, 14, 20, .86) 30%, rgba(20, 14, 20, .56) 58%, rgba(18, 13, 18, .58) 78%, rgba(18, 13, 18, .72) 100%),
    linear-gradient(0deg, rgba(17, 13, 18, .82) 0%, rgba(17, 13, 18, .16) 48%, rgba(17, 13, 18, .28) 100%),
    var(--geiq56-hero-photo);
  background-position: center, center, 63% 50%;
  background-size: cover;
}

body.home.geiq56-home-btp-v10540.has-hero-photo .hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: min(46vw, 670px);
  aspect-ratio: 1;
  right: -100px;
  bottom: -410px;
  border-radius: 50%;
  background: rgba(227, 0, 67, .64);
  mix-blend-mode: multiply;
  pointer-events: none;
}

body.home.geiq56-home-btp-v10540 .hero > .hero__content,
body.home.geiq56-home-btp-v10540 .hero > .hero__content.wp-block-group {
  width: min(1200px, calc(100% - 56px)) !important;
  max-width: 1180px !important;
  min-height: max(760px, 100svh);
  margin: 0 auto !important;
  padding: 136px 0 110px !important;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  grid-template-areas: 'copy proof';
  gap: clamp(48px, 6vw, 86px);
  align-items: center;
  text-align: left;
}

body.home.geiq56-home-btp-v10540 .hero__content > .persona-view {
  grid-area: copy;
  min-width: 0;
  max-width: 700px;
  padding-top: 18px;
  text-align: left !important;
}

html[data-persona='candidate'] body.home.geiq56-home-btp-v10540 .hero__content > .persona-view--candidate,
html[data-persona='company'] body.home.geiq56-home-btp-v10540 .hero__content > .persona-view--company {
  display: block !important;
}

html[data-persona='candidate'] body.home.geiq56-home-btp-v10540 .hero__content > .persona-view--company,
html[data-persona='company'] body.home.geiq56-home-btp-v10540 .hero__content > .persona-view--candidate {
  display: none !important;
}

body.home.geiq56-home-btp-v10540 .hero .hero__pill {
  display: none !important;
}

body.home.geiq56-home-btp-v10540 .hero .hero__title {
  max-width: 10ch;
  margin: 0 !important;
  color: #fff;
  font-size: clamp(4rem, 5.8vw, 5.5rem) !important;
  line-height: .96 !important;
  letter-spacing: -.045em;
  text-align: left !important;
  text-wrap: balance;
}

body.home.geiq56-home-btp-v10540 .hero .hero__title em {
  color: #ff6688;
}

body.home.geiq56-home-btp-v10540 .hero .persona-switch {
  width: max-content;
  max-width: 100%;
  margin: 30px 0 0 !important;
  padding: 4px !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  background: rgba(18, 13, 18, .46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

body.home.geiq56-home-btp-v10540 .hero .persona-switch__btn {
  color: rgba(255, 255, 255, .72) !important;
}

html[data-persona='candidate'] body.home.geiq56-home-btp-v10540 .hero .persona-switch__btn[data-persona='candidate'],
html[data-persona='company'] body.home.geiq56-home-btp-v10540 .hero .persona-switch__btn[data-persona='company'] {
  background: #fff !important;
  color: #b8002f !important;
  box-shadow: 0 8px 18px rgba(17, 13, 18, .18) !important;
}

body.home.geiq56-home-btp-v10540 .hero .persona-switch__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .92) !important;
  outline-offset: 3px;
}

body.home.geiq56-home-btp-v10540 .hero .hero__subtitle {
  max-width: 58ch;
  margin: 24px 0 0 !important;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(.98rem, 1.12vw, 1.06rem);
  font-weight: 520;
  line-height: 1.65;
  text-align: left !important;
}

body.home.geiq56-home-btp-v10540 .hero .hero__actions,
body.home.geiq56-home-btp-v10540 .hero .hero__actions.wp-block-buttons {
  margin: 26px 0 0 !important;
  justify-content: flex-start !important;
}

body.home.geiq56-home-btp-v10540 .hero .hero__metrics-wrap {
  grid-area: proof;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.home.geiq56-home-btp-v10540 .hero .hero__metrics.persona-view {
  display: none !important;
}

html[data-persona='candidate'] body.home.geiq56-home-btp-v10540 .hero .hero__metrics.persona-view--candidate,
html[data-persona='company'] body.home.geiq56-home-btp-v10540 .hero .hero__metrics.persona-view--company {
  display: grid !important;
  /* Le thème partagé remet les colonnes à unset !important sur mobile. */
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card,
body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card.wp-block-group {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0;
  margin: 0 !important;
  padding: 23px 0 !important;
  display: grid !important;
  grid-template-columns: 28px 116px minmax(0, 1fr);
  grid-template-rows: auto;
  grid-template-areas: 'icon value label';
  gap: 0 18px !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #fff;
  text-align: left !important;
}

body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card + .metric-card {
  border-top: 1px solid rgba(255, 255, 255, .24) !important;
}

body.home.geiq56-home-btp-v10540 .hero .metric-card__icon {
  grid-area: icon;
  width: 28px;
  height: 28px;
  margin: 0 !important;
  background: none !important;
  border-radius: 0;
  color: #ff91ad !important;
}

body.home.geiq56-home-btp-v10540 .hero .metric-card__icon svg {
  width: 24px;
  height: 24px;
}

body.home.geiq56-home-btp-v10540 .hero .metric-card__val {
  grid-area: value;
  align-self: center;
  margin: 0 !important;
  color: #fff !important;
  font-size: 3rem !important;
  line-height: 1 !important;
  white-space: nowrap;
  text-align: left !important;
}

body.home.geiq56-home-btp-v10540 .hero .metric-card__label {
  grid-area: label;
  align-self: center;
  margin: 0 !important;
  color: #f3edf2 !important;
  font-size: .94rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

body.home.geiq56-home-btp-v10540 .hero .hero__scroll-down {
  position: absolute !important;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  margin: 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  transform: translateX(-50%);
}

body.home.geiq56-home-btp-v10540 .hero .metric-card,
body.home.geiq56-home-btp-v10540 .hero .metric-card:hover,
body.home.geiq56-home-btp-v10540 .hero .metric-card.wp-block-group:hover {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

body.home.geiq56-home-btp-v10540 .hero .metric-card.bg-card::before,
body.home.geiq56-home-btp-v10540 .hero .metric-card.bg-card::after {
  content: none !important;
}

body.home.geiq56-home-btp-v10540 .hero .metric-card > .bg-edge-light {
  display: none !important;
}

[data-theme='dark'] body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card,
[data-theme='dark'] body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card.wp-block-group {
  border-color: rgba(255, 255, 255, .24) !important;
  background: none !important;
  color: #fff;
}

[data-theme='dark'] body.home.geiq56-home-btp-v10540 .hero .metric-card__val {
  color: #fff !important;
}

[data-theme='dark'] body.home.geiq56-home-btp-v10540 .hero .metric-card__label {
  color: #f3edf2 !important;
}

[data-theme='dark'] body.home.geiq56-home-btp-v10540 .hero .metric-card__icon {
  background: none !important;
  color: #ff91ad !important;
}

/* ══════════════════════════════════════════════════════════════════
   GEIQ BTP — section de preuves et finitions ciblées
   ══════════════════════════════════════════════════════════════════ */

body.page-id-30778.geiq56-home-btp-v10540 .section--stats#chiffres-btp {
  padding-block: clamp(76px, 8vw, 124px) !important;
  color: #fff;
  background:
    radial-gradient(circle at 13% 8%, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(135deg, #a90034 0%, #e30043 58%, #bd0039 100%) !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .section-eyebrow {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(255, 255, 255, .12) !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .section-eyebrow::before {
  background: #fff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, .75) !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .section-title {
  color: #fff !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .section-title em {
  color: #ffd1dc !important;
  -webkit-text-fill-color: currentColor !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .section-sub {
  color: rgba(255, 255, 255, .82) !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .hero__metrics-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: clamp(28px, 4vw, 46px) auto 0 !important;
  padding: 0 !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .hero__metrics {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px) !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .metric-card,
body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .metric-card.wp-block-group {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 202px;
  margin: 0 !important;
  padding: clamp(22px, 2.4vw, 30px) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 18px 42px rgba(92, 0, 28, .20) !important;
  color: #1a171b;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .metric-card__icon {
  margin-bottom: 16px !important;
  background: rgba(227, 0, 67, .10) !important;
  color: #e30043 !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .metric-card__val {
  color: #1a171b !important;
}

body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .metric-card__label {
  color: #665f68 !important;
}

/* Le pointeur continue éventuellement d'actualiser --mx/--my, mais le fond
   n'en dépend plus : le projecteur est donc supprimé sur ces six cartes-là. */
body.page-id-30778.geiq56-home-btp-v10540 .section--features-btp .feature-card,
body.page-id-30778.geiq56-home-btp-v10540 .section--features-btp .feature-card.wp-block-column {
  background: var(--color-neutral-0, #fff) !important;
}

body.page-id-30778.geiq56-home-btp-v10540 .section--features-btp .feature-card > .bg-edge-light {
  display: none !important;
}

[data-theme='dark'] body.page-id-30778.geiq56-home-btp-v10540 .section--features-btp .feature-card,
[data-theme='dark'] body.page-id-30778.geiq56-home-btp-v10540 .section--features-btp .feature-card.wp-block-column {
  background: #242127 !important;
}

/* Sélecteur GEIQ : source commune dans components.css, v10.57.3. */

/* ══════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  body.home.geiq56-home-btp-v10540.has-hero-photo .hero {
    min-height: 0;
    align-items: stretch;
    background-position: center, center, 63% 50%;
  }

  body.home.geiq56-home-btp-v10540.has-hero-photo .hero::after {
    width: min(96vw, 560px);
    height: min(96vw, 560px);
    right: -34vw;
    bottom: 12%;
  }

  body.home.geiq56-home-btp-v10540 .hero > .hero__content,
  body.home.geiq56-home-btp-v10540 .hero > .hero__content.wp-block-group {
    width: min(680px, calc(100% - 32px)) !important;
    min-height: 0;
    padding: 142px 0 122px !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'copy'
      'proof';
    gap: 54px;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__metrics-wrap {
    width: min(640px, 100%);
    margin: 0 !important;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__title {
    max-width: 8.1ch;
    font-size: clamp(3.4rem, 10vw, 4.8rem) !important;
  }

  body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.home.geiq56-home-btp-v10540.has-hero-photo .hero {
    background-image:
      linear-gradient(180deg, rgba(17, 13, 18, .58) 0%, rgba(17, 13, 18, .50) 24%, rgba(17, 13, 18, .84) 55%, rgba(17, 13, 18, .98) 100%),
      linear-gradient(90deg, rgba(17, 13, 18, .66), rgba(17, 13, 18, .22)),
      var(--geiq56-hero-photo);
    background-position: center, center, 66% 50%;
  }

  body.home.geiq56-home-btp-v10540 .hero > .hero__content,
  body.home.geiq56-home-btp-v10540 .hero > .hero__content.wp-block-group {
    width: calc(100% - 40px) !important;
    padding: 122px 0 110px !important;
    gap: 32px;
  }

  body.home.geiq56-home-btp-v10540 .hero__content > .persona-view {
    padding-top: 0;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__title {
    font-size: clamp(3.15rem, 14vw, 4rem) !important;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__subtitle {
    font-size: .97rem;
    line-height: 1.56;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__actions,
  body.home.geiq56-home-btp-v10540 .hero .hero__actions.wp-block-buttons {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__actions .wp-block-button,
  body.home.geiq56-home-btp-v10540 .hero .hero__actions .wp-block-button__link {
    width: 100% !important;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card,
  body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card.wp-block-group {
    padding: 20px 0 !important;
    grid-template-columns: 24px 98px minmax(0, 1fr);
    gap: 0 12px !important;
  }

  body.home.geiq56-home-btp-v10540 .hero .metric-card__icon {
    width: 24px;
    height: 24px;
  }

  body.home.geiq56-home-btp-v10540 .hero .metric-card__icon svg {
    width: 21px;
    height: 21px;
  }

  body.home.geiq56-home-btp-v10540 .hero .metric-card__val {
    font-size: 2.5rem !important;
  }

  body.home.geiq56-home-btp-v10540 .hero .metric-card__label {
    font-size: .875rem !important;
  }

  body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .hero__metrics-wrap {
    width: min(100% - 32px, 560px);
  }
}

@media (max-width: 370px) {
  body.home.geiq56-home-btp-v10540 .hero > .hero__content,
  body.home.geiq56-home-btp-v10540 .hero > .hero__content.wp-block-group {
    width: calc(100% - 32px) !important;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__title {
    font-size: 2.85rem !important;
  }

  body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card,
  body.home.geiq56-home-btp-v10540 .hero .hero__metrics .metric-card.wp-block-group {
    grid-template-columns: 22px 88px minmax(0, 1fr);
    gap: 0 10px !important;
  }

  body.home.geiq56-home-btp-v10540 .hero .metric-card__icon {
    width: 22px;
    height: 22px;
  }

  body.home.geiq56-home-btp-v10540 .hero .metric-card__val {
    font-size: 2.25rem !important;
  }
}

@media (max-width: 520px) {
  body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .hero__metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .metric-card,
  body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .metric-card.wp-block-group {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home.geiq56-home-btp-v10540 .hero .metric-card,
  body.page-id-30778.geiq56-home-btp-v10540 #chiffres-btp .metric-card {
    transition: none !important;
  }
}
