/* Design tokens — locked (brief technique §4, maquette Main.dc.html v36+).
   Palette: pure black/white + one blue accent, used as punctuation only (never as a background fill or gradient).
   Component-specific tones (--surface-float, --surface-card, --eye-*) belong to their component: do not reuse them
   elsewhere on the site. */
:root {
  /* Base */
  --color-bg: #000;
  --color-text: #fff;

  /* Accent (unique) */
  --color-accent: #6fa8dc;
  --color-accent-hover: #8ec1e8;

  /* Muted greys — secondary text hierarchy, used as-is from the mockup (not to be rationalised further) */
  --grey-100: #d8d6d0;
  --grey-200: #b8b6ae;
  --grey-300: #a9a7a0;
  --grey-400: #8f8d85;
  --grey-500: #7a7870;
  --grey-600: #6b6963;
  --grey-700: #5a5852;
  --grey-800: #47453f;

  /* Hairlines & borders */
  --line-subtle: rgba(255, 255, 255, 0.1);
  --line-card: rgba(255, 255, 255, 0.12);
  --line-accordion: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.25);
  --line-button: rgba(255, 255, 255, 0.3);
  --line-card-hover: rgba(255, 255, 255, 0.28);

  /* Component surfaces (scoped — see header note) */
  --surface-float: #101014;   /* contact bubble, Services dropdown */
  --surface-card: #131317;    /* process cards "Comment ça se passe" */
  --placeholder-a: #131317;   /* temporary "media coming" texture only */
  --placeholder-b: #17171c;
  --eye-lid: #363538;         /* contact-bubble eyelid & blink — chosen live by Guillaume */

  /* Typography */
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Radii */
  --radius-pill: 999px;
  --radius-project: 5px;
  --radius-step: 30px;
  --radius-menu: 4px;
  --radius-toggle: 2px;

  /* Layout */
  --page-gutter: 64px;
  --nav-height: 96px;
}

@media (max-width: 900px) {
  :root { --page-gutter: 24px; }
}

/* Self-hosted fonts (latin subset — covers French incl. œ/Œ). Manrope is the variable file (400–800). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-mono-latin-700.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

html { background-color: var(--color-bg); }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); }

/* Visible keyboard focus everywhere (WCAG 2.4.7 / 2.4.11) — accent on black is well above 3:1. */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--color-accent); color: #000; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-pill);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------------------------
   Motion system — every animation must be disabled by BOTH:
   1. the stop-motion toggle in the nav  → `.motion-off` on <html> (set by assets/js/motion.js)
   2. the OS setting                     → `@media (prefers-reduced-motion: reduce)`
   Add each new animation to both blocks (or to its component's own pair of rules).
   --------------------------------------------------------------------------------------------- */

@keyframes drawLine { from { width: 0; } to { width: 48px; } }
.kicker-line {
  display: inline-block; height: 1px; background: rgba(255, 255, 255, 0.3);
  animation: drawLine 1.1s ease-out 0.2s both;
}

@media (prefers-reduced-motion: reduce) {
  .kicker-line { animation: none; width: 48px; }
}
.motion-off .kicker-line { animation: none !important; width: 48px; }

/* Links & buttons (micro-interactions) */
.nav-link { color: var(--grey-100); }
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-text);
  text-decoration: underline; text-decoration-style: wavy;
  text-decoration-color: var(--color-accent); text-underline-offset: 6px;
}

.link-arrow { color: var(--grey-300); }
.link-arrow:hover { color: var(--color-accent); }

.underline-draw { position: relative; padding-bottom: 3px; }
.underline-draw::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(1); transform-origin: left; transition: transform .3s ease;
}
.underline-draw:hover::after { transform: scaleX(0.35); }

.btn-solid {
  display: inline-block; background: var(--color-accent); color: #000; font-weight: 700;
  border-radius: var(--radius-pill); transition: background .2s ease, transform .2s ease;
}
.btn-solid:hover { background: var(--color-accent-hover); transform: translateY(-2px); }

.btn-line {
  display: inline-block; border: 1px solid var(--line-button); color: var(--color-text); font-weight: 600;
  border-radius: var(--radius-pill); transition: border-color .2s ease, transform .2s ease;
}
.btn-line:hover { border-color: var(--color-text); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .btn-solid:hover, .btn-line:hover { transform: none; }
  .underline-draw::after { transition: none; }
}
.motion-off .btn-solid:hover,
.motion-off .btn-line:hover { transform: none; }
.motion-off .underline-draw::after { transition: none; }

/* Shared chrome: nav, stop-motion toggle, floating contact bubble, footer.
   Reproduced from Main.dc.html (inline styles of the mockup moved into classes). */

/* ---------- Header: auto-hiding sticky bar ("headroom" pattern, assets/js/scroll-ui.js) ----------
   Sticky at the top with its own background; slides up out of view while scrolling down (.is-hidden) and back down
   on scroll up. Only a transform is animated — no transform at rest, so the fixed mobile menu panel inside it is
   still positioned against the viewport. */
.site-nav-header { position: sticky; top: 0; z-index: 30; background: var(--color-bg); transition: transform .3s ease; }
.site-nav-header.is-hidden { transform: translateY(-100%); }
/* Anchor jumps and keyboard focus land below the bar, never under it (WCAG 2.4.11) */
html { scroll-padding-top: var(--nav-height); }
@media (prefers-reduced-motion: reduce) { .site-nav-header { transition: none; } }
.motion-off .site-nav-header { transition: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: relative; z-index: 20;
  min-height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line-subtle);
}
.site-logo { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--color-text); }
.site-nav-links { display: flex; align-items: center; gap: 44px; }
.site-nav-links .nav-link { font-size: 14px; font-weight: 500; }
.site-nav-actions { display: flex; align-items: center; gap: 16px; }
.site-nav-actions .btn-line { font-size: 13px; padding: 11px 20px; }

/* Services dropdown: opens on hover/focus, larger type, dims the rest of the nav */
.services-wrap { position: relative; }
.services-menu {
  position: absolute; top: 100%; left: 0; margin-top: 18px; min-width: 220px;
  background: var(--surface-float); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-menu);
  padding: 22px 26px; display: flex; flex-direction: column; gap: 14px;
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 5;
}
/* Invisible bridge over the 18px gap so the menu doesn't close while the pointer travels to it */
.services-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 19px; }
/* Open state set by nav.js (.is-open, mirrored in aria-expanded); without JS, hover / focus open it */
.services-wrap.is-open .services-menu,
html:not(.js) .services-wrap:hover .services-menu,
html:not(.js) .services-wrap:focus-within .services-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.services-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.services-toggle-icon { display: inline-block; font-size: 16px; font-weight: 400; line-height: 1; transition: transform .25s ease; }
.services-wrap.is-open .services-toggle-icon { transform: rotate(45deg); }
.services-menu-item { font-size: 22px; font-weight: 700; color: var(--color-text); letter-spacing: -0.01em; }
.services-menu-item:hover { color: var(--color-accent); }
.dim-on-services { transition: opacity .25s ease; }
.site-nav:has(.services-wrap.is-open) .dim-on-services,
html:not(.js) .site-nav:has(.services-wrap:hover) .dim-on-services { opacity: 0.3; }

@media (prefers-reduced-motion: reduce) {
  .services-menu, .dim-on-services, .services-toggle-icon { transition: none; }
}
.motion-off .services-menu,
.motion-off .services-toggle-icon,
.motion-off .dim-on-services { transition: none; }

/* ---------- Mobile nav (burger + menu panel), redesigned 24/09 ----------
   Below 960px the desktop links are replaced by a full-screen panel (#nav-panel) opened by the burger (disclosure
   pattern, see assets/js/nav.js). Atypical but familiar: the button keeps a visible "Menu" / "Fermer" label and a
   three-mark icon (the three service emblems stacked like burger lines, merging into one blue dot when open); the
   panel is a numbered index of the services with their emblems. Without JS the burger stays hidden and the desktop
   links simply wrap under the bar. */
.nav-burger,
.nav-panel { display: none; }

