  /* =====================================================================
     Design system Jipup, repris de fr/clean.html (lui-même repris de
     apps/crm/styles/globals.css). Canvas blanc, hairlines 1px, radius 6px,
     l’émeraude comme SEUL évènement chromatique : toujours en aplat, texte
     quasi-noir dessus, jamais de vert sur blanc en texte.
  ===================================================================== */
  :root {
    --canvas: #ffffff;
    --soft: #fafafa;
    --night: #1c1c1c;
    --night-soft: #202020;

    --hairline: #dfdfdf;
    --cool: #ededed;
    --cool-2: #d4d4d4;

    --ink: #171717;
    --mute: #707070;
    --mute-2: #9a9a9a;
    --faint: #b2b2b2;

    --primary: #3ecf8e;
    --primary-deep: #24b47e;
    --on-primary: #171717;
    --on-dark: #ffffff;

    --bad: #d1383d;
    --warn: #8a6a00;
    --good: #157f5b;

    --sh-1: 0 1px 3px rgba(0,0,0,.06);
    --sh-2: 0 8px 24px rgba(0,0,0,.08);

    --prose: 42rem;
    --wide: 60rem;
    --pad: clamp(1.25rem, 5vw, 2.5rem);

    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
  p { margin: 0; }
  a { color: inherit; }

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

  /* ---------- trame ------------------------------------------------- */
  .band { padding: clamp(3rem, 7vw, 5rem) var(--pad); }
  .band--soft { background: var(--soft); border-block: 1px solid var(--hairline); }
  .band--tight { padding-block: clamp(2rem, 4vw, 3rem); }

  .prose { max-width: var(--prose); margin-inline: auto; display: flex; flex-direction: column; gap: 1.125rem; }
  .wide  { max-width: var(--wide);  margin-inline: auto; display: flex; flex-direction: column; gap: 1.5rem; }

  .eyebrow {
    font-family: var(--mono); font-size: .6875rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
  }

  .inlink { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--cool-2); }
  .inlink:hover { text-decoration-color: var(--ink); }
  .lede { font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); line-height: 1.55; color: var(--mute); max-width: 36rem; }
  .h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.18; }
  .h3 { font-size: 1.0625rem; }

  /* ---------- masthead ---------------------------------------------- */
  .masthead {
    padding: 1.25rem var(--pad); border-bottom: 1px solid var(--hairline);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    position: sticky; top: 0; background: rgba(255,255,255,.88);
    backdrop-filter: blur(8px); z-index: 20;
  }
  .wordmark { text-decoration: none; font-weight: 500; letter-spacing: -.02em; font-size: 1.0625rem; }
  .masthead__meta { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

  /* ---------- hero --------------------------------------------------- */
  /* Deux colonnes calées sur la largeur du calculateur (--wide) : le texte
     s’aligne sur le bord gauche de la section suivante, et la place à droite
     sert à montrer ce que fait l’agent plutôt qu’à rester vide. */
  .hero { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
  .hero__grid {
    max-width: var(--wide); margin-inline: auto;
    display: grid; grid-template-columns: 1.04fr .96fr;
    gap: clamp(2rem, 5vw, 3.25rem); align-items: center;
  }
  .hero__col { display: flex; flex-direction: column; gap: 1.125rem; align-items: flex-start; }
  .hero__h1 { font-size: clamp(1.875rem, 4.4vw, 2.625rem); line-height: 1.1; }
  .hero .lede { max-width: 30rem; }
  @media (max-width: 62rem) {
    .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .hero .lede { max-width: 36rem; }
  }

  /* ---------- illustration : un passage de l’agent -------------------- */
  .flow { border: 1px solid var(--hairline); border-radius: 12px; background: var(--canvas); box-shadow: var(--sh-2); overflow: hidden; }
  .flow__bar { display: flex; align-items: center; gap: .625rem; padding: .625rem .875rem; border-bottom: 1px solid var(--cool); background: var(--soft); }
  .flow__title { font-family: var(--mono); font-size: .75rem; color: var(--mute); }
  .flow__badge {
    margin-left: auto; font-family: var(--mono); font-size: .625rem; letter-spacing: .06em;
    text-transform: uppercase; background: var(--primary); color: var(--on-primary);
    border-radius: 9999px; padding: .1875rem .5625rem;
  }
  .flow__who { padding: .875rem .9375rem; border-bottom: 1px solid var(--cool); font-size: .875rem; line-height: 1.5; }
  .flow__who b { font-weight: 500; }
  .flow__who .was { font-family: var(--mono); font-size: .75rem; color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
  .flow__steps { list-style: none; margin: 0; padding: 0; }
  .flow__step { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; padding: .8125rem .9375rem; border-bottom: 1px solid var(--cool); }
  .flow__step:last-child { border-bottom: 0; }
  .flow__tick {
    width: 1.25rem; height: 1.25rem; border-radius: 50%; margin-top: .1875rem;
    background: var(--primary); color: var(--on-primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: .625rem; flex: none;
  }
  .flow__k { display: block; font-size: .875rem; font-weight: 500; line-height: 1.4; }
  .flow__v { display: block; margin-top: .1875rem; font-family: var(--mono); font-size: .75rem; line-height: 1.65; color: var(--mute); overflow-wrap: anywhere; }
  .flow__v em { font-style: normal; color: var(--ink); }
  .flow__foot {
    padding: .75rem .9375rem; border-top: 1px solid var(--cool); background: var(--soft);
    font-size: .75rem; line-height: 1.5; color: var(--mute-2);
  }
  .crmrow { display: inline-flex; align-items: center; gap: .625rem; }
  .crmrow__tiles { display: inline-flex; gap: .375rem; }
  .tile {
    width: 2.5rem; height: 2.5rem; border-radius: 8px; background: var(--canvas);
    border: 1px solid var(--hairline); box-shadow: var(--sh-1);
    display: flex; align-items: center; justify-content: center;
    padding: .3125rem; flex: none;
  }
  .tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; display: block; }
  .tile--sm { width: 1.75rem; height: 1.75rem; border-radius: 6px; padding: .1875rem; }
  .tile--sm img { border-radius: 4px; }
  .crmrow__note { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-2); }

  /* ---------- calculateur -------------------------------------------- */
  .calc {
    border: 1px solid var(--hairline); border-radius: 12px; background: var(--canvas);
    box-shadow: var(--sh-2); overflow: hidden;
  }
  .calc__bar {
    display: flex; align-items: center; gap: .625rem; flex-wrap: wrap;
    padding: .75rem .9375rem; border-bottom: 1px solid var(--cool); background: var(--soft);
  }
  .calc__title { font-family: var(--mono); font-size: .75rem; color: var(--mute); }
  .calc__live {
    margin-left: auto; font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--mute-2);
  }
  .calc__body { padding: 1.25rem 1.125rem 1.375rem; display: flex; flex-direction: column; gap: 1.625rem; }

  .fset { display: flex; flex-direction: column; gap: .875rem; }
  .fset__hd {
    display: flex; align-items: baseline; gap: .625rem; flex-wrap: wrap;
    padding-bottom: .5rem; border-bottom: 1px solid var(--cool);
  }
  .fset__label {
    font-family: var(--mono); font-size: .625rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--mute-2);
  }
  .fset__note { font-size: .8125rem; color: var(--mute); }

  /* auto-fill (et non auto-fit) : les groupes de 3 et de 4 champs gardent
     la même largeur de colonne, la grille reste alignée d’un groupe à l’autre. */
  .steppers { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.125rem 1rem; }
  .stepper { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
  .stepper > label { font-size: .8125rem; line-height: 1.35; color: var(--ink); }
  .stepper__ctl {
    display: flex; align-items: stretch;
    border: 1px solid var(--hairline); border-radius: 6px; background: var(--canvas); overflow: hidden;
  }
  .stepper__ctl button {
    width: 2.25rem; flex: none; border: 0; background: var(--canvas); color: var(--mute);
    font-family: var(--mono); font-size: .9375rem; line-height: 1; cursor: pointer;
  }
  .stepper__ctl button:hover { background: var(--soft); color: var(--ink); }
  .stepper__ctl input {
    flex: 1; min-width: 0; border: 0; border-inline: 1px solid var(--hairline);
    padding: .5rem .625rem; background: var(--canvas); color: var(--ink);
    font-family: var(--mono); font-size: .875rem; font-variant-numeric: tabular-nums; text-align: right;
  }
  .stepper__ctl input:focus { outline: none; background: rgba(62,207,142,.06); }
  .stepper__ctl input::placeholder { color: var(--faint); font-size: .75rem; }
  .stepper__unit {
    display: flex; align-items: center; padding-inline: .625rem; flex: none;
    font-family: var(--mono); font-size: .75rem; color: var(--mute-2); background: var(--soft);
    border-left: 1px solid var(--hairline);
  }
  .stepper__hint { font-size: .75rem; line-height: 1.45; color: var(--mute-2); }
  .stepper--opt .stepper__ctl { border-style: dashed; }

  .results {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1px; background: var(--hairline); border: 1px solid var(--hairline);
    border-radius: 10px; overflow: hidden;
  }
  .res { background: var(--canvas); padding: 1rem 1.125rem 1.125rem; display: flex; flex-direction: column; gap: .1875rem; }
  .res__l { font-size: .8125rem; color: var(--mute); }
  .res__v {
    font-family: var(--mono); font-size: clamp(1.375rem, 3.4vw, 1.625rem); font-weight: 500;
    letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15;
  }
  .res__n { font-size: .75rem; line-height: 1.45; color: var(--mute-2); }
  .res--hero { background: var(--primary); }
  .res--hero .res__l { color: var(--on-primary); opacity: .75; }
  .res--hero .res__v { color: var(--on-primary); }
  .res--hero .res__n { color: var(--on-primary); opacity: .7; }
  .res--roi { background: var(--night); }
  .res--roi .res__l, .res--roi .res__n { color: #a8a8a8; }
  .res--roi .res__v { color: var(--on-dark); }
  .res.is-off { display: none; }

  .how { border-top: 1px solid var(--cool); padding-top: 1.125rem; }
  .how > summary {
    cursor: pointer; list-style: none; font-family: var(--mono); font-size: .6875rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
  }
  .how > summary::-webkit-details-marker { display: none; }
  .how > summary::before { content: "+ "; color: var(--faint); }
  .how[open] > summary::before { content: "− "; }
  .how p { font-size: .8125rem; line-height: 1.7; color: var(--mute); margin-top: .75rem; }
  .how b { font-weight: 500; color: var(--ink); }
  .how .how__caveat { border-left: 2px solid var(--hairline); padding-left: .75rem; }

  .calc__foot {
    padding: .8125rem .9375rem; border-top: 1px solid var(--cool); background: var(--soft);
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  }
  .btn-ghost {
    background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); border-radius: 6px;
    padding: .4375rem .875rem; font-size: .8125rem; font-family: inherit; cursor: pointer;
  }
  .btn-ghost:hover { border-color: var(--cool-2); }
  .calc__hint { font-family: var(--mono); font-size: .6875rem; color: var(--mute-2); margin-left: auto; }

  /* ---------- bandeau de preuve --------------------------------------- */
  /* Les logos viennent du bandeau de la landing (index.html). Le libellé qui
     les accompagne est celui de la landing, à la lettre : il ne revendique
     personne comme client. La phrase sur les taux, elle, parle des chiffres. */
  .proof {
    display: flex; flex-direction: column; align-items: center; gap: .9375rem;
    text-align: center; padding-top: 1.75rem; border-top: 1px solid var(--hairline);
  }
  .proof__claim { font-size: .9375rem; line-height: 1.55; color: var(--ink); max-width: 40rem; text-wrap: balance; }
  .proof__claim b { font-weight: 500; }
  .proof__logos { display: flex; align-items: center; justify-content: center; gap: 1.25rem 2.25rem; flex-wrap: wrap; }
  .proof__logos img {
    display: block; width: auto; height: auto; max-height: 1.5rem;
    filter: grayscale(1) contrast(1.08); opacity: .7;
  }
  .proof__note {
    font-family: var(--mono); font-size: .6875rem; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--mute-2);
  }

  /* ---------- les passes de l’agent ------------------------------------ */
  .steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
  .steps > li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; padding: 1.5rem 0; border-top: 1px solid var(--hairline); }
  .steps > li:last-child { border-bottom: 1px solid var(--hairline); }
  .steps__n { font-family: var(--mono); font-size: .8125rem; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: .15rem; }
  .steps h3 { margin-bottom: .375rem; }
  .steps p { color: var(--mute); }
  .steps__detail {
    margin-top: .625rem; padding: .75rem .875rem; background: var(--soft);
    border: 1px solid var(--cool); border-radius: 6px;
    font-family: var(--mono); font-size: .78125rem; line-height: 1.8; color: var(--mute);
    overflow-x: auto;
  }
  .steps__detail b { font-weight: 500; color: var(--ink); }
  .steps__detail .was { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
  @media (max-width: 30rem) { .steps > li { grid-template-columns: 1fr; gap: .5rem; } }

  /* ---------- maquette d’écran ----------------------------------------- */
  .shot { display: flex; flex-direction: column; gap: .75rem; }
  .shot__cap { font-size: .8125rem; color: var(--mute); display: flex; gap: .5rem; align-items: baseline; }
  .shot__cap b { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 500; flex: none; }
  .ui { border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--canvas); box-shadow: var(--sh-1); }
  .ui__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 1.125rem; border-bottom: 1px solid var(--cool); background: var(--soft); }
  .ui__title { font-size: .9375rem; font-weight: 500; }
  .ui__hint { font-family: var(--mono); font-size: .6875rem; color: var(--mute-2); }
  .ui__body { padding: 1.125rem; display: flex; flex-direction: column; gap: 1rem; }
  .field { display: flex; flex-direction: column; gap: .4375rem; }
  .field__label { font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-2); }
  .input {
    border: 1px solid var(--hairline); border-radius: 6px; padding: .5rem .6875rem;
    font-size: .8125rem; color: var(--ink); background: var(--canvas);
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  }
  .input small { font-family: var(--mono); font-size: .6875rem; color: var(--mute-2); flex: none; }
  .input--body { display: block; line-height: 1.6; }
  .input--body b { font-weight: 500; }

  /* ---------- garde-fous ------------------------------------------------ */
  .guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
  .guarantees > div { background: var(--canvas); padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: .375rem; }
  .guarantees h3 { font-size: .9375rem; }
  .guarantees p { font-size: .875rem; line-height: 1.55; color: var(--mute); }

  /* ---------- CTA ------------------------------------------------------- */
  .cta { background: var(--night); color: var(--on-dark); }
  .cta .eyebrow { color: var(--faint); }
  .cta p { color: #c9c9c9; }
  .ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; }
  .ledger > div { background: var(--night-soft); padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: .25rem; }
  .ledger .figure { font-family: var(--mono); font-size: 1.375rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--on-dark); }
  .ledger .caption { font-size: .8125rem; line-height: 1.45; color: #a8a8a8; }
  .actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: .625rem 1.125rem; border-radius: 6px; }
  .btn:hover { background: var(--primary-deep); }
  .btn--ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,.28); }
  .btn--ghost:hover { background: rgba(255,255,255,.08); }
  .actions__note { flex-basis: 100%; }
  .aside-note { font-size: .875rem; color: #a8a8a8; }
  .crms { display: flex; flex-direction: column; gap: .875rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
  .crms__label { font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
  .crms__list { display: flex; gap: 1.75rem; flex-wrap: wrap; }
  .crms__item { display: inline-flex; align-items: center; gap: .625rem; font-size: .9375rem; color: var(--on-dark); }

  footer { padding: 1.75rem var(--pad) 3rem; border-top: 1px solid var(--hairline); }
  .foot { max-width: var(--wide); margin-inline: auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8125rem; color: var(--mute); }
  footer a { text-decoration: none; }
  footer a:hover { text-decoration: underline; }

  /* ---------- reveal ---------------------------------------------------- */
  .rv { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
  .rv.is-in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
    .rv { opacity: 1; transform: none; }
  }

  @media print {
    .masthead { position: static; background: var(--canvas); }
    .cta { background: var(--canvas); color: var(--ink); }
    .cta p, .cta .aside-note, .ledger .caption { color: var(--mute); }
    .ledger > div { background: var(--canvas); }
    .ledger .figure { color: var(--ink); }
    .btn--ghost { color: var(--ink); border-color: var(--hairline); }
    .res--roi { background: var(--canvas); }
    .res--roi .res__v { color: var(--ink); }
    .res--roi .res__l, .res--roi .res__n { color: var(--mute); }
    .calc { box-shadow: none; break-inside: avoid; }
    .calc__foot { display: none; }
    .stepper__ctl button { display: none; }
    .rv { opacity: 1; transform: none; }
    .band { padding-block: 2rem; }
  }
