/* ==========================================================================
   NYX SOLUTIONS — Design tokens & base
   World: night departure board (split-flap concourse) — matte steel, ruled
   grid, cascading character-flip type — raised with two donations:
   1) fine constellation waypoint-lines for diagram/network moments
   2) exposed structural seams (rivets, ruled dividers) at section joins
   Warmth layer: hand-drawn marker annotations (circle / underline / arrow)
   in royal blue, drawn on with stroke-dashoffset — softens the mechanical
   precision, signals real people behind the system.
   ========================================================================== */

@import url("fonts/fonts.css");

:root {
  /* --- Color: night board, restrained + one committed accent --- */
  --ink-0: #06070a;          /* deepest ground */
  --ink-1: #0b0d13;          /* page background */
  --ink-2: #12151d;          /* panel fill */
  --ink-3: #1a1e29;          /* raised panel / row fill */
  --steel-1: #2a2f3d;        /* hairline rules, board frame */
  --steel-2: #3c4256;        /* brighter structural line, dividers */

  --paper-0: #f4f3ee;        /* headline white (warm, not pure white) */
  --paper-1: #c7c9d4;        /* body text on dark */
  --paper-2: #8b8fa3;        /* secondary / muted text */
  --paper-3: #5a5e70;        /* faint labels, disabled */

  --royal: #3d5afe;          /* primary accent — CTA, links, doodles */
  --royal-bright: #6b82ff;   /* hover state */
  --royal-dim: #1c2550;      /* royal tint fill, low-opacity substitute */

  --amber: #f2a93c;          /* status accent — delayed / attention only */
  --red-dim: #c85a4f;        /* cancelled / pain-point rows only */
  --green-dim: #4fae7a;      /* on-time / resolved rows only */

  --focus: #8ea2ff;

  /* --- Type --- */
  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, monospace;

  /* --- Scale --- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.8vw, 2rem);
  --step-3: clamp(2.2rem, 1.8rem + 1.6vw, 3.2rem);
  --step-4: clamp(3rem, 2.2rem + 3vw, 5.4rem);

  /* --- Rhythm --- */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --board-radius: 3px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink-1);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(61, 90, 254, 0.10), transparent 60%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  color: var(--paper-1);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--royal); color: var(--paper-0); }

/* Custom scrollbar — WebKit */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink-1); }
::-webkit-scrollbar-thumb { background: var(--steel-2); border: 3px solid var(--ink-1); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--royal); }
* { scrollbar-color: var(--steel-2) var(--ink-1); scrollbar-width: thin; }

a { color: var(--royal-bright); text-decoration-color: rgba(107,130,255,0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--royal-bright); }

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--paper-0);
  margin: 0;
  line-height: 0.98;
}

p { margin: 0; }

.measure { max-width: 62ch; }

.container {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Board frame — the structural motif reused across every section
   ========================================================================== */

.board {
  position: relative;
  border: 1px solid var(--steel-1);
  background: var(--ink-2);
  border-radius: var(--board-radius);
}

.board::before {
  /* exposed rivets — corner marks, the "nothing hidden" seam motif */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--steel-2) 1px, transparent 1.3px);
  background-size: 100% 100%;
  background-position: 10px 10px, calc(100% - 10px) 10px, 10px calc(100% - 10px), calc(100% - 10px) calc(100% - 10px);
  opacity: 0.5;
}

.section-seam {
  border-top: 1px solid var(--steel-1);
  position: relative;
}

.section-seam::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-image: linear-gradient(90deg, var(--steel-2) 0 6px, transparent 6px 18px);
  background-size: 24px 1px;
  opacity: 0.6;
}

section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; scroll-margin-top: 7rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.eyebrow-none { display: none; } /* explicit: no kicker labels anywhere in this build */

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 44rem;
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head .lede {
  color: var(--paper-2);
  font-size: var(--step-1);
  max-width: 52ch;
}

/* ==========================================================================
   Type-in headings — section titles reveal left to right like a typed
   prompt, one line at a time, with a caret at the leading edge.
   ========================================================================== */

.type-line {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
  max-width: 100%;
  width: 0;
  border-right: 0.06em solid var(--royal-bright);
}

.type-line.is-done { border-right-color: transparent; }

.type-inner { display: inline-block; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(11, 13, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-1);
}

.site-header .brand { display: flex; align-items: center; flex-shrink: 0; }

