/* Home seulement : rail éditorial et cartes fixes, sans bannière ni slider. */
html[data-design-scope="site"] .bh-home[data-page="home"] {
  --hp-ink: #171717;
  background-image: none;
  background-size: 22px 22px;
}
html[data-design-theme="dark"] .bh-home[data-page="home"] { --hp-ink: #f9fafb; }
html[data-design-scope="site"] .bh-home .hp-presentation {
  display: grid;
  grid-template-columns: minmax(320px, .87fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(36px, 5vw, 76px);
  padding-block: 74px 64px;
}
.hp-intro { position: sticky; top: 128px; min-width: 0; }
.hp-badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 25px;
  border: 1px solid var(--bd-border); border-radius: 24px; padding: 5px 12px;
  background: var(--bd-soft); color: var(--bd-text); font-size: 11px;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hp-badge > span { width: 6px; height: 6px; border-radius: 50%; background: var(--bd-text); }
html[data-design-scope="site"] .bh-home .hp-title {
  position: relative; margin: 0 0 28px; color: var(--hp-ink);
  font-size: clamp(42px, 4.6vw, 70px); font-weight: 780; line-height: 1.055;
  letter-spacing: -.052em; overflow-wrap: anywhere; white-space: pre-line;
}
.hp-title-source { display: block; transition: opacity .12s; }
.hp-title-output { position: absolute; inset: 0; }
.hp-title-output[hidden] { display: none; }
.hp-title.is-typing .hp-title-source { opacity: 0; }
.hp-title.is-typing .hp-title-output::after {
  content: ''; display: inline-block; height: .86em; width: 3px;
  margin-left: 4px; vertical-align: -.05em; background: var(--bd-link);
  animation: hp-caret .75s step-end infinite;
}
@keyframes hp-caret { 50% { opacity: 0; } }
html[data-design-scope="site"] .bh-home .hp-description {
  margin: 0 0 28px; max-width: 460px; color: var(--bd-muted); font-size: 17px; line-height: 1.75;
  white-space: pre-line; overflow-wrap: anywhere;
}
html[data-design-scope="site"] .bh-home .hp-main-cta {
  display: inline-flex; gap: 16px; align-items: center; justify-content: center;
  background: #111111; color: #fff; border: 1px solid #111111; padding: 12px 19px;
  border-radius: 30px; text-decoration: none; font-size: 13px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hp-main-cta:hover, .hp-main-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px #0002; }
html[data-design-scope="site"][data-design-theme="dark"] .bh-home .hp-main-cta { background: #f9fafb; color: #111827; border-color: #f9fafb; }
.hp-motion-controls { display: flex; align-items: flex-start; height: 48px; }
.hp-motion-stop { display: block; margin: 12px 0 0; padding: 4px 0; color: var(--bd-muted); font-size: 11px; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp-motion-stop[hidden] { display: none; }
html[data-design-scope="site"] .bh-home .hp-filters { justify-content: flex-start; flex-wrap: wrap; margin: 30px 0 13px; gap: 7px; }
html[data-design-scope="site"] .bh-home .hp-filters button { font-size: 11px; padding: 5px 11px; min-height: 34px; }
.hp-side-note { color: var(--bd-muted); max-width: 350px; font-size: 12px; line-height: 1.7; }
.hp-services { min-width: 0; }
html[data-design-scope="site"] .bh-home .hp-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
html[data-design-scope="site"] .bh-home .hp-card {
  display: flex; flex-direction: column; min-width: 0; min-height: 286px; padding: 26px;
  border: 1px solid var(--bd-border); border-radius: 23px; background: var(--bd-card);
  box-shadow: 0 3px 7px #00000003; position: relative; overflow: hidden;
  transform: translateY(0) !important;
  transition: transform .28s cubic-bezier(.2,.65,.25,1), opacity .45s ease, box-shadow .28s, border-color .28s;
}
html[data-design-scope="site"] .bh-home.bh-motion-enabled .hp-card:not(.is-visible) { opacity: 0; transform: translateY(24px) scale(.98) !important; }
html[data-design-scope="site"] .bh-home .hp-card:is(:hover,:focus-within) {
  transform: translateY(-6px) !important; border-color: color-mix(in srgb, var(--service-color) 55%, var(--bd-border));
  box-shadow: 0 12px 34px color-mix(in srgb, var(--service-color) 13%, transparent);
}
.hp-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
html[data-design-scope="site"] .bh-home .hp-card .bh-service-icon {
  margin: 0; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px;
  background: var(--service-color); color: white;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--service-color) 25%, transparent);
  transition: transform .28s;
}
html[data-design-scope="site"] .bh-home .hp-card:is(:hover,:focus-within) .bh-service-icon { transform: rotate(-5deg) scale(1.05); }
html[data-design-scope="site"] .bh-home .hp-card .bh-icon { padding: 0; width: 28px; height: 28px; color: white; background: none; margin: 0; border-radius: 0; }
html[data-design-scope="site"] .bh-home .hp-card h3 { color: var(--bd-text); margin: 0; font-size: 20px; font-weight: 730; line-height: 1.3; letter-spacing: -.025em; }
html[data-design-scope="site"] .bh-home .hp-card .bh-card-category {
  display: table; align-self: flex-start; max-width: 100%; margin: 0 0 14px;
  padding: 3px 8px; background: var(--bd-soft); color: var(--bd-muted) !important;
  border-radius: 14px; font-size: 9px; line-height: 1.4; font-weight: 600; letter-spacing: .04em;
}
html[data-design-scope="site"] .bh-home .hp-card-description { margin: 0 0 23px; color: var(--bd-muted); font-size: 14px; line-height: 1.65; }
.hp-card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; }
html[data-design-scope="site"] .bh-home .hp-card .bh-discover {
  display: inline-flex; justify-content: center; align-items: center; gap: 16px;
  margin: 0; padding: 8px 13px; min-height: 38px; border-radius: 24px;
  background: #111111; color: white; border: 1px solid #111111;
  font-size: 11px; text-transform: none; font-weight: 600; letter-spacing: 0;
  transition: background .2s ease;
}
html[data-design-scope="site"] .bh-home .hp-card .bh-discover::after { display: none; }
html[data-design-scope="site"] .bh-home .hp-card .bh-discover:hover { background: #292929; }
html[data-design-scope="site"][data-design-theme="dark"] .bh-home .hp-card,
html[data-design-scope="site"][data-design-theme="dark"] .bh-home .hp-card[data-color="academy"] { background: var(--bd-card); border-color: var(--bd-border); }
html[data-design-scope="site"][data-design-theme="dark"] .bh-home .hp-card .bh-discover { background: #f9fafb; color: #111827; border-color: #f9fafb; }
.hp-card-orbit { width: 12px; height: 12px; border-radius: 50%; background: var(--service-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--service-color) 10%, transparent), 0 0 20px color-mix(in srgb, var(--service-color) 50%, transparent); }
.hp-card[hidden] { display: none !important; }
@media (max-width: 1100px) {
  html[data-design-scope="site"] .bh-home .hp-presentation { grid-template-columns: minmax(0,1fr); gap: 38px; padding-block: 45px; }
  .hp-intro { position: static; max-width: 720px; }
  html[data-design-scope="site"] .bh-home .hp-title { max-width: 660px; font-size: clamp(40px, 5.8vw, 60px); }
  html[data-design-scope="site"] .bh-home .hp-description { max-width: 640px; }
  .hp-side-note { max-width: 640px; }
}
@media (max-width: 700px) {
  html[data-design-scope="site"] .bh-home .hp-presentation { padding-block: 34px; gap: 25px; }
  html[data-design-scope="site"] .bh-home .hp-title { font-size: 39px; letter-spacing: -.045em; margin-bottom: 22px; }
  html[data-design-scope="site"] .bh-home .hp-description { font-size: 15px; line-height: 1.75; }
  html[data-design-scope="site"] .bh-home .hp-service-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html[data-design-scope="site"] .bh-home .hp-card { padding: 24px; min-height: 266px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-title-source { transition: none; }
  .hp-title-output { display: none !important; }
  .hp-title .hp-title-source { opacity: 1 !important; }
  html[data-design-scope="site"] .bh-home .hp-card, html[data-design-scope="site"] .bh-home.bh-motion-enabled .hp-card:not(.is-visible),
  html[data-design-scope="site"] .bh-home .hp-card:is(:hover,:focus-within), .hp-main-cta, .hp-main-cta:hover, .hp-main-cta:focus-visible {
    transform: none !important; opacity: 1; transition: none; animation: none;
  }
  html[data-design-scope="site"] .bh-home .hp-card .bh-service-icon { transform: none !important; transition: none; }
}
