/* ==========================================================================
   Nox Science — single stylesheet
   1. Tokens   2. Base   3. Components   4. Header   5. Sections   6. Pages   7. Responsive

   To change the look of the site, start with the tokens (section 1).
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
/* Hanken Grotesk, hosted on the site (no request to Google). Variable font: one file per character set covers weights 400 to 600.
   Licence: SIL Open Font License 1.1, see assets/fonts/OFL.txt. Character ranges as served by Google Fonts. */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colours */
  --bg:          #0c0f0d;   /* page background */
  --bg-alt:      #18201b;   /* alternate sections: one step lighter than the page (18/11: lighter, so the sections stand apart) */
  --bg-header:   #121714;   /* header */
  --surface:     #161b18;   /* cards, fields */
  --surface-2:   #1c221e;   /* placeholders */
  --line:        #272e29;   /* hairlines */
  --line-strong: #3b443e;   /* outlines of secondary buttons and chips */
  --text:        #f3f5f0;
  --text-soft:   #cdd3cd;   /* secondary text, nav links */
  --muted:       #a3ada6;   /* tertiary text */
  --accent:      #d6f46a;   /* lime: buttons, highlights */
  --accent-ink:  #10140a;   /* text on an accent background */

  /* Typography */
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: var(--font-sans);   /* small labels, numbers, chips: same family as the text (no monospace) */

  /* Spacing and widths */
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --max:       72rem;
  --section-y: clamp(2rem, 3.2vw, 2.75rem);   /* 18/11: tighter, less empty space between sections (44 px on a laptop) */
  --header-h:  4.5rem;
  --radius:    0.625rem;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* 3. COMPONENTS ----------------------------------------------------------- */

/* Section label: "SOLUTIONS" */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Headings */
.h-display {
  font-size: clamp(2.1rem, 3.7vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.h-section {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 40rem; }

.section-head { margin-bottom: clamp(1.25rem, 2.2vw, 1.75rem); }

/* Highlighted keyword */
.mark {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}
u {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--text); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { background: #e4ff7e; border-color: #e4ff7e; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; }

/* "Read the case study →" */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--text);
}
.link-arrow::after { content: "→"; color: var(--accent); transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--font-label); font-size: 0.8rem; font-weight: 500;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted);
}
.chip--accent { display: inline-block; border-color: transparent; background: rgba(214, 244, 106, 0.14); color: var(--accent); }

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Placeholder box (photos, charts) */
.placeholder {
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-family: var(--font-label); font-size: 0.75rem; color: var(--muted);
}

/* "Signal" divider */
.signal { width: 100%; height: 3.5rem; }
.signal path { fill: none; vector-effect: non-scaling-stroke; }

/* 4. HEADER --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.8); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Logo: image supplied by the brand, used as is. "lighten" makes its near-black
   background disappear on the header. Replace assets/logo-nox.png by the SVG later. */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem; text-decoration: none; }
.logo__img { height: 2.2rem; width: auto; mix-blend-mode: lighten; }
/* "Science" sits under NOX, small and spaced, like the LinkedIn mark */
.logo__lab {
  font-size: 0.6rem; font-weight: 500; line-height: 1; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.42em; margin-right: -0.42em;
}

