/* /services-traduction/ hub (components/services/ServicesHubPage.jsx). Imported by that component only,
   so it ships with the catch-all route and never with the home page. Tokens from app/design-system.css,
   dark values come from app/dark.css (tokens flip); the few dark-only fills are set at the end. */

.sh { --sh-card: var(--bt-white); --sh-ink: var(--bt-navy-deep); }
.sh-sec { padding: 88px 0; }
.sh-head { max-width: none; margin: 0 0 40px; }
.sh-head h2 { text-wrap: balance; }
.sh-head h2 { margin: 0; }
.sh-eyebrow { margin: 0 0 12px; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bt-accent-ink); }
.sh-lead { max-width: none; margin: 14px 0 0; font-size: var(--fs-body-lg); line-height: 1.6; color: var(--bt-text-mid); }

.sh a:focus-visible, .sh summary:focus-visible { outline: 3px solid var(--bt-accent); outline-offset: 3px; border-radius: 6px; }

/* Families */
.sh-fam { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.sh-fam__card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--sh-card); border: 1px solid var(--bt-line); border-radius: 18px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sh-fam__card:hover { border-color: var(--bt-teal); box-shadow: 0 14px 32px rgba(6, 26, 68, .08); transform: translateY(-2px); }
.sh-fam__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bt-teal-50); color: var(--bt-accent-ink); }
.sh-fam__card h3 { margin: 4px 0 0; font-size: var(--fs-sec-h3, var(--fs-h4)); line-height: 1.3; }
.sh-fam__card h3 a { color: inherit; text-decoration: none; }
.sh-fam__card h3 a:hover { color: var(--bt-accent-ink); }
.sh-fam__card > p { margin: 0; color: var(--bt-text-mid); line-height: 1.6; }
.sh-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--bt-line-2); border-radius: 999px; font-size: var(--fs-small); color: var(--bt-text); text-decoration: none; line-height: 1.35; }
.sh-chips a:hover { border-color: var(--bt-accent); color: var(--bt-accent-ink); background: var(--bt-teal-50); }
.sh-fam__go { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: var(--fs-small); color: var(--bt-accent-ink); text-decoration: none; }
.sh-fam__go span { display: inline-block; transition: transform .2s; }
.sh-fam__card:hover .sh-fam__go span { transform: translateX(4px); }

