/* =========================================================================
   PIKET — site vitrine · DA « Plan d'atelier »
   Deux couleurs : encre (noir du logo) + bleu (I du logotype / point de l'épingle).
   Mobile d'abord ; paliers à 720, 860, 960 et 1040 px.

   États d'animation : par défaut, tout est dans son état FINAL et lisible.
   Les animations ne s'appliquent que sous html.motion (posée par site.js
   quand prefers-reduced-motion n'est pas demandé).
   ========================================================================= */

/* Archivo : axes réduits aux valeurs utilisées (graisse 700–800, largeur 100–125 %) */
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo-Display.woff2?v=7a1a4ebcbb') format('woff2');
  font-weight: 700 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/IBMPlexSans-Regular.woff2?v=3b646991d3') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/IBMPlexSans-Medium.woff2?v=0717336fb3') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/IBMPlexSans-SemiBold.woff2?v=8960851d69') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/IBMPlexMono-Regular.woff2?v=08949f728d') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/IBMPlexMono-Medium.woff2?v=01d2854474') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #F3F0E8;
  --paper-deep: #E9E4D8;
  --ink: #1D1913;
  --ink-soft: #4A453C;
  --stone: #B9B3A6;
  --blue: #1A6DDB;
  --blue-dark: #1459B5;
  --blue-btn: #1766D0;   /* fond des boutons : contraste ≥ 4,5:1 avec le texte papier */
  --blue-wash: #DCE6F2;

  /* Couleurs de l'application (captures et éléments recréés) */
  --app-bg: #F6F3EE;
  --app-blue: #2F6FE0;
  --app-red: #D9472B;
  --app-red-wash: #FDECEA;
  --app-green: #1E8E4E;
  --app-green-wash: #E3F5EA;
  --app-ai: #F2C94C;
  --ui-shadow: 0 2px 12px rgba(29, 25, 19, 0.13);

  --grid: rgba(29, 25, 19, 0.055);
  --cell: 32px;
  --gutter: 16px;
  --max: 1180px;
  --top-h: 72px;

  --f-display: 'Archivo', 'Arial Black', sans-serif;
  --f-text: 'Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Plex Mono', 'Menlo', monospace;

  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* ---------- Trame, règle, repères ------------------------------------ */

.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: -0.5px -0.5px;
}

/* Règle graduée : filet + graduations fines tous les 8 px, majeures tous les 40 px */
.ruler {
  height: 8px;
  border-top: 1.5px solid var(--ink);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--stone) 0 1px, transparent 1px 8px);
  background-size: 100% 8px, 100% 4px;
  background-repeat: no-repeat;
}

.crop { position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none; }
.crop::before, .crop::after { content: ''; position: absolute; background: var(--ink); }
.crop::before { left: 50%; top: 0; width: 1px; height: 100%; }
.crop::after  { top: 50%; left: 0; height: 1px; width: 100%; }
.crop--tl { top: 16px; left: 10px; }
.crop--tr { top: 16px; right: 10px; }

/* Pointillés « épingle » réutilisables */
.dots-x {
  background-image: radial-gradient(circle, var(--blue) 1.4px, transparent 1.9px);
  background-size: 9px 6px; background-repeat: repeat-x; background-position: left center;
}

/* ---------- Le point de l'épingle ------------------------------------ */

.dot {
  display: inline-block; flex: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue);
}
.dot--sm { width: 7px; height: 7px; }
.dot--ring { width: 14px; height: 14px; background: var(--blue); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--blue); }
.dot--paper { width: 16px; height: 16px; background: var(--paper); }

/* ---------- Typo ------------------------------------------------------ */

