@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-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; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-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: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/dm-sans-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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/dm-sans-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: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/outfit-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; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/outfit-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; }
/* Layout : grille 12 colonnes (max 1306px), sections pleine largeur alternant crème et bleu nuit ;
   un fil unique, calculé sur les blocs réels, part du VM du hero et finit en corail sur le bouton de contact. */
:root {
  color-scheme: light;
  --surface: #F7F5F2; --surface-raised: #FFFFFF; --surface-inverse: #0E2A47;
  --ink: #0E2A47; --ink-muted: #4A6580; --ink-inverse: #F7F5F2; --ink-inverse-muted: #B9C8D7;
  --brand: #1971C2; --on-brand: #FFFFFF; --accent: #FF6B5B; --on-accent: #0E2A47;
  --line: #E2DDD6; --line-inverse: #2A4A69; --focus: #1971C2; --brand-tint: #DDEBF8;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-sans: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fil: 28px; --wrap: 1306px; --gap: 24px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans);
  font-size: 16px; line-height: 1.625; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }

.page { position: relative; overflow-x: clip; }
.section { position: relative; padding-block: 128px; }
.section.dark { background: var(--surface-inverse); color: var(--ink-inverse); }
.wrap { position: relative; z-index: 2; max-width: calc(var(--wrap) + 2 * 64px); margin-inline: auto;
  padding-left: max(64px, var(--gutter-l)); padding-right: max(64px, var(--gutter-r)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted); }
.dark .label { color: var(--ink-inverse-muted); }

/* --- fil --- */
.fil-svg { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.fil-svg path { fill: none; stroke-width: var(--fil); stroke-linecap: round; stroke-linejoin: round; }
.fil-svg .fil-brand { stroke: var(--brand); }
.fil-svg .fil-accent { stroke: var(--accent); }
.lifted { position: relative; z-index: 3; }

/* --- en-tête --- */
.header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; pointer-events: none; }
.header .wrap { display: flex; justify-content: space-between; align-items: center; height: 88px; }
.brand-slot { pointer-events: auto; display: block; transition: transform .5s var(--ease), opacity .4s ease; }
.brand-slot svg { height: 40px; width: auto; display: block; }
.brand-slot.hide { transform: translateY(-140%); opacity: 0; pointer-events: none; }
.menu-btn { pointer-events: auto; width: 52px; height: 52px; border-radius: 999px; border: 2px solid currentColor;
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 6px 0 currentColor; transform: translateY(-3px); transition: transform .3s var(--ease), box-shadow .3s; }
.header.on-dark .menu-btn { background: var(--surface-inverse); color: var(--ink-inverse); }
.menu-open .menu-btn { background: transparent; color: #F7F5F2; }
.menu-open .menu-btn span { box-shadow: 0 0 0 currentColor; transform: rotate(45deg); }
.menu-open .menu-btn span::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; transform: rotate(-90deg); border-radius: 2px; }

