/* =========================================================
   FGB — Services
   Five expertises in numbered chapters.
   Architecture: tokens → base → motion → page. Each page loads
   exactly four stylesheets in that order.
   ========================================================= */

.services-index {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-10));
  z-index: 8;
  width: clamp(180px, 17vw, 250px);
  height: 0;
  margin-left: var(--gutter);
  font-family: var(--mono);
}

.services-index a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: baseline;
  border-left: 1px solid transparent;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  opacity: 0.4;
  padding: 14px 0 14px var(--space-4);
  text-transform: uppercase;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.services-index a.is-active {
  border-left-color: var(--bronze-text);
  color: var(--bronze-text);
  opacity: 1;
}

.services-index__num {
  color: currentColor;
  font-variant-numeric: tabular-nums;
}

.svc-block {
  padding: clamp(58px, 6.6vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.svc-block--tone { background: var(--cream-2); }

.svc-block__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  grid-template-areas:
    "head media"
    "list media"
    "handoff handoff";
  align-items: start;
  column-gap: clamp(40px, 5vw, 78px);
  row-gap: clamp(22px, 3vw, 42px);
}

.svc-block__head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(48px, 92px) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: start;
}

.svc-block__num {
  font-family: var(--mono);
  font-style: normal;
  font-size: clamp(16px, 1.7vw, 24px);
  color: var(--bronze-text);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.svc-block__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 78px);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  margin: 0 0 clamp(16px, 2vw, 24px);
  color: var(--ink);
}

.svc-block__title em {
  font-style: italic;
  color: var(--bronze);
  font-weight: 500;
}

.svc-block__lead {
  font-family: var(--sans);
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 400;
  line-height: 1.58;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

@media (min-width: 1000px) {
.svc-block > .wrap {
    padding-left: calc(var(--gutter) + clamp(180px, 17vw, 250px) + clamp(36px, 5vw, 80px));
  }
}

@media (max-width: 999px) {
  .services-index {display: none }
}

.svc-block__list {
  grid-area: list;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.svc-block__list li {
  padding: clamp(14px, 1.4vw, 18px) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 400;
  line-height: 1.52;
  color: var(--ink);
}

.svc-block__list li::before { content: none; }

.svc-block__media {
  grid-area: media;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--ink-3);
}

.svc-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.05);
  transition: transform var(--dur-media-hover) var(--ease-out), filter var(--dur-media-hover) var(--ease-out);
}

.svc-block__media:hover img { transform: scale(1.03); }

.svc-block__caption { position: absolute; bottom: 18px; left: 18px; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--cream); background: rgba(14,26,43,0.7); padding: 8px 14px; backdrop-filter: blur(6px); }

.svc-block--editorial .svc-block__layout {
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  grid-template-areas:
    "head list"
    "handoff handoff";
}

.svc-block--editorial .svc-block__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
}

.svc-block--split .svc-block__layout {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas:
    "list head"
    "handoff handoff";
  align-items: center;
}

.svc-block__handoff {
  grid-area: handoff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: baseline;
  margin-top: clamp(4px, 1.4vw, 18px);
  padding-top: clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.svc-block__handoff-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--bronze-text);
  white-space: nowrap;
}

.svc-block__handoff-copy {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.12;
}

.svc-block__handoff:hover .svc-block__handoff-copy,
.svc-block__handoff:focus-visible .svc-block__handoff-copy {
  color: var(--bronze-text);
}

.svc-block--closer {
  --bronze: var(--bronze-300);
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.svc-block--closer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(247, 243, 236, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 243, 236, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}

.svc-block--closer .svc-block__layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "list";
  justify-items: center;
  text-align: center;
}

.svc-block--closer .svc-block__head {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 820px;
}

.svc-block--closer .svc-block__title,
.svc-block--closer .svc-block__list li {
  color: var(--cream);
}

.svc-block--closer .svc-block__lead {
  color: rgba(247, 243, 236, 0.78);
  margin-inline: auto;
}

.svc-block--closer .svc-block__list {
  width: min(100%, 820px);
  border-top-color: var(--line-on-dark);
  text-align: left;
}

.svc-block--closer .svc-block__list li {
  border-bottom-color: var(--line-on-dark);
}

.svc-block--closer + .cta {
  padding-block: clamp(64px, 7vw, 104px);
}

@media (max-width: 880px) {
  /* editorial/split column rules are more specific than .svc-block__layout —
     must reset grid-template-columns here or mobile keeps minmax(320px) and
     crushes #02/#04 titles into a slim left strip. */
  .svc-block__layout,
  .svc-block--editorial .svc-block__layout,
  .svc-block--split .svc-block__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "list"
      "media"
      "handoff";
  }

  .svc-block--editorial .svc-block__layout,
  .svc-block--split .svc-block__layout {
    grid-template-areas:
      "head"
      "list"
      "handoff";
  }

  .svc-block__head,
  .svc-block--closer .svc-block__head {
    grid-template-columns: 1fr;
  }

  .svc-block--editorial .svc-block__list {
    grid-template-columns: 1fr;
  }

  .svc-block__handoff {
    grid-template-columns: 1fr;
  }
}

.services-film {
  position: relative;
  height: 52vh;
  max-height: 52vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  align-items: end;
  padding: clamp(32px, 5vw, 72px) var(--gutter);
}

.services-film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.services-film::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 72%, transparent), transparent 38%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 82%, transparent), transparent 58%);
}

.services-film__copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  max-width: min(100%, 980px);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-on-dark);
}

.services-film__copy span {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0;
  white-space: nowrap;
}

.services-film__copy p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  .services-film video {display: none }
  .services-film {
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--ink) 64%, transparent), var(--ink)), url("../img/posters/hero-poster.jpg");
    background-size: cover;
    background-position: center;
  }
}

.interactive-services__right {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-bottom: 20vh;
}

.interactive-step {
  opacity: 0.3;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
}

.interactive-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.interactive-step h3 {
  font-size: 32px;
  margin-bottom: 16px;
}

.interactive-step p {
  font-size: 18px;
  color: rgba(14, 26, 43, 0.7);
}

/* Baton Elevate 1 — shared page rhythm */
.interactive-step p {
  max-width: var(--container-prose);
  font-family: var(--sans);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.65;
}

.services-film__copy span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: var(--bronze);
}

.services-film__copy span::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

@media (max-width: 720px) {
  .services-film__copy {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* Audit 2026-10-02: the editorial/split head column is narrower than a 78px title —
   « partenariats. » and « Développement » overflowed and the reveal clip-path cut them. */
.svc-block--editorial .svc-block__title,
.svc-block--split .svc-block__title {
  font-size: clamp(34px, 3.2vw, 48px);
}

/* Audit 2026-10-02: inactive index items were ink at 40% opacity (2.6:1 on cream at 10px).
   Muted ink keeps the hierarchy and reaches AA; the active item stays bronze. */
.services-index a {
  color: var(--muted);
  opacity: 1;
}

.services-index a.is-on-dark {
  color: var(--muted-on-dark);
}

.services-index a.is-on-dark.is-active {
  border-left-color: var(--bronze-300);
  color: var(--bronze-300);
}