.site-header .logo {
  height: 4rem;
  width: auto;
  filter: invert(1) brightness(1.6);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.8vw, 2.5rem);
  font-family: var(--f-mono);
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a {
  color: var(--paper-2);
  text-decoration: none;
  position: relative;
  padding-block: 0.25rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--royal-bright);
  transition: right 0.35s var(--ease-out-expo);
}

.site-nav a:hover { color: var(--paper-0); }
.site-nav a:hover::after { right: 0; }

@media (max-width: 64rem) {
  .site-nav a:not(.contact-link) { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-fg: var(--paper-0);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--step-0);
  padding: 0.85em 1.5em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
  color: var(--btn-fg);
}

.btn-primary {
  background: var(--royal);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 24px -12px rgba(61, 90, 254, 0.65);
}
.btn-primary:hover { background: var(--royal-bright); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 16px 30px -12px rgba(61, 90, 254, 0.75); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: var(--steel-2);
  color: var(--paper-0);
}
.btn-ghost:hover { border-color: var(--royal-bright); color: var(--royal-bright); }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ==========================================================================
   Hero + split-flap board
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 45%;
  opacity: 0.6;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 6%, rgba(0, 0, 0, 0.5) 34%, black 58%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 6%, rgba(0, 0, 0, 0.5) 34%, black 58%);
  pointer-events: none;
  z-index: 0;
}

.hero-network-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (max-width: 46rem) {
  .hero-bg-art {
    opacity: 0.32;
    object-position: 85% 40%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.4) 46%, black 68%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.4) 46%, black 68%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-network-fx { display: none; }
}

.flapboard {
  --rows: 2;
  display: grid;
  gap: 0.35em;
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--paper-0);
  font-size: var(--step-4);
  letter-spacing: -0.01em;
  line-height: 0.98;
}

.flap-row { display: flex; flex-wrap: wrap; gap: 0.12em; }
.flap-word { display: inline-flex; flex-wrap: nowrap; gap: 0.12em; }

.flap-cell {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 0.56em;
  height: 1.02em;
  padding-inline: 0.05em;
  background: var(--ink-3);
  border: 1px solid var(--steel-1);
  border-radius: 2px;
  overflow: hidden;
}

.flap-cell::after {
  /* the crease every real split-flap character has, mid-height */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.flap-cell.is-space { background: transparent; border-color: transparent; }

.flap-char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero .sub {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  color: var(--paper-1);
  max-width: 46ch;
}

.hero .cta-row {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.micro {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--paper-3);
  letter-spacing: 0.01em;
}

/* Boarding-gate style status row under hero */
.gate-row {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border: 1px solid var(--steel-1);
  border-radius: var(--board-radius);
  overflow: hidden;
}

.gate-cell {
  padding: 0.9rem 1.1rem;
  border-left: 1px solid var(--steel-1);
  background: var(--ink-2);
}
.gate-cell:first-child { border-left: none; }

.gate-cell .k { font-family: var(--f-mono); font-size: var(--step--1); color: var(--paper-3); text-transform: uppercase; letter-spacing: 0.06em; }
.gate-cell .v { font-family: var(--f-mono); font-size: var(--step-0); color: var(--paper-0); margin-top: 0.25rem; }
.gate-cell .v.status-ontime { color: var(--green-dim); }
.gate-cell .v.status-delayed { color: var(--amber); }

/* ==========================================================================
   Hand-drawn marker annotations (SVG, drawn on with stroke-dashoffset)
   ========================================================================== */

.mark {
  position: relative;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.mark svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.mark[data-mark="circle"] svg {
  inset: -0.32em -0.16em -0.3em -0.16em;
  width: calc(100% + 0.32em);
  height: calc(100% + 0.62em);
}

.mark[data-mark="underline"] svg {
  left: -0.06em;
  right: -0.06em;
  bottom: -0.34em;
  width: calc(100% + 0.12em);
  height: 0.5em;
}

.mark svg path {
  fill: none;
  stroke: var(--royal-bright);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  filter: url(#pencil-grain);
}

.mark.is-drawn svg path { transition: stroke-dashoffset 0.9s var(--ease-out-expo); }
.mark.is-drawn svg path { stroke-dashoffset: 0; }

.doodle-arrow {
  position: absolute;
  width: clamp(3rem, 6vw, 5rem);
  height: auto;
  color: var(--royal-bright);
}
.doodle-arrow path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1s var(--ease-out-expo) 0.2s; }
.is-drawn .doodle-arrow path { stroke-dashoffset: 0; }

/* ==========================================================================
   Constellation / waypoint diagram motif (donated from the night-chart line)
   used for method + sector network moments
   ========================================================================== */

.waypoints { position: relative; padding-top: 2.75rem; }
.waypoints svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.75rem;
  overflow: visible;
}
.waypoints .link {
  fill: none;
  stroke: var(--steel-2);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

.waypoints .node-dot {
  position: absolute;
  top: 1.375rem;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--royal-bright);
  box-shadow: 0 0 0 4px var(--ink-2);
}

/* ==========================================================================
   Board rows — replaces generic cards. Used for pains, pillars, offer, sectors
   ========================================================================== */

.row-board {
  border: 1px solid var(--steel-1);
  border-radius: var(--board-radius);
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--steel-1);
  background: var(--ink-2);
  transition: background-color 0.4s var(--ease-out-expo);
}
.row:first-child { border-top: none; }
.row:hover { background: var(--ink-3); }