@media (max-width: 960px) {
  :root { --nav-height: 72px; }

  /* No-JS fallback: links wrap under the bar */
  html:not(.js) .site-nav { flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
  html:not(.js) .site-nav-links { order: 3; width: 100%; flex-wrap: wrap; gap: 12px 28px; }
  .js .site-nav-links { display: none; }

  /* The dim-on-hover effect belongs to the desktop dropdown only */
  .site-nav .dim-on-services { opacity: 1 !important; }

  /* --- Burger button: label + three stacked emblems --- */
  .js .nav-burger {
    display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 14px;
    border-radius: var(--radius-toggle); border: 1px solid var(--line-strong); background: transparent;
    color: var(--color-text); font: 600 13px/1 var(--font-sans); cursor: pointer;
  }
  .js .nav-burger:hover, .js .nav-burger[aria-expanded="true"] { border-color: var(--color-accent); }
  .nav-burger-icon { position: relative; width: 12px; height: 18px; }
  .nav-burger-icon > span { position: absolute; left: 1px; width: 10px; height: 10px; transition: transform .3s ease, opacity .3s ease; }
  .nb-square { top: -2px; transform: scale(0.5); border: 2px solid #fff; border-radius: 2px; }
  .nb-triangle { top: 4px; transform: scale(0.5); background: var(--grey-300); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
  .nb-circle { top: 10px; transform: scale(0.5); border-radius: var(--radius-pill); background: var(--color-accent); }
  /* Open: square and triangle fold into the circle, which grows into a single dot — the "GR." full stop */
  .nav-burger[aria-expanded="true"] .nb-square,
  .nav-burger[aria-expanded="true"] .nb-triangle { transform: translateY(6px) scale(0); opacity: 0; }
  .nav-burger[aria-expanded="true"] .nb-triangle { transform: translateY(0) scale(0); }
  .nav-burger[aria-expanded="true"] .nb-circle { transform: translateY(-6px) scale(0.9); }

  /* --- Open state: header sticks to the top so the bar (and the button) stays in view, the panel covers the page --- */
  .nav-open { overflow: hidden; }
  .nav-open .contact-bubble { display: none; }
  .site-logo, .site-nav-actions { position: relative; z-index: 1; }

  .js .nav-panel.is-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 0; overflow-x: hidden; overflow-y: auto;
    padding: calc(var(--nav-height) + 28px) var(--page-gutter) 36px;
    background: var(--color-bg); border-top: 1px solid var(--line-subtle);
  }
  .nav-panel > :not(.nav-panel-mark) { position: relative; z-index: 1; }
  .nav-panel-kicker { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--color-accent); }

  /* Services index: number / name / emblem, one generous row each */
  .nav-index { list-style: none; margin: 0; padding: 0; }
  .nav-index li { border-top: 1px solid var(--line-accordion); }
  .nav-index li:last-child { border-bottom: 1px solid var(--line-accordion); }
  .nav-index-link { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px 2px; color: var(--color-text); }
  .nav-index-num { font-family: var(--font-mono); font-size: 13px; color: var(--grey-500); }
  .nav-index-title { font-size: clamp(26px, 7vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; transition: transform .25s ease; }
  .nav-index-link:hover .nav-index-title, .nav-index-link:focus-visible .nav-index-title { transform: translateX(6px); }
  .nav-index .service-emblem--sm { width: 28px; height: 28px; }
  .nav-index .service-emblem--cluster.service-emblem--sm { width: 34px; height: 26px; }
  /* Current page: accent + underline (never colour alone) */
  .nav-index-link[aria-current] .nav-index-num { color: var(--color-accent); }
  .nav-index-link[aria-current] .nav-index-title { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

  .nav-panel-more { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
  .nav-panel-link { font-size: 18px; font-weight: 600; color: var(--grey-100); }
  .nav-panel-link:hover { color: var(--color-accent); }
  .nav-panel-link[aria-current] { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 5px; }

  .nav-panel-foot { margin-top: auto; padding-top: 36px; }
  .nav-panel-cta { display: inline-block; font-size: 15px; padding: 15px 28px; }
  .nav-panel-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; font-family: var(--font-mono); font-size: 13px; }
  .nav-panel-contact a { color: var(--grey-300); }
  .nav-panel-contact a:hover { color: var(--color-accent); }

  /* Oversized outlined "GR." watermark, decorative */
  .nav-panel-mark {
    /* fixed (not absolute) so the part cut off below the screen never makes the panel scroll */
    position: fixed; right: -0.04em; bottom: -0.2em; z-index: 0; pointer-events: none;
    font-size: 46vw; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  }

  /* Rows come in one after the other (motion allowed only, see below) */
  @keyframes navRowIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .nav-panel.is-open .nav-index li,
  .nav-panel.is-open .nav-panel-more,
  .nav-panel.is-open .nav-panel-foot { animation: navRowIn .45s ease both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
}

/* Motion controls for the mobile menu (stop-motion toggle + OS setting) */
@media (prefers-reduced-motion: reduce) {
  .nav-burger-icon > span, .nav-index-title { transition: none; }
  .nav-panel.is-open .nav-index li, .nav-panel.is-open .nav-panel-more, .nav-panel.is-open .nav-panel-foot { animation: none; }
}
.motion-off .nav-burger-icon > span,
.motion-off .nav-index-title { transition: none; }
.motion-off .nav-panel.is-open .nav-index li,
.motion-off .nav-panel.is-open .nav-panel-more,
.motion-off .nav-panel.is-open .nav-panel-foot { animation: none; }

/* Very narrow: the bar keeps logo + stop-motion + burger; the call CTA lives in the panel and the contact bubble */
@media (max-width: 480px) {
  .js .site-nav-actions > .btn-line { display: none; }
}

/* ---------- Stop-motion toggle ---------- */
.motion-toggle {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--radius-toggle); border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
}
.motion-toggle:hover { border-color: var(--color-accent); }
.motion-toggle .icon-play { display: none; }
.motion-off .motion-toggle .icon-play { display: block; }
.motion-off .motion-toggle .icon-pause { display: none; }

/* ---------- Floating contact bubble (all pages except /diagnostic) ----------
   Eye spec: brief technique §6bis — reproduced exactly from the mockup.
   CRITICAL: the lid (.contact-eye-lid) is ONLY transitioned, the blink (.contact-eye-blink) is ONLY animated.
   Never put a transition and an animation on the same property of the same element: CSS transitions don't fire
   for value changes caused by an animation starting/stopping, which breaks the 1s delayed close. */
.contact-bubble {
  position: fixed; left: 32px; bottom: 32px; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-float); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-pill);
  padding: 10px 20px 10px 10px;
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear 0s;
}
/* Shown only after half a screen of scrolling (scroll-ui.js), so it never doubles the hero CTA. Hidden = visibility
   hidden too, so it also leaves the tab order and the accessibility tree. Without JS it is always visible. */
.js .contact-bubble:not(.is-visible) {
  opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
@media (prefers-reduced-motion: reduce) { .contact-bubble, .js .contact-bubble:not(.is-visible) { transition: none; } }
.motion-off .contact-bubble, .motion-off.js .contact-bubble:not(.is-visible) { transition: none; }
.contact-eye {
  width: 32px; height: 32px; border-radius: var(--radius-pill); background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden;
}
.contact-iris {
  width: 18px; height: 18px; border-radius: var(--radius-pill);
  background: radial-gradient(circle at 35% 32%, #7fb0e0 0%, #3d6fa3 55%, #1f3f5c 100%);
  display: flex; align-items: center; justify-content: center;
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
}
.contact-pupil {
  width: 8px; height: 8px; border-radius: var(--radius-pill); background: #000;
  transition: transform .3s ease 1s; /* dilated -> normal, delayed 1s (mirrors the lid closing back) */
}
.contact-glint {
  position: absolute; top: 8px; left: 12px; width: 4px; height: 4px; border-radius: var(--radius-pill);
  background: #fff; opacity: 0.9; pointer-events: none;
}
/* Top eyelid only. scaleY(1) = resting (slightly closed), scaleY(0) = fully open. Transition only, never animated. */
.contact-eye-lid {
  position: absolute; top: 0; left: -2px; right: -2px; height: 13px; background: var(--eye-lid);
  transform-origin: top; transform: scaleY(1); transition: transform .4s ease 1s; /* closing back, delayed 1s */
}
.contact-bubble:hover .contact-eye-lid,
.contact-bubble:focus-within .contact-eye-lid {
  transform: scaleY(0);
  transition: transform .25s ease 0s; /* immediate on hover/focus */
}
.contact-bubble:hover .contact-pupil,
.contact-bubble:focus-within .contact-pupil {
  transform: scale(1.25);
  transition: transform .25s ease 0s;
}
/* Blink overlay: animation only, never transitioned. Single blink every 10s at rest, double blink every 5s on hover/focus. */
.contact-eye-blink {
  position: absolute; top: -2px; left: -2px; right: -2px; height: 34px; background: var(--eye-lid);
  transform-origin: top; transform: scaleY(0);
  animation: contactEyeSingleBlink 10s ease-in-out infinite;
}
.contact-bubble:hover .contact-eye-blink,
.contact-bubble:focus-within .contact-eye-blink {
  animation: contactEyeDoubleBlink 5s ease-in-out infinite;
}
@keyframes contactEyeSingleBlink {
  0%, 94%, 100% { transform: scaleY(0); }
  96%, 98% { transform: scaleY(1); }
}
@keyframes contactEyeDoubleBlink {
  0%, 74%, 100% { transform: scaleY(0); }
  78% { transform: scaleY(1); }
  82% { transform: scaleY(0); }
  86% { transform: scaleY(1); }
  90% { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) { .contact-eye-blink { animation: none !important; } }
.motion-off .contact-eye-blink { animation: none !important; }

.contact-bubble-text { font-size: 13px; color: var(--grey-100); font-weight: 500; }
.contact-bubble .btn-line { font-size: 12px; padding: 8px 16px; }

@media (max-width: 600px) {
  .contact-bubble { left: 16px; bottom: 16px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 56px var(--page-gutter) 40px; border-top: 1px solid var(--line-subtle); }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer-brand { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 12px; }
.site-footer-pitch { margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: var(--grey-500); max-width: 320px; }
.site-footer-col { display: flex; flex-direction: column; gap: 10px; }
.site-footer-col--contact { gap: 8px; }
.site-footer-col .nav-link { font-size: 14px; }
.site-footer-heading {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--grey-400);
  text-transform: uppercase; margin: 0 0 14px; font-weight: 400;
}
.site-footer-location { font-family: var(--font-mono); font-size: 13px; color: var(--grey-500); margin-top: 8px; }
.site-footer-bottom {
  border-top: 1px solid var(--line-subtle); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--grey-400);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }

@media (max-width: 760px) {
  .site-footer-grid { grid-template-columns: 1fr; }
  /* keep the footer's last line clear of the fixed contact bubble */
  .site-footer { padding-bottom: 120px; }
}

/* Back to top (03/10) — bottom right, same visibility rhythm as the contact bubble (bottom left) */
.back-to-top {
  position: fixed; right: 32px; bottom: 32px; z-index: 10;
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--color-bg); color: var(--color-text); border: 1px solid var(--line-button);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}
.back-to-top:hover { border-color: var(--color-accent); color: var(--color-accent); }
.back-to-top:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.js .back-to-top:not(.is-visible) { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
.nav-open .back-to-top { display: none; }
/* Phones: no floating button — the bottom of the screen belongs to the contact bubble (Guillaume, 03/10) */
@media (max-width: 900px) { .back-to-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
.motion-off .back-to-top { transition: none; }
.footer-top-link { display: none; color: var(--grey-100); font-size: 13px; }
@media (max-width: 900px) { .footer-top-link { display: inline-block; padding: 8px 0; } }

.site-footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer-legal a:hover { color: var(--color-text); }
/* Hover underline on the word only, never under the + icon */
.services-toggle.nav-link:hover { text-decoration: none; }
.services-toggle:hover .services-toggle-label { text-decoration: underline; text-decoration-style: wavy; text-decoration-color: var(--color-accent); text-underline-offset: 6px; }

/* Page components — reproduced from Main.dc.html (mockup inline styles moved into classes).
   Reused by the service pages: keep them generic, not Home-specific. */

/* ---------- Sections & kickers ---------- */
.section {
  padding: 100px var(--page-gutter);
  border-top: 1px solid var(--line-subtle);
}
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 56px; }
.kicker { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); letter-spacing: 0.1em; }
.kicker-meta { font-family: var(--font-mono); font-size: 13px; color: var(--grey-500); letter-spacing: 0.05em; }
/* Hairline after a section kicker — draws itself in when the section reveals (brief §6, point 2) */
.section-rule {
  flex-grow: 1; height: 1px; background: var(--line-subtle);
  transform-origin: left; transition: transform 1.1s ease-out .2s;
}

.section-title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.01em; max-width: 640px; }
.section-lead { margin: 0; font-size: 16px; line-height: 1.65; color: var(--grey-200); }

/* ---------- Hero (Home + service pages) — Eight Arms layout, captures 24/09 ----------
   Bold title, one subtitle, the page's CTA on the right (below on mobile): the band or marquee that follows
   starts at the fold. */
.hero { position: relative; padding: 56px var(--page-gutter) 56px; }
.hero-inner { position: relative; z-index: 1; }
/* Visual hook — deliberately NOT the h1 (brief §7: the real h1 is the descriptive subtitle) */
.hero-hook {
  display: block; max-width: 1320px;
  font-size: clamp(44px, 6vw, 86px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em;
}
.hero-hook em { font-style: normal; color: var(--color-accent); }
.hero-lead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-top: 32px; }
.hero-sub {
  margin: 0; max-width: 780px;
  font-size: clamp(19px, 1.9vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--color-text);
}
.hero-cta { flex-shrink: 0; font-size: 15px; padding: 13px 26px; white-space: nowrap; }
@media (max-width: 760px) {
  .hero-lead-row { flex-direction: column; align-items: flex-start; margin-top: 24px; }
}

@keyframes driftFaint {
  0%   { transform: translate(0, 0); opacity: 0.5; }
  50%  { transform: translate(-2%, 1.5%); opacity: 0.75; }
  100% { transform: translate(0, 0); opacity: 0.5; }
}
.hero-veil { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-veil::before {
  content: ""; position: absolute; top: -20%; left: 30%; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
  animation: driftFaint 28s ease-in-out infinite;
}

/* ---------- Hero showcase marquee ---------- */
.marquee-wrap {
  overflow: hidden; padding: 40px 0;
  border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle);
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marqueeScroll 48s linear infinite; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.gr-showcase-item { width: min(640px, 82vw); flex-shrink: 0; }
.gr-showcase-media {
  width: 100%; aspect-ratio: 1160 / 643; border-radius: 0; position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--placeholder-a), var(--placeholder-a) 10px, var(--placeholder-b) 10px, var(--placeholder-b) 20px);
  border: 1px solid var(--line-card);
  display: flex; align-items: center; justify-content: center;
}
.gr-showcase-media video, .gr-showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-showcase-title { margin: 18px 0 0; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--color-text); max-width: 560px; }
.gr-showcase-client { display: block; margin-top: 6px; color: var(--grey-500); font-size: 14px; }