/* Sectors: four clusters, equal-height cards, vertical lists (no ragged tiles, no orphan row) */
.sh-sec--tint { background: var(--bt-paper-2); }
.sh-fam__poles { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.sh-fam__poles a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--bt-line-2); border-radius: 10px; font-size: var(--fs-small); color: var(--bt-text); text-decoration: none; line-height: 1.35; }
.sh-fam__poles a svg { flex: none; color: var(--bt-accent-ink); }
.sh-fam__poles a span:first-of-type { flex: 1; }
.sh-fam__poles a:hover { border-color: var(--bt-accent); color: var(--bt-accent-ink); background: var(--bt-teal-50); }
.sh-cluster { scroll-margin-top: 110px; }
.sh-clusters { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sh-clusters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sh-clusters { gap: 24px; } .sh-cluster { padding: 28px 28px 18px; } .sh-cluster__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } .sh-cluster__list li + li { border-top: 0; } .sh-cluster__list li { border-bottom: 1px solid var(--bt-line); } }
.sh-cluster { display: flex; flex-direction: column; padding: 24px 20px 14px; background: var(--sh-card); border: 1px solid var(--bt-line); border-top: 3px solid var(--bt-teal); border-radius: 18px; }
.sh-cluster__head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 0 4px 16px; border-bottom: 1px solid var(--bt-line); }
.sh-cluster__head h3 { margin: 0; font-size: var(--fs-card-title, 1.12rem); line-height: 1.3; text-wrap: balance; }
.sh-cluster__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bt-navy-deep); color: #fff; }
.sh-cluster__list { list-style: none; margin: 8px 0 0; padding: 0; }
.sh-cluster__list li + li { border-top: 1px solid var(--bt-line); }
.sh-cluster__list a { display: flex; align-items: center; gap: 12px; padding: 11px 6px; color: var(--bt-text); text-decoration: none; line-height: 1.35; border-radius: 8px; }
.sh-cluster__ico { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bt-teal-50); color: var(--bt-accent-ink); }
.sh-cluster__t { flex: 1; }
.sh-cluster__go { color: var(--bt-accent-ink); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.sh-cluster__list a:hover { color: var(--bt-accent-ink); }
.sh-cluster__list a:hover .sh-cluster__go { opacity: 1; transform: none; }

/* Steps: navy band */
.sh-steps { background: var(--bt-navy-deep); color: #fff; border-radius: 24px; padding: 56px; box-shadow: 0 24px 48px rgba(6, 26, 68, .18); }
.sh-steps h2, .sh-steps h3 { color: #fff; }
.sh-steps .sh-eyebrow { color: var(--bt-teal); }
.sh-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 28px; grid-template-columns: 1fr; position: relative; }
.sh-steps__list li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-content: start; }
.sh-steps__list li > :not(.sh-steps__mark) { grid-column: 2; }
.sh-steps__mark { grid-row: 1 / span 2; position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(126, 190, 197, .14); border: 1px solid rgba(126, 190, 197, .45); color: var(--bt-teal); }
.sh-steps__n { position: absolute; top: -4px; right: -6px; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bt-teal); color: var(--bt-navy-deep); font-size: .75rem; font-weight: 700; line-height: 1; }
.sh-steps__list h3 { margin: 4px 0 8px; font-size: var(--fs-card-title, 1.12rem); line-height: 1.35; }
.sh-steps__list p { margin: 0; color: rgba(255, 255, 255, .84); line-height: 1.6; }
@media (max-width: 959px) { .sh-steps__list li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: -28px; width: 1px; background: linear-gradient(rgba(126, 190, 197, .6), rgba(126, 190, 197, .1)); } }
@media (min-width: 960px) {
  .sh-steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sh-steps__list::before { content: ""; position: absolute; top: 28px; left: 28px; right: 12%; height: 1px; background: linear-gradient(90deg, rgba(126, 190, 197, .7), rgba(126, 190, 197, .15)); }
  .sh-steps__list li { grid-template-columns: 1fr; }
  .sh-steps__list li > :not(.sh-steps__mark) { grid-column: 1; }
  .sh-steps__mark { grid-row: auto; margin-bottom: 18px; background: #0b2457; }
}
html[data-theme="dark"] .sh-steps__mark { background: var(--bt-surface, #0b2457); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .sh-steps__mark { background: var(--bt-surface, #0b2457); } }
.sh-steps__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22); }
.sh-steps__foot p { margin: 0; color: rgba(255, 255, 255, .84); }

/* Why */
.sh-why { display: grid; gap: 40px; grid-template-columns: 1fr; }
.sh-why__text p { margin: 0 0 16px; line-height: 1.7; color: var(--bt-text); }
.sh-why__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.sh-why__facts li { display: grid; gap: 6px; padding: 22px 24px; background: var(--sh-card); border: 1px solid var(--bt-line); border-left: 4px solid var(--bt-orange); border-radius: 14px; }
.sh-why__facts strong { color: var(--bt-navy); }
.sh-why__facts span { color: var(--bt-text-mid); line-height: 1.6; }
@media (min-width: 960px) { .sh-why { grid-template-columns: 1.3fr 1fr; gap: 64px; } }

/* Languages */
.sh-langs { display: grid; gap: 36px; }
.sh-langs p { margin: 0 0 18px; line-height: 1.7; }
.sh-link { font-weight: 600; color: var(--bt-accent-ink); }
.sh-langs__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.sh-langs__grid a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--bt-line); border-radius: 12px; color: var(--bt-text); text-decoration: none; background: var(--sh-card); }
.sh-langs__grid a:hover { border-color: var(--bt-accent); color: var(--bt-accent-ink); }
.sh-langs__code { flex: none; display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 6px; background: var(--bt-navy-deep); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
@media (min-width: 960px) { .sh-langs { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; } }

/* Places */
.sh-places { display: grid; gap: 32px; }
.sh-places h3 { margin: 0 0 14px; font-size: var(--fs-card-title, 1.12rem); }
.sh-places__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.sh-places__list--cities { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.sh-places__list a { display: inline-block; padding: 6px 0; color: var(--bt-text); text-decoration: none; border-bottom: 1px solid transparent; line-height: 1.4; }
.sh-places__list a:hover { color: var(--bt-accent-ink); border-bottom-color: currentColor; }
.sh-places__sworn { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--bt-line); line-height: 1.8; color: var(--bt-text-mid); }
@media (min-width: 960px) { .sh-places { grid-template-columns: 1fr 1.6fr; gap: 56px; } }

/* FAQ */
.sh-faq { border-top: 1px solid var(--bt-line); }
.sh-faq details { border-bottom: 1px solid var(--bt-line); }
.sh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--bt-accent-ink); transition: transform .2s; }
.sh-faq details[open] summary::after { transform: rotate(45deg); }
.sh-faq summary h3 { margin: 0; font-size: var(--fs-card-title, 1.12rem); line-height: 1.4; }
.sh-faq__a p { margin: 0 0 20px; color: var(--bt-text-mid); line-height: 1.7; }