.row .label {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--paper-0);
  font-size: var(--step-1);
  letter-spacing: -0.005em;
}

.row .desc { color: var(--paper-2); max-width: 58ch; }

.row .status {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 3px;
  justify-self: start;
}
.status-cancelled { color: var(--red-dim); background: rgba(200, 90, 79, 0.1); }
.status-ontime { color: var(--green-dim); background: rgba(79, 174, 122, 0.1); }
.status-boarding { color: var(--royal-bright); background: var(--royal-dim); }
.status-delayed { color: var(--amber); background: rgba(242, 169, 60, 0.1); }

@media (max-width: 46rem) {
  .row { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ==========================================================================
   Pillars (3) — board rows with number-as-data, not icon cards
   ========================================================================== */

.pillars { display: grid; gap: 0; }

.pillar {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--steel-1);
}
.pillar:first-child { border-top: none; }

.pillar .idx {
  font-family: var(--f-mono);
  font-size: var(--step-2);
  color: var(--steel-2);
}

.pillar.is-signature .idx { color: var(--royal-bright); }

.pillar h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.pillar p { color: var(--paper-2); max-width: 58ch; }

.pillar .tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--royal-bright);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ==========================================================================
   Stats — tabular numerals, board-style, flagged when placeholder
   ========================================================================== */

.stat-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border: 1px solid var(--steel-1);
  border-radius: var(--board-radius);
  overflow: hidden;
}

.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 1px solid var(--steel-1);
  background: var(--ink-2);
  position: relative;
}
.stat:first-child { border-left: none; }

.stat .n {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-3);
  color: var(--paper-0);
  line-height: 1;
}
.stat .l { margin-top: 0.6rem; color: var(--paper-2); font-size: var(--step--1); }

.placeholder-flag {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--amber);
  border: 1px solid rgba(242, 169, 60, 0.4);
  padding: 0.15em 0.45em;
  border-radius: 2px;
  text-transform: uppercase;
}

@media (max-width: 34rem) {
  .stat-board { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n+1) { border-left: none; }
}

/* ==========================================================================
   Portfolio / réalisations
   ========================================================================== */

.work-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--steel-1);
}
.work-item:first-child { border-top: none; }

.work-frame {
  position: relative;
  border: 1px solid var(--steel-1);
  border-radius: var(--board-radius);
  background: var(--ink-2);
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.work-frame img { width: 100%; height: 100%; object-fit: cover; }

.work-frame .placeholder-note {
  font-family: var(--f-mono);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--paper-2);
  text-align: center;
  padding: 1rem;
}

.work-meta .sector {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--royal-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work-meta h3 { font-size: var(--step-2); margin-top: 0.5rem; }
.work-meta p { color: var(--paper-2); margin-top: 0.75rem; max-width: 46ch; }

.work-meta .result {
  margin-top: 1rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--f-mono);
  color: var(--green-dim);
}

@media (max-width: 46rem) {
  .work-item { grid-template-columns: 1fr; }
}

/* Video encart */
.video-section { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.25rem); }

.video-intro h2 { font-size: var(--step-2); }
.video-intro p { margin-top: 1rem; color: var(--paper-2); max-width: 60ch; }

.video-slot {
  border: 1px solid var(--steel-1);
  border-radius: var(--board-radius);
  background: var(--ink-2);
  aspect-ratio: 21/9;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 46rem) {
  .video-slot { aspect-ratio: 16/9; }
}