/* ---------- Stats strip ---------- */
.row-divider { margin: 0 var(--page-gutter); border-top: 1px solid var(--line-subtle); }
.stats { display: flex; flex-wrap: wrap; gap: 32px 80px; list-style: none; margin: 0; padding: 44px var(--page-gutter) 32px; }
.stat-value { font-family: var(--font-mono); font-size: 30px; font-weight: 700; margin: 0; }
.stat-label { font-size: 13px; color: var(--grey-500); margin: 6px 0 0; }

/* ---------- Logo wall (PLACEHOLDER — fictional marks) ----------
   12 logos, 2 rows of 6 (mockup v45: row gap 40px, space-between, 24px min gap). The second pass of each row
   ([data-loop-copy]) only exists for the mobile marquee (brief stratégique §9ter, subject to change). */
.logo-wall { padding: 88px var(--page-gutter); }
.gr-logo-grid { display: flex; flex-direction: column; gap: 40px; }
.gr-logo-track { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gr-logo-cell { display: flex; align-items: center; gap: 10px; color: var(--grey-100); white-space: nowrap; }
.gr-logo-cell svg { flex-shrink: 0; }
.gr-logo-cell--img img { display: block; max-width: 100%; height: auto; opacity: 0.88; } /* white logos, toned to the grey of the wall */
.gr-logo-cell[data-loop-copy] { display: none; }

/* ---------- Services accordion (native <details>) ---------- */
.section--services { padding-top: 120px; }
.section--services .section-head { margin-bottom: 64px; }
.section--services .section-title { margin-bottom: 56px; }
.expertise-item { border-top: 1px solid var(--line-accordion); }
.expertise-item:last-of-type { border-bottom: 1px solid var(--line-accordion); }
.expertise-summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 4px;
}
.expertise-summary::-webkit-details-marker { display: none; }
.expertise-summary-left { display: flex; align-items: baseline; gap: 26px; }
.expertise-num { font-family: var(--font-mono); font-size: 13px; color: var(--grey-500); }
.expertise-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.expertise-toggle {
  font-size: 26px; font-weight: 300; color: var(--color-accent); display: inline-block; flex-shrink: 0;
  transition: transform .25s ease;
}
.expertise-item[open] .expertise-toggle { transform: rotate(45deg); }
.expertise-item.is-closing .expertise-toggle { transform: rotate(0deg); } /* accordion.js: closing animation */
.expertise-body { padding: 0 4px 28px; max-width: 640px; }
.expertise-body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--grey-200); }
.expertise-body .link-arrow { display: inline-block; font-size: 13px; font-weight: 700; margin-top: 16px; }

/* ---------- Offer banner ("02 — Offre phare" on the Home) & final CTA ("Contact") ---------- */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.banner .section-head { margin-bottom: 28px; }
.banner-offer-text { max-width: 580px; }
.banner-offer-text .section-title { font-size: 32px; margin-bottom: 18px; }
.banner-offer .btn-solid { font-size: 14px; padding: 16px 30px; white-space: nowrap; }

.section--contact { padding-top: 110px; padding-bottom: 110px; }
.banner-contact-text { max-width: 620px; }
.banner-contact-text .section-title { font-size: 36px; margin-bottom: 16px; max-width: none; }
.banner-contact-text .section-lead { margin-bottom: 40px; line-height: normal; }
.banner-contact-text .btn-solid { font-size: 15px; padding: 16px 34px; }

/* Final-CTA shapes — decorative only (aria-hidden) */
.gr-cta-shapes { position: relative; width: 180px; height: 140px; flex-shrink: 0; }
.gr-cta-shape-circle { position: absolute; left: 8px; top: 40px; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--color-accent); }
.gr-cta-shape-square { position: absolute; left: 74px; top: 0; width: 64px; height: 64px; border-radius: 14px; border: 2px solid #fff; opacity: 0.85; }
.gr-cta-shape-triangle {
  position: absolute; left: 96px; top: 78px; width: 0; height: 0;
  border-left: 34px solid transparent; border-right: 34px solid transparent; border-bottom: 58px solid var(--grey-500); opacity: 0.55;
}

/* ---------- Process cards ("Comment ça se passe") ---------- */
.section--process .section-title { margin-bottom: 48px; }
.step-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.gr-step-card { background: var(--surface-card); border-radius: var(--radius-step); padding: 44px 44px 52px; }
.gr-step-num { font-family: var(--font-mono); font-size: 13px; color: var(--grey-400); }
.gr-step-title { margin: 22px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.gr-step-text { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--grey-200); max-width: 380px; }

/* ---------- Proof cards ("La preuve") ---------- */
.section--proof { padding-bottom: 120px; }
.proof-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 56px; }
.proof-head .section-head { margin-bottom: 24px; }
.proof-head .btn-line { font-size: 14px; padding: 13px 24px; }
.proof-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; list-style: none; margin: 0; padding: 0;
  background: var(--line-subtle); border: 1px solid var(--line-subtle);
}
.card { background: var(--color-bg); display: flex; flex-direction: column; transition: border-color .2s ease; }
.card:hover { border-color: var(--line-card-hover); }
.card-body { padding: 18px 28px 28px; }

.gr-project-media {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-project); position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--placeholder-a), var(--placeholder-a) 10px, var(--placeholder-b) 10px, var(--placeholder-b) 20px);
  border: 1px solid var(--line-card);
  display: flex; align-items: center; justify-content: center;
}
.gr-project-media video, .gr-project-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-project-media-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-500); font-family: var(--font-mono); }
.gr-project-metric {
  position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--color-accent);
  background: rgba(0, 0, 0, 0.88); border: 1px solid rgba(111, 168, 220, 0.35); padding: 5px 11px; border-radius: 3px;
}
.gr-hook-caption { margin: 14px 0 0; font-size: 15px; line-height: 1.4; color: var(--grey-400); }
.gr-hook-caption span { color: var(--color-text); }
.gr-project-client { display: block; margin-top: 6px; color: var(--grey-500); font-size: 13px; }
.gr-project-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.gr-project-tags li {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 3px; padding: 5px 11px;
}

/* ---------- Scroll-reveal (brief §6, point 1) ----------
   Content is only hidden once JS has run (`.js` on <html>), so crawlers and no-JS visitors always see it.
   Cascade: children with `--reveal-delay` set inline.
   The hidden state only exists when motion is allowed (OS setting AND stop-motion toggle), rather than being
   overridden afterwards — no specificity fight. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.motion-off) .reveal { transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0s); }
  .js:not(.motion-off) .reveal:not(.in-view) { opacity: 0; transform: translateY(24px); }
  .js:not(.motion-off) .reveal:not(.in-view) .section-rule { transform: scaleX(0); }
}

/* ---------- Motion controls for this file (stop-motion toggle + OS setting) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-veil::before, .marquee-track { animation: none; }
  .expertise-toggle, .card, .section-rule { transition: none; }
}
.motion-off .hero-veil::before,
.motion-off .marquee-track { animation: none !important; }

/* Marquee stopped: every project must stay reachable → the strip becomes a normal horizontal scroller, loop
   duplicates hidden. */
@media (prefers-reduced-motion: reduce) {
  .marquee-wrap { overflow-x: auto; }
  .marquee-track { padding: 0 var(--page-gutter); }
  .marquee-track > [aria-hidden="true"] { display: none; }
}
.motion-off .marquee-wrap { overflow-x: auto; }
.motion-off .marquee-track { padding: 0 var(--page-gutter); }
.motion-off .marquee-track > [aria-hidden="true"] { display: none; } /* direct children only: the loop copies, not icons inside an item */
.motion-off .expertise-toggle,
.motion-off .card,
.motion-off .section-rule { transition: none; }

/* ---------- Responsive (the mockup is a 1440px artboard) ---------- */
@media (max-width: 900px) {
  .banner { flex-direction: column; align-items: flex-start; }
  .proof-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .section, .section--services, .section--proof, .section--contact { padding-top: 72px; padding-bottom: 72px; }
  .logo-wall { padding-top: 56px; padding-bottom: 56px; }
  .gr-logo-grid { gap: 28px; }
  /* Motion stopped (toggle or OS setting): static wrapped rows, loop copies stay hidden */
  .gr-logo-track { flex-wrap: wrap; justify-content: flex-start; gap: 24px 36px; }
}
/* Mobile marquee: each row scrolls on its own, the second one in reverse. Spacing is a margin on every cell
   (not a flex gap) so the -50% loop point lands exactly on the first copy — no jump. */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  :root:not(.motion-off) .logo-wall { padding-left: 0; padding-right: 0; }
  :root:not(.motion-off) .gr-logo-row { overflow: hidden; }
  :root:not(.motion-off) .gr-logo-track {
    flex-wrap: nowrap; width: max-content; gap: 0; animation: logoScroll 36s linear infinite;
  }
  :root:not(.motion-off) .gr-logo-row + .gr-logo-row .gr-logo-track { animation-direction: reverse; }
  :root:not(.motion-off) .gr-logo-cell { margin-right: 48px; }
  :root:not(.motion-off) .gr-logo-cell[data-loop-copy] { display: flex; }
}
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .step-grid { grid-template-columns: 1fr; }
  .gr-step-card { padding: 32px 28px 36px; }
  .section-title, .banner-offer-text .section-title, .banner-contact-text .section-title { font-size: 28px; }
}