/* Navigation: all on the right, logo alone on the left */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__links { display: flex; gap: 0.25rem; align-self: stretch; }
.nav__links a {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 0 0.9rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: #fff; }
/* Current section (set by js/main.js): bar on the bottom edge of the header */
.nav__links a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: -1px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__links a[aria-current] { color: #fff; }
.nav__links a[aria-current]::after { transform: scaleX(1); }

/* Language switch: globe + the language you can switch to */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-left: 0.5rem; padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-soft); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.lang-switch svg { width: 1.1rem; height: 1.1rem; }
.lang-switch:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav .btn { margin-left: 0.5rem; }

/* Mobile menu button (hidden on desktop) */
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

/* 5. SECTIONS ------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--glow { background: radial-gradient(44rem 22rem at 8% 0%, rgba(214, 244, 106, 0.09), transparent 70%), var(--bg); }

/* --- Hero --- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(46rem 26rem at 85% 0%, rgba(214, 244, 106, 0.08), transparent 70%),
    var(--bg);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 22.5rem;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.hero__sub { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 500; color: var(--accent); }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Rotating phrase: "We help you [analyse your data]" (4 items, CSS only) */
.rotator { margin-top: 1.25rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500; line-height: 1.4; }
.rotator__lead { color: var(--text-soft); }
.rotator__view { display: inline-block; vertical-align: bottom; height: 1.4em; overflow: hidden; color: var(--accent); }
.rotator__track { display: block; animation: rotate 12s ease-in-out infinite; }
.rotator__track span { display: block; height: 1.4em; white-space: nowrap; }
@keyframes rotate {
  0%, 21%   { transform: translateY(0); }
  25%, 46%  { transform: translateY(-20%); }
  50%, 71%  { transform: translateY(-40%); }
  75%, 96%  { transform: translateY(-60%); }
  100%      { transform: translateY(-80%); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__more { margin-top: 2rem; }

/* Offer card: free call + scoping note */
.offer {
  position: relative; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, rgba(214, 244, 106, 0.1), rgba(214, 244, 106, 0) 55%), var(--surface);
  border: 1.5px solid var(--accent); border-radius: 0.875rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.offer__tag { margin-bottom: 1.1rem; }
.offer__title { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.offer__text { margin: 0.75rem 0 1.5rem; color: var(--muted); }
/* E-mail or phone */
.offer__text a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.offer__text a:hover { color: var(--accent); }
.offer__ways { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.offer__ways .btn { padding-inline: 1.1rem; white-space: nowrap; }
.offer__or { font-family: var(--font-label); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.btn--lg { width: 100%; padding: 1.05rem 1.75rem; font-size: 1.05rem; }
.btn--lg::after { content: "→"; transition: transform .2s; }
.btn--lg:hover::after { transform: translateX(3px); }

/* Scrolling band: where we have worked */
.marquee { border-block: 1px solid var(--line); background: var(--bg-alt); }
.marquee__inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.1rem; }
.marquee__label { flex: none; font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.marquee__view {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__view:hover .marquee__track { animation-play-state: paused; }
.marquee__item { padding-inline: 1.75rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-soft); opacity: 0.75; white-space: nowrap; }
.marquee__item img { height: 1.75rem; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Solutions: question + drop-down --- */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem clamp(2rem, 6vw, 5rem); }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  padding-block: 1.25rem; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
/* Icons: two-tone drawings framed by two corner ticks (no tile) */
.qa__icon-wrap, .step__icon { position: relative; display: grid; place-items: center; flex: none; }
.qa__icon-wrap::before, .qa__icon-wrap::after, .step__icon::before, .step__icon::after {
  content: ""; position: absolute; width: 0.5rem; height: 0.5rem; border: 0 solid var(--line-strong);
}
.qa__icon-wrap::before, .step__icon::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.qa__icon-wrap::after, .step__icon::after { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.qa__icon-wrap { width: 2.9rem; height: 2.9rem; }
.qa__icon-wrap .icon { width: 1.9rem; height: 1.9rem; }
.qa__text { display: grid; gap: 0.1rem; }
.qa__tag { font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qa__q { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; transition: color .2s; }
.qa summary:hover .qa__q { color: #fff; }
.qa__toggle { position: relative; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .2s; }
.qa__toggle::before, .qa__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform .2s; }
.qa__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__toggle { border-color: var(--accent); }
.qa[open] .qa__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__body { padding: 0 0 1.5rem 3.85rem; max-width: 42rem; }
.qa__body p { color: var(--muted); }
.qa__body .chips { margin-top: 1rem; }

/* --- How it works --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; }
.step { position: relative; }
.step__top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.step__icon { width: 3rem; height: 3rem; }
.step__icon .icon { width: 2rem; height: 2rem; }
.step__num { font-family: var(--font-label); font-size: 0.8rem; color: var(--muted); }
/* thin connector between steps */
.step:not(:last-child) .step__top::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); margin-right: -1rem; }
.step__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.step__text { color: var(--muted); }

/* --- Case studies --- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.case-grid--3 { grid-template-columns: repeat(3, 1fr); }
.case-grid--4 { grid-template-columns: repeat(2, 1fr); } /* four cards: two by two */
.case { display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.4rem, 2.5vw, 1.75rem); transition: border-color .2s, transform .2s; }
.case:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.case__kicker { font-family: var(--font-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.case__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.case__text { color: var(--muted); }
.case__meta { margin-top: auto; padding-top: 0.5rem; font-family: var(--font-label); font-size: 0.75rem; color: var(--muted); }
.case__foot { min-height: 1.75rem; }

/* Case cards with a photo behind the text */
.case--photo { position: relative; overflow: hidden; isolation: isolate; min-height: 22rem; }
.case--photo > :not(.case__media) { position: relative; z-index: 1; }
.case__media { position: absolute; inset: 0; z-index: 0; }
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,15,13,.55) 0%, rgba(12,15,13,.72) 45%, rgba(12,15,13,.92) 100%); }
.case--photo:hover .case__media img { transform: scale(1.04); }
.case--photo .case__text, .case--photo .case__meta { color: rgba(255,255,255,.82); }
/* Two photos crossfading (VR card) */
.case__media--fade img:nth-child(2) { animation: case-fade 12s ease-in-out infinite; }
@keyframes case-fade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .case__media--fade img:nth-child(2) { animation: none; opacity: 0; }
  .case__media img { transition: none; }
}

/* --- Team --- */
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
/* 18/11: photo next to the name and role, like a business card; bio and chips underneath, full width */
.member { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1.25rem; align-items: center; align-content: start; }
.member__bio, .member .chips { grid-column: 1 / -1; }
.member__photo { grid-row: 1 / span 2; width: 6.5rem; height: 6.5rem; border-radius: 50%;
  border: 2px solid var(--accent); box-shadow: 0 0 0 0.35rem rgba(214, 244, 106, 0.07); } /* lime ring and soft halo, as on the social slides */
.member__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member__head { grid-column: 2; align-self: end; display: flex; align-items: center; gap: 0.6rem; }
.member__name { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.member__in { display: inline-flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 0.4rem; color: var(--muted); transition: color .2s, border-color .2s; }
.member__in:hover { color: var(--text); border-color: var(--text); }
.member__in svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }
.member__role { grid-column: 2; align-self: start; margin-top: 0.2rem; font-size: 1.0625rem; font-weight: 500; color: var(--accent); }
.member__bio { margin-top: 1.1rem; color: var(--muted); }
.member .chips { margin-top: 1rem; }

/* --- Contact --- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.contact__title { max-width: 12ch; margin-bottom: 1.25rem; }
.contact__text { color: var(--muted); margin-bottom: 1.25rem; max-width: 28rem; }
.contact__mail { font-size: 1.05rem; }
.contact__place { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 0.5rem;
  padding: 0.8rem 0.9rem;
  font: inherit; font-size: 1rem;
  transition: border-color .2s;
}
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.form__actions { grid-column: 1 / -1; }
.form__status { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; }   /* anti-spam trap, do not remove */

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: 0.875rem; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.social { display: flex; gap: 0.6rem; }
.social a { display: inline-flex; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 0.4rem; transition: color .2s, border-color .2s; }
.social a:hover { border-color: var(--text); }
.social svg { width: 1rem; height: 1rem; fill: currentColor; }

/* 6. PAGES (case study, legal) --------------------------------------------- */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4rem); background: radial-gradient(44rem 24rem at 90% -20%, rgba(214, 244, 106, 0.08), transparent 70%), var(--bg); }
.breadcrumb { display: inline-flex; gap: 0.4rem; margin-bottom: 1.75rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.breadcrumb:hover { color: var(--text); }
.page-hero .lead { margin-top: 1.25rem; }

.facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.facts dd { font-size: 0.9375rem; font-weight: 500; }
.facts a { color: var(--text); }

.prose { max-width: 44rem; }
.prose-block + .prose-block { margin-top: clamp(2rem, 4vw, 3rem); }
.prose-block h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.prose-block p { font-size: 1.0625rem; color: var(--text-soft); }
.prose-block p + p { margin-top: 1rem; }
.prose-block a { color: var(--text); }
.prose-block .placeholder { margin-top: 1.25rem; min-height: 15rem; }
.todo { background: rgba(214, 244, 106, 0.14); color: var(--accent); padding: 0.05em 0.35em; border-radius: 0.25rem; }

/* Case study pages: key figures, tables, figures, session flow, references */
.prose--case { max-width: 52rem; }
.case-title { max-width: 22ch; }
.page-hero .published { margin-top: 1rem; font-family: var(--font-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stats { margin-bottom: clamp(2rem, 4vw, 3rem); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.stat__num { font-size: 1.7rem; font-weight: 500; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.stat__label { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }

.prose-block h2 { scroll-margin-top: 6rem; }
.prose-block strong { color: var(--text); font-weight: 600; }
.lede-box { margin-top: 0.25rem; padding: 1.1rem 1.35rem; background: linear-gradient(160deg, rgba(214, 244, 106, 0.1), rgba(214, 244, 106, 0) 70%), var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.prose-block .lede-box { font-size: 1.15rem; color: var(--text); line-height: 1.5; letter-spacing: -0.01em; }
.prose-list { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.prose-list li { position: relative; padding-left: 1.35rem; font-size: 1.0625rem; color: var(--text-soft); }
.prose-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 2px; background: var(--accent); }
.prose-block > .table-wrap + *, .prose-block > .figure + *, .prose-block > .lede-box + *, .prose-block > .prose-list + *, .prose-block > .flow + * { margin-top: 1.25rem; }
.prose-block > .prose-list:first-child, .prose-block > p + .prose-list { margin-top: 1rem; }

.table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 34rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.data-table thead th { font-family: var(--font-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.data-table tbody th { font-weight: 500; color: var(--text); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 0.6rem; font-size: 0.85rem !important; color: var(--muted) !important; }

.figure { margin: 1.5rem 0 0; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.figure--sm { max-width: 28rem; }
.figure__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.figure figcaption, .flow figcaption { margin-top: 0.65rem; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

.flow { margin: 0 0 1.5rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flow__title { font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.flow__row { display: grid; grid-template-columns: 7rem 1fr auto 1.35fr auto 1fr; align-items: stretch; gap: 0.5rem; }
.flow__label { align-self: center; display: flex; flex-direction: column; gap: 0.1rem; color: var(--text); }
.flow__label span { font-size: 0.8rem; color: var(--muted); }
.flow__step { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.flow__step strong { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.flow__step--scene { border-color: var(--accent); background: rgba(214, 244, 106, 0.07); }
.flow__arrow { align-self: center; color: var(--muted); }
.flow__break { margin: 1.1rem 0; text-align: center; font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-top: 1px dashed var(--line-strong); line-height: 0; }
.flow__break span { background: var(--surface); padding: 0 0.75rem; }

.refs { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.refs h2 { font-size: 1rem !important; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600 !important; }
.refs ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.6rem; }
.refs li { font-size: 0.85rem; color: var(--muted); line-height: 1.5; padding-left: 0.25rem; }
.refs a { color: var(--text-soft); overflow-wrap: anywhere; }

.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band .h-section { max-width: 24ch; }

.legal { padding-block: 4rem 6rem; max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.legal p { color: var(--muted); }
.legal ul { color: var(--muted); list-style: disc; padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.legal li + li { margin-top: 0.4rem; }
.legal strong { color: var(--text); font-weight: 600; }

/* 7. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 62rem) {
  .case-grid--3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .offer { max-width: 26rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step .step__top::after { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) {
  :root { --header-h: 4rem; }
  .logo__img { height: 1.95rem; }
  .logo__lab { font-size: 0.55rem; }

  /* Mobile menu */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem;
    background: none; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.8);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; align-self: auto; }
  .nav__links a { padding: 1rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current] { color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); padding-left: 0.9rem; }
  .lang-switch { align-self: flex-start; margin: 0.75rem 0 1rem -0.7rem; font-size: 0.95rem; }
  .nav .btn { margin: 0; padding: 0.85rem 1.2rem; font-size: 0.95rem; }

  .case-grid, .case-grid--3, .team__grid, .contact__grid, .form { grid-template-columns: 1fr; }
  .marquee__inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .marquee__view { width: 100%; }
  .qa__body { padding-left: 0; }
  .site-footer__inner { flex-direction: column; }
}

@media (max-width: 36rem) {
  .facts, .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 860px) {
  .stats ul { grid-template-columns: 1fr 1fr; }
  .flow__row { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
  .flow__label { flex-direction: row; gap: 0.6rem; align-items: baseline; }
}
@media (max-width: 560px) {
  .figure__pair { grid-template-columns: 1fr; }
}

/* --- Pilot programme page --- */
.pilot-badge { margin-top: 1.5rem; }
.pilot-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.pilot-mail { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }
.pilot-mail a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.pilot-text { color: var(--muted); max-width: 42rem; }
.pilot-note { margin-top: 1.5rem; }
.pilot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pilot-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: clamp(1.25rem, 2.5vw, 1.6rem); }
.pilot-card__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.pilot-card p { color: var(--muted); }
.pilot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.pilot-list li { position: relative; padding-left: 1.6rem; }
.pilot-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.step__icon .step__num { font-size: 1.05rem; font-weight: 600; color: var(--accent); }
.qa--faq summary { grid-template-columns: 1fr auto; }
.qa--faq .qa__body { padding-left: 0; }
.sticky-cta { display: none; }

@media (max-width: 62rem) {
  .pilot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 48rem) {
  .pilot-grid { grid-template-columns: 1fr; }
  /* Booking button pinned to the bottom of the screen once the first block has scrolled away */
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 0.75rem var(--gutter); background: var(--bg-header); border-top: 1px solid var(--line);
    transform: translateY(100%); transition: transform .2s;
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { width: 100%; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 5.5rem; }
}

/* --- Home page (November 2026 rework): hero screen, offers, step details, case cards with a figure --- */
.hero__lede { margin-top: 1.25rem; max-width: 44rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-soft); }

/* Hero screen, right of the headline: our redesign of the monitoring screen (Alarmes study), in a screen frame.
   12 s loop: original screen ("Avant") about 1 s, sweep to the redesign ("Après"), redesign about 5.5 s, sweep back, and again.
   js/main.js pauses the loop while the screen is out of view. With reduced motion, the redesign is shown, still. */
.hero__grid--shot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 4.5vw, 3.5rem); }
.hero__grid--shot .h-display { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.shot { margin: 0; }
.shot__screen {
  display: block; padding: 0.55rem; border-radius: 0.875rem;
  background: linear-gradient(160deg, #2b302c, #121513); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.75), 0 0 60px rgba(214, 244, 106, 0.06);
  transform: perspective(1800px) rotateY(-10deg) rotateX(2deg); transform-origin: left center;
  transition: transform .5s ease;
}
.shot__screen:hover { transform: perspective(1800px) rotateY(-4deg) rotateX(1deg); }
.shot__stage { position: relative; display: block; aspect-ratio: 1600 / 860; overflow: hidden; border-radius: 0.4rem; background: #000; }
.shot__stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot__after { animation: shot-cycle 12s ease-in-out infinite both; }
.shot__line {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent);
  animation: shot-line 12s ease-in-out infinite both;
}
.shot__tag {
  position: absolute; top: 0.55rem; padding: 0.3rem 0.6rem; border-radius: 4px;
  font-family: var(--font-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.shot__tag--before { left: 0.55rem; background: rgba(12, 15, 13, 0.9); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); animation: shot-tag-before 12s ease infinite both; }
.shot__tag--after { right: 0.55rem; background: var(--accent); color: var(--accent-ink); animation: shot-tag-after 12s ease infinite both; }
.shot.is-waiting .shot__after, .shot.is-waiting .shot__line, .shot.is-waiting .shot__tag { animation-play-state: paused; }
/* The sweeps run from 10 % to 25 % (to the redesign) and from 72 % to 87 % (back): the line and the clip share these stops. */
@keyframes shot-cycle {
  0%, 10%   { clip-path: inset(0 0 0 100%); }
  25%, 72%  { clip-path: inset(0 0 0 0); }
  87%, 100% { clip-path: inset(0 0 0 100%); }
}
@keyframes shot-line {
  0%, 9%    { left: 100%; opacity: 0; }
  10%       { left: 100%; opacity: 1; }
  25%       { left: 0; opacity: 1; }
  26%, 71%  { left: 0; opacity: 0; }
  72%       { left: 0; opacity: 1; }
  87%       { left: 100%; opacity: 1; }
  88%, 100% { left: 100%; opacity: 0; }
}
@keyframes shot-tag-before { 0%, 12% { opacity: 1; } 16%, 84% { opacity: 0; } 88%, 100% { opacity: 1; } }
@keyframes shot-tag-after  { 0%, 22% { opacity: 0; } 26%, 72% { opacity: 1; } 76%, 100% { opacity: 0; } }
.shot__cap { display: grid; justify-items: start; gap: 0.4rem; max-width: 36rem; margin-top: 1.15rem; }
.shot__kicker { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.shot__text { font-size: 0.97rem; line-height: 1.5; color: var(--text-soft); }
.shot__text strong { color: var(--accent); font-weight: 600; }
.shot__cap .link-arrow { margin-top: 0.3rem; }
@media (max-width: 62rem) {
  .hero__grid--shot { grid-template-columns: 1fr; }
  .shot { max-width: 40rem; }
  .shot__screen, .shot__screen:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shot__after, .shot__line, .shot__tag { animation: none; }
  .shot__line, .shot__tag--before { display: none; }
  .shot__screen { transition: none; }
}


/* Offers: everything visible, no drop-down */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.offer-card { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.offer-card__num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.offer-card__title { font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.offer-card__facts { display: grid; gap: 0.85rem; }
.offer-card__facts dt { margin-bottom: 0.15rem; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.offer-card__facts dd { margin: 0; font-size: 0.97rem; line-height: 1.55; color: var(--text-soft); }
.offer-card__facts div:last-child dd { color: var(--text); font-weight: 600; }
.offer-card__note {
  padding: 0.75rem 0.95rem; font-size: 0.9rem; line-height: 1.5; color: var(--text-soft);
  background: rgba(214, 244, 106, 0.05); border-left: 2px solid var(--accent); border-radius: 0 0.4rem 0.4rem 0;
}
.offer-card__foot { margin-top: auto; padding-top: 0.25rem; }
.offers__note { margin-top: 1.1rem; color: var(--muted); }

/* Our approach: deliverable and lead time under each step */
.step__meta { display: grid; gap: 0.6rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.step__meta dt { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.step__meta dd { margin: 0.1rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--text-soft); }

/* Case cards with a figure on top (attention map, or a small chart drawn in HTML) */
.case--fig { --pad: clamp(1.4rem, 2.5vw, 1.75rem); overflow: hidden; }
.case--fig .case__fig {
  display: block; aspect-ratio: 1600 / 860; overflow: hidden;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0.5rem;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.case--fig .case__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case--fig:hover .case__fig img { transform: scale(1.03); }
.case--fig .case__fig--chart { display: flex; align-items: center; padding: 1.25rem var(--pad); color: inherit; text-decoration: none; }
.mini-bars { display: grid; gap: 0.75rem; width: 100%; }
.mini-bars__title { margin-bottom: 0.15rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mini-bar { display: grid; grid-template-columns: 10rem 1fr 4.2rem; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.mini-bar__track { height: 0.65rem; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.mini-bar__track i { display: block; width: calc(var(--v) / 7 * 100%); height: 100%; background: var(--line-strong); border-radius: 99px; }
.mini-bar b { text-align: right; font-weight: 600; color: var(--text-soft); }
.mini-bar--top, .mini-bar--top b { color: var(--text); }
.mini-bar--top .mini-bar__track i { background: var(--accent); }

/* Contact: booking button next to the form */
.contact__ways { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.contact__or { font-size: 0.95rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.contact__or:hover { color: var(--text); }

@media (max-width: 48rem) {
  .offers { grid-template-columns: 1fr; }
  /* label and value on one line, bar full width underneath */
  .mini-bar { grid-template-columns: 1fr auto; row-gap: 0.35rem; font-size: 0.85rem; }
  .mini-bar b { grid-row: 1; grid-column: 2; }
  .mini-bar__track { grid-row: 2; grid-column: 1 / -1; }
  .case--fig .case__fig--chart { aspect-ratio: auto; }
}

/* Home headline: "perçoivent", "décident", "réagissent" scroll one after another (7.2 s loop, 2.4 s each).
   A line break follows the word, so the space left by the shorter "décident" falls at the end of a line.
   The full phrase stays in the page for screen readers and search engines (.hero__verbs),
   and is shown as plain text when the visitor has asked for reduced motion. */
.hero__verbs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Keeps "your users" on the same line as the rotating word (English: otherwise the word is left alone on its own line) */
.hero__keep { white-space: nowrap; }
.word-rotator { display: inline-grid; justify-items: start; }
.word-rotator__word {
  grid-area: 1 / 1; white-space: nowrap;
  animation: word-cycle 7.2s ease-in-out infinite both;
}
.word-rotator__word:nth-child(2) { animation-delay: -4.8s; }
.word-rotator__word:nth-child(3) { animation-delay: -2.4s; }
@keyframes word-cycle {
  0%, 29%      { opacity: 1; transform: translateY(0); }
  33.3%        { opacity: 0; transform: translateY(-0.45em); }
  33.4%, 95.5% { opacity: 0; transform: translateY(0.45em); }
  100%         { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__verbs { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .word-rotator { display: none; }
}

/* Case studies: author line under the title */
.page-hero .byline { margin-top: 1.1rem; font-size: 0.95rem; color: var(--text-soft); }
.page-hero .byline a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.page-hero .byline a:hover { text-decoration-color: var(--accent); }
.page-hero .byline + .published { margin-top: 0.35rem; }

/* Case studies: summary column (key figures + table of contents), wide screens only, sticky while reading.
   Below 75rem it is not shown: the same figures are in the text. */
.case-aside { display: none; }
@media (min-width: 75rem) {
  .case-layout { display: grid; grid-template-columns: minmax(0, 52rem) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4rem); }
  .case-aside { display: block; }
}
.case-aside__inner { position: sticky; top: calc(var(--header-h) + 2rem); padding-left: 1.5rem; border-left: 1px solid var(--line); }
.case-aside__label { font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.case-aside__figs { margin: 0 0 1.75rem; display: grid; gap: 0.9rem; }
.case-aside__figs dt { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--accent); }
.case-aside__figs dd { margin: 0.2rem 0 0; font-size: 0.84rem; line-height: 1.45; color: var(--text-soft); }
.case-toc { list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: 0.88rem; }
.case-toc a { position: relative; display: block; padding: 0.22rem 0; color: var(--muted); text-decoration: none; transition: color .15s; }
.case-toc a:hover { color: var(--text); }
.case-toc a.is-active { color: var(--text); }
.case-toc a.is-active::before { content: ""; position: absolute; left: calc(-1.5rem - 1px); top: 0.3rem; bottom: 0.3rem; width: 2px; background: var(--accent); }
.prose--case .prose-block[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
/* Short laptop screens: the summary column drops its button (the header keeps one) and scrolls if it is still too tall */
@media (min-width: 75rem) and (max-height: 50rem) {
  .case-aside .btn { display: none; }
  .case-aside__inner { top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; }
  .case-aside__figs { gap: 0.7rem; margin-bottom: 1.25rem; }
  .case-toc { margin-bottom: 0; }
  .case-toc a { padding-block: 0.12rem; }
}

/* Case studies: link to the full report (PDF), under the date and at the end of the study */
.page-hero .report-link { margin-top: 1.1rem; }
.report-link__meta { font-weight: 400; color: var(--muted); font-size: 0.85em; margin-left: 0.35rem; }

/* Case studies: "n out of N" chart (one segment per participant; --n defaults to 7), French, site colours */
.count-chart { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; max-width: 58rem; padding: 1.35rem 1.5rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.count-chart__title { font-weight: 500; font-size: 1.05rem; color: var(--text); margin-bottom: 1rem; }
.count-chart__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.count-row { display: grid; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr) 4.6rem; align-items: center; gap: 1rem; font-size: 0.92rem; color: var(--text-soft); }
.count-row__label b { font-weight: 500; color: var(--text); }
.count-row__track { position: relative; height: 0.85rem; border-radius: 3px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(100% / var(--n, 7) - 3px), transparent calc(100% / var(--n, 7) - 3px) calc(100% / var(--n, 7))); }
.count-row__track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / var(--n, 7) * 100%);
  background: repeating-linear-gradient(90deg, var(--muted) 0 calc(100% / var(--v) - 3px), transparent calc(100% / var(--v) - 3px) calc(100% / var(--v))); }
.count-row__val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-soft); white-space: nowrap; }
.count-row--top, .count-row--top .count-row__val { color: var(--text); }
.count-row--top .count-row__track i { background: repeating-linear-gradient(90deg, var(--accent) 0 calc(100% / var(--v) - 3px), transparent calc(100% / var(--v) - 3px) calc(100% / var(--v))); }
.count-chart figcaption { margin-top: 1rem; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 48rem) {
  .count-chart { padding: 1.1rem 1.1rem 1rem; }
  .count-row { grid-template-columns: 1fr auto; row-gap: 0.4rem; font-size: 0.88rem; }
  .count-row__val { grid-row: 1; grid-column: 2; }
  .count-row__track { grid-row: 2; grid-column: 1 / -1; }
}
.count-chart--inline { margin-top: 1.25rem; max-width: none; }

/* VR case study: valence / activation chart (static SVG) with its legend beside it on wide screens */
.va-chart { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; max-width: 58rem; padding: 1.35rem 1.5rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.va-chart__title { font-weight: 500; font-size: 1.05rem; color: var(--text); margin-bottom: 0.75rem; }
.va-chart__body { display: grid; grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); gap: 1.5rem; align-items: end; }
.va-svg { display: block; width: 100%; height: auto; }
.va-svg--phone { display: none; }
.va-chart__side figcaption { margin-top: 1.1rem; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
.va-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; color: var(--text-soft); }
.va-legend li { display: flex; align-items: center; gap: 0.6rem; }
.va-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; flex: none; }
.va-dot--forest { background: var(--accent); }
.va-dot--subway { background: var(--text-soft); }
.va-diamond { width: 0.65rem; height: 0.65rem; margin: 0 0.08rem; border: 2px solid var(--text-soft); transform: rotate(45deg); flex: none; }
.va-zone { width: 0.95rem; height: 0.75rem; border: 1.5px dashed var(--accent); background: rgba(214, 244, 106, 0.07); flex: none; }
@media (max-width: 48rem) {
  .va-chart { padding: 1.1rem 1rem 1rem; }
  .va-chart__body { grid-template-columns: 1fr; gap: 1rem; }
  .va-svg--wide { display: none; }
  .va-svg--phone { display: block; }
  .va-legend { grid-template-columns: 1fr 1fr; font-size: 0.82rem; }
}

/* Home: VR card figure (compact valence / activation chart) */
.case--fig .case__fig--va { justify-content: center; }
.case__fig--va .va-mini { display: block; width: 100%; height: 100%; max-height: 100%; }

/* Contact form: privacy line under the send button */
.form__note { grid-column: 1 / -1; margin: -0.35rem 0 0; font-size: 0.8rem; color: var(--muted); }
.form__note a { color: var(--text-soft); }



/* Offers: four distinct cards, each with its icon and a large number, facts on separate rows */
.offer-card { position: relative; overflow: hidden; border-color: var(--line-strong); transition: border-color .2s, transform .2s; }
.offer-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.offer-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.offer-card__head { display: flex; align-items: center; justify-content: space-between; }
.offer-card__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 0.75rem; background: rgba(214, 244, 106, 0.08); border: 1px solid rgba(214, 244, 106, 0.25); }
.offer-card__icon svg { width: 1.9rem; height: 1.9rem; }
.offer-card__head .offer-card__num { font-size: clamp(2.2rem, 3.5vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--line-strong); }
.offer-card__title { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.offer-card__facts { gap: 0; }
.offer-card__facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.offer-card__facts dt { margin: 0.2rem 0 0; }
.offer-card__facts div:last-child dd { justify-self: start; padding: 0.2rem 0.7rem; border-radius: 99px; background: rgba(214, 244, 106, 0.1); color: var(--accent); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 36rem) {
  .offer-card__facts > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* --- Offers, 18/11: four short cards on the home page, the full detail on the offers page (fr/offres.html, offers.html) --- */
.offers--short { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.offer-card--short { gap: 0.85rem; }
.offer-card--short .offer-card__head .offer-card__num { font-size: clamp(2rem, 3vw, 2.5rem); }
.offer-card--short .offer-card__title { font-size: clamp(1.1rem, 1.5vw, 1.22rem); line-height: 1.3; }
.offer-card__text { font-size: 0.97rem; line-height: 1.55; color: var(--text-soft); }
.offer-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem;
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line);
}
.offer-pill { padding: 0.2rem 0.7rem; border-radius: 99px; background: rgba(214, 244, 106, 0.1); color: var(--accent); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 56rem) {
  .offers--short { grid-template-columns: 1fr; }
  .offer-card--short .offer-card__title { min-height: 0; }
}

/* Offers page: one offer per row, introduction on the left, the full detail on the right */
.section--tight-top { padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.offers-list { display: grid; gap: 1.25rem; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.offer-row:hover { transform: none; }
.offer-row__intro { display: grid; gap: 0.9rem; align-content: start; }
.offer-row__body { display: grid; gap: 1rem; }
.offer-row__body .offer-card__facts > div:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 48rem) {
  .offer-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .offer-row__body .offer-card__facts > div:first-child { border-top: 1px solid var(--line); padding-top: 0.8rem; }
}


/* Footer with links (18/11): brand, site links, case studies; legal links underneath. The pilot pages keep the old one-line footer. */
.site-footer { padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.site-footer__brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.site-footer__brand p { line-height: 1.6; }
.site-footer .site-footer__col { display: grid; gap: 0.65rem; align-content: start; }
.site-footer__title { margin-bottom: 0.15rem; font-family: var(--font-label); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; padding-top: 1.25rem; }
@media (max-width: 48rem) {
  .site-footer__top { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* Contact form (18/11): optional "Votre besoin" menu, styled like the other fields */
.field__opt { font-weight: 400; color: var(--muted); }
.field select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d6f46a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 1rem;
  color: var(--text); border: 1px solid var(--line-strong); border-radius: 0.5rem;
  padding: 0.8rem 2.6rem 0.8rem 0.9rem; font: inherit; font-size: 1rem; transition: border-color .2s;
}
.field select:hover { border-color: var(--muted); }
.field select:focus { outline: none; border-color: var(--accent); }
.field select option { background: var(--surface); color: var(--text); }

/* Offers page, enriched (18/11): the problem each offer answers, study levels, "what we measure" from the question */
.offer-row__problem { font-size: 1.05rem; line-height: 1.5; font-weight: 500; color: var(--text); }

/* Offers page, three offers (23/11): "for whom", then the tiers of each offer as drop-down menus (details/summary, no script) */
.offer-card--short .offer-card__text strong { color: var(--text); font-weight: 600; }
.offer-who__label { margin: 0 0 0.25rem; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.offer-who p { margin: 0; font-size: 0.97rem; line-height: 1.55; color: var(--text-soft); }
.offer-tiers { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.offer-tier { border-top: 1px solid var(--line); }
.offer-tier summary { list-style: none; cursor: pointer; }
.offer-tier summary::-webkit-details-marker { display: none; }
.offer-tier__summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 1rem; padding-block: 0.95rem; border-radius: 0.4rem; }
.offer-tier__main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.offer-tier__name { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.offer-tier__teaser { grid-column: 1; font-size: 0.93rem; line-height: 1.45; color: var(--text-soft); }
.offer-tier__chev { grid-column: 2; grid-row: 1 / span 2; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.offer-tier details[open] .offer-tier__chev { transform: rotate(-135deg) translate(-2px, -2px); }
.offer-tier summary:hover .offer-tier__name { color: var(--accent); }
.offer-tier summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-tier__panel { padding: 0 0 1rem; }
.offer-tier__panel p { margin: 0; font-size: 0.97rem; line-height: 1.6; color: var(--text-soft); }
.offer-tier--next { padding-block: 0.95rem 0; }
.offer-tier--next p { margin: 0; font-size: 0.97rem; line-height: 1.55; color: var(--text); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .offer-tier__chev { transition: none; } }
.levels { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.levels b { color: var(--text); font-weight: 600; }
.section-head__lead { margin-top: 0.75rem; }
.measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.measure { padding: 1.15rem 1.2rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0.75rem; }
.measure__q { font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.measure__m { margin-top: 0.45rem; font-size: 0.92rem; line-height: 1.5; color: var(--accent); }

/* Case studies, 18/11: visual to the right of the title on a computer, so the text starts sooner (Alarmes, Fatigue; not VR, whose chart is taller than the text).
   Below 62rem the visual goes back under the title. */
.page-hero--split { padding-block: clamp(1.75rem, 3vw, 2.25rem) clamp(2rem, 3.5vw, 2.75rem); }
@media (min-width: 62.01rem) {
  .page-hero--split .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 3.5rem; align-items: start; }
  .page-hero--split .container > * { grid-column: 1; }
  .page-hero--split .container > figure { grid-column: 2; grid-row: 1 / span 8; align-self: center; margin-top: 0; }
  .page-hero--split .breadcrumb { margin-bottom: 1.1rem; }
  .page-hero--split .case-title { font-size: clamp(1.9rem, 2.9vw, 2.6rem); }
  .page-hero--split .reveal__q { font-size: 1rem; }
}

/* Fatigue case study (18/11): one driver, two hours at the wheel. Compact chart in the page (two signals);
   a click opens the four signals in a dialog (js/main.js). Wide SVG on a computer, phone SVG on small screens. */
.drv-chart { margin: 1.5rem 0 1.75rem; padding: 1rem 1rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.drv-chart__open { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 0.5rem; }
.drv-chart__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.drv-chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.drv-chart__title { font-weight: 500; font-size: 1.02rem; color: var(--text); }
.drv-chart__more { font-size: 0.82rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.drv-chart__open:hover .drv-chart__more { text-decoration: underline; text-underline-offset: 3px; }
.drv-svg { display: block; width: 100%; height: auto; }
.drv-svg--phone { display: none; }
.drv-chart figcaption { margin-top: 0.6rem; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.drv-dialog { width: min(64rem, 94vw); max-height: 92vh; padding: 1rem 1.1rem 1.1rem; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.drv-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.drv-dialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.drv-dialog__close { all: unset; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 0.1rem 0.45rem; border-radius: 0.4rem; }
.drv-dialog__close:hover, .drv-dialog__close:focus-visible { color: var(--text); }
@media (max-width: 48rem) {
  .drv-chart { padding: 0.9rem 0.75rem 0.8rem; }
  .drv-svg--wide { display: none; }
  .drv-svg--phone { display: block; }
  .drv-chart__more { font-size: 0.78rem; }
}

/* Home, 18/11: the problem sentence of the hero caption stands out; case cards aligned row by row across the three cards */
.shot__problem { color: var(--text); font-weight: 500; }
.case--fig .case__fig { aspect-ratio: 1600 / 860; }
.case-grid--3 .case__text { color: var(--text-soft); }
@supports (grid-template-rows: subgrid) {
  .case-grid--3 > .case { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0.8rem; }
}

/* 18/11: VR case study, chart beside the title (computer); the legend is in the chart, so the side legend is hidden there */
@media (min-width: 62.01rem) {
  .page-hero--split .va-chart { margin: 0; max-width: none; padding: 1rem 1rem 0.9rem; }
  .page-hero--split .va-chart__body { grid-template-columns: 1fr; gap: 0.4rem; }
  .page-hero--split .va-legend { display: block; font-size: 0.82rem; }
  .page-hero--split .va-legend li:not(:has(.va-diamond)) { display: none; }
  .page-hero--split .va-chart__side figcaption { margin-top: 0.2rem; }
}
/* 18/11: Alarmes case study, the full report is sent on request (no public PDF link) */
.report-note { font-size: 0.92rem; color: var(--muted); }
.report-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.report-note a:hover { text-decoration-color: var(--accent); }
