/* ============================================================
   ARVELIO — pages outils (toile /impayes/ et suivantes)
   Prolonge css/main.css : mêmes tokens, même grain, même
   hiérarchie. Rien n'est redéfini ici de ce que main.css sait
   déjà faire (.container, .btn, .nav, .footer, .consent).
   ============================================================ */

/* ---------- Échelle typographique locale ---------- */
.h1, .h2, .h3 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
  color: var(--ink);
}
.h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 780; }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 760; letter-spacing: -0.032em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 720; letter-spacing: -0.026em; }

.tool-body { background: var(--paper); }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

/* ---------- Atmosphère : les mêmes nappes que la landing ----------
   Une page d'outil reste une page utilitaire : l'aurore y est deux fois
   plus discrète que dans le hero, juste assez pour que la page appartienne
   visiblement au même site. */
.atmo {
  position: absolute; inset: 0 0 auto; height: 620px;
  pointer-events: none; overflow: clip; z-index: 0;
}
.atmo__aurora { position: absolute; inset: 0; }
.atmo__aurora i { position: absolute; border-radius: 50%; filter: blur(90px); }
.atmo__aurora i:nth-child(1) {
  width: 700px; height: 480px; top: -240px; left: 50%; transform: translateX(-86%);
  background: radial-gradient(closest-side, rgba(90, 34, 241, .16), transparent);
}
.atmo__aurora i:nth-child(2) {
  width: 720px; height: 430px; top: -210px; left: 50%; transform: translateX(14%);
  background: radial-gradient(closest-side, rgba(167, 139, 250, .15), transparent);
}
.atmo__aurora i:nth-child(3) {
  width: 520px; height: 380px; top: -160px; left: 50%; transform: translateX(-34%);
  background: radial-gradient(closest-side, rgba(232, 93, 69, .04), transparent);
}
.atmo__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22, 21, 60, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 21, 60, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(#000, transparent 72%);
          mask-image: linear-gradient(#000, transparent 72%);
}
main { position: relative; }
main > *:not(.atmo) { position: relative; z-index: 1; }

/* ---------- Fil d'Ariane ---------- */
.crumb { padding-top: 104px; }
.crumb__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--ink-3);
}
.crumb__inner a { color: var(--ink-3); text-decoration: none; }
.crumb__inner a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumb__inner [aria-current] { color: var(--ink-2); font-weight: 500; }
.crumb__sep { color: var(--line); }