/* ---------- 404 page: big "404." (full stop in the accent, like the "GR." logo), one clear way home ---------- */
.notfound { padding: 88px var(--page-gutter) 120px; max-width: 920px; }
.notfound-code {
  margin: 0 0 28px; font-size: clamp(96px, 16vw, 200px); line-height: 0.9; font-weight: 800; letter-spacing: -0.05em;
  color: var(--color-text);
}
.notfound-dot {
  display: inline-block; width: 0.16em; height: 0.16em; margin-left: 0.04em;
  border-radius: var(--radius-pill); background: var(--color-accent);
}
.notfound .kicker { display: block; }
.notfound-title { margin: 16px 0 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; }
.notfound-text { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--grey-200); max-width: 560px; }
.notfound-home { margin-top: 36px; font-size: 15px; padding: 16px 30px; }
.notfound-links { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-subtle); }
.notfound-links-title { margin: 0 0 18px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-500); }
.notfound-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.notfound-links a { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--color-text); }
.notfound-links a:hover { color: var(--color-accent); }
.notfound-links .service-emblem--sm { width: 18px; height: 18px; }
.notfound-links .service-emblem--cluster.service-emblem--sm { width: 23px; height: 18px; }
@media (max-width: 760px) { .notfound { padding-top: 48px; padding-bottom: 80px; } }

/* Portfolio — index (/portfolio/) and project pages (/portfolio/<slug>/).
   No mockup for these pages yet: built only from the Home's existing components and tokens (kickers, hairlines,
   tag pills, accordion-style rows) — no new colours. */

/* ---------- Clickable cards ("La preuve"): the client link stretches over the whole card ---------- */
.card { position: relative; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { color: var(--color-text); }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 88px var(--page-gutter) 72px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; font-size: 13px; color: var(--grey-500); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--grey-500); }
.breadcrumb a { color: var(--grey-300); }
.breadcrumb a:hover { color: var(--color-accent); }
.page-hero .kicker { display: block; margin-bottom: 24px; text-transform: uppercase; }
.page-title { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; max-width: 960px; }
.page-lead { margin: 24px 0 0; font-size: 19px; line-height: 1.55; font-weight: 500; color: var(--grey-200); max-width: 760px; }
.page-hero .gr-project-tags { margin-top: 28px; }

/* Key result — accent border as punctuation only */
.project-result { margin-top: 56px; padding: 4px 0 4px 24px; border-left: 2px solid var(--color-accent); max-width: 860px; }
.project-result .kicker { margin-bottom: 10px; display: block; }
.project-result p { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Case-study blocks: label column + content column ---------- */
.project-block {
  display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 24px 48px;
  padding: 56px var(--page-gutter); border-top: 1px solid var(--line-subtle);
}
.project-block h2 { margin: 4px 0 0; font-family: var(--font-mono); font-size: 13px; font-weight: 400; letter-spacing: 0.1em; color: var(--color-accent); text-transform: uppercase; }
.project-block-body { max-width: 760px; }
.project-block-body p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--grey-100); }
.project-block-body p + p, .project-block-body p + .gr-project-tags { margin-top: 20px; }
.project-block-label { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-500); }

/* Before / after — a real table (row-aligned pairs), stacked on small screens */
.before-after { width: 100%; border-collapse: collapse; }
.before-after th {
  text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--grey-500); padding: 0 16px 14px 0;
}
.before-after td { vertical-align: top; padding: 16px 16px 16px 0; border-top: 1px solid var(--line-accordion); font-size: 15px; line-height: 1.55; }
.before-after td:first-child { color: var(--grey-300); width: 50%; }
.before-after td:last-child { color: var(--color-text); }


/* ---------- Project page showcase (24/09): media or key figure, then result + fact sheet ---------- */
.project-showcase { padding: 0 var(--page-gutter) 72px; }
.work-media.project-media { aspect-ratio: 21 / 9; }
.project-facts-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 72px; align-items: start; margin-top: 48px; }
.project-media-wrap { position: relative; }
.project-summary { margin: 0; font-size: 17px; line-height: 1.7; color: var(--grey-100); max-width: 760px; }
.project-facts-row .project-result { margin-top: 32px; }
.project-facts { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.project-facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-500); }
.project-facts dd { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--grey-100); }
.project-facts dd .work-emblems { margin-bottom: 10px; }
.project-facts .gr-project-tags { margin-top: 0; }
@media (max-width: 900px) {
  .work-media.project-media { aspect-ratio: 1160 / 643; }
  .project-facts-row { grid-template-columns: 1fr; }
}

/* ---------- Portfolio index (24/09, Eight Arms /work pattern) ----------
   Controls: text filters (active = white + accent underline, never colour alone) and a mosaic / list switch.
   Mosaic: half-width cards, and featured rows (.is-wide: media left, text right, about 430px tall) for the strongest
   results — never taller than the screen.
   Card: media or placeholder, outcome sentence + client in grey, tags; optional metric chip over the media.
   List: one row per project — client and sentence, metric, services — media hidden. */
.work-section { padding-top: 48px; }
html:not(.js) .work-controls { display: none; } /* controls need JS; without it every project stays listed */
.work-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; margin-bottom: 48px; }

.work-filters { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.work-filter {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0; cursor: pointer;
  background: none; border: 0; color: var(--grey-400); font: 600 18px/1.2 var(--font-sans); letter-spacing: -0.01em;
}
.work-filter:hover { color: var(--color-text); }
.work-filter[aria-pressed="true"] { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.work-filter:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.work-filter-count { font-family: var(--font-mono); font-size: 12px; color: var(--grey-500); text-decoration: none; }

.work-views { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-button); border-radius: var(--radius-pill); }
.work-view {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; cursor: pointer;
  background: none; border: 0; border-radius: var(--radius-pill); color: var(--grey-300); font: 600 13px/1 var(--font-sans);
}
.work-view:hover { color: var(--color-text); }
.work-view[aria-pressed="true"] { color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-accent); }
.work-view:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Mosaic */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 24px; list-style: none; margin: 0; padding: 0; }
.work-card { position: relative; display: flex; flex-direction: column; }
.work-grid .work-card[hidden] { display: none !important; } /* beats the featured-row and list-view display rules */
.work-card.is-wide { grid-column: 1 / -1; }
@media (min-width: 901px) {
  .work-grid:not(.work-grid--list) .work-card.is-wide {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: center;
  }
  .work-grid:not(.work-grid--list) .is-wide .work-body { padding-top: 0; }
  .work-grid:not(.work-grid--list) .is-wide .work-title { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; }
  .work-grid:not(.work-grid--list) .is-wide .work-client { margin-top: 8px; font-size: 17px; }
  .work-grid:not(.work-grid--list) .is-wide .work-metric { position: static; display: inline-block; margin: 22px 0 0; font-size: 15px; }
  .work-grid:not(.work-grid--list) .is-wide .work-meta { margin-top: 22px; }
}
.work-media {
  position: relative; aspect-ratio: 1160 / 643; border-radius: var(--radius-project); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--placeholder-a), var(--placeholder-a) 10px, var(--placeholder-b) 10px, var(--placeholder-b) 20px);
  border: 1px solid var(--line-card); transition: border-color .2s ease;
}
.work-card:hover .work-media { border-color: var(--line-card-hover); }
.work-card:has(.card-link:focus-visible) .work-media { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.work-media video, .work-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-body { padding-top: 16px; }
.work-title { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.work-title a { color: var(--color-text); }
.work-headline { transition: color .2s ease; }
.work-card:hover .work-headline { color: var(--color-accent); }
.work-client { display: block; color: var(--grey-500); font-weight: 500; }
.work-metric {
  position: absolute; top: 14px; right: 14px; margin: 0;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--color-accent);
  background: rgba(0, 0, 0, 0.88); border: 1px solid rgba(111, 168, 220, 0.35); padding: 5px 11px; border-radius: 3px;
}
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.work-meta .gr-project-tags { margin: 0; }
.work-emblems { display: inline-flex; gap: 8px; flex-shrink: 0; }
.work-emblems .service-emblem--sm { width: 16px; height: 16px; }

/* List */
.work-grid--list { grid-template-columns: 1fr; gap: 0; }
.work-grid--list .work-card {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.6fr) minmax(0, 1fr); align-items: center; gap: 12px 32px;
  padding: 22px 4px; border-top: 1px solid var(--line-accordion);
}
.work-grid--list .work-card:last-child { border-bottom: 1px solid var(--line-accordion); }
.work-grid--list .work-media { display: none; }
.work-grid--list .work-body { display: contents; }
.work-grid--list .work-title { grid-column: 1; font-size: 15px; font-weight: 500; }
.work-grid--list .work-title a { display: flex; flex-direction: column-reverse; gap: 4px; }
.work-grid--list .work-client { color: var(--color-text); font-size: 20px; font-weight: 700; }
.work-grid--list .work-headline { color: var(--grey-300); }
.work-grid--list .work-card:hover .work-client { color: var(--color-accent); }
.work-grid--list .work-card:has(.card-link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.work-grid--list .work-metric { grid-column: 2; position: static; background: none; border: 0; padding: 0; font-size: 14px; }
.work-grid--list .work-meta { grid-column: 3; margin: 0; }

@media (prefers-reduced-motion: reduce) { .work-media, .work-headline { transition: none; } }
.motion-off .work-media, .motion-off .work-headline { transition: none; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-grid--list { gap: 0; }
  .work-grid--list .work-card { grid-template-columns: 1fr; gap: 10px; }
  .work-grid--list .work-title, .work-grid--list .work-metric, .work-grid--list .work-meta { grid-column: 1; }
  .work-title { font-size: 19px; }
}

@media (max-width: 900px) {
  .page-hero { padding-top: 56px; padding-bottom: 48px; }
  .project-block { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .project-row a { grid-template-columns: 1fr auto; }
  .project-row-result { grid-column: 1; }
  .project-row-arrow { grid-row: 1; grid-column: 2; }
}
@media (max-width: 640px) {
  .before-after thead { display: none; }
  .before-after tr { display: block; border-top: 1px solid var(--line-accordion); padding: 12px 0; }
  .before-after td { display: block; width: auto !important; border: 0; padding: 4px 0; }
  .before-after td::before { content: attr(data-label) " — "; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-500); }
}

/* Media shown whole (media.fit = "contain"): screen recordings wider than the slot keep their sides, black bands above
   and below. Specificity beats the "cover" rules of every media box. */
.gr-showcase-media .media-contain, .work-media .media-contain, .gr-project-media .media-contain, .media-band-media .media-contain { object-fit: contain; background: #000; }

/* ---------- Ads report card (03/10) — partials/report-card.njk ----------
   Fills any media slot (absolutely positioned in the slot) and sizes itself to it with container queries:
   16:9 portfolio card / Home showcase, 1:1 band and proof cards, 21:9 project page (two columns).
   Black surface, a hairline under the header, white figures, accent used as punctuation only. */
.report {
  position: absolute; inset: 0; container-type: size;
  background: var(--color-bg);
  color: var(--color-text); text-align: left;
}
/* Inner wrapper: cq units on the container itself would resolve against an outer container (or the viewport) */
.report-inner { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 4cqmin; padding: 6cqmin 6.5cqmin 5cqmin; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 3cqmin; border-bottom: 1px solid var(--line-card); }
.report-kicker, .report-period, .report-source {
  font-family: var(--font-mono); font-size: clamp(10px, 2.6cqmin, 13px); letter-spacing: 0.08em; text-transform: uppercase;
}
.report-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--color-accent); white-space: nowrap; }
.report-emblem { fill: var(--grey-500); flex: none; }
.report-period { color: var(--grey-500); text-align: right; }
.report-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5cqmin; min-height: 0; }
.report-value {
  margin: 0; font-size: clamp(30px, 20cqmin, 128px); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.report-label { margin: 2.5cqmin 0 0; font-size: clamp(13px, 3.6cqmin, 20px); line-height: 1.35; color: var(--grey-200); max-width: 34ch; }
.report-client { color: var(--grey-500); }
.report-bar { display: block; height: max(4px, 1.4cqmin); background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; margin-top: 4cqmin; }
.report-bar-fill { display: block; height: 100%; width: var(--to); background: var(--color-accent); border-radius: inherit; }
.report-bar-fill--muted { background: var(--grey-700); }
.report-bar-label { margin: 1.8cqmin 0 0; font-size: clamp(11px, 2.8cqmin, 15px); color: var(--grey-400); }
.report-bar-label strong { color: var(--color-text); font-weight: 700; }
.report-compare { margin-top: 3cqmin; display: grid; gap: 1.6cqmin; }
.report-compare-row { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: 10px; font-size: clamp(11px, 2.6cqmin, 14px); color: var(--grey-400); }
.report-compare-row .report-bar { margin-top: 0; }
.report-kpis { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3cqmin; padding-top: 3.5cqmin; border-top: 1px solid var(--line-card); }
.report-kpis div { display: flex; flex-direction: column-reverse; gap: 0.6cqmin; min-width: 0; }
.report-kpis dt { font-size: clamp(11px, 2.7cqmin, 14px); color: var(--grey-400); }
.report-kpis dd { margin: 0; font-size: clamp(15px, 5cqmin, 28px); font-weight: 700; letter-spacing: -0.01em; }
.report-source { margin: 0; color: var(--grey-500); text-transform: none; letter-spacing: 0.02em; line-height: 1.4; }

/* Wide slots (21:9 project page): figure on the left, secondary figures stacked on the right */
@container (min-aspect-ratio: 19 / 9) {
  .report-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 8cqw; }
  .report-main { flex: 1.4; }
  .report-kpis { flex: 1; grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-card); padding: 0 0 0 4cqw; gap: 5cqmin; }
  .report-value { font-size: clamp(30px, 26cqmin, 150px); }
}
/* Small squares (band on phones, proof cards in 4 columns): drop the bar legend, the before/after comparison and the
   source line, and keep the label clear of the arrow */
