.content-page {
  background: var(--white);
}

.content-hero {
  min-height: 0;
  padding: 58px max(48px, calc((100vw - 1320px) / 2)) 54px;
  border-bottom: 1px solid var(--ink);
}

.content-kicker,
.section-kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.content-hero h1 {
  margin: 0;
  font-size: clamp(36px, 3.25vw, 58px);
  letter-spacing: -.06em;
  line-height: .94;
  white-space: nowrap;
}

.content-lead {
  max-width: 980px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.content-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 92px 0;
  border-bottom: 1px solid rgba(17,17,17,.2);
}

.content-section-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 54px;
  align-items: start;
}

.content-section h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: -.05em;
  line-height: 1;
}

.content-story {
  margin: 44px 0 0 274px;
  max-width: 850px;
  columns: 2;
  column-gap: 52px;
}

.content-story p {
  margin: 0 0 20px;
  break-inside: avoid;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.service-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: transparent;
  border: 0;
}

.service-card {
  min-height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: #f2f3f7;
  border-top: 4px solid var(--blue);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.service-card:hover {
  color: var(--ink);
  background: #e8ecff;
  transform: translateY(-6px);
}

.service-card:hover span,
.service-card:hover p {
  color: inherit;
}

.service-card span,
.method-step span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.service-card h3 {
  margin: auto 0 18px;
  font-size: 26px;
  letter-spacing: -.04em;
}

.service-card p,
.content-copy,
.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.method-list {
  margin: 58px 0 0 220px;
  border-top: 1px solid var(--ink);
}

.method-intro {
  max-width: 850px;
  margin: 42px 0 0 274px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

.method-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.method-step {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 80px 240px 1fr;
  gap: 28px;
  border-bottom: 1px solid rgba(17,17,17,.2);
}

.method-step h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.03em;
}

.content-proof {
  max-width: 1320px;
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: center;
}

.content-proof blockquote {
  max-width: 900px;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 50px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.06;
}

.content-proof a {
  padding: 16px 20px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.content-proof a:hover,
.content-proof a:focus-visible {
  background: var(--blue);
}

/* Quatre écritures de page, une même grammaire de marque */
.family-agency .content-hero {
  background: #f4f0e8;
}

.family-agency .content-section:first-of-type {
  position: relative;
}

.family-agency .content-story,
.family-agency .service-grid {
  max-width: 1120px;
}

.family-expertise .content-hero {
  border-left: 18px solid var(--blue);
}

.family-expertise .service-grid {
  gap: 0;
  border-top: 1px solid var(--ink);
}

.family-expertise .service-card {
  min-height: 250px;
  background: var(--white);
  border-top: 0;
  border-right: 1px solid rgba(17,17,17,.22);
}

.family-expertise .service-card:last-child {
  border-right: 0;
}

.family-solutions .content-hero {
  color: var(--white);
  background: #111;
  border-bottom-color: #111;
}

.family-solutions .content-lead {
  color: #c9c9c9;
}

.family-solutions .service-card {
  color: var(--white);
  background: #111;
  border-top-color: #718bff;
}

.family-solutions .service-card p {
  color: #c9c9c9;
}

.family-solutions .service-card:hover {
  color: var(--ink);
  background: #eef1ff;
}

.family-solutions .service-card:hover p {
  color: var(--muted);
}

.family-solutions .method-step span,
.family-solutions .service-card span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.family-data .content-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(52,86,255,.95), rgba(52,86,255,.74)),
    url("assets/sector/data.jpg") center / cover;
  border-bottom: 0;
}

.family-data .content-kicker,
.family-data .content-lead {
  color: var(--white);
}

.family-data .service-card {
  border: 1px solid #9db0ff;
  border-top-width: 4px;
  background: #eef1ff;
}

.family-data .service-card:hover {
  color: var(--ink);
  background: #dfe5ff;
}

/* Méthode : une trajectoire de projet, pas une page catalogue. */
.method-page .content-hero {
  background: var(--blue);
  color: var(--white);
}

.method-page .content-kicker,
.method-page .content-lead {
  color: var(--white);
}

.method-page .service-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
}

.method-page .service-card {
  min-height: 220px;
  border: 0;
  background: var(--white);
}

.method-page .service-card h3 {
  margin-top: 52px;
}

.method-page .method-list {
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
}

.method-page .method-step {
  padding: 26px;
  display: block;
  border: 0;
  border-right: 1px solid var(--ink);
}

.method-page .method-step:last-child { border-right: 0; }
.method-page .method-step h3 { margin: 42px 0 14px; }

/* Conseil UX : décisions et preuves sont mises en regard. */
.ux-page .content-section:first-of-type {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.5fr);
  column-gap: 70px;
}

.ux-page .content-section:first-of-type .content-section-head {
  display: block;
  position: sticky;
  top: calc(var(--header-height) + 36px);
  align-self: start;
}

.ux-page .content-section:first-of-type .content-story,
.ux-page .content-section:first-of-type .service-grid {
  grid-column: 2;
  margin-left: 0;
}

.ux-page .service-grid {
  grid-template-columns: 1fr;
}

.ux-page .service-card {
  min-height: 180px;
}

/* Cybersécurité : lecture en trois couches, sobre et très contrastée. */
.security-page .content-hero,
.security-page .content-section:first-of-type {
  color: var(--white);
  background: #111;
}

.security-page .content-lead,
.security-page .content-story p,
.security-page .content-section:first-of-type .service-card p {
  color: #c7c7c7;
}

.security-page .content-section:first-of-type {
  max-width: none;
  padding-left: max(48px, calc((100vw - 1320px) / 2));
  padding-right: max(48px, calc((100vw - 1320px) / 2));
}

.security-page .content-section:first-of-type .service-card {
  color: var(--white);
  background: #1d1d1d;
  border-top-color: #8ba0ff;
}

.security-page .content-section:first-of-type .service-card:hover {
  color: var(--white);
  background: #283fbd;
}

.tech-stack {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.35);
}

.tech-stack article {
  min-height: 210px;
  padding: 30px;
  border-right: 1px solid rgba(255,255,255,.35);
}

.tech-stack article:last-child { border-right: 0; }
.tech-stack img { width: 68px; height: 68px; object-fit: contain; margin-bottom: 30px; }
.tech-stack h3 { margin: 0 0 12px; font-size: 24px; }
.tech-stack p { margin: 0; color: #c9c9c9; line-height: 1.6; }

@media (max-width: 900px) {
  .content-hero,
  .content-section-head,
  .content-proof {
    grid-template-columns: 1fr;
  }

  .content-hero {
    min-height: 0;
    padding: 58px 24px;
    gap: 48px;
  }

  .content-hero h1 {
    white-space: normal;
  }

  .family-agency .content-section:first-of-type::after {
    display: none;
  }

  .method-page .service-grid,
  .method-page .method-list,
  .ux-page .content-section:first-of-type,
  .tech-stack {
    grid-template-columns: 1fr;
  }

  .method-page .method-step,
  .tech-stack article {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .ux-page .content-section:first-of-type .content-story,
  .ux-page .content-section:first-of-type .service-grid {
    grid-column: 1;
  }

  .content-section,
  .content-proof {
    padding: 58px 24px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .method-list {
    margin-left: 0;
  }

  .content-story {
    margin-left: 0;
    columns: 1;
  }

  .method-intro {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .method-step {
    grid-template-columns: 48px 1fr;
  }

  .method-step p {
    grid-column: 2;
  }
}