.video-slot .play {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 1px solid var(--steel-2);
  display: grid;
  place-items: center;
  color: var(--royal-bright);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}
.video-slot .play svg { width: 1.7rem; height: 1.7rem; margin-left: 0.2rem; }
.video-slot:hover .play { transform: scale(1.06); border-color: var(--royal-bright); }

.video-slot .caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--paper-3);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.testimonial {
  border: 1px solid var(--steel-1);
  border-radius: var(--board-radius);
  background: var(--ink-2);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
}

.testimonial q {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--paper-0);
  text-transform: none;
  quotes: none;
  display: block;
  line-height: 1.25;
}

.testimonial .who {
  margin-top: 1.25rem;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--paper-3);
}

@media (max-width: 46rem) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About / qui sommes-nous
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-grid .role-board { display: grid; gap: 0; border: 1px solid var(--steel-1); border-radius: var(--board-radius); overflow: hidden; }
.role-row { padding: 1.1rem 1.25rem; border-top: 1px solid var(--steel-1); background: var(--ink-2); }
.role-row:first-child { border-top: none; }
.role-row .k { font-family: var(--f-mono); font-size: 0.7rem; color: var(--paper-3); text-transform: uppercase; letter-spacing: 0.06em; }
.role-row .v { margin-top: 0.3rem; color: var(--paper-1); }

@media (max-width: 50rem) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */

.faq-list { border: 1px solid var(--steel-1); border-radius: var(--board-radius); overflow: hidden; }

.faq-item { border-top: 1px solid var(--steel-1); background: var(--ink-2); }
.faq-item:first-child { border-top: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--paper-0);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--step-0);
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
  cursor: pointer;
}

.faq-q .plus {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--royal-bright);
}
.faq-q .plus svg { width: 100%; height: 100%; }
.faq-q .plus .v-bar { transition: transform 0.4s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo); transform-origin: center; }
.faq-item[data-open="true"] .plus .v-bar { transform: rotate(90deg); opacity: 0; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out-expo);
}
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 clamp(1.25rem, 3vw, 2rem) 1.5rem; color: var(--paper-2); max-width: 60ch; }

/* ==========================================================================
   Final CTA + contact form
   ========================================================================== */

.cta-final {
  text-align: left;
  background: var(--ink-2);
  border: 1px solid var(--steel-1);
  border-radius: var(--board-radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(61,90,254,0.16), transparent 60%);
  pointer-events: none;
}

.cta-final h2 { font-size: var(--step-3); max-width: 22ch; }
.cta-final .lede { margin-top: 1rem; color: var(--paper-2); max-width: 46ch; }

.form-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 42rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--paper-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input, .field select, .field textarea {
  background: var(--ink-1);
  border: 1px solid var(--steel-1);
  border-radius: 3px;
  padding: 0.75em 0.9em;
  color: var(--paper-0);
  font-family: var(--f-body);
  font-size: var(--step-0);
  transition: border-color 0.3s var(--ease-out-expo);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--royal); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--paper-3); }

.form-grid .btn { margin-top: 0.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--steel-1);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--paper-3);
}

.footer-grid a { color: var(--paper-2); }
.footer-grid .brand { color: var(--paper-1); }

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .mark svg path, .doodle-arrow path { stroke-dashoffset: 0 !important; }
}

/* ==========================================================================
   Responsive — global
   ========================================================================== */

@media (max-width: 40rem) {
  .flapboard { font-size: clamp(1.7rem, 9.5vw, 3rem); }
  .form-grid { grid-template-columns: 1fr; }
  .site-header .header-cta .btn span.full { display: none; }
}

@media (max-width: 26rem) {
  .flapboard { font-size: clamp(1.3rem, 8.5vw, 2rem); }
}

/* Statut du formulaire de contact */
.form-status { margin-top: 0.9rem; font-size: var(--step--1); color: var(--paper-2); max-width: 46ch; }
.form-status:empty { display: none; }

/* Pages légales */
.legal { max-width: 52rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem); }
.legal h1 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.legal .updated { font-family: var(--f-mono); font-size: var(--step--1); color: var(--paper-3); margin-bottom: 2.5rem; }
.legal h2 { font-size: var(--step-1); margin: 2.4rem 0 0.7rem; color: var(--paper-0); }
.legal p, .legal li { color: var(--paper-1); max-width: 62ch; }
.legal p + p { margin-top: 0.8rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; margin-top: 0.5rem; }
.legal a { color: var(--royal-bright); }