@container (max-width: 360px) {
  .report-bar-label, .report-compare, .report-source { display: none; }
  .report-label { max-width: 64%; }
}

/* Entrance (assets/js/report.js): .is-pending until the card is on screen, then .is-playing — bars fill from 0 */
.report.is-pending .report-bar-fill { width: 0; }
.report.is-playing .report-bar-fill { transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
.report .report-compare-row:nth-child(2) .report-bar-fill { transition-delay: 0.25s; }
/* Short slots (16:9 and 21:9 cards on phones, ~170–260px tall): header + main figure + its label only */
@container (max-height: 280px) {
  .report-inner { gap: 3cqmin; padding: 5cqmin 6cqmin; }
  .report-bar, .report-bar-label, .report-compare, .report-kpis, .report-source { display: none; }
  .report-body { flex-direction: column; align-items: flex-start; justify-content: center; }
  .report-value { font-size: clamp(30px, 28cqmin, 72px); }
  .report-label { font-size: clamp(12px, 7cqmin, 16px); max-width: none; }
  .report-head { padding-bottom: 2cqmin; }
}

/* Rising arrow (03/10, Guillaume): accent zigzag in the top-right of the card. Static when motion is off; otherwise
   drawn when the card comes on screen, then a slow loop (draw, hold, fade) to keep the card alive. */
.report-arrow { position: absolute; top: 27cqmin; right: 6.5cqmin; width: 24cqmin; height: auto; overflow: visible; pointer-events: none; }
.report-arrow-line { fill: none; stroke: var(--color-accent); stroke-width: 9; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 0; }
.report-arrow-head { fill: var(--color-accent); }
.report.is-pending .report-arrow-line { stroke-dashoffset: 1; }
.report.is-pending .report-arrow-head { opacity: 0; }
.report.is-playing .report-arrow-line { animation: reportArrowLine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.report.is-playing .report-arrow-head { animation: reportArrowHead 6s ease-out infinite; }
@keyframes reportArrowLine { 0% { stroke-dashoffset: 1; opacity: 1; } 22% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes reportArrowHead { 0%, 18% { opacity: 0; transform: translate(-6px, 6px); } 26% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; } }
.report-arrow-head { transform-box: fill-box; transform-origin: center; }
@container (min-aspect-ratio: 19 / 9) { .report-arrow { top: 31cqh; right: auto; left: 38cqw; width: 12cqw; } }
@container (max-height: 280px) { .report-arrow { top: 30cqh; right: 6cqmin; width: 30cqmin; } }
@media (prefers-reduced-motion: reduce) {
  .report-arrow-line, .report-arrow-head { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }
}
.motion-off .report-arrow-line, .motion-off .report-arrow-head { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }

/* Mosaic portfolio card showing a report: the metric chip over the media would repeat the report's own figure
   (it stays in the list view, where it is a column) */
.work-grid:not(.work-grid--list) .work-card.has-report .work-metric { display: none; }
.project-report { margin-top: 24px; }

/* ---------- Accessibility roadmap example (03/10) — partials/a11y-roadmap.njk ----------
   Same identity as the Ads report cards (black surface, mono kicker, white figures, accent as punctuation): the start
   is grey, the middle step light grey, the conformant step in the accent. Rings fill one after the other. */
.roadmap { margin: 0; padding: 40px; background: var(--color-bg); border: 1px solid var(--line-card); border-radius: var(--radius-project); }
.roadmap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-card); }
.roadmap .report-kicker, .roadmap .report-period { font-size: 12px; }
.roadmap .report-emblem { fill: var(--color-accent); }
.roadmap-title { margin: 28px 0 36px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.roadmap-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.roadmap-step { display: flex; flex-direction: column; gap: 20px; position: relative; }
/* Connector between rings: a hairline ending in a chevron, pointing to the next step */
.roadmap-step:not(:last-child)::after {
  content: ""; position: absolute; top: 90px; left: calc(50% + 104px); right: calc(-50% + 80px); height: 1px; background: var(--line-strong);
}
.roadmap-step:not(:last-child)::before {
  content: ""; position: absolute; top: 86px; right: calc(-50% + 80px); width: 8px; height: 8px;
  border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); transform: rotate(45deg);
}
.roadmap-ring { position: relative; width: 180px; height: 180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.roadmap-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.roadmap-ring-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 7; }
.roadmap-ring-arc { fill: none; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--pct)); }
.roadmap-step--start .roadmap-ring-arc { stroke: var(--grey-600); }
.roadmap-step--mid .roadmap-ring-arc { stroke: var(--grey-200); }
.roadmap-step--end .roadmap-ring-arc { stroke: var(--color-accent); }
.roadmap-pct { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.roadmap-status { margin: 8px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-400); max-width: 120px; }
.roadmap-step--end .roadmap-status { color: var(--color-accent); }
.roadmap-card { flex: 1; padding: 22px 24px; border: 1px solid var(--line-card); border-radius: var(--radius-project); }
.roadmap-gain { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.roadmap-step--end .roadmap-gain { color: var(--color-accent); }
.roadmap-count { margin: 6px 0 16px; font-size: 15px; color: var(--grey-200); }
.roadmap-criteria { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-card); display: grid; gap: 8px; }
.roadmap-criteria li { font-size: 14px; color: var(--grey-100); line-height: 1.35; padding-left: 14px; position: relative; }
.roadmap-criteria li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--grey-600); }
.roadmap-step--end .roadmap-criteria li::before { background: var(--color-accent); }
.roadmap-criteria .roadmap-more { color: var(--grey-500); }
.roadmap-criteria .roadmap-more::before { display: none; }
.roadmap-lead { margin: 0; font-size: 20px; font-weight: 700; }
.roadmap-text { margin: 8px 0 0; font-size: 15px; color: var(--grey-200); line-height: 1.5; }

/* Entrance (assets/js/report.js): rings empty until on screen, then fill one after the other */
.roadmap.is-pending .roadmap-ring-arc { stroke-dashoffset: 100; }
.roadmap.is-playing .roadmap-ring-arc { transition: stroke-dashoffset 1.3s cubic-bezier(0.4, 0, 0.2, 1) var(--delay); }

@media (max-width: 900px) {
  .roadmap { padding: 24px; }
  .roadmap-steps { grid-template-columns: 1fr; gap: 40px; }
  .roadmap-step:not(:last-child)::after, .roadmap-step:not(:last-child)::before { display: none; }
  .roadmap-step { flex-direction: row; align-items: flex-start; }
  .roadmap-ring { width: 120px; height: 120px; margin: 0; flex: none; }
  .roadmap-pct { font-size: 30px; }
  .roadmap-status { font-size: 10px; max-width: 90px; }
}
@media (max-width: 560px) {
  .roadmap-head { flex-direction: column; gap: 6px; }
  .roadmap-step { flex-direction: column; align-items: stretch; }
  .roadmap-ring { margin: 0 auto; }
}
.section-lead.roadmap-intro { margin: 24px 0 40px; max-width: 760px; }

