/* ==========================================================================
   Adastra — feuille de style unique
   1. Polices et variables      6. Sections de la page d'accueil
   2. Base                      7. Animations
   3. Utilitaires               8. Pages de lecture et contact
   4. En-tête                   9. Tablette (701–1000 px)
   5. Composants               10. Mobile (≤ 700 px)
                               11. Réduction des animations
   ========================================================================== */

/* 1. Polices et variables ------------------------------------------------- */

@font-face {
  font-family: Zabawa;
  src: url('assets/fonts/ZabawaTest-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #6e7bff;
  --brand-deep: #4b54b7;
  --brand-text: #505de0;
  --paper: #f6ffff;
  --mist: #edf9f9;
  --ink: #0a2239;
  --night: #0d2d4c;
  --green: #173c35;

  /* Figma grid unit: 1 px at 1728 px wide, proportionally smaller below. */
  --u: min(1px, .0578703704vw);
  --gutter: calc(100 * var(--u));

  /* Text sizes follow the grid but never drop below a readable floor. */
  --fs-body: clamp(16px, calc(18 * var(--u)), 18px);
  --fs-small: clamp(14px, calc(16 * var(--u)), 16px);
  --fs-label: clamp(15px, calc(20 * var(--u)), 20px);
  --fs-h2: clamp(34px, calc(60 * var(--u)), 60px);
  --fs-h3: clamp(20px, calc(30 * var(--u)), 30px);
  --fs-script: clamp(46px, calc(82.33 * var(--u)), 82.33px);
  --lh-text: 1.45;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 200ms;
  --dur-base: 600ms;
  --dur-slow: 1000ms;
  --rise: 24px;
  --stagger: 120ms;
}

/* 2. Base ----------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-padding-top: 112px; }

body {
  margin: 0;
  background: var(--paper);
  color: #000;
  font-family: 'neue-haas-grotesk-display', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 700; }

h1, h2 { text-transform: uppercase; letter-spacing: -.04em; }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1; }
p { font-size: var(--fs-body); line-height: var(--lh-text); }

section { position: relative; isolation: isolate; scroll-margin-top: 110px; }

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

/* 3. Utilitaires ---------------------------------------------------------- */

.container { width: calc(100% - 2 * var(--gutter)); max-width: 1528px; margin-inline: auto; }
.centered { text-align: center; }

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

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 1000;
  padding: 16px 22px;
  background: var(--night);
  color: var(--paper);
  border-radius: 8px;
}
.skip-link:focus { top: 20px; }

.light-texture {
  background-color: #e8f0f8;
  background-image: url('assets/figma/1a647.webp');
  background-size: cover;
  background-position: center;
}

.dark-texture {
  background: linear-gradient(180deg, #002f5b 12.447%, #0d2d4c 111.56%);
  color: var(--paper);
}
.dark-texture::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url('assets/figma/28022.webp');
  background-position: center;
  background-size: cover;
  opacity: .2;
  pointer-events: none;
}

.handwritten {
  font-family: Zabawa, cursive;
  font-weight: 400;
  font-size: var(--fs-script);
  line-height: .88;
  letter-spacing: -.04em;
  text-transform: none;
  color: var(--brand);
}

.script-accent {
  position: relative;
  display: inline-block;
  font-family: Zabawa, cursive;
  font-size: 1.4em;
  font-weight: 400;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: .025em;
  word-spacing: .34em;
  white-space: nowrap;
  color: var(--brand);
}

/* 4. En-tête -------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: calc(53 * var(--u));
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  transition: top var(--dur-base) var(--ease-out), opacity var(--dur-slow) var(--ease-out),
    translate var(--dur-slow) var(--ease-out), visibility 0s;
}

.nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: calc(100% - 2 * var(--gutter));
  max-width: 1528px;
  min-height: calc(69 * var(--u));
  margin: auto;
  border: 1px solid transparent;
  pointer-events: auto;
  transition: background .5s, box-shadow .5s, padding .5s, border-radius .5s, border-color .5s;
}

.brand { display: block; width: calc(248 * var(--u)); justify-self: center; transition: width .5s var(--ease-out); }
.brand img { width: 100%; }

.nav-group { display: flex; gap: calc(25 * var(--u)); align-items: center; }
.nav-right { justify-content: flex-end; }
.nav-group a {
  position: relative;
  padding-block: 12px;
  font-size: clamp(15px, calc(18 * var(--u)), 18px);
  letter-spacing: -.02em;
  color: var(--green);
}
.nav-group a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-group a:hover::after,
.nav-group a[aria-current]::after { transform: scaleX(1); }

.site-header.is-scrolled { top: 14px; }
.site-header.is-scrolled .nav-shell {
  padding: 10px 26px;
  background: rgba(246, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(110, 123, 255, .14);
  border-radius: 999px;
  box-shadow: 0 6px 30px rgba(10, 34, 57, .08);
}
.site-header.is-scrolled .brand { width: calc(190 * var(--u)); }

.menu-toggle,
.mobile-navigation { display: none; }

/* 5. Composants ----------------------------------------------------------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 25px;
  font-size: clamp(15px, calc(18 * var(--u)), 18px);
  letter-spacing: -.02em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(110, 123, 255, .24); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary { background: var(--brand); color: var(--paper); }
.button-primary:hover { background: #5f6cf5; }
.button-outline { border-color: var(--brand); color: var(--brand); }
.button-outline:hover { background: var(--brand); color: var(--paper); }
.button-light { background: var(--paper); color: var(--brand-deep); }
.button-arrow { width: 10px; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.button:hover .button-arrow { transform: translate(2px, -2px); }

/* 6. Sections de la page d'accueil ---------------------------------------- */

/* 6.1 Accueil */

.hero {
  z-index: 2;
  min-height: 100svh;
  padding: clamp(150px, 20svh, 230px) 0 clamp(210px, 26svh, 340px);
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 44px));
  margin: auto;
  text-align: center;
}

.hero-title {
  max-width: 1160px;
  margin-inline: auto;
  font-size: clamp(44px, 5.2vw, 90px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.04em;
  word-spacing: .28em;
  color: var(--ink);
}
.hero-line { display: block; }

.hero-note {
  --ink-step: 45ms;
  --ink-dur: 300ms;
  margin-top: .2em;
  font-size: clamp(36px, 4.4vw, 76px);
  white-space: nowrap;
  transform: rotate(-1deg);
}

.hero-description {
  max-width: 720px;
  margin: clamp(24px, calc(40 * var(--u)), 40px) auto 0;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--green);
}

.hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 32px; }

.hands {
  position: absolute;
  left: 0;
  bottom: calc(-200 * var(--u));
  z-index: 3;
  width: 100%;
  height: calc(420 * var(--u));
  pointer-events: none;
}
.hand-robot { position: absolute; left: 0; top: 0; width: 48.67%; height: calc(412 * var(--u)); object-fit: cover; }
.hand-human { position: absolute; right: 0; top: calc(81 * var(--u)); width: 49.31%; height: calc(558 * var(--u)); object-fit: contain; object-position: top; }
.hands-symbol { position: absolute; left: 50%; top: calc(40 * var(--u)); width: calc(514 * var(--u)); transform: translateX(-50%); }