.label {
  font-family: var(--f-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.label--blue { color: var(--blue); }

.display {
  font-family: var(--f-display);
  font-weight: 800; font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.98; letter-spacing: -0.012em;
}
.display em { font-style: normal; color: var(--blue); }

.h-xl { font-size: clamp(1.75rem, 6.4vw, 3.4rem); margin-bottom: 28px; }
.h-lg { font-size: clamp(1.4rem, 4.6vw, 2.35rem); line-height: 1.04; margin-bottom: 18px; }
.h-md { font-size: clamp(1.05rem, 3vw, 1.4rem); margin-bottom: 20px; }

.lead { font-size: 1.125rem; line-height: 1.55; }
.text { font-size: 1rem; line-height: 1.6; }

/* Repère de section : numéro / total · nom (le point est piqué par le fil) */
.folio {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.folio::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.folio b { color: var(--ink); font-weight: 500; }

/* ---------- Boutons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--blue-btn); color: var(--paper);
  border: 1.5px solid var(--blue-btn);
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; font-family: var(--f-mono); font-weight: 500; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 0.875rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: #fff; border-color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================================
   En-tête collant — sous 860 px : logo + « Demander une démo » seulement
   ========================================================================= */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 240, 232, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.top__logo img { height: 28px; width: auto; }
.top__nav { display: none; }
.top__short { display: none; }
.top .ruler { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; width: calc(100% - 2 * var(--gutter)); }

/* =========================================================================
   Fil rouge (SVG posé par site.js)
   ========================================================================= */

.thread { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; overflow: visible; }
.thread__line { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 9; }
.thread__line--paper { stroke: var(--paper); }
.thread__head { fill: var(--blue); }
.thread__halo { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: 0.45; }
.thread.is-paper .thread__head { fill: var(--paper); }
.thread.is-paper .thread__halo { stroke: var(--paper); }
.thread.is-done .thread__head, .thread.is-done .thread__halo { display: none; }

/* =========================================================================
   01 — Hero
   ========================================================================= */

.hero { position: relative; overflow: hidden; padding: 40px 0 0; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

.hero__title { font-size: clamp(1.6rem, 7.1vw, 4rem); margin: 18px 0 22px; }
.hero__title em { display: block; }

.hero__sub {
  font-size: 1.0625rem; line-height: 1.55; max-width: 34em;
  padding-left: 16px; border-left: 2.5px solid var(--blue);
  margin-bottom: 14px;
}
.hero__trades {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero__sign { font-size: clamp(1.05rem, 4.4vw, 1.5rem); line-height: 1.12; margin-top: 40px; }
.hero__sign span { display: block; }
.hero__sign span + span { color: var(--blue); }

/* Tracé bureau → terrain : le point « Bureau » est le départ du fil rouge */
.trail {
  display: flex; align-items: center; gap: 12px; margin-top: 28px;
  font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue);
}
.trail__start, .trail__end { display: inline-flex; align-items: center; gap: 14px; }
.trail__end { gap: 8px; }
.trail__line {
  flex: 1; height: 6px;
  background-image: radial-gradient(circle, var(--blue) 1.4px, transparent 1.9px);
  background-size: 9px 6px; background-repeat: repeat-x; background-position: left center;
}

.hero__visual { position: relative; height: 400px; margin-top: 8px; }

/* Mobile : signature et fil Bureau / Terrain resserrés, le téléphone remonte */
@media (max-width: 799.98px) {
  .top__long { display: none; }
  .top__short { display: inline; }
  .hero__trades { margin-bottom: 22px; }
  .hero__sign { margin-top: 24px; }
  .trail { margin-top: 12px; }
  .hero__in { gap: 0; }
  .hero__visual { margin-top: 0; }
  .phone--hero { top: 12px; }
}

/* ---------- Mockup téléphone ----------------------------------------- */

.phone {
  position: relative;
  width: 200px; aspect-ratio: 9 / 19.3;
  background: var(--ink);
  border-radius: 32px;
  padding: 7px;
  box-shadow: 0 0 0 1.5px #3A352C inset, 4px 8px 12px rgba(29, 25, 19, 0.22);
}
.phone::before { /* îlot caméra */
  content: ''; position: absolute; z-index: 2;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 16px; border-radius: 8px; background: var(--ink);
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 25px; overflow: hidden;
  background: #fff; padding-top: 24px; /* bande « barre d'état » sous l'îlot */
}
.phone__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.phone--hero {
  position: absolute; left: 50%; top: 24px;
  width: 270px; margin-left: -110px;
  transform: rotate(-12deg);
  container-type: inline-size;
}

/* ---------- Écran « Aujourd'hui » : haut réel + liste recréée qui défile */

.app { display: flex; flex-direction: column; background: var(--app-bg); font-size: 3.3cqi; line-height: 1.3; }
.app > .app__top { flex: none; width: 100%; height: auto; aspect-ratio: 1170 / 1063; object-fit: cover; object-position: top; }
.app > .app__bar { flex: none; width: 100%; height: auto; aspect-ratio: 1170 / 205; object-fit: cover; object-position: bottom; border-top: 1px solid #ECE8E1; }
.app__panel {
  flex: 1; min-height: 0; margin: 0 4%;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 1.4em 1.4em 0 0; border-left: 0.35em solid #3B82F6;
  overflow: hidden;
}
.app__panel-h {
  flex: none; display: flex; align-items: center; gap: 0.6em;
  padding: 0.9em 1.1em; border-bottom: 1px solid #EEE;
  font-weight: 600; font-size: 0.95em; letter-spacing: 0.06em; text-transform: uppercase; color: #555;
}
.app__panel-h b { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #E3EDFB; color: var(--app-blue); letter-spacing: 0; }
.app__feed { flex: 1; min-height: 0; overflow: hidden; padding: 0.8em 0.8em 0; background: #FBFAF8; }
.job { margin-bottom: 0.8em; padding: 0.85em 1em; background: #fff; border-radius: 0.9em; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07); }
.job p { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.3em; }
.job p b { color: var(--app-blue); font-size: 1.15em; }
.job p span { font-family: var(--f-mono); font-size: 0.85em; color: #77726A; }
.st { margin-left: auto; padding: 0.2em 0.7em; border-radius: 999px; background: #EFEBE4; color: #5A544A; font-style: normal; font-size: 0.85em; white-space: nowrap; }
.st--live { background: var(--app-red-wash); color: var(--app-red); }
.job strong { display: block; overflow: hidden; font-weight: 600; font-size: 1.05em; color: #1D1D1D; white-space: nowrap; text-overflow: ellipsis; }
.job small { color: #77726A; font-size: 0.95em; }

/* =========================================================================
   Sections — gabarit commun
   ========================================================================= */

.sec { padding: 72px 0; border-top: 1px solid rgba(29, 25, 19, 0.12); }

/* ---------- 02 — Constat --------------------------------------------- */

.constat { display: grid; gap: 24px; margin-bottom: 56px; }

.pains li {
  position: relative; padding: 12px 0 12px 26px;
  border-top: 1px solid var(--stone);
  font-size: 1.0625rem; line-height: 1.45;
}
.pains li:last-child { border-bottom: 1px solid var(--stone); }
.pains li::before { content: ''; position: absolute; left: 2px; top: 20px; width: 12px; height: 2px; background: var(--ink); }

.impact {
  background: var(--blue); color: var(--paper);
  margin: 0 calc(-1 * var(--gutter)); padding: 28px var(--gutter);
  display: flex; flex-direction: column; gap: 22px;
}
.impact p { font-family: var(--f-display); font-weight: 700; font-stretch: 112%; font-size: 1.3rem; line-height: 1.22; }

.bridge { max-width: 46em; }
.bridge .text { max-width: 38em; }

/* =========================================================================
   03 — Un bon, du début à la fin
   ========================================================================= */

.story__intro { max-width: 36em; margin-bottom: 40px; }

/* --- Sans animation : chaque temps = texte + sa scène ---------------- */

.beat { display: grid; gap: 20px; padding: 32px 0; border-top: 1px solid var(--stone); }
.beat__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.beat__t { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.35rem; line-height: 1.15; margin-bottom: 10px; }
.beat__text > p:not(.beat__n) { color: var(--ink-soft); }
.beat__text > p + p { margin-top: 8px; }
.beat__text a { color: var(--blue); font-weight: 600; }
.beat__text > p.beat__aside { margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); opacity: 0.8; }
.beat__note { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

.scene-box {
  container-type: inline-size;
  border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--blue-wash);
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(rgba(29, 25, 19, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 25, 19, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 22px 14px;
}

/* --- Scènes : communes --------------------------------------------- */

.scene {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-text); font-size: clamp(8px, 2.15cqi, 13px); line-height: 1.35; color: #222;
}
.scene p { margin: 0; }

/* Scène 1 — e-mail + PDF de la régie */
.scene--mail { flex-direction: column; gap: 1.2em; }
.mail { width: min(100%, 30em); padding: 0.9em 1.1em; background: #fff; border-radius: 0.8em; box-shadow: var(--ui-shadow); }
.mail__head { display: flex; justify-content: space-between; gap: 1em; font-weight: 600; font-size: 0.95em; }
.mail__head time { font-family: var(--f-mono); font-weight: 400; color: #757575; }
.mail__subject { margin: 0.3em 0 0.6em !important; color: #444; }
.mail__att { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.35em 0.7em 0.35em 0.35em; border-radius: 0.5em; background: #F4F1EC; font-family: var(--f-mono); font-size: 0.9em; }
.pdf-ico { padding: 0.25em 0.45em; border-radius: 0.3em; background: #C2391F; color: #fff; font-family: var(--f-text); font-weight: 700; font-size: 0.75em; }

.pdf { position: relative; width: min(100%, 26em); padding: 1.3em 1.4em; background: #fff; border-top: 0.35em solid #1F4E8C; box-shadow: 0 6px 22px rgba(29, 25, 19, 0.18); font-size: 0.9em; }
.pdf__brand { color: #1F4E8C; font-weight: 700; font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; }
.pdf__title { margin: 0.3em 0 0.1em !important; font-weight: 700; font-size: 1.12em; }
.pdf__meta { margin-bottom: 0.8em !important; color: #757575; font-size: 0.8em; }
.pdf__table { display: grid; grid-template-columns: 6.4em 1fr; border-top: 1px solid #DDD; font-size: 0.85em; }
.pdf__table dt { padding: 0.3em 0.5em; border-bottom: 1px solid #DDD; background: #EEF2F8; font-weight: 600; }
.pdf__table dd { padding: 0.3em 0.5em; border-bottom: 1px solid #DDD; }
.pdf__h { margin: 0.8em 0 0.3em !important; color: #1F4E8C; font-weight: 700; font-size: 0.8em; text-transform: uppercase; }
.pdf__txt { color: #333; font-size: 0.85em; }
.pdf__lines { display: block; height: 2.4em; margin-top: 0.6em; background: repeating-linear-gradient(#E6E6E6 0 0.3em, transparent 0.3em 0.8em); }

/* Scène 2 — formulaire pré-rempli par l'IA */
.scene--ia { gap: 1.6em; }
.pdf--mini { flex: none; width: 11em; padding: 1em; font-size: 0.8em; transform: rotate(-3deg); }
.pdf--mini .pdf__lines + .pdf__lines { height: 5em; }
.form { width: min(100%, 25em); padding: 1em 1.1em; background: #fff; border-radius: 0.9em; box-shadow: var(--ui-shadow); }
.form__title { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; margin-bottom: 0.6em !important; font-weight: 700; font-size: 1.05em; }
.ai-chip { padding: 0.2em 0.65em; border-radius: 999px; background: #FFF6DB; color: #A26F00; font-weight: 600; font-size: 0.72em; white-space: nowrap; }
.field { margin-bottom: 0.5em; }
.field__l { display: flex; gap: 0.5em; color: #8A847A; font-size: 0.72em; letter-spacing: 0.06em; text-transform: uppercase; }
.field__l i { color: #C98A00; font-style: normal; letter-spacing: 0; text-transform: none; }
.field__v {
  min-height: 2.1em; margin-top: 0.2em !important; padding: 0.35em 0.6em;
  border: 1.5px solid var(--app-ai); border-radius: 0.5em; background: #FFFDF6;
  font-size: 0.95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field__v span { display: inline-block; }
.field__seg { display: flex; gap: 0.3em; padding: 0.2em; background: #F4F1EC; }
.field__seg b { flex: 1; padding: 0.2em; border-radius: 0.35em; color: #888; font-weight: 500; font-size: 0.9em; text-align: center; }
.field__seg b.on { background: #fff; color: var(--app-red); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.form__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7em !important; color: #888; font-size: 0.8em; }
.mini-btn { padding: 0.45em 0.9em; border-radius: 0.5em; background: var(--blue); color: #fff; font-weight: 600; }

@container (max-width: 480px) {
  .scene--ia .pdf--mini { display: none; }
  .kcard__top span { visibility: hidden; } /* le badge prend la place du numéro */
}

/* Scènes 3 et 5 — Kanban recréé */
.scene--kanban { flex-direction: column; gap: 1em; font-size: clamp(9px, 2.5cqi, 13px); }
.board {
  position: relative; width: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6em;
  padding: 0.7em; border-radius: 0.8em; background: var(--app-bg); box-shadow: var(--ui-shadow);
}
.col__h { display: flex; align-items: center; gap: 0.4em; overflow: hidden; color: #555; font-weight: 700; font-size: 0.72em; line-height: 1.5; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.col__h i { flex: none; width: 0.6em; height: 0.6em; border-radius: 50%; }
.c-amber { background: #F2A33A; } .c-blue { background: #3B82F6; } .c-violet { background: #8B5CF6; } .c-green { background: #22A55B; }
.slot { display: block; height: 7.6em; margin: 0.5em 0; border: 1.5px dashed #D6D0C4; border-radius: 0.6em; }
.ghost {
  display: block; height: 4.2em; margin-bottom: 0.5em; border-radius: 0.6em;
  background-color: #fff;
  background-image: linear-gradient(#E8E4DC, #E8E4DC), linear-gradient(#EFECE6, #EFECE6);
  background-size: 60% 0.5em, 80% 0.5em; background-position: 0.7em 0.9em, 0.7em 2em; background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.kcard {
  --col: 1;
  position: absolute; z-index: 2; top: 2.28em; left: 0.7em;
  width: calc((100% - 1.4em - 1.8em) / 4); height: 7.6em;
  display: flex; flex-direction: column;
  padding: 0.55em 0.6em; border-radius: 0.6em; border-left: 0.25em solid var(--app-red);
  background: #fff; box-shadow: 0 6px 16px rgba(29, 25, 19, 0.18);
  transform: translateX(calc(var(--col) * (100% + 0.6em)));
}
.kcard__top { position: relative; display: flex; justify-content: space-between; min-height: 1.4em; color: #999; font-family: var(--f-mono); font-size: 0.66em; }
.kcard__top em { position: absolute; right: 0; top: 0; padding: 0 0.5em; border-radius: 999px; background: var(--app-red-wash); color: var(--app-red); font-family: var(--f-text); font-style: normal; font-weight: 600; white-space: nowrap; }
.kcard__top em.ok { background: var(--app-green-wash); color: var(--app-green); }
.kcard__top em.todo { background: #EFE8FD; color: #6D3FD8; }
.kcard__top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard__t { display: -webkit-box; margin: 0.25em 0 0.15em !important; overflow: hidden; font-weight: 700; font-size: 0.82em; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kcard__s { color: var(--app-blue); font-size: 0.72em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.3em; margin-top: auto !important; color: #666; font-size: 0.68em; white-space: nowrap; }
.kcard__foot b { display: grid; place-items: center; flex: none; width: 2em; height: 2em; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.85em; }

.toast {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.55em 0.9em; border-radius: 0.5em;
  background: var(--ink); color: var(--paper); box-shadow: var(--ui-shadow);
  font-size: 0.85em; font-weight: 500; line-height: 1.3;
}

/* Scène 3 : la carte est « Planifié » */
.scene--plan .kcard { --col: 1; }
/* Scène 5 : la carte est « À facturer », validée */
.scene--check .kcard { --col: 3; border-left-color: var(--app-green); }
.scene--check .kcard__top em.todo { opacity: 0; }

.review { width: min(100%, 22em); padding: 0.9em 1em; background: #fff; border-radius: 0.8em; box-shadow: var(--ui-shadow); font-size: 0.9em; }
.review__t { margin-bottom: 0.5em !important; font-weight: 700; }
.review li { display: flex; justify-content: space-between; padding: 0.25em 0; border-top: 1px solid #EEE; }
.review__a { display: flex; justify-content: flex-end; gap: 0.5em; margin-top: 0.6em !important; }
.review__a span { padding: 0.35em 0.9em; border: 1px solid #DDD; border-radius: 0.45em; font-weight: 600; }
.review__a .go { border-color: var(--app-green); background: var(--app-green); color: #fff; }

/* Scène 4 — téléphone qui documente */
.scene--field { gap: 1.6em; }
.phone--scene { flex: none; width: 13em; border-radius: 2.2em; padding: 0.5em; }
.phone--scene::before { top: 1em; height: 1.1em; border-radius: 0.6em; }
.phone--scene .phone__screen { border-radius: 1.75em; padding-top: 1.6em; }
.sign {
  position: absolute; left: 7%; right: 7%; bottom: 5%;
  padding: 0.6em 0.7em; border-radius: 0.8em;
  background: #fff; box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.2); font-size: 0.85em;
}
.sign__l { color: #888; font-size: 0.75em; letter-spacing: 0.06em; text-transform: uppercase; }
.sign svg { display: block; width: 100%; height: auto; border-bottom: 1px dashed #CCC; }
.sign path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sign__ok { margin-top: 0.3em !important; color: var(--app-green); font-weight: 600; font-size: 0.85em; }
.chips { display: flex; flex-direction: column; gap: 0.6em; }
.chips li { display: flex; align-items: center; gap: 0.6em; padding: 0.5em 0.8em; border: 1px solid var(--ink); background: #fff; font-size: 0.95em; font-weight: 500; white-space: nowrap; }

/* Scène 6 — dossier → Bexio */
.scene--billing { gap: 0; }
.dossier { flex: none; width: 14em; padding: 1em 1.1em; background: #fff; border-radius: 0.8em; box-shadow: var(--ui-shadow); }
.dossier__t { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; margin-bottom: 0.5em !important; font-weight: 700; }
.dossier__t em { padding: 0.15em 0.6em; border-radius: 999px; background: var(--app-green-wash); color: var(--app-green); font-style: normal; font-size: 0.75em; }
.dossier li { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.3em 0; border-top: 1px solid #EEE; font-size: 0.88em; }
.wire {
  position: relative; flex: 1; min-width: 3em; max-width: 9em; height: 0.8em;
  background-image: radial-gradient(circle, var(--blue) 0.17em, transparent 0.21em);
  background-size: 0.9em 0.8em; background-repeat: repeat-x; background-position: left center;
}
.wire i { position: absolute; top: 50%; left: 0; right: 0; height: 0.9em; margin-top: -0.45em; }
.wire i::before { content: ''; position: absolute; top: 0; right: 0; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0.3em rgba(26, 109, 219, 0.2); }
.billing { flex: none; width: 11em; padding: 1.1em; border: 1.5px solid var(--blue); border-radius: 0.8em; background: #fff; box-shadow: var(--ui-shadow); text-align: center; }
.billing__name { font-family: var(--f-display); font-weight: 800; font-stretch: 105%; font-size: 1.05em; line-height: 1.2; }
.billing__st { margin-top: 0.5em !important; color: var(--app-green); font-weight: 600; font-size: 0.8em; }

/* --- Avec animation : scène fixe + temps qui défilent ---------------- */

.motion .scene-box { display: none; }

.motion .story__stage {
  position: sticky; top: calc(var(--top-h) + 6px); z-index: 4;
  height: min(50svh, 440px);
  display: flex; flex-direction: column;
  container-type: inline-size;
  border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--blue-wash);
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(rgba(29, 25, 19, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 25, 19, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

/* Frise des 6 temps, en tête de la scène */
.stage__steps { position: relative; flex: none; display: flex; justify-content: space-between; padding: 10px 10px 8px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.stage__steps::before {
  content: ''; position: absolute; left: 30px; right: 30px; top: 12px; height: 6px;
  background-image: radial-gradient(circle, var(--blue) 1.3px, transparent 1.8px);
  background-size: 8px 6px; background-repeat: repeat-x;
}
.stage__steps li {
  position: relative; z-index: 1; flex: 0 1 auto;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink-soft); font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.03em; text-transform: uppercase;
}
.stage__steps li::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--blue); background: var(--paper);
}
/* Halo du temps actif : animé en opacity / transform (composité) */
.stage__steps li::after {
  content: ''; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(26, 109, 219, 0.22);
  opacity: 0; transform: scale(0.4); transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.stage__steps li.is-done::before { background: var(--blue); }
.stage__steps li.is-on { color: var(--blue); font-weight: 500; }
.stage__steps li.is-on::before { background: var(--blue); }
.stage__steps li.is-on::after { opacity: 1; transform: none; }

.stage__scenes { position: relative; flex: 1; min-height: 0; }
.stage__scenes .scene {
  position: absolute; inset: 0; padding: 4% 5%;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.stage__scenes .scene.is-active { opacity: 1; visibility: visible; transition: opacity 0.45s ease; }
.stage__scenes .phone--scene { width: auto; height: 94%; }

.motion .story__beats { margin-top: 24px; }
.motion .beat { display: block; min-height: 78svh; padding: 24px 0; border: 0; }
.motion .beat:last-child { min-height: 60svh; }
.motion .beat__text {
  max-width: 34em; padding: 18px 20px;
  border-left: 3px solid var(--blue); background: var(--paper);
  box-shadow: 0 1px 0 rgba(29, 25, 19, 0.08);
  opacity: 0.35; transition: opacity 0.4s ease;
}
.motion .beat.is-active .beat__text { opacity: 1; }

/* Entrées des scènes (rejouées à chaque activation) */
.motion .scene--mail.is-active .mail { animation: drop-in 0.6s var(--ease-out) both; }
.motion .scene--mail.is-active .pdf { animation: paper-in 0.8s var(--ease-out) 0.5s both; }

.motion .scene--ia.is-active .pdf--mini { animation: paper-in 0.5s var(--ease-out) both; }
.motion .scene--ia.is-active .pdf--mini { overflow: hidden; }
.motion .scene--ia.is-active .pdf--mini::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background: linear-gradient(to bottom, transparent calc(100% - 12px), rgba(26, 109, 219, 0.3) calc(100% - 4px), var(--blue) calc(100% - 2px));
  animation: scan 1.1s ease-in-out 0.2s 3 both;
}
.motion .scene--ia.is-active .ai-chip { animation: pop 0.35s var(--ease-out) 0.3s both; }
.motion .scene--ia.is-active .field__v { animation: field-glow 0.5s ease both; }
.motion .scene--ia.is-active .field__v span { position: relative; }
.motion .scene--ia.is-active .field__v span::after {
  content: ''; position: absolute; inset: 0 -2px; background: #FFFDF6; transform-origin: right;
  animation: type 0.55s steps(16, end) both;
}
.motion .scene--ia.is-active .field__l i { animation: pop 0.35s var(--ease-out) both; }
.motion .scene--ia.is-active .field__seg b.on { animation: pop 0.35s var(--ease-out) both; }
.motion .scene--ia.is-active .field:nth-of-type(1) { --d: 0.6s; }
.motion .scene--ia.is-active .field:nth-of-type(2) { --d: 1s; }
.motion .scene--ia.is-active .field:nth-of-type(3) { --d: 1.4s; }
.motion .scene--ia.is-active .field:nth-of-type(4) { --d: 1.8s; }
.motion .scene--ia.is-active .field:nth-of-type(5) { --d: 2.2s; }
.motion .scene--ia.is-active .field:nth-of-type(6) { --d: 2.6s; }
.motion .scene--ia.is-active .field :is(.field__v, .field__l i, b.on),
.motion .scene--ia.is-active .field .field__v span::after { animation-delay: var(--d, 0s); }
.motion .scene--ia.is-active .mini-btn { animation: btn-on 0.4s ease 3.1s both; }

.motion .scene--plan.is-active .kcard { animation: card-in 0.5s var(--ease-out) 0.2s both, plan-move 2.4s var(--ease-out) 0.2s both; }
.motion .scene--plan.is-active .kcard__foot > * { animation: pop 0.35s var(--ease-out) 2s both; }
.motion .scene--plan.is-active .toast { animation: drop-up 0.5s var(--ease-out) 2.4s both; }

.motion .scene--field.is-active .phone--scene { animation: drop-up 0.6s var(--ease-out) both; }
.motion .scene--field.is-active .chips li { animation: chip-in 0.45s var(--ease-out) both; }
.motion .scene--field.is-active .chips li:nth-child(1) { animation-delay: 0.4s; }
.motion .scene--field.is-active .chips li:nth-child(2) { animation-delay: 0.9s; }
.motion .scene--field.is-active .chips li:nth-child(3) { animation-delay: 1.4s; }
.motion .scene--field.is-active .chips li:nth-child(4) { animation-delay: 1.9s; }
.motion .scene--field.is-active .chips li:nth-child(5) { animation-delay: 2.4s; }
.motion .scene--field.is-active .sign { animation: sheet-up 0.5s var(--ease-out) 2.3s both; }
.motion .scene--field.is-active .sign path { stroke-dasharray: 1; animation: draw 1.3s ease-in-out 2.8s both; }
.motion .scene--field.is-active .sign__ok { animation: pop 0.35s var(--ease-out) 4.1s both; }

.motion .scene--check.is-active .kcard { animation: check-move 3.8s var(--ease-out) both; }
.motion .scene--check.is-active .kcard__top em.todo { animation: shown-until 3.8s linear both; }
.motion .scene--check.is-active .kcard__top em.ok { animation: shown-after 3.8s linear both; }
.motion .scene--check.is-active .kcard__foot span { animation: pop 0.3s var(--ease-out) 0.4s both; }
.motion .scene--check.is-active .review { animation: drop-up 0.5s var(--ease-out) 0.9s both; }
.motion .scene--check.is-active .review__a .go { animation: press 0.5s ease 2.2s both; }

.motion .scene--billing.is-active .dossier { animation: drop-up 0.5s var(--ease-out) both; }
.motion .scene--billing.is-active .wire i { animation: travel 1.3s ease-in-out 0.6s both; }
.motion .scene--billing.is-active .billing { animation: billing-on 0.5s ease 1.9s both; }
.motion .scene--billing.is-active .billing__st { animation: pop 0.4s var(--ease-out) 2s both; }

@keyframes drop-in { from { opacity: 0; transform: translateY(-1.5em); } }
@keyframes drop-up { from { opacity: 0; transform: translateY(1.2em); } }
@keyframes paper-in { from { opacity: 0; transform: translateY(2em) rotate(-5deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes type { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes field-glow { from { border-color: #DDD8CF; } }
@keyframes btn-on { from { background: #C9C3B8; } }
@keyframes card-in { from { opacity: 0; scale: 0.85; } }
@keyframes plan-move {
  0%, 38% { transform: translateX(0); }
  62% { transform: translateX(calc(0.5 * (100% + 0.6em))) rotate(3deg); }
  80%, 100% { transform: translateX(calc(100% + 0.6em)); }
}
@keyframes check-move {
  0% { transform: translateX(calc(100% + 0.6em)); border-left-color: var(--app-red); }
  20%, 64% { transform: translateX(calc(2 * (100% + 0.6em))); border-left-color: #8B5CF6; }
  74% { transform: translateX(calc(2.5 * (100% + 0.6em))) rotate(3deg); border-left-color: var(--app-green); }
  86%, 100% { transform: translateX(calc(3 * (100% + 0.6em))); border-left-color: var(--app-green); }
}
@keyframes shown-until { 0%, 62% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes shown-after { 0%, 64% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes press { 50% { transform: scale(0.88); filter: brightness(0.85); } }
@keyframes chip-in { from { opacity: 0; transform: translateX(-1.2em); } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(110%); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes travel { from { transform: translateX(calc(-100% + 0.9em)); } }
@keyframes billing-on { from { border-color: var(--ink); box-shadow: none; } }
@keyframes feed { to { transform: translateY(-50%); } }

/* Hero : la liste du téléphone défile doucement */
.motion.is-loaded .app__track { animation: feed 26s linear infinite; }
.motion .phone--hero:hover .app__track { animation-play-state: paused; }

/* ---------- Apparitions au scroll ------------------------------------ */

.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s var(--ease-out); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="stagger"] { opacity: 1; transform: none; }
.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s var(--ease-out); }
.motion [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
.motion [data-reveal="stagger"].is-in > :nth-child(2) { transition-delay: 0.08s; }
.motion [data-reveal="stagger"].is-in > :nth-child(3) { transition-delay: 0.16s; }
.motion [data-reveal="stagger"].is-in > :nth-child(4) { transition-delay: 0.24s; }
.motion [data-reveal="stagger"].is-in > :nth-child(5) { transition-delay: 0.32s; }

/* =========================================================================
   04 — En détail : mises en scène
   ========================================================================= */

.show { display: grid; gap: 28px; padding: 36px 0; }
.show__media { position: relative; }
.show__t { font-size: clamp(1.3rem, 3.4vw, 2rem); line-height: 1.02; margin: 10px 0 14px; }
.show__text > p:not(.label) { color: var(--ink-soft); }
.show__note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; }
.show__phones { display: flex; justify-content: center; gap: 28px; padding-top: 18px; }
.show__phones .phone { width: min(42%, 210px); }
.phone--up { transform: translateY(-16px); }

.toast--float { position: absolute; right: 10px; bottom: -16px; font-size: 0.85rem; }

.motion .show .show__media { transition: opacity 0.8s ease 0.1s, transform 1s var(--ease-out) 0.1s; }
.motion .show:not(.is-in) .show__media { opacity: 0; transform: translateX(-40px); }
.motion .show--flip:not(.is-in) .show__media { transform: translateX(40px); }
.motion .show .toast--float { transition: opacity 0.5s ease 0.9s, transform 0.6s var(--ease-out) 0.9s; }
.motion .show:not(.is-in) .toast--float { opacity: 0; transform: translateY(12px) scale(0.95); }

/* Bande encre */
.band-dark {
  margin: 36px 0; padding: 36px 0;
  background-color: var(--ink); color: var(--paper);
  background-image:
    linear-gradient(rgba(243, 240, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.06) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.show--dark .label { color: rgba(243, 240, 232, 0.7); }
.show--dark .show__text > p:not(.label) { color: rgba(243, 240, 232, 0.82); }
.show--dark .show__note { color: rgba(243, 240, 232, 0.72); }

/* ---------- Fenêtre desktop (cadre des captures bureau) -------------- */

.window {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--ink); background: var(--ink);
  box-shadow: 6px 6px 0 var(--blue-wash);
}
.window__bar { flex: none; height: 18px; display: flex; align-items: center; gap: 5px; padding: 0 8px; }
.window__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--stone); }
.window__bar i:first-child { background: var(--blue); }
.window img { width: 100%; background: #fff; }
.window--dark { border-color: rgba(243, 240, 232, 0.35); box-shadow: 6px 6px 0 var(--blue); }
.window--dark .window__bar { background: #2B261E; }

/* ---------- Et aussi : onglets Bureau / Terrain ---------------------- */

.more { margin-top: 40px; }
.tabs { display: flex; margin-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.tabs[hidden] { display: none; }
.tabs button {
  margin-bottom: -1.5px; padding: 10px 18px;
  border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--ink-soft); font: 600 1rem/1.2 var(--f-text); cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.tabs button:hover { color: var(--ink); }

.panel__h { margin: 24px 0 6px; color: var(--blue); font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.js .tabs:not([hidden]) ~ .panel .panel__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.mini { display: grid; grid-template-columns: 1fr; column-gap: 32px; }
.mini li { padding: 12px 0 14px; border-top: 1px solid var(--stone); color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.mini b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; font-size: 1rem; }

/* ---------- 05 — Pourquoi PIKET -------------------------------------- */

.cards { display: grid; gap: 14px; }
.card { position: relative; background: var(--paper); border: 1.5px solid var(--ink); padding: 20px 20px 22px; }
.card__n { position: absolute; top: 14px; right: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); }
.card__t {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--f-text); font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
  margin: 0 28px 8px 0;
}
.card__t .dot { width: 9px; height: 9px; margin-top: 7px; }
.card p { font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }

.card--lead { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; padding: 24px; }
.card--lead .card__n { color: rgba(243, 240, 232, 0.6); }
.card--lead .card__t { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.35rem; line-height: 1.15; margin-bottom: 12px; }
.card--lead .card__t .dot { margin-top: 8px; }
.card--lead p { color: rgba(243, 240, 232, 0.85); font-size: 1rem; }

.pills { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: 0.85rem; font-weight: 500; line-height: 1; border: 1px solid rgba(243, 240, 232, 0.45); border-radius: 999px; padding: 7px 12px 8px; }

/* ---------- 06 — Démo ------------------------------------------------ */

.cta { background: var(--blue); color: var(--paper); border-top: none; }
.cta .folio { color: rgba(243, 240, 232, 0.75); }
.cta .folio::before { background: var(--paper); }
.cta .folio b { color: var(--paper); }
.cta .h-xl span { color: var(--ink); }
.cta__in { display: grid; gap: 32px; }
.cta__d { font-size: 1.125rem; line-height: 1.55; max-width: 30em; }
.cta__box { align-self: end; border: 1.5px solid var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.cta__box .btn { box-shadow: 4px 4px 0 var(--ink); }
.cta__contact { display: grid; gap: 14px; }
.cta__contact dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.cta__contact dd { font-family: var(--f-mono); font-weight: 500; font-size: 1.25rem; }
.cta__contact a { text-decoration: none; border-bottom: 1px solid rgba(243, 240, 232, 0.5); }
.cta__contact a:hover { border-bottom-color: var(--paper); }

/* =========================================================================
   Pied de page
   ========================================================================= */

.foot { padding: 0 0 40px; }
.foot > .ruler { max-width: calc(var(--max) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin: 0 auto 28px; }
.foot__in { display: grid; gap: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.foot__in img { height: 28px; width: auto; }
.foot__in p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot__in b { color: var(--ink); font-weight: 600; }
.foot__links a { color: var(--ink); }

/* =========================================================================
   Page Mentions légales
   ========================================================================= */

.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 1.15rem; margin: 44px 0 12px; display: flex; align-items: center; gap: 12px; }
.legal p, .legal li { font-size: 1rem; line-height: 1.65; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0; }
.legal li { position: relative; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.legal a { color: var(--blue); }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 2px 24px; border-top: 1px solid var(--stone); }
.legal dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 12px; }
.legal dd { padding-bottom: 12px; border-bottom: 1px solid var(--stone); }
.legal dl + p { margin-top: 16px; }
.legal__date { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); margin-top: 48px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 13px; text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--blue); }

/* =========================================================================
   Pages métier (générées par site-tools/metiers.mjs)
   ========================================================================= */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--stone); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--stone); }
.crumbs a:hover { color: var(--blue); border-bottom-color: var(--blue); }

.trade-hero { padding-bottom: 56px; }
.trade-hero .hero__in { gap: 40px; }
.trade-hero .hero__title { font-size: clamp(1.45rem, 6.2vw, 3rem); line-height: 1.02; }
.trade-hero .hero__title em { display: inline; }
.trade-hero .actions { margin-top: 26px; }

/* Journée type : liste « Aujourd'hui » de l'application, recréée */
.day { align-self: center; width: 100%; max-width: 420px; background: #fff; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--blue-wash); font-size: 14px; line-height: 1.3; }
.day__h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #EEE; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.day__h b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E3EDFB; color: var(--app-blue); letter-spacing: 0; }
.day ul { padding: 12px 12px 4px; background: #FBFAF8; }
.day .job strong { white-space: normal; }

/* Interventions : cartes + vocabulaire du métier */
.jobs, .gains { display: grid; gap: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { padding: 3px 8px; background: var(--paper-deep); font-family: var(--f-mono); font-size: 12px; color: var(--ink); }

/* Exemple de bon de travail */
.bon-sec { display: grid; gap: 36px; }
.bon-sec__text .lead { color: var(--ink-soft); max-width: 34em; }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.notice { margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--blue); background: var(--blue-wash); font-size: 0.92rem; line-height: 1.5; }

.bon {
  padding: 18px 12px;
  border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--blue-wash);
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(rgba(29, 25, 19, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 25, 19, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bon figcaption { margin-top: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); text-align: center; }
.bon__card { max-width: 520px; margin: 0 auto; padding: 16px; background: #fff; border-radius: 12px; border-left: 4px solid #7C5CD6; box-shadow: var(--ui-shadow); font-size: 14px; line-height: 1.4; color: #222; }
.bon__top { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; color: #8A857D; }
.st--check { background: #EDE7FB; color: #5B3FB0; }
.bon__t { margin: 6px 0 12px; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.bon__meta { display: grid; grid-template-columns: minmax(0, 7.6em) minmax(0, 1fr); border-top: 1px solid #EEE; font-size: 13px; }
.bon__meta dt, .bon__meta dd { padding: 6px 0; border-bottom: 1px solid #EEE; }
.bon__meta dt { padding-right: 10px; color: #77726A; }
.bon__h { display: flex; justify-content: space-between; margin: 16px 0 6px; color: #77726A; font-weight: 600; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.bon__zones li { margin-bottom: 6px; padding: 8px 10px; border-left: 3px solid var(--app-blue); background: #F5F8FD; font-size: 13px; }
.bon__zones b { display: block; font-weight: 600; }
.bon__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid #EEE; font-size: 13px; }
.bon__photos { display: flex; align-items: center; gap: 6px; }
.bon__photos i { width: 44px; height: 44px; border-radius: 6px; background: linear-gradient(135deg, #DCD6CA, #B9B3A6); }
.bon__photos i:nth-child(2) { background: linear-gradient(135deg, #C9D6E8, #93A9C6); }
.bon__photos i:nth-child(3) { background: linear-gradient(135deg, #E4DCCB, #C7B48F); }
.bon__photos span { margin-left: 4px; font-family: var(--f-mono); font-size: 12px; color: #77726A; }
.bon__foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #EEE; }
.bon__foot span { padding: 4px 10px; border-radius: 999px; background: #F1EEE8; font-size: 12.5px; font-weight: 500; }
.bon__foot .go { background: var(--app-green-wash); color: #17703D; font-weight: 600; }

/* Liens vers les autres métiers */
.others { margin-top: 56px; }
.others ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.others a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 500; }
.others a:hover { border-color: var(--blue); color: var(--blue); }

/* =========================================================================
   Accueil : Votre métier, FAQ
   ========================================================================= */

.trades { display: grid; gap: 12px; }
.trade {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  border: 1.5px solid var(--ink); background: var(--paper); text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.trade:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--blue); }
.trade__n { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.2rem; text-transform: uppercase; }
.trade__d { color: var(--ink-soft); font-size: 0.95rem; }
.trade__go { margin-top: auto; padding-top: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.pills a { color: inherit; text-decoration: none; }
.pills a:hover { text-decoration: underline; }

.faq { max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-family: var(--f-mono); font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: '–'; }
.faq h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.faq summary:hover h3 { color: var(--blue); }
.faq__a { max-width: 46em; padding: 0 0 20px; color: var(--ink-soft); }
.faq__a p + p { margin-top: 8px; }

/* Pied de page : liens métier */
.foot__trades { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; }
.foot__trades span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.foot__trades a { color: var(--ink); }
.foot__trades a[aria-current] { color: var(--blue); }

/* Page 404 */
.notfound { padding: 64px 0 96px; }
.notfound__code { font-family: var(--f-mono); font-size: 13px; color: var(--blue); letter-spacing: 0.12em; margin-bottom: 14px; }
.notfound .lead { max-width: 32em; margin-bottom: 28px; color: var(--ink-soft); }
.notfound ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }

@media (min-width: 720px) {
  .jobs { grid-template-columns: 1fr 1fr; }
  .trades { grid-template-columns: 1fr 1fr; }
  .foot__trades { grid-column: 1 / -1; }
  .bon { padding: 28px 24px; }
}
@media (min-width: 960px) {
  .bon-sec { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
  .gains { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) {
  .trade-hero .hero__in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 56px; min-height: 0; align-items: center; }
  .trade-hero .hero__text { padding-bottom: 0; }
  .trade-hero .hero__title { font-size: 3rem; }
  .trade-hero .hero__title em { white-space: normal; }
  .trades { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================================
   ≥ 720 px — tablette
   ========================================================================= */

@media (min-width: 720px) {
  :root { --gutter: 32px; }

  .crop--tl { left: 16px; } .crop--tr { right: 16px; }

  .sec { padding: 96px 0; }

  .constat { grid-template-columns: 1fr 300px; gap: 40px; align-items: stretch; }
  .impact { margin: 0; padding: 32px; justify-content: space-between; }

  .scene-box { padding: 28px 24px; }

  .show { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; padding: 48px 0; }
  .show--flip .show__media { order: 2; }
  .toast--float { right: -12px; }

  .mini { grid-template-columns: 1fr 1fr; }

  .cards { grid-template-columns: 1fr 1fr; }
  .card--lead { grid-column: 1 / -1; }

  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }

  .legal dl { grid-template-columns: 180px 1fr; }
  .legal dt { padding: 12px 0; border-bottom: 1px solid var(--stone); }
  .legal dd { padding: 12px 0; }
}

/* ≥ 860 px : la navigation apparaît */
@media (min-width: 860px) {
  .top__nav { display: flex; gap: 28px; margin-left: auto; margin-right: 12px; }
  .top__nav a { font-size: 0.9rem; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
  .top__nav a:hover { border-bottom-color: var(--blue); }
}

/* ≥ 960 px : le récit passe sur deux colonnes */
@media (min-width: 960px) {
  .beat { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }

  .motion .story {
    display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    column-gap: 56px; align-items: start;
  }
  .motion .story__stage {
    grid-column: 2; grid-row: 1;
    top: calc(var(--top-h) + 32px);
    height: calc(100vh - var(--top-h) - 72px); max-height: 720px;
  }
  .motion .story__beats { grid-column: 1; grid-row: 1; margin-top: 0; }
  .motion .beat { display: flex; align-items: center; min-height: 82vh; }
  .motion .beat:first-child { min-height: 60vh; align-items: flex-start; padding-top: 18vh; }
  .motion .beat:last-child { min-height: 70vh; }
  .stage__steps { padding: 14px 18px 12px; }
  .stage__steps::before { top: 16px; left: 48px; right: 48px; }
  .stage__steps li { flex: 1; font-size: 10px; letter-spacing: 0.06em; }
}

/* =========================================================================
   ≥ 1040 px — desktop
   ========================================================================= */

@media (min-width: 1040px) {
  :root { --gutter: 48px; --top-h: 84px; }

  .top__in { height: 76px; }
  .top__logo img { height: 34px; }

  .hero { padding-top: 64px; }
  .hero__in { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.4fr); gap: 24px; min-height: 640px; }
  .hero__title { font-size: 3.6rem; }
  .hero__title em { white-space: nowrap; }
  .hero__sub, .trail { max-width: 600px; }
  .hero__text { padding-bottom: 64px; }
  .hero__sign { margin-top: 56px; }
  .hero__visual { height: auto; margin: 0; }
  .phone--hero { width: 330px; left: -90px; margin: 0; top: auto; bottom: -150px; transform: rotate(-14deg); }

  .sec { padding: 120px 0; }
  .h-xl { margin-bottom: 40px; }

  .constat { grid-template-columns: 1fr 380px; column-gap: 56px; margin-bottom: 72px; }
  .impact p { font-size: 1.55rem; }

  .show { gap: 64px; padding: 56px 0; }
  .band-dark { margin: 48px 0; padding: 40px 0; }

  .mini { grid-template-columns: repeat(3, 1fr); }

  .cards { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
  .card--lead { grid-column: 1; grid-row: span 2; padding: 28px; }
  .card--lead .card__t { font-size: 1.4rem; }

  .cta__in { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
  .cta__box { padding: 32px; }
}