/* ---------- Report family, other services (03/10): tracking flow, Croissance complète chain, accessibility score ----
   Same base as the Ads report card (report.css: .report, .report-inner, header, figure, KPIs, source). Each variant
   adapts to its slot with container queries (16:9 card, 1:1 band, 21:9 project page, short cards on phones). */
.report--flow .report-value, .report--chain .report-value, .report--score .report-value { font-size: clamp(26px, 12cqmin, 84px); }
.report--flow .report-body, .report--chain .report-body { justify-content: space-between; gap: 4cqmin; }

/* Tracking flow */
.flow { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.flow-svg { width: 100%; height: 100%; max-height: 44cqh; overflow: visible; }
.flow-line { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.2; }
.flow-packet { fill: none; stroke: var(--color-accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 100; }
.flow-node { fill: #0b0b0d; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.flow-node--dest { stroke: rgba(255, 255, 255, 0.4); }
.flow-node--hub { stroke: var(--color-accent); stroke-width: 1.4; }
.flow-text { fill: var(--grey-100); font-family: var(--font-sans); font-size: 9px; font-weight: 600; text-anchor: middle; }
.flow-text--dest { fill: var(--color-text); }
.flow-text--hub { fill: var(--color-text); font-size: 9.5px; font-weight: 700; }
.report--flow.is-playing .flow-packet { animation: flowPacket 2.6s linear var(--d) infinite; }
@keyframes flowPacket { 0% { stroke-dasharray: 9 100; stroke-dashoffset: 9; } 100% { stroke-dasharray: 9 100; stroke-dashoffset: -100; } }

/* Croissance complète chain */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3cqmin; position: relative; }
.chain::before, .chain::after { content: ""; position: absolute; top: 5px; left: 6px; right: 0; height: 1px; background: var(--line-card); }
.chain::after { background: var(--color-accent); transform-origin: left; }
.chain-step { position: relative; display: flex; flex-direction: column; gap: 0.8cqmin; padding-top: 22px; min-width: 0; }
.chain-dot { position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--color-accent); border: 2px solid var(--color-accent); box-sizing: border-box; z-index: 1; }
.chain-num { font-family: var(--font-mono); font-size: clamp(10px, 2.4cqmin, 12px); letter-spacing: 0.08em; color: var(--grey-500); }
.chain-title { font-size: clamp(13px, 3.6cqmin, 19px); font-weight: 700; line-height: 1.2; }
.chain-text { font-size: clamp(11px, 2.7cqmin, 14px); color: var(--grey-400); line-height: 1.35; }
.report--chain.is-pending .chain::after { transform: scaleX(0); }
.report--chain.is-pending .chain-dot { background: var(--color-bg); border-color: var(--grey-700); }
.report--chain.is-playing .chain::after { transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1); }
.report--chain.is-playing .chain-dot { transition: background-color 0.3s, border-color 0.3s; transition-delay: calc(var(--i) * 0.4s); }

/* Accessibility score */
.score-body { flex-direction: row; align-items: center; justify-content: flex-start; gap: 6cqmin; }
.score-ring { position: relative; flex: none; width: min(40cqmin, 230px); aspect-ratio: 1; display: grid; place-items: center; }
.score-ring svg, .score-mini svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 8; }
.score-arc { fill: none; stroke: var(--color-accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--pct)); }
.score-value { margin: 0; font-size: clamp(28px, 14cqmin, 92px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score-ring-label { margin: 0; color: var(--color-text); font-size: clamp(14px, 4.4cqmin, 24px); font-weight: 700; }
.score-body .report-main { flex: 1; min-width: 0; }
.score-body .report-kpis { margin-top: 4cqmin; }
.score-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4cqmin; flex: none; }
.score-step { display: flex; flex-direction: column; align-items: center; gap: 1.4cqmin; }
.score-mini { position: relative; width: min(17cqmin, 110px); aspect-ratio: 1; display: grid; place-items: center; }
.score-mini-value { font-size: clamp(11px, 3.4cqmin, 20px); font-weight: 800; letter-spacing: -0.02em; }
.score-step:nth-child(1) .score-arc { stroke: var(--grey-600); }
.score-step:nth-child(2) .score-arc { stroke: var(--grey-200); }
.score-step-label { font-family: var(--font-mono); font-size: clamp(10px, 2.3cqmin, 12px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); }
.report--score.is-pending .score-arc { stroke-dashoffset: 100; }
.report--score.is-playing .score-arc { transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s); }

/* Squares and narrow cards: chain in 2 × 2 without the connecting line, roadmap rings above the figure */
@container (max-aspect-ratio: 5 / 4) {
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4cqmin; }
  .chain::before, .chain::after { display: none; }
  .score-body:has(.score-steps) { flex-direction: column; align-items: flex-start; }
}
/* Wide slots (21:9 project page): diagram or chain on one side, figure on the other */
@container (min-aspect-ratio: 19 / 9) {
  .report--flow .report-body { flex-direction: row-reverse; align-items: center; }
  .report--flow .flow { flex: 1.3; }
  .report--flow .flow-svg { max-height: 60cqh; }
  .report--flow .report-main { flex: 1; }
  .report--chain .report-body { flex-direction: row; align-items: center; gap: 6cqw; }
  .report--chain .chain { flex: 1.6; }
  .report--chain .report-main { flex: 1; padding-left: 4cqw; border-left: 1px solid var(--line-card); }
}
/* Short cards (16:9 on phones): keep the diagram / chain dots and the figure, drop the rest */
@container (max-height: 280px) {
  .report--flow .report-label, .report--chain .report-label, .chain-text, .chain-num, .score-step-label, .report--score .report-kpis { display: none; }
  .chain-title { font-size: 11px; }
  .flow-svg { max-height: 50cqh; }
  .report--flow .report-body, .report--chain .report-body { gap: 2cqmin; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-packet { animation: none !important; }
}
.motion-off .flow-packet { animation: none !important; }
.report-emblem--accent { fill: var(--color-accent); }
.report-emblem--cluster { fill: var(--grey-500); }
.report-emblem--cluster circle { fill: var(--color-accent); }
/* Narrow squares (bands on phones): lighter diagram and chain so everything fits */
@container (max-width: 360px) and (max-aspect-ratio: 5 / 4) {
  .flow-svg { max-height: 30cqh; }
  .chain-num, .chain-text { display: none; }
  .chain { row-gap: 3cqmin; }
  .chain-step { padding-top: 18px; }
  .report--flow .report-value, .report--chain .report-value, .report--score .report-value { font-size: clamp(24px, 10cqmin, 60px); }
}
/* Short cards: chain titles wrap inside their column instead of running into the next one */
@container (max-height: 280px) {
  .chain-title { font-size: 10px; overflow-wrap: anywhere; hyphens: auto; }
}

/* Automation run log (04/10) — partials/report-log.njk: monospace rows, ticked in sequence */
.report--log .report-body { justify-content: space-between; gap: 4cqmin; }
.report--log .report-value { font-size: clamp(26px, 12cqmin, 84px); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-family: var(--font-mono); font-size: clamp(10px, 2.6cqmin, 13px); }
.log-row { display: grid; grid-template-columns: 2.6em minmax(5.5em, auto) 1fr 14px; align-items: center; gap: 1.6cqmin; padding: 1.3cqmin 0; border-bottom: 1px dashed var(--line-card); }
.log-row:first-child { border-top: 1px dashed var(--line-card); }
.log-step { color: var(--grey-500); }
.log-tool { color: var(--color-text); font-weight: 700; }
.log-text { color: var(--grey-200); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row--trigger .log-tool { color: var(--color-accent); }
.log-ok { color: var(--color-accent); }
.report--log.is-pending .log-row { opacity: 0; transform: translateY(4px); }
.report--log.is-playing .log-row { transition: opacity 0.35s ease, transform 0.35s ease; transition-delay: calc(var(--i) * 0.35s); }
@container (min-aspect-ratio: 19 / 9) {
  .report--log .report-body { flex-direction: row; align-items: center; gap: 6cqw; }
  .report--log .log { flex: 1.5; }
  .report--log .report-main { flex: 1; padding-left: 4cqw; border-left: 1px solid var(--line-card); }
}
@container (max-width: 360px) and (max-aspect-ratio: 5 / 4) {
  .log-row { grid-template-columns: minmax(4.5em, auto) 1fr 12px; }
  .log-step { display: none; }
}
@container (max-height: 280px) {
  .log-text, .log-step, .report--log .report-label { display: none; }
  .log { grid-auto-flow: column; grid-auto-columns: 1fr; font-size: 10px; }
  .log-row { grid-template-columns: auto 12px; border: 0; padding: 0; }
  .log-row:first-child { border: 0; }
}

/* Band slides get the same card edge as the other media slots, so neighbouring cards stay distinct (04/10) */
.media-band-media { border: 1px solid var(--line-card); }
.flow-lines-label { fill: var(--color-accent); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Service pages (/accessibilite first). No mockup for these pages: built only from the Home's components and tokens
   (kickers, hairlines, accordion, step cards, logo wall, banners) — no new colours. */

/* ---------- Running text ---------- */
.service-prose { max-width: 760px; margin-top: 32px; }
.service-prose p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--grey-100); }
.service-prose p + p { margin-top: 20px; }
.service-prose strong { color: var(--color-text); font-weight: 700; }
.service-note { margin: 40px 0 0; max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--grey-200); }

/* ---------- Deliverables (accordion bodies + Audit Flash) ---------- */
.deliverables-label {
  margin: 22px 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--grey-500);
}
.expertise-body p.deliverables-label { margin: 22px 0 10px; font-size: 11px; line-height: normal; color: var(--grey-500); }
.deliverables { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.deliverables li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--grey-200); }
.deliverables li::before { content: "—"; position: absolute; left: 0; color: var(--color-accent); }

/* ---------- Referentials: one row per standard (name / description / official link) ---------- */
.ref-list { list-style: none; margin: 48px 0 0; padding: 0; }
.ref-item {
  display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) auto; align-items: baseline; gap: 12px 40px;
  padding: 26px 4px; border-top: 1px solid var(--line-accordion);
}
.ref-item:last-child { border-bottom: 1px solid var(--line-accordion); }
.ref-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ref-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--grey-200); max-width: 560px; }
.ref-link { font-family: var(--font-mono); font-size: 13px; color: var(--grey-300); white-space: nowrap; }
.ref-link:hover { color: var(--color-accent); }