/* 6.2 Critères d'un collaborateur */

.expectations {
  z-index: 1;
  min-height: calc(1262 * var(--u));
  padding-top: calc(269 * var(--u));
  padding-bottom: calc(140 * var(--u) + 50px);
}

.expectations-heading { position: relative; max-width: 720px; }
.expectations-heading .handwritten { margin-top: calc(-4 * var(--u)); transform: rotate(-2.3deg); }
.scribble { width: calc(178 * var(--u)); margin-top: calc(8 * var(--u)); margin-left: calc(315 * var(--u)); }

.expectation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: calc(20 * var(--u));
  align-items: start;
  width: max(calc(1012 * var(--u)), 600px);
  margin: calc(14 * var(--u)) 0 0 auto;
}

.expectation-card {
  display: flex;
  flex-direction: column;
  min-height: calc(235 * var(--u));
  padding: clamp(26px, calc(50 * var(--u)), 50px);
  border: 1px solid var(--brand);
  border-radius: 16px;
  background: rgba(246, 255, 255, .05);
  backdrop-filter: blur(12px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    background 800ms var(--ease-out),
    border-color 800ms var(--ease-out),
    box-shadow 800ms var(--ease-out);
}
.expectation-card:nth-child(-n + 2) { translate: 0 calc(116 * var(--u)); }
.expectation-card h3 {
  margin: clamp(18px, calc(30 * var(--u)), 30px) 0 12px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.1;
}
.expectation-card p { font-size: var(--fs-body); }

.card-number {
  display: inline-block;
  align-self: flex-start;
  font-size: clamp(14px, calc(20 * var(--u)), 20px);
  letter-spacing: .3em;
  color: var(--brand);
  transform-origin: left center;
  transition: color .7s var(--ease-out), transform .7s var(--ease-out), text-shadow .7s var(--ease-out);
}

.expectation-card.criterion-active {
  background: rgba(246, 255, 255, .10);
  border-color: #a8b0ff;
  box-shadow: 0 0 0 1px rgba(110, 123, 255, .12), 0 0 40px rgba(110, 123, 255, .12);
}
.criterion-active .card-number { color: #c5cbff; transform: scale(1.18); text-shadow: 0 0 20px rgba(110, 123, 255, .5); }

/* 6.3 Scène « Quatre critères » */

.story-stage {
  display: grid;
  place-items: center;
  padding: clamp(96px, 12vw, 170px) var(--gutter);
}

.story-phrases {
  display: grid;
  gap: clamp(64px, 9vw, 120px);
  max-width: 1150px;
  margin: auto;
  text-align: center;
}

.story-key {
  font-size: clamp(34px, 4.6vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.story-accent { color: var(--brand); }

.story-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5b6b80;
}

.story-check { width: clamp(64px, 6vw, 100px); margin: 0 auto 32px; transform: rotate(-5.63deg); }
.story-script { font-size: clamp(76px, 9vw, 150px); line-height: 1; }
.story-logo { width: clamp(230px, 28vw, 430px); margin: 22px auto 0; }
.story-progress { display: none; }

/* 6.4 Plateforme */

.platform { padding: calc(160 * var(--u)) 0 calc(210 * var(--u)); overflow: clip; }
.underline { width: calc(112 * var(--u)); margin: calc(3 * var(--u)) auto 0; transform: translateX(calc(-35 * var(--u))); }

.platform-diagram { position: relative; isolation: isolate; max-width: max(calc(1274 * var(--u)), 760px); margin: calc(85 * var(--u)) auto 0; }
.platform-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(18 * var(--u)); }
.platform-row-bottom { width: 66.3%; margin: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tool-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(219 * var(--u));
  padding: calc(50 * var(--u)) 16px calc(42 * var(--u));
  border: 1px solid rgba(110, 123, 255, .2);
  border-radius: clamp(14px, calc(20 * var(--u)), 20px);
  background: linear-gradient(131.588deg, #6e7bff 5.4743%, #5b65ce 98.488%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
  text-align: center;
  color: var(--paper);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    translate var(--dur-slow) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    border-color .75s var(--ease-out),
    box-shadow .75s var(--ease-out);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(91, 101, 206, .28); }
.tool-card.tool-feeding { border-color: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 32px rgba(110, 123, 255, .24); }
.tool-icon { width: clamp(24px, calc(31 * var(--u)), 31px); height: clamp(24px, calc(31 * var(--u)), 31px); margin: 0 auto clamp(20px, calc(45 * var(--u)), 45px); object-fit: contain; }
.tool-card h3 { font-size: clamp(19px, calc(30 * var(--u)), 30px); font-weight: 600; line-height: 1.05; text-wrap: balance; }
.tool-card p { margin-top: 8px; font-size: clamp(14px, calc(18 * var(--u)), 18px); line-height: 1.3; color: rgba(246, 255, 255, .92); }
.card-art {
  position: absolute;
  z-index: -1;
  left: 12px;
  top: 7.5%;
  width: auto;
  height: 85%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: contain;
  transform: rotate(90deg);
  pointer-events: none;
}

.platform-connectors { position: relative; height: calc(232 * var(--u)); }
.connector-horizontal { position: absolute; left: 15.85%; top: 50%; width: 68.3%; height: 2px; opacity: .65; }
.connector-vertical { position: absolute; width: calc(115 * var(--u)); height: 2px; opacity: .65; transform: rotate(90deg); transform-origin: left center; }
.connector-v1 { left: 15.85%; top: 0; }
.connector-v2 { left: 50%; top: 0; }
.connector-v3 { left: 84.15%; top: 0; }
.connector-v4 { left: 33%; top: 50%; }
.connector-v5 { left: 67%; top: 50%; }
.diagram-symbol {
  --hub-energy: 0;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: calc(113 * var(--u));
  transform: translate(-50%, -50%) scale(calc(1 + var(--hub-energy) * .055));
  filter: drop-shadow(0 0 calc(var(--hub-energy) * 14px) rgba(110, 123, 255, .4));
  transition: filter .25s;
}
.platform-diagram.is-rested .diagram-symbol { animation: hub-breathe 6s ease-in-out infinite; }

.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: calc(24 * var(--u)); align-items: center; margin-top: calc(210 * var(--u)); }
.capability-list h3 {
  padding: calc(38 * var(--u)) 0;
  font-size: clamp(24px, calc(43.945 * var(--u)), 44px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.capability-list h3 > span,
.capability-list h3 > strong { display: block; }
.capability-list h3 strong { font-size: clamp(28px, calc(52.734 * var(--u)), 53px); line-height: 1; }
.feature-divider { width: 100%; height: 1px; }
.capability-visual { position: relative; isolation: isolate; }
.work-photo { width: 100%; aspect-ratio: 753 / 886; object-fit: cover; border: 1px solid var(--brand); border-radius: calc(43 * var(--u)); }
.work-symbol { position: absolute; z-index: -1; right: calc(-133 * var(--u)); top: calc(130 * var(--u)); width: calc(580 * var(--u)); max-width: none; }

/* 6.5 Souveraineté */

.sovereignty { display: flex; align-items: center; min-height: calc(1100 * var(--u)); padding: calc(140 * var(--u)) 0; }
.sovereignty-inner { display: grid; grid-template-columns: 1fr 1fr; gap: calc(24 * var(--u)); align-items: center; }
.sovereignty-copy { padding-left: calc(129 * var(--u)); }
.sovereignty-copy .handwritten { margin-top: calc(-13 * var(--u)); transform: rotate(-2.3deg); }
.sovereignty-description { margin-top: max(12px, calc(45 * var(--u) - 15px)); }

.lock-diagram { position: relative; width: calc(625 * var(--u)); padding-top: calc(195 * var(--u)); }
.lock-shackle { position: absolute; left: 50%; top: 0; width: calc(319 * var(--u)); transform: translateX(-50%); }
.lock-diagram.motion-inview .lock-shackle { animation: lock-breathe 7s ease-in-out infinite; }
.lock-body {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: space-between;
  justify-content: space-between;
  gap: calc(222 * var(--u)) calc(223 * var(--u));
  width: 100%;
  aspect-ratio: 1;
  padding: calc(60 * var(--u));
  border: 1px solid rgba(246, 255, 255, .6);
  border-radius: calc(92.444 * var(--u));
  background: rgba(246, 255, 255, .05);
}
.lock-tool {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(16 * var(--u));
  width: calc(141 * var(--u));
  height: calc(141 * var(--u));
  border: 1px solid transparent;
  border-radius: calc(33 * var(--u));
  background: #294963;
  font-size: clamp(13px, calc(20 * var(--u)), 20px);
  white-space: nowrap;
  transition: background .75s var(--ease-out), box-shadow .75s var(--ease-out), border-color .75s var(--ease-out);
}
.lock-tool img { width: calc(27 * var(--u)); height: calc(27 * var(--u)); object-fit: contain; }
.lock-tool.is-processing { background: #355775; border-color: rgba(164, 173, 255, .45); box-shadow: 0 0 22px rgba(110, 123, 255, .15); }
.lock-symbol {
  --lock-energy: 0;
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: calc(174 * var(--u));
  transform: translate(-50%, -50%) scale(calc(1 + var(--lock-energy) * .045));
  filter: brightness(calc(1 + var(--lock-energy) * .18));
}
.lock-line { position: absolute; z-index: 0; left: 22.5%; top: 50%; width: 55%; height: 2px; }
.line-one { transform: rotate(-45deg); }
.line-two { transform: rotate(-135deg); }

/* 6.6 Une journée avec Adastra */

.day { padding: calc(170 * var(--u)) 0 calc(140 * var(--u)); }
.day-logo { position: relative; width: calc(406 * var(--u)); margin: calc(24 * var(--u)) auto 0; }
.day-wordmark { width: 100%; }
.day-mark-left,
.day-mark-right { position: absolute; top: 20%; width: calc(66 * var(--u)); max-width: none; }
.day-mark-left { left: calc(-85 * var(--u)); transform: rotate(-146.46deg); }
.day-mark-right { right: calc(-85 * var(--u)); transform: rotate(-102.35deg) scaleY(-1); }

.day-tabs {
  display: flex;
  gap: 4px;
  width: max(calc(494 * var(--u)), 380px);
  min-height: clamp(56px, calc(80 * var(--u)), 80px);
  margin: calc(145 * var(--u)) auto calc(51 * var(--u));
  padding: 7px;
  border: 1px solid rgba(110, 123, 255, .2);
  border-radius: 999px;
  background: var(--mist);
}
.day-tabs button {
  flex: 1;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #536960;
  font-size: clamp(16px, calc(25 * var(--u)), 25px);
  letter-spacing: -.03em;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-fast);
}
.day-tabs button:hover:not([aria-selected=true]) { background: rgba(110, 123, 255, .08); color: var(--ink); }
.day-tabs button[aria-selected=true] { background: var(--brand); color: var(--paper); font-weight: 600; }

.day-layout { display: grid; grid-template-columns: calc(665 * var(--u)) 1fr; gap: calc(21 * var(--u)); min-height: calc(756 * var(--u)); }

.timeline {
  --day-card: max(180px, calc(300 * var(--u)));
  --day-gap: 20px;
  position: relative;
  min-width: 0;
  padding-left: max(56px, calc(78 * var(--u)));
}
.timeline-viewport {
  position: relative;
  height: calc(3 * var(--day-card) + 2 * var(--day-gap));
  overflow: hidden;
  border-radius: calc(19 * var(--u));
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
}
.timeline-cards { display: flex; flex-direction: column; gap: var(--day-gap); will-change: transform; }
.timeline-card {
  flex: none;
  height: var(--day-card);
  min-height: var(--day-card);
  overflow: hidden;
  padding: clamp(22px, calc(32 * var(--u)), 32px);
  border: 1px solid transparent;
  border-radius: clamp(14px, calc(19 * var(--u)), 19px);
  background: var(--mist);
  text-align: left;
  opacity: .5;
  transition: opacity .7s var(--ease-out), border-color .7s, background .7s;
}
.timeline-card[role=button] { cursor: pointer; }
.timeline-card[role=button]:hover { opacity: .85; border-color: var(--brand); }
.timeline-card[role=button]:focus-visible { outline-offset: -4px; opacity: 1; }
.timeline-card.is-active { background: #fff; border-color: var(--brand); opacity: 1; }
.time { display: block; margin-bottom: clamp(12px, calc(18 * var(--u)), 18px); font-size: clamp(13px, calc(19 * var(--u)), 19px); letter-spacing: .2em; color: rgba(10, 34, 57, .55); }
.timeline-card h3 { font-size: clamp(17px, calc(24 * var(--u)), 24px); font-weight: 600; line-height: 1.15; color: var(--brand); }
.timeline-card p { margin-top: clamp(10px, calc(18 * var(--u)), 18px); font-size: clamp(15px, calc(17 * var(--u)), 17px); line-height: 1.4; }

/* Personnage du métier, conversation et temps gagné (day-carousel.js) */
.day-persona { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: clamp(6px, calc(12 * var(--u)), 12px); }
.persona-who { font-size: clamp(17px, calc(22 * var(--u)), 22px); letter-spacing: -.02em; color: var(--ink); }
.persona-who strong { font-weight: 600; }
.persona-saved {
  margin-left: auto;
  padding: 10px 18px;
  border: 1px solid rgba(110, 123, 255, .2);
  border-radius: 999px;
  background: var(--mist);
  font-size: clamp(14px, calc(16 * var(--u)), 16px);
  color: #30465a;
}
.persona-saved strong { font-weight: 600; color: var(--brand); }
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b95ff, #5f6cf5);
  box-shadow: 0 6px 18px rgba(110, 123, 255, .28);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.avatar[data-day=office] { background: linear-gradient(135deg, #5fcfc4, #2b8c98); box-shadow: 0 6px 18px rgba(43, 140, 152, .25); }
.avatar[data-day=sales] { background: linear-gradient(135deg, #ffb07a, #ee765a); box-shadow: 0 6px 18px rgba(238, 118, 90, .25); }
.avatar-small { width: 30px; height: 30px; font-size: 14px; box-shadow: none; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(12px, calc(18 * var(--u)), 18px); }
.card-meta .time { margin-bottom: 0; }
.saved { padding: 4px 10px; border-radius: 999px; background: rgba(29, 122, 77, .08); font-size: clamp(12px, calc(14 * var(--u)), 14px); font-weight: 600; white-space: nowrap; color: #1d7a4d; }
.card-ask,
.card-reply { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.card-ask h3 { flex: 1; min-width: 0; }
.card-reply { margin-top: clamp(12px, calc(16 * var(--u)), 16px); }
.reply-mark { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--mist); }
.timeline-card .card-reply p { flex: 1; min-width: 0; margin-top: 3px; transition: opacity .35s var(--ease-out); }
.reply-typing { position: absolute; left: 42px; top: 0; display: none; gap: 5px; align-items: center; height: 30px; }
.reply-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .35; animation: typing-dot 1s ease-in-out infinite; }
.reply-typing i:nth-child(2) { animation-delay: .15s; }
.reply-typing i:nth-child(3) { animation-delay: .3s; }
.is-replying .reply-typing { display: flex; }
.is-replying .card-reply p { opacity: 0; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.day-controls {
  position: absolute;
  left: max(10px, calc(22 * var(--u)));
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: max(28px, calc(35.5 * var(--u)));
  height: 100%;
}
.day-controls::after {
  content: '';
  height: 100%;
  max-height: calc(100% - 190px);
  margin-top: 16px;
  border-left: 1px solid rgba(110, 123, 255, .5);
}
.day-controls button {
  position: relative;
  flex: none;
  width: max(28px, calc(35.5 * var(--u)));
  height: max(48px, calc(67 * var(--u)));
  padding: 0;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--paper);
  transition: background var(--dur-fast), opacity var(--dur-fast);
}
.day-controls button:hover { background: #edf0ff; }
.day-controls button:disabled { opacity: .3; }
.day-controls img { position: absolute; left: 50%; top: 50%; width: max(32px, calc(43 * var(--u))); max-width: none; margin: 0; }
.day-previous img { transform: translate(-50%, -50%) rotate(-90deg); }
.day-next img { transform: translate(-50%, -50%) rotate(90deg); }
.day-counter { font-size: clamp(12px, calc(14 * var(--u)), 14px); color: #657992; white-space: nowrap; }

.console-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(60 * var(--u));
  border-radius: calc(26.7 * var(--u));
}
.console-image {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1194 / 1002;
  object-fit: contain;
  border-radius: calc(18 * var(--u));
  background: #eef0f3;
  box-shadow: 0 4px 44px rgba(13, 45, 76, .18);
}
.console-star { position: relative; z-index: 1; flex: none; width: calc(108 * var(--u)); height: calc(108 * var(--u)); margin-top: calc(28 * var(--u)); }
.console-disc { position: absolute; z-index: 0; width: 100%; }
.console-symbol { position: absolute; z-index: 1; left: 50%; top: 50%; width: calc(51 * var(--u)); transform: translate(-50%, -50%); }

/* 6.7 Agents */

.agents { min-height: calc(1126 * var(--u)); padding: calc(151 * var(--u)) 0 calc(140 * var(--u)); overflow: clip; }
.agents-heading { position: relative; padding-left: calc(95 * var(--u)); }
.agents-heading h2 { max-width: max(calc(1255 * var(--u)), 760px); }
.agents-heading p { max-width: 620px; margin-top: 24px; }

.agent-flow {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: calc(551 * var(--u)) calc(570 * var(--u)) calc(407 * var(--u));
  grid-template-rows: auto 1fr;
  gap: calc(40 * var(--u)) 0;
  align-items: center;
  margin-top: calc(145 * var(--u));
  --flow-text: clamp(15px, calc(20 * var(--u)), 20px);
  --flow-small: clamp(13px, calc(16 * var(--u)), 16px);
}
.flow-wire { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-wire path { fill: none; stroke: var(--brand); stroke-width: 1; stroke-dasharray: 2 3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

.flow-trigger {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: calc(25 * var(--u));
  height: calc(70 * var(--u));
  font-size: var(--flow-text);
  transition: filter .6s var(--ease-out);
}
.flow-trigger img { flex: none; width: calc(84 * var(--u)); height: calc(84 * var(--u)); margin-block: calc(-7 * var(--u)); }
.flow-trigger.flow-active { filter: drop-shadow(0 0 9px rgba(110, 123, 255, .42)); }

.flow-steps { z-index: 2; display: grid; gap: calc(20 * var(--u)); margin: 0; padding: 0; list-style: none; }
.flow-steps li,
.flow-result { position: relative; display: flex; align-items: stretch; gap: calc(5 * var(--u)); min-height: calc(80 * var(--u)); }

.flow-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: max(44px, calc(80 * var(--u)));
  min-height: max(56px, calc(80 * var(--u)));
  border: 1px solid var(--brand);
  border-radius: clamp(11px, calc(15.264 * var(--u)), 15px);
  background: rgba(13, 45, 76, .9);
}
.flow-icon img { width: max(20px, calc(27 * var(--u))); height: max(20px, calc(27 * var(--u))); object-fit: contain; }

.flow-steps li > div,
.flow-result > div {
  flex: 1;
  align-content: center;
  min-height: max(56px, calc(80 * var(--u)));
  padding: clamp(10px, calc(16 * var(--u)), 16px) clamp(14px, calc(24 * var(--u)), 24px);
  border: 1px solid var(--brand);
  border-radius: clamp(11px, calc(15.264 * var(--u)), 15px);
  background: var(--night);
}
.flow-steps p,
.flow-result p { font-size: var(--flow-text); line-height: 1.25; letter-spacing: -.01em; }
.flow-steps small,
.flow-result small { display: block; margin-top: 4px; font-size: var(--flow-small); line-height: 1.3; color: rgba(246, 255, 255, .72); }

.flow-steps li > div,
.flow-icon,
.flow-decision > span,
.flow-result > div { transition: background .7s var(--ease-out), border-color .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.flow-steps li.flow-active > div,
.flow-steps li.flow-active .flow-icon { border-color: #c0c6ff; background: #18395b; box-shadow: 0 0 22px rgba(110, 123, 255, .15); }
.flow-steps li.flow-done > div { background: #123252; }

.flow-decision { position: relative; z-index: 2; display: grid; place-items: center; justify-self: start; height: calc(290 * var(--u)); margin-left: calc(127 * var(--u)); }
.flow-decision > span {
  display: grid;
  place-items: center;
  min-height: max(46px, calc(61 * var(--u)));
  padding: 0 22px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--night);
  font-size: var(--flow-text);
  white-space: nowrap;
}
.flow-decision > span.flow-active { border-color: #c0c6ff; background: #203d64; box-shadow: 0 0 25px rgba(110, 123, 255, .2); }

.flow-results {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  min-height: calc(372 * var(--u));
  margin-top: calc(8 * var(--u));
}
.flow-result { transition: opacity .7s var(--ease-out); }
.flow-result.flow-muted { opacity: .52; }
.flow-result.flow-active > div,
.flow-result.flow-active .flow-icon { border-color: #d3d7ff; box-shadow: 0 0 25px rgba(110, 123, 255, .25); }
.flow-result.flow-active:not(.flow-success) > div,
.flow-result.flow-active:not(.flow-success) .flow-icon { background: #18395b; }
.flow-success > div,
.flow-success .flow-icon { background: var(--brand); }
.flow-success small { color: var(--paper); opacity: .85; }

.flow-branch {
  position: absolute;
  right: calc(100% + 68 * var(--u));
  top: 50%;
  display: grid;
  place-items: center;
  width: max(52px, calc(72 * var(--u)));
  height: max(34px, calc(45 * var(--u)));
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--night);
  font-size: var(--flow-small);
  transform: translateY(-50%);
  transition: background .7s var(--ease-out), border-color .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.flow-branch.branch-active { border-color: #c0c6ff; background: #29416d; box-shadow: 0 0 15px rgba(110, 123, 255, .2); }

.flow-replay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 10px 20px;
  border: 1px solid rgba(246, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: var(--fs-small);
  transition: border-color var(--dur-fast), background var(--dur-fast), opacity var(--dur-base);
}
.flow-replay:hover { border-color: var(--brand); background: rgba(110, 123, 255, .14); }
.flow-replay[hidden] { display: none; }

/* 6.8 Déploiement */

.deployment { padding: calc(170 * var(--u)) 0 calc(158 * var(--u)); overflow: hidden; }
.deployment-heading { position: relative; padding-bottom: 18px; }
.deployment-final { position: relative; display: inline-block; white-space: nowrap; }
.deployment-final img { position: absolute; max-width: none; margin: 0; pointer-events: none; }
.deployment-underline-one { left: 0; top: calc(100% + 5px); width: 100%; }
.deployment-underline-two { left: 36%; top: calc(100% + 13px); width: 28%; }

.deployment-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, calc(20 * var(--u)), 20px);
  margin: calc(61 * var(--u)) 0 0;
  padding: 40px 0 0;
  list-style: none;
}
.deployment-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), rgba(110, 123, 255, .2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) .2s;
}
.deployment-track.is-in::before { transform: none; }

.deployment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--brand);
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    translate var(--dur-slow) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.deployment-card::before {
  content: '';
  position: absolute;
  left: 24px;
  top: -37px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: var(--paper);
}
.deployment-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(13, 45, 76, .1); }
.deployment-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 24px rgba(0, 0, 0, .12); }
.deployment-copy { display: flex; flex-direction: column; gap: 14px; padding: 22px 10px 12px; }
.deployment-copy .handwritten { font-size: clamp(30px, calc(42 * var(--u)), 42px); line-height: 1; white-space: normal; }
.deployment-copy h3 { margin-bottom: 8px; font-size: clamp(17px, calc(22 * var(--u)), 22px); font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.deployment-copy p { font-size: clamp(15px, calc(17 * var(--u)), 17px); line-height: 1.45; }

.carousel-controls { display: none; gap: 10px; margin-top: 18px; }
.carousel-controls button {
  display: grid;
  place-items: center;
  width: 67px;
  height: 36px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: transparent;
  transition: background var(--dur-fast), opacity var(--dur-fast);
}
.carousel-controls button:hover:not(:disabled) { background: rgba(110, 123, 255, .1); }
.carousel-controls button:disabled { opacity: .25; }
.carousel-controls img { width: 43px; }

/* 6.9 Appel à l'action et pied de page */

.contact-section { padding: calc(55 * var(--u)) 0; }
.contact-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(719 * var(--u));
  border-radius: calc(40 * var(--u));
  background: var(--brand);
}
.contact-content { position: relative; z-index: 2; padding: calc(80 * var(--u)) 20px; text-align: center; color: var(--paper); }
.contact-content .handwritten { margin: calc(14 * var(--u)) 0 calc(60 * var(--u)); color: var(--paper); }
.contact-outline,
.contact-fill {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: calc(878 * var(--u));
  height: calc(877 * var(--u));
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: calc(95 * var(--u));
  padding-bottom: 25px;
  font-size: var(--fs-small);
  color: var(--night);
}
.copyright { display: flex; align-items: center; gap: 20px; }
.copyright img { width: clamp(26px, calc(35 * var(--u)), 35px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--brand-deep); }

/* 7. Animations ----------------------------------------------------------- */

@keyframes write-ink { to { stroke-dashoffset: 0; } }
@keyframes caret-blink { 0%, 60%, 100% { opacity: 1; } 20%, 45% { opacity: 0; } }
@keyframes lock-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
@keyframes hub-breathe { 0%, 100% { filter: drop-shadow(0 0 0 rgba(110, 123, 255, 0)); } 50% { filter: drop-shadow(0 0 12px rgba(110, 123, 255, .35)); } }

/* 7.1 Apparition des blocs (déclenchée une fois par script.js) */

:where([data-reveal], [data-enter]) {
  transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out);
}
:where([data-reveal], [data-enter]),
.tool-card,
.deployment-card { transition-delay: var(--reveal-delay, 0ms); }
.tool-card:hover,
.deployment-card:hover { transition-delay: 0ms; }
.js:not(.no-motion) :where([data-reveal], [data-enter]):not(.is-in) { opacity: 0; translate: 0 var(--rise); }

/* 7.2 Ouverture : titre tapé, encre, puis le reste */

.intro-pending .hero-title,
.intro-pending .hero-note,
.intro-pending .hero-description,
.intro-pending .hero-actions,
.intro-pending .hands { visibility: hidden; }

.intro-running .hero-description,
.intro-running .hero-actions,
.intro-running .hands {
  opacity: 0;
  translate: 0 var(--rise);
  transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out);
}
.intro-pending .site-header,
.intro-running:not(.intro-reveal) .site-header { opacity: 0; visibility: hidden; translate: 0 -16px; }
.intro-running .hero-note:not(.handwriting-ready) { opacity: 0; }
.intro-running.intro-reveal .hero-note { opacity: 1; }
.intro-running.intro-reveal .hero-description { opacity: 1; translate: 0 0; }
.intro-running.intro-reveal .hero-actions { opacity: 1; translate: 0 0; transition-delay: var(--stagger); }
.intro-running.intro-reveal .hands { opacity: 1; translate: 0 0; transition-delay: calc(2 * var(--stagger)); }

.tw-char { opacity: 0; }
.tw-char.is-typed { opacity: 1; }
.tw-caret { position: relative; display: inline-block; width: 0; }
.tw-caret::after {
  content: '';
  position: absolute;
  left: .05em;
  bottom: .06em;
  width: .055em;
  height: .82em;
  border-radius: 2px;
  background: var(--brand);
  transition: opacity .4s var(--ease-out);
}
.tw-caret.is-idle::after { animation: caret-blink 1.1s ease-out infinite; }
.tw-caret.is-gone::after { animation: none; opacity: 0; }

/* 7.3 Écriture manuscrite (handwriting.js) */

.handwriting-ready .hw-word { position: relative; display: inline-block; line-height: inherit; white-space: pre; }
.handwriting-ready .hw-text { color: transparent; }
.handwriting-ink { position: absolute; left: 0; top: calc(50% - .6165em); width: 100%; height: 1.233em; max-width: none; overflow: visible; pointer-events: none; color: inherit; }
.ink-brush { stroke-dasharray: var(--ink-length, 1); stroke-dashoffset: var(--ink-length, 1); }
.handwriting-write .ink-brush {
  animation: write-ink var(--ink-dur, 380ms) cubic-bezier(.35, .05, .5, .95) calc(var(--glyph-order, 0) * var(--ink-step, 60ms) + var(--ink-start, 0ms)) both;
}
.ink-instant .ink-brush { animation: none; stroke-dashoffset: 0; }

/* Zabawa has no accented e: the fallback draws the accent. */
.accent-e { position: relative; display: inline; }
.accent-e::after {
  content: '';
  position: absolute;
  left: .25em;
  top: .035em;
  width: .17em;
  height: .052em;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(-36deg);
}
.accent-e.grave::after { transform: rotate(36deg); }

/* 7.4 Critères : séquence sur grand écran, mise en avant au défilement sur mobile */

@media (min-width: 701px) {
  .criteria-ready .expectation-card:not(.criterion-shown) { opacity: 0; transform: translateY(25px); pointer-events: none; }
}

/* 7.5 Scène « Quatre critères » fixée pendant le défilement (story.js) */

.story.is-pinned { height: 420svh; }
.story.is-pinned .story-stage { position: sticky; top: 0; height: 100svh; padding: 0 var(--gutter); overflow: hidden; }
.story.is-pinned .story-phrases { gap: 0; width: 100%; }
.story.is-pinned .story-phrase {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  filter: blur(12px);
  translate: 0 28px;
  pointer-events: none;
  transition: opacity 850ms var(--ease-out), filter 850ms var(--ease-out), translate 850ms var(--ease-out);
}
.story.is-pinned .story-phrase.is-past { translate: 0 -28px; }
.story.is-pinned .story-phrase.is-active { opacity: 1; filter: none; translate: 0 0; }
.story.is-pinned .story-labels li { opacity: 0; transition: opacity 600ms var(--ease-out); }
.story.is-pinned .is-active .story-labels li { opacity: 1; }
.story.is-pinned .is-active .story-labels li:nth-child(2) { transition-delay: 150ms; }
.story.is-pinned .is-active .story-labels li:nth-child(3) { transition-delay: 300ms; }
.story.is-pinned .is-active .story-labels li:nth-child(4) { transition-delay: 450ms; }
.story.is-pinned .story-progress {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6svh, 56px);
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.story-progress span { width: 22px; height: 3px; border-radius: 3px; background: rgba(110, 123, 255, .25); transition: background var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out); }
.story-progress span.is-active { width: 38px; background: var(--brand); }

/* 7.6 Points animés des schémas (motion.js) */

.motion-packet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 7px #fff, 0 0 18px var(--brand);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.tool-packet { background: var(--brand); box-shadow: 0 0 5px #fff, 0 0 13px rgba(110, 123, 255, .7); }
.lock-packet { z-index: 1; background: var(--brand); box-shadow: 0 0 7px var(--brand), 0 0 15px rgba(110, 123, 255, .55); }
.flow-packet { z-index: 1; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }

/* 8. Pages de lecture et contact ------------------------------------------ */

.legal-page { min-height: 100vh; background: var(--paper); color: var(--ink); }
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 18px 28px;
  border: 1px solid rgba(110, 123, 255, .2);
  border-radius: 999px;
  background: rgba(246, 255, 255, .96);
}
.legal-header img { display: block; width: 185px; height: auto; }
.legal-header nav { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.legal-header nav a[aria-current=page] { color: var(--brand-text); text-decoration: underline; text-underline-offset: 5px; }
.legal-content { width: calc(100% - 48px); max-width: 820px; margin: 64px auto 80px; }
.legal-back { display: inline-block; margin-bottom: 48px; font-size: 16px; color: #4c5a73; }
.legal-eyebrow { margin-bottom: 14px; font-size: 14px; letter-spacing: .15em; text-transform: uppercase; color: var(--brand-text); }
.legal-content h1 { max-width: 800px; font-size: clamp(36px, 5vw, 58px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-transform: none; }
.legal-updated { margin: 18px 0 40px; font-size: 15px; color: #5c7080; }
.legal-body { padding: 36px 40px; border: 1px solid rgba(110, 123, 255, .2); border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(13, 45, 76, .04); }
.legal-body section + section { margin-top: 28px; padding-top: 28px; border-top: 1px solid #e5e9f6; }
.legal-body h2 { margin-bottom: 14px; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-transform: none; }
.legal-body p,
.legal-body li { font-size: 18px; line-height: 1.6; letter-spacing: 0; color: #30465a; }
.legal-body ul { padding-left: 24px; }
.legal-body li + li { margin-top: 6px; }
.legal-body strong { font-weight: 600; color: var(--ink); }
.legal-body a,
.legal-footer a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body a { color: var(--brand-text); }
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid rgba(110, 123, 255, .2);
  font-size: 14px;
  color: #4c5a73;
}
.legal-page a:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; border-radius: 3px; }

/* 8.1 Page de contact */

.contact-page .legal-content { max-width: 1040px; margin-top: calc(122 * var(--u) + 72px); }
.booking,
.contact-message { scroll-margin-top: 120px; }
.contact-lead { max-width: 720px; margin-top: 14px; font-size: 19px; line-height: 1.5; color: #30465a; }

.booking-embed { position: relative; margin-top: 24px; overflow: hidden; border-radius: 16px; }
.booking-embed.is-loading { min-height: 620px; }
.booking-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.booking-skeleton span { border-radius: 14px; background: linear-gradient(100deg, var(--mist) 30%, #fff 50%, var(--mist) 70%) 0 0 / 300% 100%; animation: skeleton 1.4s linear infinite; }
.booking-embed.is-loading .booking-skeleton { opacity: 1; }
@keyframes skeleton { to { background-position: -150% 0; } }
.booking-fallback { display: grid; gap: 18px; justify-items: start; margin-top: 28px; padding: 26px; border: 1px dashed rgba(110, 123, 255, .45); border-radius: 16px; background: var(--mist); }
.booking-fallback p { font-size: 17px; color: #30465a; }
.booking-fallback[hidden] { display: none; }

.contact-message {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-top: 96px;
  padding-top: 80px;
  border-top: 1px solid rgba(110, 123, 255, .18);
}
.message-intro { position: sticky; top: 130px; }
.message-intro h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; text-transform: none; color: var(--ink); }
.message-intro h2 span { color: var(--brand); }
.message-intro > p { max-width: 400px; margin-top: 18px; font-size: 18px; line-height: 1.55; color: #30465a; }
.message-card {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 40px;
  border: 1px solid rgba(110, 123, 255, .18);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(13, 45, 76, .07);
}
.message-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
.message-address { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.25; letter-spacing: -.03em; }
.message-address a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.message-address a:hover { color: var(--brand-text); }
.message-note { font-size: 15px; line-height: 1.45; color: #4c5a73; }
.message-card .button { margin-top: 8px; border: 0; }

/* 9. Tablette (701–1000 px) ----------------------------------------------- */

@media (min-width: 1729px) {
  .hands { left: 50%; width: 1728px; transform: translateX(-50%); }
}

@media (max-width: 1000px) {
  .deployment-track {
    display: flex;
    gap: 16px;
    margin-inline: -4px;
    padding: 4px 4px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .deployment-track::-webkit-scrollbar { display: none; }
  .deployment-track::before,
  .deployment-card::before { display: none; }
  .deployment-card { flex: 0 0 calc((100% - 16px) / 2); scroll-snap-align: start; }
  .carousel-controls { display: flex; }
  .carousel-prev img { transform: scaleX(-1); }
}

@media (max-width: 1000px) and (min-width: 701px) {
  .day-layout { grid-template-columns: 46% 1fr; }
  .sovereignty-copy { padding-left: 20px; }
  .hero { min-height: 620px; }
  .site-footer { flex-wrap: wrap; justify-content: center; gap: 18px; padding: 25px 0; }
  .agent-flow { --flow-text: 14px; --flow-small: 12.5px; }
  .contact-message { grid-template-columns: 1fr; gap: 40px; }
  .message-intro { position: static; }
}

/* 10. Mobile (≤ 700 px) ---------------------------------------------------- */

@media (max-width: 700px) {
  :root { --u: 1px; --gutter: 22px; --fs-h2: 34px; --fs-script: 52px; }
  html { scroll-padding-top: 105px; }
  section { scroll-margin-top: 105px; }
  h2 { line-height: 1.04; }
  .handwritten { line-height: .95; }

  /* En-tête */
  .site-header { top: 16px; }
  .nav-shell {
    grid-template-columns: 1fr auto;
    width: calc(100% - 28px);
    min-height: 60px;
    padding: 10px 18px;
    border-color: rgba(110, 123, 255, .15);
    border-radius: 32px;
    background: rgba(246, 255, 255, .94);
    backdrop-filter: blur(18px);
  }
  .brand,
  .site-header.is-scrolled .brand { width: 160px; justify-self: start; }
  .site-header.is-scrolled .nav-shell { padding: 10px 18px; border-radius: 32px; }
  .nav-group { display: none; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; width: 42px; height: 40px; border: 0; background: none; }
  .menu-toggle span { width: 23px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out); }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-navigation:not([hidden]) {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(110, 123, 255, .2);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 20px 40px rgba(10, 34, 57, .12);
  }
  .mobile-navigation a { padding: 14px 12px; border-radius: 12px; font-size: 18px; }
  .mobile-navigation a:hover { background: var(--mist); }
  .mobile-navigation .mobile-cta { margin-top: 8px; background: var(--brand); color: var(--paper); text-align: center; }

  /* Accueil */
  .hero { min-height: 100svh; padding: 150px 0 220px; }
  .hero-title { max-width: 430px; font-size: clamp(36px, 8.8vw, 52px); line-height: .98; text-wrap: balance; }
  .hero-line { display: inline; }
  .hero-note { max-width: 350px; margin: 12px auto 0; font-size: clamp(34px, 8.5vw, 44px); line-height: 1; white-space: normal; }
  .hero-description { max-width: 410px; margin-top: 28px; font-size: 17px; line-height: 1.45; }
  .hero-actions { flex-wrap: wrap; gap: 10px; margin-top: 24px; }
  .hero .button { min-height: 44px; padding-inline: 21px; gap: 12px; font-size: 15px; }
  .hands { bottom: -55px; height: 250px; }
  .hand-robot { width: 54%; height: 150px; object-fit: contain; object-position: left top; }
  .hand-human { right: 0; top: 36px; width: 54%; height: 210px; }
  .hands-symbol { top: 5px; width: 185px; }

  /* Critères */
  .expectations { min-height: 0; padding: 100px 0 126px; }
  .expectations-heading .handwritten { margin-top: 2px; font-size: 50px; }
  .scribble { width: 110px; margin-top: 8px; margin-left: 155px; }
  .expectation-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 18px; width: 100%; margin: 50px 0 0; }
  .expectation-card { min-height: 0; padding: 28px; }
  .expectation-card:nth-child(-n + 2) { translate: none; }
  .card-number { font-size: 16px; }
  .expectation-card h3 { margin: 22px 0 10px; font-size: 26px; }
  .expectation-card p { font-size: 17px; }

  /* Scène « Quatre critères » */
  .story-stage { padding: 96px 22px; }
  .story-key { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.08; }
  .story-script { font-size: 84px; }
  .story-labels { gap: 8px 18px; font-size: 12px; }
  .story-logo { width: min(260px, 80%); }

  /* Plateforme */
  .platform { padding: 85px 0 80px; }
  .platform-diagram { display: flex; flex-direction: column; gap: 28px; max-width: 100%; margin-top: 55px; }
  .platform-row,
  .platform-row-bottom { display: contents; }
  .tool-card { overflow: visible; min-height: 0; padding: 30px 15px; border-radius: 20px; }
  .tool-card::after { content: ''; position: absolute; left: 50%; top: 100%; height: 28px; border-left: 2px dotted var(--brand); pointer-events: none; }
  .tool-icon { width: 29px; height: 29px; margin-bottom: 22px; }
  .tool-card h3 { font-size: 26px; }
  .tool-card p { margin-top: 9px; font-size: 17px; }
  .platform-connectors { order: 1; flex: none; width: 100%; height: 80px; }
  .platform-connectors > img:not(.diagram-symbol),
  .platform-diagram .tool-packet { display: none !important; }
  .diagram-symbol { width: 80px; }
  .capabilities { grid-template-columns: 1fr; gap: 40px; margin-top: 70px; }
  .capability-list h3 { padding: 25px 0; font-size: 30px; }
  .capability-list h3 strong { font-size: 36px; }
  .work-photo { border-radius: 28px; }
  .work-symbol { right: -35px; top: 40px; width: 240px; }

  /* Souveraineté */
  .sovereignty { min-height: 0; padding: 75px 0 80px; }
  .sovereignty-inner { grid-template-columns: 1fr; gap: 50px; }
  .sovereignty-copy { padding: 0; }
  .sovereignty-copy .handwritten { margin-top: -8px; font-size: 54px; }
  .sovereignty-description { margin-top: 14px; font-size: 17px; }
  .lock-diagram { --u: min(.6px, calc((100vw - 44px) / 625)); justify-self: center; width: 100%; max-width: 375px; }
  .lock-tool { font-size: 12px; }

  /* Journée */
  .day { padding: 80px 0; }
  .day-heading h2 { font-size: 32px; }
  .day-logo { width: 220px; margin-top: 16px; }
  .day-mark-left,
  .day-mark-right { width: 35px; }
  .day-mark-left { left: -42px; }
  .day-mark-right { right: -42px; }
  .day-tabs { width: 100%; max-width: 420px; min-height: 54px; margin: 55px auto 32px; padding: 5px; }
  .day-tabs button { padding: 8px 10px; font-size: 16px; }
  .day-layout { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .timeline { --day-card: 280px; --day-gap: 14px; padding-left: 40px; }
  .timeline-viewport { height: calc(var(--day-card) + 110px); }
  .timeline-card { padding: 22px; border-radius: 18px; }
  .timeline-card h3 { font-size: 19px; }
  .timeline-card p { margin-top: 12px; font-size: 16px; }
  .time { margin-bottom: 14px; font-size: 14px; }
  .day-controls { left: 0; width: 28px; gap: 12px; }
  .day-controls button { width: 28px; height: 54px; }
  .day-controls img { width: 35px; }
  .day-controls::after { max-height: 180px; margin-top: 12px; }
  .console-visual { min-height: 360px; padding: 32px 22px; border-radius: 24px; }
  .console-image { border-radius: 12px; }
  .console-star { width: 68px; height: 68px; margin-top: 24px; }
  .console-symbol { width: 34px; }

  /* Agents */
  .agents { min-height: 0; padding: 80px 0; }
  .agents-heading { padding-left: 0; }
  .agents-heading h2 { font-size: 33px; padding-bottom: 10px; }
  .agents-heading p { margin-top: 14px; font-size: 17px; }
  .agent-flow { display: flex; flex-direction: column; align-items: stretch; gap: 28px; margin-top: 50px; --flow-text: 16px; --flow-small: 14px; }
  .flow-trigger { height: 45px; gap: 20px; font-size: 17px; }
  .flow-trigger img { width: 45px; height: 45px; margin: 0; }
  .flow-steps { gap: 12px; }
  .flow-steps li,
  .flow-result { gap: 5px; min-height: 65px; }
  .flow-icon { width: 45px; min-height: 65px; }
  .flow-icon img { width: 23px; height: 23px; }
  .flow-steps li > div,
  .flow-result > div { min-height: 65px; padding: 14px; }
  .flow-decision { align-self: center; height: auto; margin-left: 0; }
  .flow-decision > span { min-height: 48px; padding: 0 24px; }
  .flow-results { gap: 20px; min-height: 0; margin-top: 0; padding-left: 52px; }
  .flow-branch { right: calc(100% + 9px); width: 44px; height: 32px; font-size: 14px; }

  /* Déploiement */
  .deployment { padding: 85px 0 80px; }
  .deployment-heading h2 { line-height: 1.05; }
  .deployment-track { margin-top: 35px; }
  .deployment-card { flex-basis: 86%; }

  /* Appel à l'action et pied de page */
  .contact-section { padding: 40px 0 50px; overflow: clip; }
  .contact-panel { min-height: 440px; border-radius: 28px; }
  .contact-content { padding: 65px 16px; }
  .contact-content h2 { font-size: 30px; }
  .contact-content .handwritten { margin: 10px 0 35px; font-size: 55px; }
  .contact-outline,
  .contact-fill { width: 460px; height: 460px; }
  .contact-content .button { min-height: 46px; padding-inline: 22px; font-size: 16px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 25px; padding-bottom: 28px; }
  .copyright { gap: 12px; }
  .footer-links { gap: 15px 20px; }
  .footer-links a { flex-basis: 100%; }

  /* Pages de lecture et contact */
  .legal-header { flex-direction: column; align-items: flex-start; gap: 16px; width: calc(100% - 32px); padding: 18px 20px; border-radius: 24px; }
  .legal-header img { width: 160px; }
  .legal-header nav { flex-wrap: wrap; gap: 18px; font-size: 14px; }
  .legal-content { width: calc(100% - 32px); margin: 40px auto 48px; }
  .legal-back { margin-bottom: 32px; }
  .legal-content h1 { font-size: 36px; overflow-wrap: anywhere; }
  .legal-body { padding: 24px 20px; border-radius: 20px; }
  .legal-body h2 { font-size: 23px; }
  .legal-body p,
  .legal-body li { font-size: 17px; line-height: 1.5; }
  .legal-footer { flex-direction: column; width: calc(100% - 32px); }
  .contact-page .legal-content { margin-top: 124px; }
  .booking-embed.is-loading { min-height: 640px; }
  .booking-skeleton { grid-template-columns: 1fr; }
  .booking-skeleton span:not(:first-child) { display: none; }
  .contact-message { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; padding-top: 56px; }
  .message-intro { position: static; }
  .message-card { padding: 28px 22px; border-radius: 22px; }
  .message-card .button { width: 100%; justify-content: center; }
}

@media (max-width: 360px) {
  .timeline { --day-card: 340px; }
  .timeline-card { padding: 18px; }
}

/* 11. Réduction des animations --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  :where([data-reveal], [data-enter]),
  .criteria-ready .expectation-card:not(.criterion-shown) { opacity: 1 !important; translate: none !important; transform: none !important; pointer-events: auto; }
  .expectation-card:nth-child(-n + 2) { translate: 0 calc(116 * var(--u)) !important; }
  .ink-brush { stroke-dashoffset: 0 !important; }
  .motion-packet { display: none !important; }
  .diagram-symbol,
  .lock-symbol { transform: translate(-50%, -50%) !important; filter: none !important; }
  .criterion-active .card-number { transform: none !important; }
  .deployment-track::before { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .expectation-card:nth-child(-n + 2) { translate: none !important; }
}