/* ---------- En-tête d'outil ---------- */
.toolhead { padding-block: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 36px); }
.toolhead__eyebrow {
  display: inline-block; margin-bottom: 20px;
  padding: 7px 16px;
  border: 1px solid rgba(22, 21, 60, .10); border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* Chorégraphie d'entrée, identique à celle du hero de la landing. */
@keyframes tool-in { from { opacity: 0; transform: translateY(16px); } }
.js .toolhead__inner > * { animation: tool-in .66s var(--ease-out) both; }
.js .toolhead__inner > .toolhead__eyebrow { animation-delay: .02s; }
.js .toolhead__inner > .toolhead__h1 { animation-delay: .09s; }
.js .toolhead__inner > .toolhead__lede { animation-delay: .17s; }
.js .toolhead__inner > .privacy { animation-delay: .24s; }
/* L'en-tete suit la grille de la page : c'est la mesure du texte qui est
   bridee, pas le conteneur — sinon le titre se centre et rompt l'alignement
   avec le fil d'Ariane et les cartes. */
.toolhead__h1 { margin-bottom: 18px; max-width: 22ch; }
.toolhead__lede {
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.62; color: var(--ink-2); text-wrap: pretty;
}

/* ---------- Bandeau de confiance ---------- */
.privacy {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px; padding: 8px 14px 8px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: .8rem; color: var(--ink-2);
}
.privacy svg { flex: none; color: var(--success); }

/* ---------- Le parcours d'un impayé ---------- */
.journey { padding-block: 8px clamp(20px, 3vw, 32px); }
.journey__list {
  display: flex; gap: 0; overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
@media (min-width: 900px) {
  .journey__list { -webkit-mask-image: none; mask-image: none; overflow: visible; }
}
.journey__list::-webkit-scrollbar { display: none; }
.jstep { position: relative; flex: 1 0 auto; min-width: 0; }
@media (min-width: 900px) { .jstep { flex: 1 1 0; } }
/* Le trait de liaison entre les étapes */
.jstep + .jstep::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 100%; height: 1px; background: var(--line); z-index: 0;
}
.jstep a {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 0 12px; text-align: center;
}
.jstep__n {
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-top: 6px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.jstep__l {
  font-size: .78rem; line-height: 1.35; color: var(--ink-3);
  max-width: 15ch; transition: color .2s;
}
.jstep a:hover .jstep__n { border-color: var(--accent-soft); color: var(--accent-deep); background: #fff; }
.jstep a:hover .jstep__l { color: var(--ink-2); }
.jstep a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.jstep.is-current .jstep__n {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 14px -2px rgba(90, 34, 241, .5);
  transform: scale(1.08);
}
.jstep.is-current .jstep__l { color: var(--ink); font-weight: 650; }

/* ---------- Atelier : formulaire + résultat ---------- */
.workbench {
  display: grid; gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
@media (min-width: 900px) {
  .workbench { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .workbench__out { position: sticky; top: 96px; }
}

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 32px);
}
.card__title { margin-bottom: 4px; }
.card__hint { font-size: .88rem; color: var(--ink-3); margin-bottom: 22px; line-height: 1.55; }

/* ---------- Champs ---------- */
.fields { display: grid; gap: 16px; }
.fields--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .fields--2 { grid-template-columns: 1fr 1fr; } }
.field--wide { grid-column: 1 / -1; }

.field { display: grid; gap: 7px; }
.field__label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field__note { font-size: .76rem; color: var(--ink-3); line-height: 1.5; }
.field__input,
.field__select,
.field__area {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-ui); transition: border-color .18s, box-shadow .18s, background .18s;
}
.field__area { min-height: 88px; resize: vertical; line-height: 1.55; }
.field__input:hover, .field__select:hover, .field__area:hover { border-color: #D6D3CB; }
.field__input:focus-visible,
.field__select:focus-visible,
.field__area:focus-visible {
  outline: none; background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236C6B76' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field__unit { position: relative; }
.field__unit .field__input { padding-right: 42px; }
.field__unit::after {
  content: attr(data-unit); position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); font-family: var(--font-mono);
  font-size: .82rem; color: var(--ink-3); pointer-events: none;
}

.radios { display: grid; gap: 9px; }
.radio {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--r-ui); background: var(--paper);
  cursor: pointer; transition: border-color .16s, background .16s, box-shadow .16s;
}
.radio:hover { border-color: #D6D3CB; background: #fff; }
.radio input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.radio:has(input:checked) {
  border-color: var(--accent); background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.radio:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--accent-wash); }
.radio__t { font-size: .9rem; font-weight: 600; display: block; }
.radio__d { font-size: .78rem; color: var(--ink-3); line-height: 1.5; display: block; margin-top: 2px; }

.field__error { font-size: .8rem; color: #B3261E; font-weight: 500; }

/* ---------- Résultat ---------- */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { from { --angle: 320deg; } to { --angle: 680deg; } }

.result {
  position: relative;
  background: linear-gradient(168deg, #fff, var(--accent-wash) 260%);
  border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-float); overflow: hidden;
  transition: box-shadow .4s var(--ease-out);
}
/* Dès qu'un résultat existe, la carte s'allume : bordure conique animée,
   comme la carte tarifaire de la landing. C'est le seul moment de la page
   qui appelle le regard — et c'est celui qui compte. */
.result.is-live {
  border-color: transparent;
  background:
    linear-gradient(168deg, #fff, var(--accent-wash) 260%) padding-box,
    conic-gradient(from var(--angle, 320deg),
      rgba(90, 34, 241, .85), rgba(167, 139, 250, .22) 30%,
      rgba(90, 34, 241, .12) 55%, rgba(167, 139, 250, .6) 80%,
      rgba(90, 34, 241, .85)) border-box;
  animation: spin-border 16s linear infinite;
  box-shadow: 0 2px 6px rgba(22, 21, 60, .06),
              0 34px 80px -26px rgba(90, 34, 241, .34);
}
@media (prefers-reduced-motion: reduce) {
  .result.is-live { animation: none; }
}
.result__head {
  padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 32px) 18px;
  border-bottom: 1px solid var(--line);
}
.result__kicker {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-deep);
}
.result__big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 6.5vw, 3.9rem); line-height: 1;
  letter-spacing: -0.04em; color: var(--ink); margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.result__sub { margin-top: 10px; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }

.result__rows { padding: 6px clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px); }
.rowline {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}
.rowline:last-child { border-bottom: 0; }
.rowline__k { color: var(--ink-2); }
.rowline__v { font-family: var(--font-mono); font-size: .9rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.rowline--total { padding-top: 16px; border-top: 1px solid var(--ink); border-bottom: 0; margin-top: 4px; }
.rowline--total .rowline__k { font-weight: 700; color: var(--ink); }
.rowline--total .rowline__v { font-size: 1.06rem; font-weight: 700; }

.result__empty {
  padding: clamp(30px, 5vw, 48px) clamp(20px, 3vw, 32px);
  text-align: center; color: var(--ink-3); font-size: .92rem; line-height: 1.6;
}
.result__empty svg { color: var(--line); margin-bottom: 14px; }

/* ---------- Note de loi ---------- */
.lawnote {
  margin-top: 20px; padding: 16px 18px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r-ui) var(--r-ui) 0;
  font-size: .84rem; color: var(--ink-2); line-height: 1.62;
}
.lawnote strong { color: var(--ink); }
.lawnote__ref {
  display: block; margin-top: 8px; font-family: var(--font-mono);
  font-size: .74rem; color: var(--ink-3);
}

.warnnote {
  margin-top: 20px; padding: 16px 18px;
  background: var(--warn-wash); border: 1px solid #EBD9BC;
  border-radius: var(--r-ui); font-size: .84rem;
  color: var(--warn-deep); line-height: 1.62;
}

/* ---------- Lettre générée ---------- */
.letter {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-float);
  overflow: hidden;
}
.letter__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 13px 18px; background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.letter__label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.letter__actions { display: flex; gap: 8px; }
.minibtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: .8rem; font-weight: 600; color: var(--ink-2);
  transition: border-color .16s, color .16s, background .16s;
}
.minibtn:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-wash); }
.minibtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.minibtn.is-done { border-color: var(--success); color: var(--success-deep); background: var(--success-wash); }

.letter__sheet {
  position: relative;
  padding: clamp(22px, 3.4vw, 40px);
  font-size: .9rem; line-height: 1.78; color: var(--ink);
  white-space: pre-wrap; word-wrap: break-word;
  max-height: 62vh; overflow-y: auto;
  font-family: var(--font-body); font-variant-numeric: tabular-nums;
  /* Une feuille, pas un <textarea> : marge d'impression suggérée à gauche
     et ombre de pli en haut, pour que la lettre se lise comme un document. */
  background:
    linear-gradient(180deg, rgba(22, 21, 60, .035), transparent 22px),
    linear-gradient(90deg, transparent 0 26px, rgba(232, 93, 69, .10) 26px 27px, transparent 27px);
}
@media (max-width: 559px) {
  .letter__sheet { background-image: linear-gradient(180deg, rgba(22, 21, 60, .035), transparent 22px); }
}
.letter__sheet:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Contenu éditorial sous l'outil ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 0; margin-bottom: 16px; }
.prose h3 { margin-top: 34px; margin-bottom: 10px; }
.prose p { margin-bottom: 16px; font-size: 1rem; line-height: 1.72; color: var(--ink-2); }
.prose ul { margin: 0 0 16px; display: grid; gap: 10px; }
.prose li {
  position: relative; padding-left: 24px;
  font-size: 1rem; line-height: 1.68; color: var(--ink-2);
}
.prose li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft);
}
.prose strong { color: var(--ink); }
/* Listes numérotées : le compteur reprend la mono, comme les valeurs chiffrées. */
.numlist { counter-reset: n; display: grid; gap: 11px; margin: 0 0 20px; }
.numlist li {
  counter-increment: n; position: relative; padding-left: 34px;
  font-size: 1rem; line-height: 1.68; color: var(--ink-2);
}
.numlist li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: .18em;
  font-family: var(--font-mono); font-size: .74rem; color: var(--accent-deep);
}
.numlist li::marker { content: none; }

