.service-hub-page {
  background: var(--ink);
}

.service-header .main-nav a.is-active::after {
  transform: scaleX(1);
}

.hub-hero {
  min-height: 880px;
  display: grid;
  align-items: center;
  padding: 130px 0 80px;
}

.hub-hero-media,
.hub-hero-media::after,
.hub-hero-line {
  position: absolute;
  inset: 0;
}

.hub-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hub-hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 11, 16, 0.98) 0%, rgba(5, 11, 16, 0.82) 35%, rgba(5, 11, 16, 0.2) 68%, rgba(5, 11, 16, 0.08) 100%),
    linear-gradient(0deg, rgba(5, 11, 16, 0.92), transparent 38%, rgba(5, 11, 16, 0.2));
}

.hub-hero-line {
  z-index: 1;
  pointer-events: none;
}

.hub-hero-line::before,
.hub-hero-line::after {
  content: "";
  position: absolute;
  background: rgba(255, 75, 31, 0.78);
}

.hub-hero-line::before {
  display: none;
}

.hub-hero-line::after {
  top: 103px;
  left: 57%;
  right: 7%;
  height: 1px;
}

.hub-hero-inner {
  position: relative;
  z-index: 2;
}

.hub-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0 0 44px;
  color: rgba(245, 244, 239, 0.5);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hub-kicker span {
  width: 1px;
  height: 18px;
  background: rgba(245, 244, 239, 0.36);
}

.hub-kicker::first-letter {
  color: var(--orange);
}

.hub-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 6.7vw, 98px);
  line-height: 0.95;
  font-weight: 950;
}

.hub-hero h1 span,
.hub-commitments h2 span,
.hub-cta h2 span {
  color: var(--orange);
}

.hub-hero p:not(.hub-kicker) {
  max-width: 610px;
  margin: 34px 0 0;
  color: rgba(245, 244, 239, 0.7);
  font-size: 17px;
  line-height: 1.65;
}

.hub-text-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-bottom: 12px;
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
  font-weight: 900;
}

.hub-text-cta::after {
  content: "→";
  font-size: 25px;
  line-height: 1;
}

.hub-text-cta.small {
  align-self: end;
  margin-top: 0;
  font-size: 13px;
}

.hub-conditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 190px));
  gap: 0;
  margin-top: 58px;
}

.hub-conditions span {
  padding: 8px 28px 8px 0;
  color: rgba(245, 244, 239, 0.48);
  font-size: 11px;
  text-transform: uppercase;
  border-right: 1px solid rgba(245, 244, 239, 0.24);
}

.hub-conditions strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 17px;
}

.hub-services {
  padding: 108px 0 96px;
}

.hub-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 70px;
}

.hub-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.7vw, 82px);
  line-height: 0.95;
  font-weight: 950;
}

.hub-route {
  position: relative;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 950;
}

.hub-route::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  top: 27px;
  height: 3px;
  background: linear-gradient(174deg, transparent 0 48%, var(--orange) 48.5% 54%, transparent 54.5%);
}

.hub-route span {
  position: relative;
  min-height: 42px;
  padding-left: 22px;
}

.hub-route span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--orange);
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hub-service-card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  background: rgba(4, 13, 20, 0.82);
  border: 1px solid rgba(255, 75, 31, 0.74);
}

.hub-service-card > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.hub-service-card:nth-child(1) > img {
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
  padding: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(180deg, #e5e5e3, #b9bdbe);
  filter: saturate(0.96) contrast(1.06) brightness(0.9);
}

.hub-service-card:nth-child(2) > img {
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
  padding: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #858987, #202930);
  filter: saturate(0.92) contrast(1.08) brightness(0.86);
}

.hub-service-card:nth-child(3) > img {
  filter: brightness(0.58) contrast(1.16) saturate(0.82);
}

.hub-service-card:nth-child(6) > img {
  object-position: center;
  filter: saturate(0.92) contrast(1.08) brightness(0.82);
}

.hub-service-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 16px 20px;
}

.hub-service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  padding: 7px;
  border: 1px solid var(--orange);
}

.hub-number {
  color: var(--orange);
  font-weight: 950;
}

.hub-service-card h3 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: 20px;
  line-height: 1.02;
}

.hub-service-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  color: rgba(245, 244, 239, 0.68);
  font-size: 12px;
  line-height: 1.45;
  list-style: none;
}

.hub-service-card li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--orange);
  vertical-align: 2px;
}

.hub-service-card a {
  margin-top: auto;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.hub-service-card a::after {
  content: " →";
}

.hub-commitments {
  position: relative;
  padding: 104px 0 108px;
}

.hub-rail {
  position: absolute;
  left: 28px;
  top: 120px;
  bottom: 100px;
  color: rgba(245, 244, 239, 0.45);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hub-commitments-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
  gap: clamp(50px, 6vw, 96px);
}

.brand.mini {
  margin-bottom: 58px;
}

.hub-commitments h2 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.8vw, 82px);
  line-height: 0.95;
}

.hub-commitments-copy > p:not(.eyebrow) {
  max-width: 430px;
  margin: 28px 0 42px;
  color: rgba(245, 244, 239, 0.72);
  font-size: 20px;
  line-height: 1.45;
}

.hub-commitments-photo {
  height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hub-commitments-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-commitment-list {
  border-top: 1px solid var(--line);
}

.hub-commitment-list article {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) 24px;
  gap: 26px;
  align-items: center;
  min-height: 124px;
  border-bottom: 1px solid var(--line);
}