/* --- menu plein écran (toujours bleu nuit, quel que soit le thème) --- */
.menu { position: fixed; inset: 0; z-index: 40; background: #0E2A47; color: #F7F5F2; display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.7,0,.2,1); visibility: hidden; }
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { padding: 140px var(--gutter-r) 40px max(64px, var(--gutter-l)); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.menu nav a { display: flex; align-items: baseline; gap: 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6vw, 80px);
  line-height: 1.08; text-decoration: none; color: #F7F5F2; transition: color .25s, opacity .25s; }
.menu nav a small { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: #B9C8D7; letter-spacing: .08em; }
.menu nav.dim a { opacity: .38; } .menu nav.dim a.hot { opacity: 1; }
.menu-field { background: #14304D; transition: background .35s ease; }
.menu-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: end; padding: 28px max(64px, var(--gutter-l)) 36px max(64px, var(--gutter-l)); border-top: 1px solid #2A4A69; font-size: 15px; }
.menu-foot .label { color: #B9C8D7; display: block; margin-bottom: 4px; }
.menu-foot a { color: #F7F5F2; }
.theme-btn { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; border: 2px solid #F7F5F2; color: #F7F5F2; background: transparent;
  border-radius: 999px; padding: 10px 18px; font: 600 15px/1 var(--font-sans); cursor: pointer; }

/* --- boutons --- */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 16px 26px; border: 2px solid transparent;
  font: 600 16px/20px var(--font-sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .2s var(--ease); } .btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--surface-inverse); color: var(--ink-inverse); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }

/* --- hero --- */
.hero { padding-block: 200px 120px; }
.hero h1 { grid-column: 1 / 10; font-size: clamp(48px, 8.4vw, 120px); line-height: .94; letter-spacing: -.035em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .ln > span { display: inline-block; }
.js .hero h1 .ln > span { transform: translateY(105%); }
.js.loaded .hero h1 .ln > span { transform: none; transition: transform .9s var(--ease); }
.hero .label { grid-column: 1 / -1; margin-bottom: 28px; }
.hero .sub { grid-column: 1 / 9; margin-top: 40px; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; font-weight: 500; letter-spacing: -.015em; max-width: 30ch; }
.hl { border-radius: 8px; padding: 0 .12em; margin: 0 -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .45s ease, color .45s ease; }
.hl.on, .hl.fixed { background: var(--accent); color: var(--on-accent); }
.hero .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; margin-top: 48px; flex-wrap: wrap; }
.hero .meta { font-size: 15px; color: var(--ink-muted); }
.scroll-hint { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.hero-photo { position: absolute; z-index: 3; right: 0; top: -40px; width: clamp(280px, 29vw, 430px); margin: 0; pointer-events: none; }
.hero-photo img { display: block; width: 100%; height: auto; }
/* Fondu du bas peint dans la couleur du fond : il estompe la photo ET masque le fil,
   qui n'apparaît qu'une fois sorti de sous la photo. */
.hero-photo::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -1px; height: 26%;
  background: linear-gradient(to bottom, transparent, var(--surface) 88%); pointer-events: none; }
.hero .grid { position: relative; }

/* --- bandeau des tâches --- */
.tasks { padding-block: 40px 128px; }
.tasks .label { margin-bottom: 28px; display: block; }
.rows { display: grid; gap: 14px; overflow: hidden; position: relative; z-index: 3; }
.row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.task { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 20px; padding: 22px 28px; min-width: 260px;
  display: flex; flex-direction: column; gap: 6px; transition: opacity .25s ease; }
.task b { font: 600 20px/26px var(--font-display); }
.task span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.rows.dim .task { opacity: .32; } .rows.dim .task.hot { opacity: 1; }

/* --- qui je suis --- */
.who .label { grid-column: 1 / 4; padding-top: 14px; }
.who .lead { grid-column: 5 / 13; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
.who .lead + .lead { margin-top: 28px; }

/* --- problème --- */
.problem .label { grid-column: 1 / -1; }
.problem h2 { grid-column: 1 / 11; margin-top: 28px; font-size: clamp(40px, 6.2vw, 88px); line-height: .98; letter-spacing: -.03em; }
.problem .side { grid-column: 7 / 12; margin-top: 72px; display: grid; gap: 18px; color: var(--ink-inverse-muted); font-size: 17px; line-height: 1.6; }
.problem .side::before { content: ""; width: 44px; height: 4px; border-radius: 4px; background: var(--accent); }

/* --- ce que je fais --- */
.does .label { grid-column: 1 / -1; }
.does .intro { grid-column: 1 / 6; margin-top: 28px; display: grid; gap: 22px; align-content: start; }
.does h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.does .intro p { color: var(--ink-muted); font-size: 17px; max-width: 46ch; }
.schema { grid-column: 7 / 13; margin-top: 28px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.schema svg { width: 100%; height: auto; display: block; overflow: visible; }
.schema .ln { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.schema .ln-brand { stroke: var(--brand); } .schema .ln-ink { stroke: var(--ink); }
.schema .node { fill: var(--surface-raised); stroke: var(--ink); stroke-width: 3; }
.schema .node-b { fill: var(--surface-raised); stroke: var(--brand); stroke-width: 4; }
.schema .ico { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.schema .ico-b { stroke: var(--brand); }
.schema text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: var(--ink-muted); text-transform: uppercase; }
.cards3 { grid-column: 1 / -1; margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gap); }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-4px); }
.num { width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--ink); display: grid; place-items: center; font: 500 14px/1 var(--font-mono); }
.card h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.015em; margin-top: 72px; }
.card p { color: var(--ink-muted); }

/* --- pourquoi --- */
.why .label { grid-column: 1 / -1; }
.why h2 { grid-column: 1 / 9; margin-top: 28px; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.why .cards3 { margin-top: 56px; }
.why .card { border: 0; min-height: 300px; }
.why .card h3 { margin-top: 8px; }
.why .card .label { color: inherit; opacity: .8; }
.why .c1 { background: var(--brand); color: var(--on-brand); } .why .c1 p { color: var(--on-brand); opacity: .9; }
.why .c2 { background: var(--surface-inverse); color: var(--ink-inverse); } .why .c2 p { color: var(--ink-inverse-muted); }
.why .c3 { background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); }

/* --- méthode --- */
.method .label { grid-column: 1 / -1; }
.method h2 { grid-column: 1 / 9; margin-top: 28px; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.steps { grid-column: 1 / -1; margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gap); counter-reset: s; }
.step { border-top: 2px solid var(--ink); padding-top: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step .num { margin-bottom: 18px; }
.step h3 { font-size: 28px; line-height: 1.1; }
.step p { color: var(--ink-muted); max-width: 38ch; }

/* --- contact --- */
.contact { padding-block: 128px 140px; }
.contact .label { grid-column: 1 / -1; }
.contact h2 { grid-column: 1 / 9; margin-top: 28px; font-size: clamp(42px, 6.2vw, 88px); line-height: .98; letter-spacing: -.03em; }
.contact .txt { grid-column: 1 / 7; margin-top: 32px; font-size: 19px; line-height: 1.55; color: var(--ink-inverse-muted); }
.contact .cta { grid-column: 9 / 13; grid-row: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 22px; padding-top: 40px; }
/* Bouton d'arrivée : bleu tant que le fil n'est pas arrivé, puis il se remplit de corail. */
.btn-cta { position: relative; z-index: 3; overflow: hidden; isolation: isolate; border: 0; background: var(--brand); color: var(--on-brand); padding: 18px 30px; font-size: 18px;
  transition: color .35s ease .25s, transform .2s var(--ease); }
.btn-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit;
  transform: scaleY(0); transform-origin: top; transition: transform .6s cubic-bezier(.7,0,.2,1); }
.btn-cta.lit { color: var(--on-accent); animation: pop .6s cubic-bezier(.34,1.56,.64,1) .35s; }
.btn-cta.lit::before { transform: scaleY(1); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.07); } 100% { transform: scale(1); } }
.mail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 16px; }
.mail code { font-family: var(--font-sans); user-select: all; }
.copy { border: 1px solid var(--line-inverse); background: transparent; color: inherit; border-radius: 999px; padding: 6px 14px; font: 500 13px/1 var(--font-sans); cursor: pointer; }

/* --- pied de page --- */
.footer { background: var(--surface-inverse); color: var(--ink-inverse); padding-block: 72px 36px; }
.footer .top { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px var(--gap); padding-bottom: 48px; border-top: 1px solid var(--line-inverse); padding-top: 48px; }
.footer .sig { grid-column: 1 / 6; display: grid; gap: 14px; align-content: start; }
.footer .sig svg { height: 48px; width: auto; }
.footer .sig p { color: var(--ink-inverse-muted); max-width: 34ch; }
.footer .col { grid-column: span 2; display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer .col:first-of-type { grid-column: 8 / span 2; }
.footer .col .label { color: var(--ink-inverse-muted); margin-bottom: 6px; }
.footer .col a { text-decoration: none; } .footer .col a:hover { text-decoration: underline; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-inverse-muted); padding-top: 24px; border-top: 1px solid var(--line-inverse); }
.footer .bottom a { color: var(--ink-inverse); text-decoration: none; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }

/* --- apparitions (repos visible) --- */
.js [data-reveal] { opacity: .35; transform: translateY(24px); }
.js [data-reveal].shown { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s var(--ease); }