/* Exemple de document produit, rendu en dur dans la page : ce que les
   moteurs — génératifs compris — lisent sans exécuter le moindre script. */
.sample {
  margin: 18px 0 24px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--accent-soft);
  border-radius: 0 var(--r-ui) var(--r-ui) 0;
  font-size: .89rem; line-height: 1.72; color: var(--ink-2);
  white-space: pre-wrap;
}
.sample__t {
  display: block; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Calendrier du CRA ---------- */
.cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
}
.cal__x { aspect-ratio: 1; }
.cal__d {
  aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font-size: .82rem; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.cal__d:not([disabled]):hover { border-color: var(--accent-soft); transform: translateY(-1px); }
.cal__d:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal__d[disabled] { opacity: .45; cursor: default; }
.cal__d.is-we { background: transparent; border-style: dashed; }
.cal__d.is-ferie { background: var(--warn-wash); border-color: #EBD9BC; color: var(--warn-deep); }
.cal__d.is-on {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px -2px rgba(90, 34, 241, .5);
}

/* ---------- Tableau de référence ---------- */
.ttable {
  width: 100%; border-collapse: collapse; margin: 6px 0 12px;
  font-size: .92rem; font-variant-numeric: tabular-nums;
}
.ttable th, .ttable td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ttable th {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
  border-bottom-color: var(--ink);
}
.ttable td { color: var(--ink-2); }
.ttable tbody tr:first-child td { background: var(--accent-wash); color: var(--ink); }
.ttable tbody tr:first-child td:first-child { border-radius: 8px 0 0 8px; }
.ttable tbody tr:first-child td:last-child { border-radius: 0 8px 8px 0; }
.ttable__note { font-size: .84rem; color: var(--ink-3); margin-bottom: 24px; }

.faqlist { display: grid; gap: 12px; max-width: 68ch; }
.faqitem {
  border: 1px solid var(--line); border-radius: var(--r-ui);
  background: #fff; overflow: hidden;
}
.faqitem summary {
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: .98rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faqitem summary::-webkit-details-marker { display: none; }
.faqitem summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--ink-3);
  font-size: 1.15rem; flex: none; transition: transform .2s var(--ease-out);
}
.faqitem[open] summary::after { transform: rotate(45deg); }
.faqitem summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faqitem p { padding: 0 20px 18px; font-size: .93rem; line-height: 1.68; color: var(--ink-2); }

/* ---------- Maillage : l'étape suivante ---------- */
.nextsteps { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 700px) { .nextsteps { grid-template-columns: 1fr 1fr; } }
.nextstep {
  display: grid; gap: 5px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s;
}
.nextstep:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.nextstep:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nextstep__kicker {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-deep);
}
.nextstep__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nextstep__lede { font-size: .84rem; color: var(--ink-3); }

/* ---------- Grille d'outils (page pilier) ---------- */
.toolgrid { display: grid; gap: 16px; }
@media (min-width: 640px) { .toolgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .toolgrid { grid-template-columns: repeat(3, 1fr); } }
.toolcard {
  display: grid; align-content: start; gap: 9px;
  padding: 24px 24px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s;
}
.toolcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--accent-soft); }
.toolcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.toolcard__title {
  font-family: var(--font-display); font-weight: 720;
  font-size: 1.14rem; letter-spacing: -0.024em; color: var(--ink);
}
.toolcard__lede { font-size: .89rem; line-height: 1.6; color: var(--ink-2); }
.toolcard__go {
  margin-top: 6px; font-size: .82rem; font-weight: 650; color: var(--accent-deep);
}
.toolcard__go::after { content: " →"; transition: opacity .2s; }