/* ---------- Proof: logo wall inside a section (the section already carries the gutter) ---------- */
.section .logo-wall { padding: 64px 0 0; }
/* Sector reference under the logos — accent border as punctuation only, like the portfolio key result */
.service-ref { margin-top: 64px; padding: 4px 0 4px 24px; border-left: 2px solid var(--color-accent); max-width: 760px; }
.service-ref .kicker { display: block; margin-bottom: 12px; }
.service-ref-title { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; }
.service-ref-text { margin: 10px 0 0; font-size: 17px; line-height: 1.7; color: var(--grey-100); }
.service-ref .link-arrow { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; }

/* ---------- Audit Flash: text + deliverables aside ---------- */
.flash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 40px 72px; align-items: start; }
.flash-aside { margin-top: 32px; padding: 4px 0 4px 24px; border-left: 1px solid var(--line-accordion); }
.flash-aside .deliverables-label { margin-top: 0; }
.flash-aside .btn-line { margin-top: 28px; }

/* ---------- Secondary buttons (outline): same size as the Home's outline buttons, never wrapping ---------- */
.flash-aside .btn-line,
.banner-offer .btn-line { font-size: 14px; padding: 15px 28px; white-space: nowrap; }

/* ---------- FAQ: questions are sentences, not titles ---------- */
.faq-question { font-size: 19px; line-height: 1.4; }

@media (max-width: 900px) {
  .flash-grid { grid-template-columns: 1fr; }
  .flash-aside { margin-top: 0; }
  .ref-item { grid-template-columns: 1fr; gap: 8px; }
}
/* Mobile logo marquee: bleed to the screen edges like on the Home (static wrapped grid keeps the gutter) */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  :root:not(.motion-off) .section .logo-wall { margin-left: calc(-1 * var(--page-gutter)); margin-right: calc(-1 * var(--page-gutter)); }
}

/* ---------- Process with 3 steps (/site): one row of 3 instead of the Home's 2 × 2 ---------- */
.step-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .step-grid--3 { grid-template-columns: 1fr; }
}

/* =====================================================================================================
   Common base for service pages (24/09) — what tells one service from another inside the same identity:
   big service name, Home accordion number, service emblem, media band, "Autres services".
   ===================================================================================================== */

/* ---------- Service emblems: the three final-CTA shapes (same tokens), one per service ---------- */
.service-emblem { position: relative; display: block; flex-shrink: 0; }
.service-emblem--lg { width: 180px; height: 180px; }
.service-emblem--sm { width: 40px; height: 40px; }
.service-emblem--cluster.service-emblem--lg { height: 140px; }
.service-emblem--cluster.service-emblem--sm { width: 44px; height: 34px; }
.emblem-square, .emblem-triangle, .emblem-circle { position: absolute; display: block; }
.emblem-square { inset: 10%; border: 2px solid #fff; border-radius: 14%; opacity: 0.85; }
.emblem-circle { inset: 12%; border-radius: var(--radius-pill); background: var(--color-accent); }
.emblem-triangle { inset: 12% 6% 14%; background: var(--grey-500); opacity: 0.55; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* Cluster = the exact final-CTA composition (180×140 box), in percentages so it scales */
.service-emblem--cluster .emblem-circle { inset: auto; left: 4.4%; top: 28.6%; width: 31.1%; height: 40%; }
.service-emblem--cluster .emblem-square { inset: auto; left: 41.1%; top: 0; width: 35.6%; height: 45.7%; }
.service-emblem--cluster .emblem-triangle { inset: auto; left: 53.3%; top: 55.7%; width: 37.8%; height: 41.4%; }
.service-emblem--sm .emblem-square { border-width: 1.5px; }
/* Inline: closes the page title like the dot of "GR." — sized in em so it follows the title size */
.service-emblem--inline { display: inline-block; width: 0.3em; height: 0.3em; margin-left: 0.1em; vertical-align: baseline; }
/* Single shapes fill the inline box; the cluster keeps its final-CTA composition (same as the cards) */
.service-emblem--inline:not(.service-emblem--cluster) .emblem-square { inset: 0; border-width: 0.055em; border-radius: 16%; opacity: 1; }
.service-emblem--inline:not(.service-emblem--cluster) .emblem-circle { inset: 0.02em; }
.service-emblem--inline:not(.service-emblem--cluster) .emblem-triangle { inset: 0; opacity: 0.8; }
.service-emblem--inline.service-emblem--cluster { width: 0.52em; height: 0.4em; margin-left: 0.14em; }
.service-emblem--inline.service-emblem--cluster .emblem-square { border-width: 0.025em; }

/* ---------- Service hero: back link, service name as the bold title (+ emblem), subtitle + CTA row ----------
   Same rhythm as the Home hero (.hero-lead-row / .hero-sub / .hero-cta live in components.css). */
.page-hero.service-hero { padding: 56px var(--page-gutter) 56px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 14px; font-weight: 600; color: var(--grey-300); }
.back-link:hover { color: var(--color-accent); }
.service-title { margin: 0; font-size: clamp(40px, 6.5vw, 96px); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
.title-end { white-space: nowrap; } /* the emblem never wraps alone onto a new line */

/* Technical proof line, moved out of the hero into the offers section (24/09) */
.section-lead.service-section-lead { margin: -32px 0 48px; max-width: 760px; }

/* ---------- Media band (Eight Arms service marquee, measured live 24/09) ---------- */
.media-band { overflow: hidden; padding-bottom: 8px; }
.media-band:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.media-band-track { display: flex; width: max-content; animation: marqueeScroll 60s linear infinite; }
.media-band-slide { flex: 0 0 auto; width: 25vw; margin-right: 15px; }
.media-band-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-project); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--placeholder-a), var(--placeholder-a) 10px, var(--placeholder-b) 10px, var(--placeholder-b) 20px);
}
.media-band-media video, .media-band-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-band-caption { margin: 8px 0 0; max-width: 90%; font-size: 16px; line-height: 1.25; color: var(--grey-400); }
.media-band-caption span { color: var(--color-text); }
@media (max-width: 1199px) { .media-band-slide { width: 33.333vw; } }
@media (max-width: 767px) {
  .media-band-slide { width: 75vw; }
  .media-band-caption { font-size: 15px; }
}
/* Motion stopped: the loop stops, the band becomes a normal horizontal scroller, loop copies hidden */
@media (prefers-reduced-motion: reduce) {
  .media-band { overflow-x: auto; }
  .media-band-track { animation: none; }
  .media-band-slide[aria-hidden="true"] { display: none; }
}
.motion-off .media-band { overflow-x: auto; }
.motion-off .media-band-track { animation: none !important; }
.motion-off .media-band-slide[aria-hidden="true"] { display: none; }

/* ---------- "Autres services": one card per other service, the whole card is the link ---------- */
.other-services { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.other-service {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px;
  border: 1px solid var(--line-card); border-radius: var(--radius-project); transition: border-color .2s ease;
}
.other-service:hover { border-color: var(--line-card-hover); }
.other-service:has(.card-link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.other-service .card-link:focus-visible { outline: none; }
.other-service-num { margin-top: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--grey-500); }
.other-service-title { margin: 6px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.other-service-title a { color: var(--color-text); }
.other-service-text { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--grey-200); flex-grow: 1; }
.other-service-more { margin-top: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { .other-service { transition: none; } }
.motion-off .other-service { transition: none; }

@media (max-width: 900px) {
  .page-hero.service-hero { padding-top: 40px; padding-bottom: 40px; }
  .back-link { margin-bottom: 24px; }
  .service-emblem--lg .emblem-square { border-width: 1.5px; }
  .other-services { grid-template-columns: 1fr; }
}

/* ---------- Proof cards, 4 across (/ads) ---------- */
.proof-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .proof-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .proof-grid--4 { grid-template-columns: 1fr; } }

/* ---------- /ads: outbound documentation link ---------- */
.ads-doc-link { display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 700; }

/* ---------- /ads: budget calculator (inputs left, results right) ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; align-items: start; }
/* Two fields per row on desktop (one on mobile); inputs line up at the bottom even when a label wraps */
.calc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; align-items: end; }
.calc-mode { grid-column: 1 / -1; }
.calc-mode { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.calc-mode legend { margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 600; color: var(--color-text); }
.calc-radio {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; cursor: pointer;
  border: 1px solid var(--line-button); border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--grey-100);
}
.calc-radio:has(input:checked) { border-color: var(--color-accent); color: var(--color-text); }
.calc-radio:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.calc-radio input { accent-color: var(--color-accent); margin: 0; }
.calc-field { display: flex; flex-direction: column; gap: 8px; align-self: stretch; justify-content: flex-end; }
.calc-field[hidden] { display: none; }
.calc-field label { font-size: 15px; font-weight: 600; color: var(--color-text); }
.calc-unit { font-weight: 400; color: var(--grey-400); }
.calc-help { margin: 0; font-size: 12px; color: var(--grey-400); }
.calc-help[hidden] { display: none; }
.calc-field input, .calc-field select {
  width: 100%; padding: 13px 16px; box-sizing: border-box;
  background: var(--color-bg); color: var(--color-text); border: 1px solid var(--line-strong); border-radius: var(--radius-menu);
  font: 400 17px/1.2 var(--font-mono);
}
.calc-field select { font: 600 15px/1.2 var(--font-sans); cursor: pointer; }
.calc-field input:hover, .calc-field select:hover { border-color: var(--line-card-hover); }
.calc-field input:focus-visible, .calc-field select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }

.calc-results { padding: 4px 0 4px 32px; border-left: 2px solid var(--color-accent); }
.calc-summary { margin: 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.calc-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin: 32px 0 0; }
.calc-figures > div[hidden] { display: none; }
.calc-figures dt { font-size: 13px; color: var(--grey-500); }
.calc-figures dd { margin: 6px 0 0; font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--color-text); }
.calc-note { margin: 32px 0 0; font-size: 13px; line-height: 1.6; color: var(--grey-400); max-width: 460px; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-results { padding-left: 20px; }
  .calc-inputs { grid-template-columns: 1fr; }
}
.section-lead.calc-intro { margin: 24px 0 40px; }

/* ---------- /croissance-complete: "Ce qui est inclus" — same cards as "Autres services", 2 × 2 ---------- */
.other-services--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.other-services--2 .other-service-title { margin-top: 28px; }
@media (max-width: 900px) { .other-services--2 { grid-template-columns: 1fr; } }

/* ---------- /a-propos (24/09): photo + story, career timeline, credentials and tools ---------- */
.about-intro { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr); gap: 48px 72px; align-items: center; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius-project); }
.about-story .service-prose { margin-top: 28px; }