@media (max-width: 700px) {
  .sh-sec { padding: 56px 0; }
  .sh-head { margin-bottom: 28px; }
  .sh-fam__card { padding: 22px; }
  .sh-steps { padding: 36px 22px; border-radius: 18px; }
  .sh-steps__foot .bt-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-fam__card, .sh-fam__go span, .sh-cluster__go, .sh-faq summary::after { transition: none; }
  .sh-fam__card:hover { transform: none; }
}

/* Dark: cards on the raised surface, navy band kept dark. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .sh { --sh-card: var(--bt-surface); }
  html:not([data-theme="light"]) .sh-sec--tint { background: var(--bt-surface-2); }
  html:not([data-theme="light"]) .sh-cluster__icon { background: var(--bt-teal-50); color: var(--bt-accent-ink); }
  html:not([data-theme="light"]) .sh-steps { background: var(--bt-surface-2); border: 1px solid var(--bt-line-teal); box-shadow: none; }
}
html[data-theme="dark"] .sh { --sh-card: var(--bt-surface); }
html[data-theme="dark"] .sh-sec--tint { background: var(--bt-surface-2); }
html[data-theme="dark"] .sh-cluster__icon { background: var(--bt-teal-50); color: var(--bt-accent-ink); }
html[data-theme="dark"] .sh-steps { background: var(--bt-surface-2); border: 1px solid var(--bt-line-teal); box-shadow: none; }

/* betranslated.be additions: all language pages as chips under the grid, kept-links band. */
.sh .sh-langs__more { margin-top: 28px; }
.sh .hub-kept__title { margin: 0 0 18px; font-size: var(--fs-h2); color: var(--bt-navy); }
@media (max-width: 420px) { .sh .sh-langs__grid { grid-template-columns: 1fr; } }
/* Rule 25d (23 Nov 2026): a cluster with an odd number of links closes its two-column list, no empty slot (3 links ran 2 + 1). */
@media (min-width: 1000px) { .sh-cluster__list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Place lists with an even count (nl city pages): two columns, so 10 and 12 cities never leave a lone last tile. */
.sh-places__list--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Batch 3 look (23 Nov 2026): the lone last link keeps the width of its siblings and sits centred on its row, so its label and rule do not stretch across the card. */
@media (min-width: 1000px) { .sh-cluster__list li:last-child:nth-child(odd) { justify-self: center; width: calc(50% - 12px); } }
/* Rule 25d (batch 5, 24 Nov 2026): a cluster of three links ("Juridique, Financière, Commerciale" on fr) is one row of three,
   so no link sits alone on a second row and every cluster of the grid is one row high. */
@media (min-width: 1000px) {
  .sh-cluster__list[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .sh-cluster__list[data-n="3"] li:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
}