.hub-commitment-list span {
  color: var(--orange);
  font-size: 22px;
  font-weight: 950;
}

.hub-commitment-list img {
  width: 58px;
  height: 58px;
}

.hub-commitment-list h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-commitment-list p {
  margin: 0;
  color: rgba(245, 244, 239, 0.65);
  line-height: 1.35;
}

.hub-commitment-list i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 26px rgba(255, 75, 31, 0.55);
}

.hub-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 760px;
}

.hub-cta-image {
  min-height: 760px;
  overflow: hidden;
}

.hub-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-cta-copy {
  align-self: center;
  padding: 80px clamp(34px, 6vw, 96px);
}

.hub-cta h2 {
  max-width: 610px;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
}

.hub-cta p:not(.eyebrow) {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(245, 244, 239, 0.7);
  font-size: 17px;
  line-height: 1.65;
}

.hub-cta-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.hub-cta-tabs span {
  position: relative;
  padding: 22px 16px 0;
  color: rgba(245, 244, 239, 0.5);
  font-size: 11px;
  line-height: 1.35;
  border-right: 1px solid var(--line);
}

.hub-cta-tabs span::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.hub-cta-tabs strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
}

.service-faq {
  padding-top: 116px;
}

.service-footer .footer-photo {
  height: 285px;
}

.service-footer .footer-photo.footer-photo-home {
  height: clamp(390px, 32vw, 600px);
}

@media (max-width: 1180px) {
  .service-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hub-route {
    display: none;
  }
}

@media (max-width: 980px) {
  .hub-hero {
    min-height: 760px;
  }

  .hub-hero h1 {
    max-width: 680px;
  }

  .hub-section-head,
  .hub-commitments-grid,
  .hub-cta {
    grid-template-columns: 1fr;
  }

  .hub-section-head {
    display: grid;
    align-items: start;
  }

  .hub-rail {
    display: none;
  }

  .hub-cta-image {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  .hub-hero {
    min-height: 720px;
    padding-top: 118px;
  }

  .hub-kicker {
    gap: 10px;
    margin-bottom: 28px;
    font-size: 10px;
  }

  .hub-kicker span {
    display: none;
  }

  .hub-hero h1,
  .hub-section-head h2,
  .hub-commitments h2,
  .hub-cta h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hub-conditions,
  .service-card-grid,
  .hub-commitment-list article,
  .hub-cta-tabs {
    grid-template-columns: 1fr;
  }

  .hub-conditions span,
  .hub-cta-tabs span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hub-services,
  .hub-commitments {
    padding: 72px 0;
  }

  .hub-service-card {
    min-height: auto;
  }

  .hub-commitment-list article {
    gap: 12px;
    padding: 26px 0;
  }

  .hub-commitment-list i {
    display: none;
  }

  .hub-cta-copy {
    padding: 66px 18px;
  }
}

@media (max-width: 720px) {
  .hub-page h1,
  .hub-page h2,
  .hub-page h3,
  .hub-page p,
  .hub-page a,
  .hub-page span,
  .hub-page strong,
  .hub-page small {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hub-hero h1,
  .hub-section-head h2,
  .hub-commitments h2,
  .hub-cta h2 {
    line-height: 1.04;
  }

  .hub-service-card,
  .hub-commitment-list article,
  .hub-conditions span,
  .hub-cta-tabs span {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hub-services,
  .hub-commitments,
  .hub-cta {
    overflow: visible;
  }

  .hub-service-card h3,
  .hub-commitment-list strong {
    line-height: 1.15;
  }
}

/* Spacing safety pass: keep service text away from frame lines and divider rules. */
.hub-service-content {
  padding: clamp(22px, 2.2vw, 34px);
}

.hub-service-card h3,
.hub-service-card p,
.hub-service-card li,
.hub-service-card a {
  max-width: calc(100% - 2px);
}

.hub-commitment-list article {
  padding: 24px clamp(18px, 2vw, 32px);
}

.hub-commitment-list article > *:first-child {
  margin-left: 2px;
}

.hub-cta-tabs span {
  padding: 24px 22px 0 24px;
}

.hub-cta-tabs span::before {
  left: 12px;
}

@media (max-width: 720px) {
  .hub-service-content,
  .hub-commitment-list article,
  .hub-cta-tabs span {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hub-cta-tabs span::before {
    left: 22px;
  }
}

/* Garder les mots du titre entiers sur les écrans étroits. */
@media (max-width: 700px) {
  .hub-hero h1 {
    font-size: clamp(34px, 10.5vw, 48px);
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* Des cartes assez larges pour les photos, titres et descriptions. */
.service-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hub-service-card { min-height: 0; border: 0; }
:root body .hub-service-card > img {
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  padding: 0;
  border: 0;
}
.hub-service-content { padding: 26px; }
.hub-service-card h3 { font-size: 25px; line-height: 1.15; margin-bottom: 20px; }
.hub-service-card ul { font-size: 14px; line-height: 1.65; }
.hub-service-card a { font-size: 14px; padding-top: 10px; }
@media (max-width: 1060px) { .service-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .service-card-grid { grid-template-columns: 1fr; }
  .hub-service-content { padding: 24px 20px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .hub-commitments-grid, .hub-cta { grid-template-columns: 1fr; }
  .hub-cta-image { min-height: 0; height: 620px; }
  .hub-cta-copy { padding: 64px 48px; }
}