.timeline { list-style: none; margin: 48px 0 0; padding: 0; }
.timeline-item {
  display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 8px 40px; align-items: baseline;
  padding: 28px 4px; border-top: 1px solid var(--line-accordion);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line-accordion); }
.timeline-when { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--color-accent); }
.timeline-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.timeline-text { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--grey-200); max-width: 640px; }

/* Credentials in one line under the story (mono, separated by a dot) */
.about-facts { list-style: none; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-accordion); display: flex; flex-wrap: wrap; gap: 8px 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-400); }
.about-facts li:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--color-accent); }

@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .timeline-item { grid-template-columns: 1fr; }
}

/* Links inside running text: underlined, so they never rely on colour alone (WCAG 1.4.1) */
.service-prose a, .service-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.service-prose a:hover, .service-note a:hover { color: var(--color-accent); }

/* ---------- Legal notice and HTML site map ---------- */
.legal .service-prose { max-width: 820px; }
.legal h2 { margin: 56px 0 16px; font-size: 24px; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 28px 0 8px; font-size: 17px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--color-accent); }
.legal-list { margin: 16px 0; }
.legal-list > div { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 4px 24px; padding: 10px 0; border-top: 1px solid var(--line-accordion); }
.legal-list dt { color: var(--grey-400); }
.legal-list dd { margin: 0; }
.sitemap-list ul { margin-top: 6px; }
@media (max-width: 640px) { .legal-list > div { grid-template-columns: 1fr; } }

/* /diagnostic wizard — reproduced from project/Diagnostic.dc.html (v39). The white card is the Eight Arms
   "Project Scope" component taken as is: the only place of the site with dark-on-light text, deliberate. Its greys
   (#14141a, #4a4850, #9c9a95, #34343c) belong to this component only — not to be reused elsewhere.
   Without JS (html:not(.diag-js)) every step is shown in order and only the final submit button remains. */

.diag-section { padding: 96px var(--page-gutter) 120px; }
.diag-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.diag-h1 { margin: 20px 0 0; font-size: clamp(34px, 4vw, 44px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.diag-sub { margin: 18px 0 0; font-size: 16px; color: var(--grey-200); line-height: 1.6; }
.diag-contact-direct { margin: 24px 0 0; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.diag-contact-item { font-size: 15px; font-weight: 600; color: var(--color-text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.diag-contact-item:hover { color: var(--color-accent); border-color: var(--color-accent); }
.diag-back { margin: 40px 0 0; }

/* ---------- Stepper: 4 circles joined by lines that fill in (same logic as the kicker hairlines) ---------- */
.diag-stepper { display: flex; align-items: center; max-width: 980px; margin: 0 auto 40px; padding: 0; list-style: none; }
.diag-stepper[hidden] { display: none; }
.diag-step { display: flex; align-items: center; flex: 1; }
.diag-step:last-child { flex: 0; }
.diag-step:not(:last-child)::after {
  content: ""; flex: 1; height: 2px; margin: 0 6px;
  background: linear-gradient(var(--color-accent), var(--color-accent)) left / 0 100% no-repeat, rgba(255, 255, 255, 0.16);
  transition: background-size .4s ease;
}
.diag-step.is-done::after { background-size: 100% 100%, auto; }
.diag-step-circle {
  width: 34px; height: 34px; border-radius: var(--radius-pill); flex-shrink: 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  border: 2px solid var(--line-strong); color: var(--grey-500);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.diag-step.is-current .diag-step-circle { border-color: var(--color-accent); color: var(--color-text); }
.diag-step.is-done .diag-step-circle { border-color: var(--color-accent); background: var(--color-accent); color: #000; }

/* ---------- Layout: card + context panel, navigation under the card ---------- */
.diag-form { max-width: 980px; margin: 0 auto; }
.diag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px 56px; align-items: start; }
.diag-layout[hidden] { display: none; }
html:not(.diag-js) .diag-layout + .diag-layout { margin-top: 48px; }
html:not(.diag-js) [data-diag-nav] { display: none; }
.diag-nav-row { grid-column: 1; display: flex; align-items: center; gap: 16px; }
.diag-context { grid-column: 2; grid-row: 1; padding-top: 8px; }
.diag-context-kicker { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400); }
.diag-context-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--grey-200); }

/* ---------- White card ---------- */
.diag-card { margin: 0; min-width: 0; background: #fff; border: 0; border-radius: 24px; padding: 44px; color: #14141a; min-height: 360px; }
.diag-card-title { margin: 0 0 30px; font-size: 24px; font-weight: 700; color: #14141a; letter-spacing: -0.01em; }
.diag-card-title:focus { outline: none; }
.diag-card-title:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.diag-subgroup { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.diag-subgroup:last-child { margin-bottom: 0; }
.diag-field { margin-bottom: 26px; }
.diag-field:last-child { margin-bottom: 0; }
.diag-label { display: block; margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 600; color: #4a4850; }
.diag-label[hidden] { display: none; }
.diag-input {
  width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid rgba(20, 20, 26, 0.16); border-radius: 0;
  background: transparent; font: 400 16px/1.4 var(--font-sans); color: #14141a; padding: 8px 0; transition: border-color .2s ease;
}
.diag-input::placeholder { color: #9c9a95; }
.diag-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 1px 0 var(--color-accent); }
/* Errors: no colour outside the locked palette — dark text, a marker and a thicker underline (never colour alone) */
.diag-input[aria-invalid="true"] { border-bottom: 2px solid #14141a; }
.diag-error { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #14141a; }
.diag-error::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: var(--radius-pill); background: var(--color-accent); box-shadow: 0 0 0 2px #14141a; vertical-align: 1px; }
.diag-error[hidden] { display: none; }

/* Pills = native radios (keyboard + screen readers for free), the input itself visually hidden */
.diag-pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.diag-pill, .diag-cal-day, .diag-cal-slot { position: relative; cursor: pointer; }
.diag-pill input, .diag-cal-day input, .diag-cal-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.diag-pill {
  display: inline-flex; align-items: center; border-radius: var(--radius-pill); padding: 11px 20px;
  font: 600 14px/1.2 var(--font-sans); background: #14141a; color: #fff; transition: background .2s ease;
}
.diag-pill:hover { background: #34343c; }
.diag-pill:has(input:checked) { background: var(--color-accent); color: #14141a; }
.diag-pill:has(input:focus-visible), .diag-cal-day:has(input:focus-visible), .diag-cal-slot:has(input:focus-visible) {
  outline: 2px solid #14141a; outline-offset: 2px;
}

/* ---------- Step 4: preferred slot (PLACEHOLDER until Cal.com / Calendly) ---------- */
.diag-cal { margin: 36px 0 0; padding: 32px 0 0; border: 0; border-top: 1px solid rgba(20, 20, 26, 0.12); min-width: 0; }
.diag-cal-label { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #4a4850; }
.diag-cal-tz { margin: 0 0 18px; font-size: 12px; color: #6b6963; }
.diag-cal-days { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.diag-cal-day {
  display: inline-block; border: 1px solid rgba(20, 20, 26, 0.14); border-radius: 12px; padding: 10px 16px;
  font: 600 13px/1.2 var(--font-sans); color: #14141a; text-align: center; transition: border-color .2s ease, background .2s ease;
}
.diag-cal-day:has(input:checked) { background: #14141a; border-color: #14141a; color: #fff; }
.diag-cal-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.diag-cal-slot {
  display: inline-block; border: 1px solid rgba(20, 20, 26, 0.16); border-radius: var(--radius-pill); padding: 9px 18px;
  font: 400 13px/1.2 var(--font-mono); color: #14141a; transition: border-color .2s ease, background .2s ease;
}
.diag-cal-slot:hover { border-color: var(--color-accent); }
.diag-cal-slot:has(input:checked) { background: var(--color-accent); border-color: var(--color-accent); color: #14141a; }

/* ---------- Buttons ---------- */
.diag-btn-next {
  display: inline-block; border: 0; cursor: pointer; background: var(--color-accent); color: #000;
  font: 700 15px/1 var(--font-sans); padding: 15px 30px; border-radius: var(--radius-pill); transition: background .2s ease, transform .2s ease;
}
.diag-btn-next:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.diag-btn-prev {
  background: none; border: 0; cursor: pointer; color: var(--grey-200); font: 600 14px/1 var(--font-sans); padding: 12px 4px;
}
.diag-btn-prev:hover { color: var(--color-text); }
.diag-btn-next:focus-visible, .diag-btn-prev:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Motion controls */
@media (prefers-reduced-motion: reduce) {
  .diag-step::after, .diag-step-circle, .diag-input, .diag-pill, .diag-cal-day, .diag-cal-slot, .diag-btn-next { transition: none; }
  .diag-btn-next:hover { transform: none; }
}
.motion-off .diag-step::after, .motion-off .diag-step-circle, .motion-off .diag-input, .motion-off .diag-pill,
.motion-off .diag-cal-day, .motion-off .diag-cal-slot, .motion-off .diag-btn-next { transition: none; }
.motion-off .diag-btn-next:hover { transform: none; }

@media (max-width: 900px) {
  .diag-section { padding-top: 56px; padding-bottom: 80px; }
  .diag-layout { grid-template-columns: 1fr; }
  .diag-context { grid-column: 1; grid-row: auto; padding-top: 0; }
  .diag-card { padding: 28px 22px; border-radius: 18px; min-height: 0; }
}

/* Background submission failed (diagnostic.js): fallback to direct contact, on the dark page under the card */
.diag-submit-error { grid-column: 1; margin: 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--color-accent); font-size: 15px; line-height: 1.6; color: var(--color-text); }
.diag-submit-error[hidden] { display: none; }
.diag-submit-error:focus { outline: none; }
.diag-submit-error a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; }
.diag-btn-next:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Last screen: Cal.com calendar (diagnostic.js), in the same white card as the steps ---------- */
.diag-booking { max-width: 980px; margin: 0 auto; }
.diag-booking[hidden] { display: none; }
.diag-booking-head { margin-bottom: 24px; }
.diag-booking-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.diag-booking-title:focus { outline: none; }
.diag-booking-title:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.diag-booking-sub { margin: 10px 0 0; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--grey-200); }
.diag-booking-frame { min-height: 560px; background: #fff; border-radius: 24px; padding: 12px; overflow: hidden; }
.diag-booking-alt { margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--grey-200); }
.diag-booking-alt a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; }
@media (max-width: 900px) { .diag-booking-frame { border-radius: 18px; padding: 4px; } }
.diag-booking-fallback { margin: 0 0 20px; padding: 20px 24px; border-left: 2px solid var(--color-accent); }
.diag-booking-fallback[hidden] { display: none; }
.diag-booking-fallback p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--color-text); }