/* --- tablette --- */
@media (max-width: 860px) {
  .wrap { padding-left: max(40px, var(--gutter-l)); padding-right: max(40px, var(--gutter-r)); }
  .hero h1, .hero .sub { grid-column: 1 / -1; }
  .who .label { grid-column: 1 / -1; padding-bottom: 20px; } .who .lead { grid-column: 1 / 12; }
  .problem .side { grid-column: 4 / 12; }
  .does .intro, .schema { grid-column: 1 / -1; } .schema { margin-top: 40px; }
  .contact h2, .contact .txt { grid-column: 1 / 12; } .contact .cta { grid-column: 1 / -1; grid-row: auto; align-items: flex-end; }
  .menu { grid-template-columns: 1fr; } .menu-field { display: none; }
  .hero h1 { grid-column: 1 / 9; } .hero .sub { grid-column: 1 / 8; }
  .hero .actions { grid-column: 1 / 8; }
  .hero-photo { width: 36vw; top: 0; right: -24px; }
  .scroll-hint { display: none; }
}
/* --- mobile --- */
@media (max-width: 720px) {
  :root { --fil: 16px; }
  .section { padding-block: 88px; }
  .wrap { padding-left: max(20px, var(--gutter-l)); padding-right: max(48px, var(--gutter-r)); }
  .header .wrap { height: 72px; padding-right: max(20px, var(--gutter-r)); }
  .brand-slot svg { height: 32px; }
  .menu-btn { width: 46px; height: 46px; }
  .hero { padding-block: 150px 80px; }
  .hero h1 { grid-column: 1 / -1; }
  .scroll-hint { display: none; }
  .cards3, .steps { grid-template-columns: 1fr; }
  .card h3 { margin-top: 40px; }
  .why .card { min-height: 0; }
  .problem .side { grid-column: 1 / -1; margin-top: 48px; }
  .task { min-width: 220px; padding: 18px 22px; } .task b { font-size: 17px; line-height: 22px; }
  .footer .sig, .footer .col, .footer .col:first-of-type { grid-column: 1 / -1; }
  .menu nav { padding-top: 110px; } .menu-foot { gap: 20px 32px; }
  .theme-btn { margin-left: 0; }
  .schema { padding: 18px; } .schema text { font-size: 16px; }
  .hero .label { max-width: none; }
  .hero h1, .hero .sub { grid-column: 1 / -1; }
  .hero-photo { order: 10; position: relative; top: auto; right: auto; grid-column: 3 / -1; justify-self: end; width: min(340px, 100%); margin: 40px -32px -24px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .js .hero h1 .ln > span, .js [data-reveal] { transform: none; opacity: 1; }
  .end-dot { transform: none; }
}

/* --- améliorations v1.4 --- */
/* VM de l'en-tête qui se dessine d'un trait, puis le point */
.js .vm-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js.loaded .vm-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.65,0,.35,1) .25s; }
.vm-dot { transform-box: fill-box; transform-origin: center; }
.js .vm-dot { transform: scale(0); }
.js.loaded .vm-dot { transform: none; transition: transform .55s cubic-bezier(.34,1.56,.64,1) 1.4s; }
/* disque bleu clair derrière la photo */
.hero-photo { isolation: isolate; }
.hero-photo::before { content: ""; position: absolute; z-index: -1; left: 8%; right: -4%; top: 14%; aspect-ratio: 1; border-radius: 999px; background: var(--brand-tint); }
/* icônes des cartes */
.card-top { display: flex; justify-content: space-between; align-items: center; }
.ico-c { width: 56px; height: 56px; border-radius: 999px; border: 3px solid var(--brand); display: grid; place-items: center; }
.ico-c svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.card-top .num { border-color: var(--line); color: var(--ink-muted); }
.does .card h3 { margin-top: 56px; }
/* 3e carte en bleu clair */
.why .c3 { background: var(--brand-tint); border-color: transparent; }
.why .c3 p { color: var(--ink-muted); }
/* étapes de la méthode : le fil remplace le trait du haut et allume chaque étape */
.js .step { border-top-color: transparent; }
.step .num { transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
.step.on .num { background: var(--brand); border-color: var(--brand); color: var(--on-brand); transform: scale(1.12); }
@media (max-width: 860px) { .js .step { border-top-color: var(--line); } }
@media (prefers-reduced-motion: reduce) { .js .vm-draw { stroke-dashoffset: 0; } .js .vm-dot { transform: none; } }

/* --- v1.5 : refonte des blocs --- */
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { border: 1px solid var(--line); background: var(--surface-raised); border-radius: 999px; padding: 7px 14px; font: 500 14px/18px var(--font-sans); color: var(--ink); }
.pills.sm li { font-size: 13px; padding: 5px 12px; }
.tools { display: grid; gap: 14px; margin-top: 16px; }
.small-note { font-size: 14px; color: var(--ink-muted); }

/* Ce que je fais : un seul bloc, schéma + onglets */
.need-box { grid-column: 7 / 13; margin-top: 28px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 22px; align-content: start; }
.need-box .schema { margin: 0; padding: 0; background: none; border: 0; grid-column: auto; }
.need-node { cursor: pointer; }
.need-node .node-b { transition: fill .3s ease; }
.need-node.active .node-b { fill: var(--brand); }
.need-node.active .ico-b { stroke: var(--on-brand); }
.need-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.need-tabs button { border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 600 14px/18px var(--font-sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.need-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.need-panel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.need-panel li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.need-panel li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); transform: translateY(-1px); }

/* Cas concrets : des dossiers en lignes, pas des cartes */
.cases .label:first-child { grid-column: 1 / -1; }
.cases h2 { grid-column: 1 / 10; margin-top: 28px; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.cases-note { grid-column: 1 / 9; margin-top: 18px; color: var(--ink-muted); font-size: 17px; }
.case-list { grid-column: 1 / -1; list-style: none; margin: 56px 0 0; padding: 0; }
.case { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: 44px; border-top: 1px solid var(--line); }
.case::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.case-head { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.case-head .num { width: 48px; height: 48px; font-size: 15px; transition: background .4s, color .4s, border-color .4s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.case-body { grid-column: 5 / 13; display: grid; gap: 24px; min-width: 0; }
.case-body h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.015em; }
.case dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.case dd { margin: 0; font-size: 15px; line-height: 1.6; }
.case .pills li { transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .45s ease, border-color .4s; }
.js .case:not(.on) .pills li { opacity: .45; transform: translateY(6px); }
.case.on::before { transform: scaleX(1); }
.case.on .case-head .num { background: var(--brand); border-color: var(--brand); color: var(--on-brand); transform: scale(1.1); }
.case.on .pills li { border-color: var(--brand); }
.case.on .pills li:nth-child(2) { transition-delay: .08s; } .case.on .pills li:nth-child(3) { transition-delay: .16s; }

/* Avant / après : le fil traverse chaque ligne et la fait basculer */
.shift .label:first-child { grid-column: 1 / -1; }
.shift h2 { grid-column: 1 / 10; margin-top: 28px; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.shift-list { grid-column: 1 / -1; list-style: none; margin: 48px 0 0; padding: 0; }
.shift-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 112px; padding-block: 34px; border-top: 1px solid var(--line); align-items: start; }
.shift-row p { font: 600 clamp(20px, 2vw, 27px)/1.25 var(--font-display); letter-spacing: -.01em; display: grid; gap: 10px; }
.shift-row .label { font-family: var(--font-mono); font-weight: 500; }
.before { transition: color .5s ease; }
.after { transition: opacity .6s ease .25s; }
.js .shift-row:not(.on) .after { opacity: .38; }
.shift-row.on .before { color: var(--ink-muted); }
.shift-row.on .after .label { color: var(--brand); }
.shift-mark { position: absolute; z-index: 3; left: 50%; top: 34px; width: 44px; height: 44px; margin-left: -22px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface);
  display: grid; place-items: center; transition: background .35s, border-color .35s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.shift-mark::after { content: "→"; font: 600 18px/1 var(--font-sans); color: var(--ink-muted); transition: color .35s; }
.shift-row.on .shift-mark { background: var(--brand); border-color: var(--brand); transform: scale(1.12); }
.shift-row.on .shift-mark::after { color: var(--on-brand); }

@media (max-width: 860px) {
  .need-box { grid-column: 1 / -1; margin-top: 40px; }
  .case-head { grid-column: 1 / -1; flex-direction: row; align-items: center; margin-bottom: 20px; }
  .case-body { grid-column: 1 / -1; }
  .case dl { grid-template-columns: 1fr; gap: 16px; }
  .shift-row { grid-template-columns: 1fr; row-gap: 16px; }
  .shift-mark { display: none; }
}
@media (max-width: 720px) {
  .need-box { padding: 18px; }
  .need-panel li { font-size: 16px; }
  .case { padding-block: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .case:not(.on) .pills li, .js .shift-row:not(.on) .after { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }
.cases h2 { grid-column: 5 / 13; } .cases-note { grid-column: 5 / 12; }
@media (max-width: 860px) { .cases h2, .cases-note { grid-column: 1 / -1; } }
@media (max-width: 1180px) and (min-width: 861px) { .case dl { grid-template-columns: 1fr; gap: 14px; } .need-box { padding: 22px; } }

/* --- v1.6 : TR-VC, la mascotte --- */
.trvc { --tl: var(--brand); --tf: var(--surface-raised); --ts: #0E2A47; --te: #F7F5F2; --td: var(--accent); display: block; }
.trvc svg { display: block; width: 100%; height: auto; overflow: visible; }
.trvc-cta, .trvc-menu { --tl: #5AA2EC; --tf: #F7F5F2; }
.cta-row { display: flex; align-items: flex-end; gap: 6px; }
.trvc-cta { width: 76px; margin-bottom: -6px; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.34,1.56,.64,1) .5s, opacity .4s ease .5s; }
.js .btn-cta:not(.lit) ~ .trvc-cta, .js .cta-row:not(.lit) .trvc-cta { transform: translateY(16px) scale(.6); opacity: 0; }
.cta-row.lit .trvc-arm-r { transform-box: view-box; transform-origin: 136px 166px; animation: trvc-wave 1.1s ease-in-out 1.1s 2; }
@keyframes trvc-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
.trvc-dot { transform-box: fill-box; transform-origin: center; }
.trvc-menu { position: absolute; left: 40px; bottom: 32px; width: 120px; transform: scaleX(-1); }
.menu-field { position: relative; }
.trvc-404 .trvc-dot { animation: trvc-blink 1.6s ease-in-out infinite; }
@keyframes trvc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 720px) { .trvc-cta { width: 60px; } }
@media (prefers-reduced-motion: reduce) { .cta-row.lit .trvc-arm-r, .trvc-404 .trvc-dot { animation: none; } .js .cta-row:not(.lit) .trvc-cta { transform: none; opacity: 1; } }
.menu-open .brand-slot { --ink: #F7F5F2; --ink-muted: #B9C8D7; --brand: #5AA2EC; }
.trvc-cta { width: 92px; }
@media (max-width: 720px) { .trvc-cta { width: 64px; } }

/* --- v1.7 : TR-VC vivant --- */
.bot { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; will-change: transform;
  --tl: var(--brand); --tf: var(--surface-raised); --ts: #0E2A47; --te: #F7F5F2; --td: var(--accent); }
.bot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bot .b-ln { fill: none; stroke: var(--tl); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.bot .b-thin { stroke-width: 5; }
.bot .b-eye-ln { stroke: var(--te); stroke-width: 5; }
.bot .b-face { fill: var(--tf); stroke: var(--tl); stroke-width: 10; }
.bot .b-screen { fill: var(--ts); }
.bot .b-open ellipse { fill: var(--te); }
.bot .b-dot { fill: var(--td); }
.bot .b-z text { font: 500 16px var(--font-mono); fill: var(--ink); }
.bot .b-z text + text { font-size: 12px; }
/* parties montrées selon la pose */
.bot .b-arm, .bot .b-happy, .bot .b-closed, .bot .b-z { display: none; }
.bot[data-pose="ride"] .b-arm-hang, .bot[data-pose="stand"] .b-arm-down,
.bot[data-pose="press"] .b-arm-press, .bot[data-pose="wave"] .b-arm-wave { display: inline; }
.bot.happy .b-open, .bot.sleep .b-open { display: none; }
.bot.happy .b-happy, .bot.sleep .b-closed, .bot.sleep .b-z { display: inline; }
/* articulations */
.bot .b-head, .bot .b-eyes, .bot .b-arm-l, .bot .b-arm-wave, .bot .b-all, .bot .b-dot, .bot .b-antenna { transform-box: view-box; }
.bot .b-head { transform-origin: 100px 140px; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.bot .b-all { transform-origin: 100px 16px; }
.bot .b-eyes { transform-origin: 100px 92px; transition: transform .12s ease; }
.bot.blink .b-eyes { transform: scaleY(.12); }
.bot.fast .b-eyes { transform: scale(1.25); }
.bot.fast .b-antenna, .bot.fast .b-dot { transform-origin: 100px 50px; animation: b-wiggle .18s ease-in-out infinite alternate; }
@keyframes b-wiggle { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.bot[data-pose="ride"] .b-arm-l { transform-origin: 64px 166px; animation: b-dangle 2.4s ease-in-out infinite alternate; }
@keyframes b-dangle { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
.bot[data-pose="ride"] .b-head { transform: rotate(-6deg); }
.bot.sleep .b-head { transform: rotate(9deg) translateY(4px); }
.bot.sleep .b-z text { animation: b-z 2s ease-in-out infinite; }
.bot.sleep .b-z text + text { animation-delay: .6s; }
@keyframes b-z { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.bot.wake .b-all { animation: b-hop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes b-hop { 40% { transform: translateY(-14px); } }
.bot[data-pose="wave"] .b-arm-wave { transform-origin: 136px 166px; animation: trvc-wave .55s ease-in-out 4 alternate; }
.bot[data-pose="press"] .b-all { animation: b-press .35s ease-out; }
@keyframes b-press { 50% { transform: translateX(6px); } }
/* naissance */
.bot.unborn { opacity: 0; }
.bot.unfold .b-all { animation: b-unfold .65s cubic-bezier(.34,1.56,.64,1); }
@keyframes b-unfold { 0% { transform: scale(.1, 0); } 60% { transform: scale(1.06, 1.08); } 100% { transform: none; } }
.bot-fly { position: absolute; left: 0; top: 0; z-index: 7; border-radius: 999px; background: var(--accent); pointer-events: none; }
.vm-dot-back { animation: b-dotback .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes b-dotback { from { transform: scale(0); } to { transform: none; } }
/* dans les sections sombres */
.trvc-cta { width: 72px; height: 1px; }
@media (max-width: 720px) { .trvc-cta { width: 44px; } }
.bot.static { position: absolute; }
@media (prefers-reduced-motion: reduce) { .bot * { animation: none !important; } }

.bot.on-dark { --tl: #5AA2EC; --tf: #F7F5F2; }
/* marche sur le fil */
.bot svg { transition: transform .25s ease; }
.bot.face-left svg { transform: scaleX(-1); }
.bot.walk .b-all { animation: b-bob .42s ease-in-out infinite alternate; }
@keyframes b-bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.bot.walk .b-arm-l { transform-origin: 64px 166px; animation: b-swing .42s ease-in-out infinite alternate; }
.bot.walk .b-arm-down { transform-box: view-box; transform-origin: 136px 166px; animation: b-swing .42s ease-in-out infinite alternate-reverse; }
@keyframes b-swing { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.bot.walk .b-head { transform: rotate(3deg); }

/* sur un passage vertical, il enlace le fil et glisse le long */
.bot[data-pose="ride"] .b-arm-hug { display: inline; }
.bot[data-pose="ride"] .b-arm-l { display: none; }
@media (min-width: 861px) { .steps { margin-top: 128px; } }

/* --- v2.0 : TR-VC phase 2 --- */
/* il descend devant le fil, les deux bras levés : il le tire derrière lui */
.bot[data-pose="pull"] .b-arm-pull-l, .bot[data-pose="pull"] .b-arm-pull-r { display: inline; }
.bot[data-pose="pull"] .b-arm-l, .bot[data-pose="cheer"] .b-arm-l { display: none; }
.bot[data-pose="pull"] .b-head { transform: translateY(3px); }
.bot[data-pose="cheer"] .b-arm-cheer { display: inline; }
.bot[data-pose="cheer"] .b-all { animation: b-hop .5s cubic-bezier(.34,1.56,.64,1); }
/* il appuie sur un interrupteur en passant */
.bot.tap .b-arm-tap { display: inline; }
.bot.tap[data-pose="pull"] .b-arm-pull-r, .bot.tap[data-pose="stand"] .b-arm-down { display: none; }
.bot.tap.tap-left .b-arm-tap { display: none; }
.bot.tap.tap-left .b-arm-tapL { display: inline; }
.bot.tap.tap-left[data-pose="pull"] .b-arm-pull-r { display: inline; }
.bot.tap.tap-left[data-pose="pull"] .b-arm-pull-l, .bot.tap.tap-left[data-pose="stand"] .b-arm-l { display: none; }
.bot.tap .b-all { animation: b-press .35s ease-out; }
/* il court pour rattraper le fil */
.bot.run .b-all { animation: b-bob .18s ease-in-out infinite alternate; }
.bot.run .b-eyes { transform: scale(1.2); }
.bot.surf .b-all { animation: b-bob .3s ease-in-out infinite alternate; }
.bot { pointer-events: none; }
.bot .b-all { pointer-events: visiblePainted; cursor: pointer; }
.bot.static .b-all { cursor: default; }
/* bulle */
.bot-say { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; max-width: 220px; white-space: nowrap;
  background: var(--surface-inverse); color: var(--ink-inverse); font: 600 14px/18px var(--font-sans); padding: 9px 14px; border-radius: 14px 14px 14px 4px;
  opacity: 0; transition: opacity .25s ease; }
.bot-say.flip { border-radius: 14px 14px 4px 14px; }
.bot-say.on { opacity: 1; }
/* interrupteurs des cas concrets, posés sur le fil */
.case-switch { grid-column: 4; grid-row: 1; justify-self: center; align-self: start; position: relative; z-index: 3; margin-top: 12px;
  width: 46px; height: 26px; border-radius: 999px; background: var(--line); border: 2px solid var(--surface-raised); transition: background .35s ease; }
.case-switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: var(--surface-raised); box-shadow: 0 1px 2px rgba(14,42,71,.25); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.case.on .case-switch { background: var(--brand); }
.case.on .case-switch i { transform: translateX(20px); }
.case-head, .case-body { grid-row: 1; }
@media (max-width: 860px) { .case-switch { display: none; } }
/* l'interrupteur du thème dans le menu, avec TR-VC à côté */
.theme-wrap { margin-left: auto; display: flex; align-items: flex-end; gap: 4px; }
.trvc-switch { width: 58px; transition: transform .2s ease; }
.trvc-switch.pressing { animation: sw-press .45s ease-out; }
@keyframes sw-press { 40% { transform: translateX(10px) rotate(4deg); } }
.theme-btn { display: inline-flex; align-items: center; gap: 12px; }
.theme-btn .sw { width: 42px; height: 24px; border-radius: 999px; background: #2A4A69; position: relative; transition: background .3s; }
.theme-btn .sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #F7F5F2; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.theme-btn[aria-checked="true"] .sw { background: #5AA2EC; }
.theme-btn[aria-checked="true"] .sw i { transform: translateX(18px); }
@media (max-width: 720px) { .theme-wrap { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .trvc-switch.pressing { animation: none; } }

@media (max-width: 720px) { .menu-foot { padding-left: 24px; padding-right: 24px; } }

/* --- v3.0 : plus de fil, TR-VC fait visiter le site --- */
.fil-svg { display: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* poses et accessoires */
.bot .b-prop, .bot .b-tail-sit { display: none; }
.bot { transition: opacity .25s ease; }
.bot.gone { opacity: 0; }
.bot[data-pose="sit"] .b-p-type, .bot[data-pose="sit"] .b-prop-laptop, .bot[data-pose="sit"] .b-tail-sit { display: inline; }
.bot[data-pose="sit"] .b-tail { display: none; }
.bot[data-pose="sit"] .b-head { transform: rotate(4deg) translateY(2px); }
.bot[data-pose="stampup"] .b-p-stampup, .bot[data-pose="stampup"] .b-prop-stampup, .bot[data-pose="stampup"] .b-arm-down,
.bot[data-pose="stampdn"] .b-p-stampdn, .bot[data-pose="stampdn"] .b-prop-stampdn, .bot[data-pose="stampdn"] .b-arm-down,
.bot[data-pose="tools"] .b-p-tools, .bot[data-pose="tools"] .b-prop-box, .bot[data-pose="tools"] .b-arm-down { display: inline; }
.bot[data-pose="pt0"] .b-p-pt0, .bot[data-pose="pt1"] .b-p-pt1, .bot[data-pose="pt2"] .b-p-pt2, .bot[data-pose="pt3"] .b-p-pt3,
.bot[data-pose="pt4"] .b-p-pt4, .bot[data-pose="pt4"] .b-arm-wave { display: inline; }
.bot[data-pose="sit"] .b-arm-l, .bot[data-pose="stampup"] .b-arm-l, .bot[data-pose="stampdn"] .b-arm-l, .bot[data-pose="tools"] .b-arm-l,
.bot[data-pose^="pt"] .b-arm-l { display: none; }
.bot[data-pose="stampdn"] .b-all, .bot.stomp .b-all { transform-origin: 100px 226px; animation: b-stomp .38s ease-out; }
@keyframes b-stomp { 35% { transform: translateY(4px) scale(1.07, .9); } }
.bot[data-pose="tools"] .b-prop-box { transform-box: view-box; transform-origin: 18px 238px; animation: b-pop .4s cubic-bezier(.34,1.56,.64,1); }
.bot[data-pose="sit"] .b-prop-laptop { transform-box: view-box; transform-origin: 100px 198px; animation: b-pop .45s cubic-bezier(.34,1.56,.64,1); }
.bot.dig .b-p-tools { transform-box: view-box; transform-origin: 64px 170px; animation: b-dig .28s ease-in-out; }
.bot.typing .b-p-type { transform-box: view-box; transform-origin: 64px 166px; animation: b-type .14s ease-in-out infinite alternate; }
.bot.typing .b-p-type-r { transform-origin: 136px 166px; animation-delay: .07s; }
.bot .b-stampbase { fill: var(--td); stroke: var(--tl); stroke-width: 6; }
.bot .b-box { fill: var(--td); stroke: var(--tl); stroke-width: 8; }
.bot.peek .b-head { transform: rotate(-12deg); }
.bot[data-pose="pt0"] .b-head { transform: rotate(-10deg); }
.bot[data-pose="pt2"] .b-head { transform: rotate(-5deg) translateX(-3px); }
.bot[data-pose="pt3"] .b-head { transform: rotate(8deg); }
.bot[data-pose="pt4"] .b-all { animation: b-hop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes b-pop { 0% { transform: scale(.2); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes b-dig { 50% { transform: rotate(-14deg); } }
@keyframes b-type { to { transform: translateY(-4px); } }

/* derrière le dos de Victor : le robot passe entre le disque et la photo */
.hero-photo img { position: relative; z-index: 1; }
.hero-photo::after { z-index: 2; }
.bot.in-photo { z-index: 0; }

/* bulles : des précisions courtes, sur deux lignes au plus */
.bot-say { white-space: normal; width: max-content; max-width: 250px; }
@media (max-width: 720px) { .bot-say { max-width: 210px; font-size: 13px; line-height: 17px; padding: 8px 12px; } }

/* 02 : place au-dessus des cartes pour qu'il y monte */
.tasks .label { margin-bottom: 118px; }
@media (max-width: 720px) { .tasks .label { margin-bottom: 74px; } }

/* 03 : les deux surlignages arrivent portés par TR-VC */
.hl-carry { position: absolute; left: 0; top: 0; z-index: 5; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 0 .12em; white-space: nowrap; pointer-events: none; }
.trvc-fx .hl.drop { transition: background-color .3s ease, color .3s ease; }

/* 04 : il s'assoit sur le trait corail et tape le texte */
.problem .side { margin-top: 112px; }
@media (max-width: 720px) { .problem .side { margin-top: 76px; } }
.tw-off { color: transparent; }
.tw-on::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-right: -2px; vertical-align: -.15em; background: var(--accent); animation: tw-caret .8s steps(1) infinite; }
.typed .tw-on::after { display: none; }
@keyframes tw-caret { 50% { opacity: 0; } }

/* 05 : boîte à outils et schéma au survol */
.pill-fly { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; border: 1px solid var(--line); background: var(--surface-raised); border-radius: 999px; padding: 7px 14px; font: 500 14px/18px var(--font-sans); color: var(--ink); white-space: nowrap; }
.trvc-fx #ce-que-je-fais .pills li { transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.trvc-fx #ce-que-je-fais .pills li:not(.in) { opacity: 0; transform: scale(.6); }
.need-hint { display: flex; align-items: center; gap: 10px; margin: -4px 0 0; font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.need-hint .hand { flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); animation: hint-pulse 1.6s ease-out infinite; }
.h-touch { display: none; }
@media (hover: none) { .h-hover { display: none; } .h-touch { display: inline; } }
@keyframes hint-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,91,.55); } 100% { box-shadow: 0 0 0 12px rgba(255,107,91,0); } }
.need-box.hinting .need-node:not(.active) .node-b { animation: node-pulse 1.6s ease-in-out infinite; }
@keyframes node-pulse { 50% { stroke-width: 8; } }
.need-node:focus { outline: none; }
.need-node:focus-visible .node-b { stroke: var(--focus); stroke-width: 6; }
.need-panels { display: grid; }
.need-panel:not([hidden]) { animation: panel-in .35s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 06 : le texte s'allume quand il actionne l'interrupteur */
.trvc-fx .case h3, .trvc-fx .case dd, .trvc-fx .step h3, .trvc-fx .step p {
  background: linear-gradient(90deg, var(--ink) 0 46%, var(--line) 54% 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.1s cubic-bezier(.6,0,.2,1); }
.trvc-fx .step p { background-image: linear-gradient(90deg, var(--ink-muted) 0 46%, var(--line) 54% 100%); }
.trvc-fx .case.on h3, .trvc-fx .case.on dd, .trvc-fx .step.on h3, .trvc-fx .step.on p { background-position: 0 0; }
.trvc-fx .case.on dd, .trvc-fx .step.on p { transition-delay: .2s; }
.trvc-fx .case dt { transition: opacity .6s ease; }
.trvc-fx .case:not(.on) dt { opacity: .35; }
@media (max-width: 860px) { .case-switch { display: block; position: absolute; right: 0; top: 55px; margin: 0; } }

/* 07 : le tampon « Réglé » */
.stamp { position: absolute; z-index: 2; right: calc(50% + 46px); top: 76px; font: 600 13px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  border: 2.5px solid var(--accent); border-radius: 8px; padding: 7px 10px 6px; opacity: 0; transform: rotate(-8deg) scale(2.2); pointer-events: none; }
.shift-row.on .stamp { opacity: .95; transform: rotate(-8deg) scale(1); transition: transform .22s cubic-bezier(.2,1.6,.4,1), opacity .12s ease; }
.trvc-fx .shift-row .after { transition: opacity .5s ease .15s, transform .5s var(--ease) .15s; }
.trvc-fx .shift-row:not(.on) .after { opacity: 0; transform: translateX(-18px); }
@media (max-width: 860px) { .stamp { right: 0; top: 30px; } }

/* 08 : il saute d'étape en étape */
.js .step { border-top-color: var(--line); transition: border-color .6s ease; }
.step.on { border-top-color: var(--brand); }

/* menu : un grand TR-VC montre chaque rubrique */
.theme-wrap { gap: 0; }
.menu-stage { position: absolute; left: 14%; top: 50%; width: 200px; height: 240px; margin-top: -120px; }
.menu-bot { position: absolute; left: 0; top: 0; width: 200px; height: 240px; z-index: 1; will-change: auto; --tl: #5AA2EC; --tf: #F7F5F2; --ts: #0E2A47; --te: #F7F5F2; --td: #FF6B5B; }
.menu-bot .b-all { pointer-events: none; cursor: default; }
.menu-bot[data-bg="blue"] { --tl: #0E2A47; --tf: #FFFFFF; }
.menu-bot[data-bg="coral"] { --tl: #0E2A47; --tf: #FFFFFF; --td: #0E2A47; }
.menu-bot[data-bg="light"] { --tl: #1971C2; --tf: #FFFFFF; }
.menu-say { left: 120px; top: -8px; transform: translateY(-100%); background: #F7F5F2; color: #0E2A47; z-index: 2; }
.menu-bot[data-bg="light"] ~ .menu-say, .menu-stage.light .menu-say { background: #0E2A47; color: #F7F5F2; }
.problem .side::before { width: 96px; }

@media (max-width: 860px) { .case-head, .case-body { grid-row: auto; } .stamp { right: 64px; top: 26px; } }

/* --- v3.1 : fonds alternés, bloc 02 en cartes, bulles --- */
/* Une section « inv » prend la palette opposée : bleu nuit en thème clair, crème en thème sombre. */
.inv { --surface: #0E2A47; --surface-raised: #14304D; --surface-inverse: #F7F5F2;
  --ink: #F4F1EC; --ink-muted: #B9C8D7; --ink-inverse: #0E2A47; --ink-inverse-muted: #4A6580;
  --brand: #5AA2EC; --on-brand: #0C1E33; --accent: #FF7A6B; --on-accent: #0C1E33;
  --line: #2A4A69; --line-inverse: #E2DDD6; --focus: #5AA2EC; --brand-tint: #173A5C;
  background: var(--surface); color: var(--ink); }
.problem .side { color: var(--ink-muted); }
.contact .txt { color: var(--ink-muted); }
.copy { border-color: var(--line); }
.bot-say.on-dark { background: var(--surface); color: var(--ink); }
.bot-say.below { border-radius: 4px 14px 14px 14px; }
.bot-say.below.flip { border-radius: 14px 4px 14px 14px; }

/* 02 : filtre + cartes recto / verso */
.tasks { padding-block: 128px; }
.tasks .grid { align-items: start; }
.tasks .label { margin-bottom: 0; }
.tasks-side { grid-column: 1 / 4; display: grid; gap: 22px; align-content: start; }
.tasks-intro { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-muted); }
.tasks-intro .hint { display: block; margin-top: 12px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.task-filters { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.task-filters button { border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 600 14px/18px var(--font-sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.task-filters button:hover { border-color: var(--brand); }
.task-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.task-grid { grid-column: 5 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tcard { perspective: 1000px; min-width: 0; }
.tcard:not([hidden]) { animation: panel-in .35s ease; }
.tcard-in { display: grid; width: 100%; min-height: 150px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,1.25,.5,1); }
.tcard.flip .tcard-in { transform: rotateY(180deg); }
.tcard .face { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 22px 24px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tcard .back { transform: rotateY(180deg); background: var(--brand); border-color: var(--brand); color: var(--on-brand); justify-content: flex-start; }
.tcard b { font: 600 20px/26px var(--font-display); }
.tcard .tag { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.tcard .back .tag { color: var(--on-brand); opacity: .8; }
.tcard .how { font-size: 16px; line-height: 1.45; font-weight: 500; }
.tcard-in:focus { outline: none; }
.tcard-in:focus-visible .face { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 1180px) and (min-width: 861px) { .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .tasks { padding-block: 96px; }
  .tasks-side { grid-column: 1 / -1; }
  .task-filters { flex-direction: row; flex-wrap: wrap; }
  .task-grid { grid-column: 1 / -1; margin-top: 80px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .task-grid { grid-template-columns: 1fr; margin-top: 72px; }
  .tcard-in { min-height: 112px; }
  .tcard b { font-size: 17px; line-height: 22px; }
  .tcard .face { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { .tcard-in { transition: none; } }

/* --- v3.2 : bloc 02, la conversation avec TR-VC --- */
.tasks .label { grid-column: 1 / -1; }
.chat { grid-column: 4 / 12; margin-top: 44px; display: grid; gap: 26px; justify-items: start; }
.msg { margin: 0; background: var(--surface-raised); color: var(--ink); border-radius: 26px 26px 26px 6px; padding: 20px 26px; max-width: 680px; }
.msg.q { font: 600 clamp(26px, 3vw, 40px)/1.15 var(--font-display); letter-spacing: -.015em; }
.msg.a { display: grid; gap: 6px; min-height: 104px; align-content: start; width: min(680px, 100%); font-size: 19px; line-height: 1.45; font-weight: 500; }
.msg .who { font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.chat .txt.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: tw-caret .8s steps(1) infinite; }
.replies { display: flex; flex-wrap: wrap; gap: 10px; max-width: 780px; }
.chip { border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 10px 18px; font: 600 15px/20px var(--font-sans); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.chip:hover { border-color: var(--brand); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.bot.talk .b-head { animation: b-talk .16s ease-in-out infinite alternate; }
@keyframes b-talk { to { transform: translateY(-3px) rotate(-2deg); } }
@media (max-width: 860px) {
  .chat { grid-column: 1 / -1; margin-top: 76px; }
  .msg.q { font-size: 26px; padding-right: 64px; }
  .chip { font-size: 14px; padding: 9px 15px; }
}
@media (max-width: 860px) { .replies { flex-wrap: nowrap; overflow-x: auto; max-width: none; width: calc(100% + 40px); margin: 0 -20px; padding: 4px 20px 10px; scroll-snap-type: x proximity; scrollbar-width: none; } .replies::-webkit-scrollbar { display: none; } .chip { flex: none; scroll-snap-align: start; } .chat { gap: 18px; } }

/* --- v3.3 : bloc 02, besoins puis tâches --- */
.chat .cats .chip { font-size: 17px; padding: 12px 22px; }
.chat .cat::after { content: "+"; display: inline-block; margin-left: 10px; font-weight: 500; transition: transform .25s ease; }
.chat .cat[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chat .cat[aria-expanded="true"]::after { transform: rotate(45deg); }
.chat .subs { margin-top: -10px; padding-left: 18px; border-left: 2px solid var(--brand); }
.chat .subs:not([hidden]) { animation: panel-in .35s ease; }
.chat .sub[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 860px) { .chat .cats { flex-wrap: wrap; overflow: visible; width: auto; margin: 0; padding: 0; } .chat .cats .chip { font-size: 15px; padding: 10px 18px; } .chat .subs { padding-left: 20px; border-left: 0; } }
@media (max-width: 860px) { .chat .subs { justify-self: stretch; width: auto; margin-left: -20px; margin-right: calc(100% - 100vw + 20px); padding-right: 20px; } }

/* --- v3.4 : textes revus --- */
.who-stat { grid-column: 1 / 4; grid-row: 2; align-self: start; margin: 0; display: grid; gap: 4px; }
.who-stat b { font: 600 clamp(44px, 5vw, 64px)/1 var(--font-display); letter-spacing: -.03em; color: var(--brand); }
.who-stat span { font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.tool-groups { display: grid; gap: 10px; }
.tg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tg-l { flex: none; min-width: 150px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.tg .pills { gap: 6px; }
.need-audit { margin: 0; font: 600 15px/1.4 var(--font-sans); color: var(--brand); }
@media (max-width: 860px) { .who-stat { grid-column: 1 / -1; grid-row: auto; margin-bottom: 24px; } .tg-l { min-width: 0; width: 100%; } }
.stamp { top: 28px; }
@media (max-width: 860px) { .stamp { top: 26px; } }

/* --- v3.5 : petits détails --- */
/* 01 : le bouton passe au corail au survol */
.btn-primary { transition: background .25s ease, color .25s ease, transform .2s var(--ease); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent); color: var(--on-accent); }
/* 02 : besoins en ligne, problèmes en colonne */
.chat .subs { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; overflow: visible; }
@media (max-width: 860px) {
  .chat .cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .chat .cats .chip { font-size: 13px; line-height: 17px; padding: 10px 8px; border-radius: 16px; text-align: center; white-space: normal; }
  .chat .cat::after { display: none; }
  .chat .subs { justify-self: start; width: auto; margin: -6px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--brand); overflow: visible; }
  .chat .subs .chip { white-space: normal; text-align: left; }
}
/* 03 : avant l'arrivée des blocs corail, la place est vide */
.trvc-fx #qui .hl.drop:not(.on) { color: transparent; }
/* 04 : paragraphes séparés, mots clés en gras */
.problem .side strong { color: var(--ink); font-weight: 600; }
.tw-on::after { display: none; }
.tw-on.cur::after { display: inline-block; }
.typed .tw-on.cur::after { display: none; }
/* 05 : arborescence des outils plus lisible, catégorie au-dessus de ses outils à toutes les tailles */
.tools > .label { font-size: 14px; color: var(--ink); }
.tool-groups { gap: 16px; }
.tg { display: grid; gap: 8px; justify-items: start; }
.tg-l { min-width: 0; width: auto; font-size: 12px; color: var(--brand); }
/* 06 : on peut éteindre un projet à la souris (TR-VC le rallume) */
.case-switch { cursor: pointer; }
/* glisser-déposer : il panique */
.bot .b-all { touch-action: none; }
.bot.panic .b-all { animation: b-shake .11s ease-in-out infinite alternate; }
.bot.panic .b-eyes { transform: scale(1.3); }
.bot.panic .b-antenna, .bot.panic .b-dot { transform-origin: 100px 50px; animation: b-wiggle .1s ease-in-out infinite alternate; }
.bot.panic .b-arm-cheer { transform-box: view-box; transform-origin: 100px 166px; animation: b-wiggle .14s ease-in-out infinite alternate; }
.bot.panic { cursor: grabbing; }
@keyframes b-shake { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@media (max-width: 860px) { .tools > .label { max-width: calc(100% - 76px); } }

/* --- v3.6 --- */
.chat { align-content: start; }
@media (max-width: 860px) { .case-switch { top: 11px; } }

/* --- v3.10 : liens vers les pages services et À propos (menu et pied de page) --- */
.menu { overflow-y: auto; }
.menu-foot .menu-links { flex: 1 1 100%; }
.menu-foot .ml { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.menu-foot a { text-underline-offset: 3px; }
@media (max-width: 720px) and (max-height: 700px) { .menu nav { padding-top: 92px; padding-bottom: 20px; } .menu-foot { padding-top: 16px; padding-bottom: 18px; gap: 12px 28px; font-size: 14px; } .menu-foot .ml { gap: 4px 18px; } }

/* --- v3.12 : interrupteur « Mode labo » (menu et pied de page) --- */
.labo-sw { display: inline-flex; align-items: center; gap: 9px; text-decoration: none !important; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.labo-sw .sw { position: relative; flex: none; width: 34px; height: 18px; border-radius: 999px; border: 2px solid currentColor; transition: background .3s, border-color .3s; }
.labo-sw .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; transition: transform .35s var(--ease), background .3s; }
.labo-sw:hover .sw, .labo-sw:focus-visible .sw { background: #FF6B5B; border-color: #FF6B5B; }
.labo-sw:hover .sw::after, .labo-sw:focus-visible .sw::after { transform: translateX(16px); background: #0E2A47; }
.footer .col .labo-sw { margin-top: 10px; }