/* ---------- CTA de fin (bande sombre) ---------- */
.toolcta { background: var(--night); position: relative; overflow: hidden; }
.toolcta::before {
  content: ""; position: absolute; inset: -40% 20% auto;
  height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(90, 34, 241, .38), transparent 72%);
  filter: blur(10px);
}
.toolcta__inner { position: relative; max-width: 58ch; text-align: center; margin-inline: auto; }
.toolcta__kicker {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-soft); margin-bottom: 16px;
}
.toolcta .h2 { color: var(--moon); }
.toolcta__lede { margin-top: 18px; font-size: 1rem; line-height: 1.68; color: var(--moon-2); }
.toolcta__fine { margin-top: 16px; font-size: .8rem; color: var(--moon-2); }

/* ---------- Candidature depuis une page outil ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.toolform {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 30px;
}
.toolform__input {
  flex: 1 1 260px; max-width: 340px;
  padding: 14px 18px;
  font: inherit; font-size: .95rem; color: var(--moon);
  background: var(--night-2); border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.toolform__input::placeholder { color: var(--moon-2); }
.toolform__input:hover { border-color: rgba(255, 255, 255, .18); }
.toolform__input:focus-visible {
  outline: none; background: var(--night-3);
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(90, 34, 241, .35);
}
.toolform__input[aria-invalid="true"] { border-color: #F0806E; }
.toolform .btn { flex: 0 0 auto; }
.toolform .btn.is-loading { opacity: .7; cursor: progress; }
.toolform__err {
  margin-top: 12px; font-size: .85rem; color: #F0A093; font-weight: 500;
}
.toolform__err a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.toolform__ok {
  margin-top: 28px; padding: 20px 24px;
  border: 1px solid rgba(30, 158, 106, .4); border-radius: var(--r-card);
  background: rgba(30, 158, 106, .12);
  font-size: .95rem; line-height: 1.6; color: var(--moon);
}
.toolform__ok strong { color: #fff; }
.toolform__ok:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
@media (max-width: 559px) {
  .toolform { flex-direction: column; align-items: stretch; }
  .toolform__input { max-width: none; }
}

/* ---------- Impression : la lettre seule ---------- */
/* ---------- Impression : le document produit, et rien d'autre ----------
   ATTENTION : ne jamais masquer .section--tight ici. C'est le conteneur de
   l'atelier, donc de la lettre elle-même — le faire imprimait une page
   blanche sur les onze outils dotés d'un bouton « Imprimer ». */
@media print {
  .nav, .footer, .consent, .crumb, .journey, .toolcta, .nextsteps,
  .atmo, .grain, .toolhead, .privacy, .prose, .faqlist,
  .letter__bar, .workbench__in, .result, .lawnote, .warnnote,
  .field__error { display: none !important; }

  .tool-body { background: #fff; }
  .section, .section--tight { padding-block: 0 !important; }
  .container { max-width: none !important; padding-inline: 0 !important; }
  .workbench { display: block !important; }
  .workbench__out { position: static !important; }
  .letter, .card { border: 0; box-shadow: none; border-radius: 0; }
  .letter__sheet {
    max-height: none; overflow: visible;
    font-size: 11.5pt; padding: 0; background: none;
  }
}

/* ---------- Apparitions au défilement ----------
   Réservé aux blocs de navigation (cartes d'outils, étape suivante).
   Jamais sur le texte éditorial ni la FAQ : sur des pages dont le métier
   est d'être indexées, aucun contenu ne doit dépendre d'un défilement
   pour exister. */
.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Respect des préférences ---------- */
@media (prefers-reduced-motion: reduce) {
  .nextstep, .toolcard { transition: none; }
  .nextstep:hover, .toolcard:hover { transform: none; }
  .js .toolhead__inner > * { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
