/* EasyComptaMatch
   Couleurs relevées sur le logo vectoriel : bleu nuit #13293D, vert #12937A, orange #E67E22.
   Typographies : Outfit (celle du logo), IBM Plex Sans (texte), IBM Plex Mono (montants). */

:root {
  color-scheme: light;
  --brand-navy: #13293D;
  --brand-green: #12937A;
  --brand-orange: #E67E22;

  --ground: #F1F5F3;
  --surface: #FFFFFF;
  --surface-2: #E7EEEA;
  --ink: #13293D;
  --ink-2: #2E4356;
  --muted: #52636E;
  --rule: #D3DDD8;
  --field-border: #7D8E98;
  --field-bg: #FBFCFB;
  --green: #0F8069;
  --orange: #B35A0E;
  --bar-green: #12937A;
  --bar-orange: #E67E22;
  --flag-bg: #FCF1E6;
  --pick-bg: #E4F2EE;
  --btn-bg: #0F8069;
  --btn-bg-hover: #0B6B58;
  --btn-fg: #FFFFFF;
  --band: #13293D;
  --band-ink: #FFFFFF;
  --band-muted: #B7C6D1;
  --band-rule: #2B4660;
  --band-accent: #3CC4A4;
  --focus: #0F8069;
  --todo-bg: #FBE3CC;
  --todo-ink: #7A3B06;
  --gauge-below: #DCE5E0;
  --gauge-above: #F2C29A;
  --on-tone: #FFFFFF;
  --shadow: 0 1px 2px rgba(19, 41, 61, .06), 0 14px 34px -18px rgba(19, 41, 61, .28);

  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.75rem, 1.25rem + 1.8vw, 2.375rem);
  --fs-h1: clamp(2rem, 1.2rem + 3.6vw, 3.25rem);

  --radius: 3px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(3.5rem, 8vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0B1A26;
    --surface: #0F2231;
    --surface-2: #163046;
    --ink: #EEF3F1;
    --ink-2: #CAD6DE;
    --muted: #9AB0BD;
    --rule: #24405A;
    --field-border: #5E7C92;
    --field-bg: #0B1A26;
    --green: #3CC4A4;
    --orange: #F0913A;
    --flag-bg: #2B2418;
    --pick-bg: #123A38;
    --btn-bg: #3CC4A4;
    --btn-bg-hover: #62D4B8;
    --btn-fg: #0B1A26;
    --band: #13293D;
    --band-rule: #2B4660;
    --focus: #3CC4A4;
    --todo-bg: #4A3015;
    --todo-ink: #FAD2A6;
    --gauge-below: #24405A;
    --gauge-above: #6B4424;
    --on-tone: #0B1A26;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 38px -18px rgba(0, 0, 0, .65);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0B1A26;
  --surface: #0F2231;
  --surface-2: #163046;
  --ink: #EEF3F1;
  --ink-2: #CAD6DE;
  --muted: #9AB0BD;
  --rule: #24405A;
  --field-border: #5E7C92;
  --field-bg: #0B1A26;
  --green: #3CC4A4;
  --orange: #F0913A;
  --flag-bg: #2B2418;
  --pick-bg: #123A38;
  --btn-bg: #3CC4A4;
  --btn-bg-hover: #62D4B8;
  --btn-fg: #0B1A26;
  --band: #13293D;
  --band-rule: #2B4660;
  --focus: #3CC4A4;
  --todo-bg: #4A3015;
  --todo-ink: #FAD2A6;
  --gauge-below: #24405A;
  --gauge-above: #6B4424;
  --on-tone: #0B1A26;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 38px -18px rgba(0, 0, 0, .65);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.nowrap { white-space: nowrap; }
.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 36em; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75rem 1.3rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.15;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(15, 128, 105, .7); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--sm { min-height: 40px; padding: .45rem .95rem; font-size: .9375rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.link-arrow {
  font-weight: 600; color: var(--green); text-decoration: none;
  display: inline-flex; gap: .35em; align-items: baseline;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Marqueurs issus du logo : les barres du compte en T ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; color: var(--muted); font-size: var(--fs-sm); }
.checks li { display: flex; align-items: baseline; gap: .6rem; }
.checks li::before { content: ""; flex: none; width: 14px; height: 5px; background: var(--bar-green); transform: translateY(-.2em); }
.checks--col { flex-direction: column; color: var(--ink-2); font-size: var(--fs-base); }

/* ---------- Bandeau et en-tête ---------- */
.topstrip { background: var(--band); color: var(--band-ink); font-size: var(--fs-sm); }
.topstrip .wrap { display: flex; justify-content: center; padding-block: .55rem; text-align: center; }
.topstrip a { text-decoration: none; }
.topstrip a:hover .topstrip__cta { text-decoration: underline; }
.topstrip__cta { color: var(--band-accent); font-weight: 600; white-space: nowrap; }
.topstrip__short { display: none; }
@media (max-width: 560px) {
  .topstrip { font-size: var(--fs-xs); }
  .topstrip__long { display: none; }
  .topstrip__short { display: inline; }
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-block: 1.1rem;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; flex: none; }
.logo .mark { width: 33px; height: 30px; flex: none; }
.logo .wordmark { width: 161px; height: 18px; flex: none; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav .btn { white-space: nowrap; }
.nav__link { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav__link:hover { color: var(--ink); }
@media (max-width: 880px) { .nav__link { display: none; } }
@media (max-width: 420px) {
  .site-header .wrap { gap: .75rem; padding-block: .9rem; }
  .logo .mark { width: 27px; height: 24px; }
  .logo .wordmark { width: 125px; height: 14px; }
  .logo { gap: .45rem; }
  .nav .btn--sm { padding-inline: .7rem; font-size: .875rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); scroll-margin-top: 1rem; }
.section > .wrap { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }
.section--surface { background: var(--surface); border-block: 1px solid var(--rule); }
.section__head { display: flex; flex-direction: column; gap: .9rem; max-width: 46rem; }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem);
}
.hero__text { display: flex; flex-direction: column; gap: 1.3rem; align-items: flex-start; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; }
.hero__alt { font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: baseline; }
.hero--home .wrap { grid-template-areas: "title sim" "text sim"; row-gap: 1.3rem; }
.hero--home .hero__title { grid-area: title; align-self: end; }
.hero--home .hero__text { grid-area: text; align-self: start; }
.hero--home .sim { grid-area: sim; }
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero--home .wrap { grid-template-areas: "title" "text" "sim"; }
}
@media (max-width: 700px) {
  .hero--home .wrap { grid-template-areas: "title" "sim" "text"; row-gap: 1.5rem; padding-top: 1.5rem; }
}
@media (max-width: 480px) { .hero__actions .btn { width: 100%; } }
@media (max-width: 560px) { .hero .lead { font-size: 1.125rem; } }

/* ---------- Simulateur : une question à la fois, sur un compte en T ---------- */
.sim {
  width: 100%; max-width: 580px; justify-self: end; scroll-margin-top: 1rem;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--ink);
  border-radius: 4px; box-shadow: var(--shadow);
}
@media (max-width: 1024px) { .sim { justify-self: start; } }
.sim__top { display: flex; flex-direction: column; gap: .2rem; padding: 1.2rem 1.5rem 0; }
.sim__title { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.sim__sub { font-size: var(--fs-sm); color: var(--muted); }
.sim__progress { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.sim__progress li { height: 4px; border-radius: 1px; background: var(--rule); transition: background-color .25s ease; }
.sim__progress li.is-current { background: linear-gradient(90deg, var(--bar-green) 0 35%, var(--rule) 35%); }
.sim__progress li.is-on, .sim.is-done .sim__progress li { background: var(--bar-green); }
.sim__form { display: flex; flex-direction: column; min-height: 20.5rem; padding: 1.2rem 1.5rem 1.2rem; }
.sim__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.sim__step + .sim__step { margin-top: 1.5rem; }
.js .sim__step { margin-top: 0; }
.js .sim__step:not(.is-current) { display: none; }
.sim__q {
  display: flex; flex-direction: column; gap: .2rem; padding: 0; margin-bottom: .9rem;
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.sim__q:focus { outline: none; }
.sim__n { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--green); }
.sim__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sim__opt { position: relative; display: flex; cursor: pointer; }
.sim__opt input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.sim__opt span {
  flex: 1; display: flex; align-items: center; gap: .65rem; min-height: 50px; padding: .6rem .9rem;
  border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--field-bg);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.sim__opt span::before { content: ""; flex: none; width: 14px; height: 5px; background: var(--rule); transition: background-color .15s ease; }
.sim__opt:hover span { border-color: var(--ink); }
.sim__opt:hover span::before { background: var(--field-border); }
.sim__opt input:checked + span { border-color: var(--green); background: var(--pick-bg); box-shadow: inset 0 0 0 1px var(--green); }
.sim__opt input:checked + span::before { background: var(--bar-green); }
.sim__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sim__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.sim__back, .sim__next {
  display: inline-flex; gap: .35em; align-items: baseline; padding: .55rem 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
}
.sim__next { margin-left: auto; color: var(--green); }
.sim__back:hover, .sim__next:hover { text-decoration: underline; }
.sim__noscript { margin-top: 1rem; font-size: var(--fs-sm); color: var(--ink-2); }

.sim__result { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.5rem 1.3rem; }
.sim__result:focus { outline: none; }
.sim__answers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.sim__answers button {
  padding: .2rem .55rem; border: 1px solid var(--rule); border-radius: 2px; background: var(--ground); cursor: pointer;
  font: inherit; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2);
}
.sim__answers button:hover { border-color: var(--green); color: var(--ink); }
.sim__switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--field-border); border-radius: var(--radius); overflow: hidden; }
.sim__switch label { position: relative; display: flex; cursor: pointer; }
.sim__switch input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.sim__switch span { flex: 1; display: flex; align-items: center; justify-content: center; padding: .6rem .5rem; text-align: center; font-size: var(--fs-sm); font-weight: 500; line-height: 1.25; color: var(--ink-2); transition: background-color .15s ease, color .15s ease; }
.sim__switch label + label span { border-left: 1px solid var(--field-border); }
.sim__switch label:hover span { color: var(--ink); background: var(--surface-2); }
.sim__switch input:checked + span { background: var(--ink); color: var(--surface); font-weight: 600; }
.sim__switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -4px; }
.sim__label { margin-bottom: -.55rem; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sim__range {
  display: flex; align-items: flex-end;
  font-family: var(--font-mono); font-size: clamp(2rem, 1.55rem + 1.5vw, 2.5rem); font-weight: 500; line-height: 1.1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap;
}
.sim__range > span { line-height: 1.1; }
.odo { display: inline-flex; align-items: flex-end; }
.odo__col { display: inline-block; height: 1.1em; overflow: hidden; }
.odo__strip { display: block; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.odo__strip > span { display: block; height: 1.1em; line-height: 1.1em; }
.odo__sep { display: inline-block; width: .28em; }
@media (max-width: 360px) { .sim__range { font-size: 1.75rem; } }

/* Jauge : où se situent les honoraires du visiteur */
.gauge { position: relative; height: 5.5rem; --tone: var(--green); }
.gauge[data-kind="over"] { --tone: var(--orange); }
.gauge[data-kind="under"] { --tone: var(--muted); }
.gauge__track { position: absolute; left: 0; right: 0; top: 2.6rem; height: 10px; border-radius: 5px; overflow: hidden; background: var(--gauge-below); }
.gauge__zone { position: absolute; top: 0; bottom: 0; transition: left .6s cubic-bezier(.2, .8, .2, 1), width .6s cubic-bezier(.2, .8, .2, 1); }
.gauge__zone--below { background: var(--gauge-below); }
.gauge__zone--in { background: var(--bar-green); }
.gauge__zone--above { background: var(--gauge-above); }
.gauge__marker {
  position: absolute; top: 2rem; width: 4px; height: 1.6rem; margin-left: -2px; border-radius: 2px;
  background: var(--tone); box-shadow: 0 0 0 2px var(--surface);
  transition: left .6s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
}
.gauge__bubble {
  position: absolute; top: 0; transform: translateX(-50%); padding: .2rem .55rem; border-radius: 3px;
  background: var(--tone); color: var(--on-tone); font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; line-height: 1.4; white-space: nowrap;
  transition: left .6s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
}
.gauge__tick {
  position: absolute; top: 3.85rem; transform: translateX(-50%); font-family: var(--font-mono); font-size: .75rem; color: var(--muted); white-space: nowrap;
  transition: left .6s cubic-bezier(.2, .8, .2, 1);
}
.sim__dash { margin: 0 .3em; color: var(--muted); }
.sim__cur { margin-left: .25em; }
.sim__threshold { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.sim__threshold strong { color: var(--orange); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim__fees { display: flex; flex-direction: column; gap: .4rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.sim__fees label { font-size: var(--fs-sm); font-weight: 500; }
.sim__optional { font-weight: 400; color: var(--muted); }
.sim__fees input {
  width: 100%; max-width: 16rem; min-height: 48px; padding: .65rem .8rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: var(--radius);
}
.sim__fees input::placeholder { color: var(--muted); opacity: 1; }
.sim__compare { padding: .65rem .85rem; border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 500; line-height: 1.45; }
.sim__compare[data-kind="over"] { background: var(--flag-bg); color: var(--orange); }
.sim__compare[data-kind="in"] { background: var(--pick-bg); color: var(--green); }
.sim__compare[data-kind="under"] { background: var(--surface-2); color: var(--ink-2); }
.sim__cta { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.sim__reassure { font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.sim__details { border-top: 1px solid var(--rule); padding-top: .8rem; }
.sim__details summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--green); }
.sim__details summary:hover { text-decoration: underline; }
.sim__details p { font-size: var(--fs-xs); line-height: 1.55; color: var(--muted); }
.sim__table { width: 100%; margin: .7rem 0 .8rem; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.35; }
.sim__table th { padding: .45rem .8rem .45rem 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--rule); border-right: 4px solid var(--ink); }
.sim__table td { padding: .45rem 0 .45rem .8rem; text-align: right; white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--rule); }
.is-entering { animation: sim-in .22s ease-out both; }
@keyframes sim-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) {
  .sim__top, .sim__form, .sim__result { padding-inline: 1rem; }
  .sim__opts { gap: .4rem; }
  .sim__opt span { padding: .55rem .7rem; gap: .5rem; font-size: .875rem; }
  .sim__opt span::before { width: 10px; }
  .sim__switch span { font-size: .875rem; padding-inline: .35rem; }
  .sim__cta .btn { width: 100%; }
}
@media (max-width: 340px) { .sim__opts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Le compte en T : diagnostic d'exemple ---------- */
.ledger, .dossier {
  margin: 0; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 4px; box-shadow: var(--shadow); overflow: hidden;
  width: 100%; max-width: 560px; justify-self: end;
}
@media (max-width: 1024px) { .ledger, .dossier { justify-self: start; } }
.ledger__head { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.5rem 1rem; }
.tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px dashed var(--field-border); border-radius: 2px; padding: .1rem .45rem;
}
.ledger__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.ledger__meta { font-size: var(--fs-sm); color: var(--muted); }
.ledger__scroll { overflow-x: auto; position: relative; }
.ledger__table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.35; }
.ledger__table thead th {
  padding: .55rem 1rem .5rem 1.5rem;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); text-align: left;
  border-bottom: 4px solid var(--ink);
}
.ledger__table tbody th, .ledger__table tfoot th { font-weight: 400; text-align: left; }
.ledger__table th[scope="row"], .ledger__table td { padding: .72rem 1rem .72rem 1.5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger__table .amt {
  text-align: right; white-space: nowrap;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  border-right: 4px solid var(--ink);
  padding-left: .5rem; padding-right: 1rem;
}
.ledger__table .use { padding-left: 1rem; padding-right: 1.5rem; white-space: nowrap; }
.verdict { display: inline-flex; align-items: baseline; gap: .55rem; }
.verdict::before {
  content: ""; flex: none; width: 14px; height: 5px; background: var(--bar-green);
  transform: translateY(-.2em); transform-origin: left center;
  animation: bar-in .45s cubic-bezier(.2, .7, .2, 1) both;
}
.ledger__table tbody tr:nth-child(2) .verdict::before { animation-delay: .1s; }
.ledger__table tbody tr:nth-child(3) .verdict::before { animation-delay: .2s; }
.ledger__table tbody tr:nth-child(4) .verdict::before { animation-delay: .3s; }
.verdict--no { color: var(--orange); font-weight: 600; }
.verdict--no::before { background: var(--bar-orange); }
.ledger__table .is-flag th, .ledger__table .is-flag td { background: var(--flag-bg); transition: background-color .5s ease; }
.ledger__table.is-filling .is-flag:not(.is-on) th, .ledger__table.is-filling .is-flag:not(.is-on) td { background-color: transparent; }
.ledger__table.is-filling .verdict { opacity: var(--v, 0); }
.ledger__table.is-filling .verdict::before { animation: none; transform: translateY(-.2em) scaleX(var(--v, 0)); }
.ledger__table.is-filling .double::after { transform: scaleX(var(--v, 0)); }
.ledger__table .num.is-empty { color: var(--muted); }
.ledger__table .is-flag .amt { color: var(--orange); }
.ledger__table tfoot th[scope="row"], .ledger__table tfoot td { font-weight: 600; border-bottom: 0; }
.ledger__table tfoot .total th[scope="row"], .ledger__table tfoot .total td { padding-top: .85rem; }
.ledger__table tfoot .saving th[scope="row"], .ledger__table tfoot .saving td { color: var(--green); padding-top: .2rem; padding-bottom: 1rem; }
/* La ligne inutile rayée, le total qui change, l'économie qui apparaît (pilotés par ledger.js) */
.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; }
.ledger__table .amt .swap { justify-items: end; }
.swap__old { opacity: calc(1 - var(--t, 1)); transform: translateY(calc(var(--t, 1) * -6px)); }
.swap__new { opacity: var(--t, 1); transform: translateY(calc((1 - var(--t, 1)) * 6px)); }
.ledger__table tfoot .saving th, .ledger__table tfoot .saving td { opacity: var(--u, 1); transform: translateY(calc((1 - var(--u, 1)) * 6px)); }
.saving__note { font-weight: 500; }
.ledger__strike { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.ledger__strike path { fill: none; stroke: var(--bar-orange); stroke-width: 3; stroke-linecap: round; }
.ledger__table:not(.is-filling) .is-flag th, .ledger__table:not(.is-filling) .is-flag .amt {
  text-decoration: line-through; text-decoration-color: var(--bar-orange); text-decoration-thickness: 2px;
}
.double { position: relative; display: inline-block; padding-bottom: 2px; }
.double::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px;
  border-top: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform-origin: right center;
}
.ledger figcaption, .dossier figcaption {
  padding: .9rem 1.5rem 1.1rem; border-top: 1px solid var(--rule);
  font-size: var(--fs-xs); line-height: 1.5; color: var(--muted);
}
@keyframes bar-in { from { transform: translateY(-.2em) scaleX(0); } to { transform: translateY(-.2em) scaleX(1); } }
@media (max-width: 420px) {
  .ledger__head { padding-inline: 1rem; }
  .ledger__table { font-size: .8125rem; }
  .ledger__table thead th, .ledger__table th[scope="row"], .ledger__table td { padding-left: 1rem; }
  .ledger__table .amt { padding-left: .35rem; padding-right: .7rem; }
  .ledger__table .use { padding-left: .7rem; padding-right: 1rem; }
  .ledger figcaption, .dossier figcaption { padding-inline: 1rem; }
}

/* ---------- Dossier d'exemple (cabinets) ---------- */
.dossier__head {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.5rem 1rem; border-bottom: 4px solid var(--ink);
}
.dossier__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.dossier dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.dossier dt {
  padding: .7rem 1rem .7rem 1.5rem; border-bottom: 1px solid var(--rule); border-right: 4px solid var(--ink);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); line-height: 1.9;
}
.dossier dd { margin: 0; padding: .7rem 1.5rem .7rem 1rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.45; }
.dossier dd.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dossier__checks { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.5rem 1.1rem; }
.dossier__label { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.dossier .checks--col { font-size: .9375rem; gap: .35rem; }
@media (max-width: 460px) {
  .dossier dl { grid-template-columns: minmax(0, 1fr); }
  .dossier dt { border-right: 0; border-bottom: 0; padding: .7rem 1rem 0; }
  .dossier dd { padding: .1rem 1rem .7rem; }
  .dossier__head, .dossier__checks { padding-inline: 1rem; }
}

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.steps li { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.steps__n {
  align-self: stretch; display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-mono); font-size: .875rem; font-weight: 500; color: var(--green);
}
.steps__n::after { content: ""; flex: 1; height: 2px; background: linear-gradient(var(--green), var(--green)) left center / 32px 100% no-repeat, var(--rule); }
.steps .steps__n { color: var(--green); }
.steps h3 { font-size: 1.1875rem; }
.steps p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.chip {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 2px; padding: .12rem .5rem; margin-top: auto;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps--col, .steps.steps--col { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.steps--col li { flex-direction: row; gap: 1.1rem; padding-block: 1.2rem; border-bottom: 1px solid var(--rule); }
.steps--col .steps__n { align-self: flex-start; flex: none; width: 1.75rem; padding-top: .15rem; font-size: 1rem; }
.steps--col .steps__n::after { display: none; }
.steps--col h3 { margin-bottom: .3rem; }

/* ---------- Comment ça marche : étapes et diagnostic d'exemple ---------- */
.method { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.method__text { display: flex; flex-direction: column; gap: 1.75rem; }
@media (max-width: 1024px) { .method { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bande sombre ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band h2, .band h3 { color: var(--band-ink); }
.band .eyebrow { color: var(--band-accent); }
.band .lead { color: var(--band-muted); }
.band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--band-rule); }
.band__grid > div { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem 1.75rem 0 0; }
.band__grid > div + div { padding-left: 1.75rem; border-left: 1px solid var(--band-rule); }
.band__grid h3 { font-size: 1.1875rem; }
.band__grid p { color: var(--band-muted); font-size: var(--fs-sm); line-height: 1.6; }
.band a { color: var(--band-ink); }
@media (max-width: 860px) {
  .band__grid { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .band__grid > div, .band__grid > div + div { padding: 1.4rem 0; border-left: 0; border-top: 1px solid var(--band-rule); }
}

/* ---------- Grille d'avantages ---------- */
.grid-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.grid-rules > div { display: flex; flex-direction: column; gap: .55rem; padding: 1.6rem 2rem 1.6rem 0; border-bottom: 1px solid var(--rule); }
.grid-rules > div:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--rule); }
.grid-rules h3 { font-size: 1.1875rem; }
.grid-rules p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; max-width: 32em; }
@media (max-width: 700px) {
  .grid-rules { grid-template-columns: minmax(0, 1fr); }
  .grid-rules > div, .grid-rules > div:nth-child(even) { padding: 1.4rem 0; border-left: 0; }
}

/* ---------- Pourquoi nous faire confiance ---------- */
.trust__head { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about__mark {
  width: 148px; max-width: 100%; aspect-ratio: 1; display: grid; place-items: center;
  background: #1B3550; color: #FFFFFF; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--band-rule);
}
.mark3d { position: relative; overflow: hidden; perspective: 700px; cursor: pointer; --u: .48px; }
.mark3d__scene { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.mark3d__logo {
  position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(-24deg);
}
.mark3d .bx--g, .mark3d .bx--o { transition: transform .35s ease; }
.mark3d:hover .bx--g, .mark3d:hover .bx--o { transform: translateZ(calc(14 * var(--u))); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li {
  font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 2px; padding: .25rem .6rem; background: var(--surface);
}
.band .facts li { color: var(--band-muted); background: transparent; border-color: var(--band-rule); }
@media (max-width: 640px) {
  .trust__head { grid-template-columns: minmax(0, 1fr); }
  .about__mark { width: 112px; }
  .mark3d { --u: .36px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq .section__head p:last-child { color: var(--ink-2); }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 1.1rem 2.75rem 1.1rem 0;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.35;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; background: var(--green); transition: transform .2s ease; }
.faq summary::after { right: .25rem; top: calc(50% - 1px); width: 14px; height: 2px; }
.faq summary::before { right: calc(.25rem + 6px); top: calc(50% - 7px); width: 2px; height: 14px; }
.faq details[open] summary::before { transform: scaleY(0); }
.faq summary:hover { color: var(--green); }
.answer { display: flex; flex-direction: column; gap: .75rem; padding: 0 2.75rem 1.3rem 0; color: var(--ink-2); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.section--surface .card { background: var(--ground); }
.form { display: flex; flex-direction: column; gap: 1.6rem; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend {
  padding: 0; margin-bottom: .9rem;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.form__intro { font-size: var(--fs-sm); color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.form input:not([type="radio"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: var(--radius);
}
.form textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.form ::placeholder { color: var(--muted); opacity: 1; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
/* Choix « Vous êtes » : chaque case prend la largeur de son texte, sur une ligne,
   et les cases d'une même rangée se partagent la place restante. */
.choice__opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice__opt {
  flex: 1 1 auto;
  display: flex; gap: .65rem; align-items: center; cursor: pointer;
  min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--field-border); border-radius: var(--radius);
  background: var(--field-bg); font-size: var(--fs-sm); line-height: 1.4;
}
@media (max-width: 560px) { .choice__opt { flex-basis: 100%; } }
.choice__opt input { margin: 0; accent-color: var(--green); width: 1.05rem; height: 1.05rem; flex: none; }
.choice__opt:has(input:checked) { border-color: var(--green); background: var(--pick-bg); }
.choice__opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-size: var(--fs-sm); font-weight: 500; }
.form-status[data-kind="ok"] { color: var(--green); }
.form-status[data-kind="error"] { color: var(--orange); }
.form-status[data-kind="pending"] { color: var(--muted); }
.form__note { font-size: var(--fs-xs); line-height: 1.55; color: var(--muted); }

/* ---------- Pages légales ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.75rem; }
.page-head .wrap { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.prose { max-width: 46rem; padding-bottom: clamp(3rem, 8vw, 6rem); color: var(--ink-2); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.375rem; color: var(--ink); }
.prose h2 + * { margin-top: .75rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 0; }
.prose li + li { margin-top: .4rem; }
.prose dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1.5rem; margin-bottom: 0; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; color: var(--ink); }
.prose .updated { margin-top: 2.5rem; font-size: var(--fs-sm); color: var(--muted); }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--rule); }
.prose thead th { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.prose tbody td:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .prose dd { margin-bottom: .7rem; }
}
mark.todo {
  background: var(--todo-bg); color: var(--todo-ink); padding: .05em .35em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.draft-note {
  display: flex; gap: .6rem; align-items: baseline;
  font-size: var(--fs-sm); color: var(--ink-2);
}
.draft-note::before { content: ""; flex: none; width: 14px; height: 5px; background: var(--bar-orange); transform: translateY(-.2em); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--band); color: var(--band-muted); padding-block: 3rem 2rem; font-size: var(--fs-sm); }
.site-footer .logo { color: var(--band-ink); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--band-rule); }
.footer__brand { display: flex; flex-direction: column; gap: 1rem; max-width: 26rem; }
.footer__nav, .footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__nav { flex-direction: column; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.25rem; font-size: var(--fs-xs); line-height: 1.6; }


/* ---------- Contact : récapitulatif du simulateur, champs facultatifs ---------- */
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.form-grid__mail { font-size: var(--fs-sm); color: var(--ink-2); }
.docfan { margin: .75rem 0 0; display: flex; flex-direction: column; gap: .9rem; --f: 1; }
.docfan__stack { position: relative; height: 248px; max-width: 420px; }
.docfan__page {
  position: absolute; left: calc(50% - 74px); top: 18px; width: 148px; height: 210px; box-sizing: border-box; padding: 13px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 12px 26px -16px rgba(19, 41, 61, .55);
  transition: translate .25s ease;
}
.docfan__page--1 { z-index: 3; transform: translate(calc(var(--f) * -138px), calc(var(--f) * 12px)) rotate(calc(var(--f) * -5deg)); }
.docfan__page--2 { z-index: 2; transform: translate(calc(6px - var(--f) * 6px), calc(6px - var(--f) * 18px)) rotate(calc(1.5deg - var(--f) * 1.5deg)); }
.docfan__page--3 { z-index: 1; transform: translate(calc(12px + var(--f) * 126px), calc(12px + var(--f) * 2px)) rotate(calc(3deg + var(--f) * 2deg)); }
.docfan__page:hover { z-index: 4; translate: 0 -6px; }
.docfan__mark { width: 38px; height: 34px; flex: none; margin-bottom: auto; color: var(--ink); }
.docfan__cover { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.15; color: var(--ink); }
.docfan__meta { font-size: .6875rem; line-height: 1.4; color: var(--muted); }
.docfan__date { font-family: var(--font-mono); font-size: .625rem; color: var(--muted); }
.docfan .tag { margin-top: .2rem; padding: 0 .3rem; font-size: .5625rem; }
.docfan__title { margin-bottom: 2px; font-family: var(--font-display); font-size: .75rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.docfan__lines { border-top: 3px solid var(--ink); }
.docfan__lines p { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px solid var(--surface-2); font-size: .625rem; color: var(--ink); }
.docfan__lines span { display: block; width: var(--w); max-width: 80px; height: 5px; border-radius: 3px; background: var(--rule); }
.docfan__lines b { font-family: var(--font-mono); font-size: .625rem; font-weight: 400; color: var(--ink); }
.docfan__lines .is-flag { background: var(--flag-bg); }
.docfan__lines .is-flag span { background: var(--gauge-above); }
.docfan__lines .is-flag b { color: var(--orange); }
.docfan__lines .is-total, .docfan__lines .is-total b { font-weight: 600; }
.docfan__reco { display: flex; gap: 6px; align-items: baseline; font-size: .625rem; line-height: 1.35; color: var(--ink-2); }
.docfan__reco::before { content: ""; flex: none; width: 9px; height: 4px; background: var(--bar-green); transform: translateY(-2px); }
.docfan__gain { margin-top: auto; padding: 7px 8px; border-radius: 3px; background: var(--pick-bg); color: var(--green); font-size: .625rem; font-weight: 600; line-height: 1.3; }
.docfan figcaption { max-width: 26rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .docfan { display: none; } }
.form__sim {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline;
  padding: .8rem 1rem; border-left: 4px solid var(--bar-green); background: var(--pick-bg); border-radius: 0 var(--radius) var(--radius) 0;
}
.form__sim-label { grid-column: 1; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.form__sim-text { grid-column: 1; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink); }
.form__sim-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: var(--fs-sm); font-weight: 600; color: var(--green); }

/* ---------- Logo en 3D : volumes éclairés (T de la section confiance) ---------- */
.bx {
  position: absolute; transform-style: preserve-3d;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
}
.bx--t { --c: #F4F7F6; }
.bx--g { --c: #12937A; }
.bx--o { --c: #E67E22; }
.bx > i { position: absolute; display: block; background: var(--c); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bx > i::after { content: ""; position: absolute; inset: 0; background: #000; }
.bx > .fz { inset: 0; transform: translateZ(calc(var(--d) * var(--u) / 2)); }
.bx > .fb { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) * var(--u) / 2)); }
.bx > .fr, .bx > .fl { top: 0; height: 100%; width: calc(var(--d) * var(--u)); left: calc((var(--w) - var(--d)) * var(--u) / 2); }
.bx > .fr { transform: rotateY(90deg) translateZ(calc(var(--w) * var(--u) / 2)); }
.bx > .fl { transform: rotateY(-90deg) translateZ(calc(var(--w) * var(--u) / 2)); }
.bx > .ft, .bx > .fo { left: 0; width: 100%; height: calc(var(--d) * var(--u)); top: calc((var(--h) - var(--d)) * var(--u) / 2); }
.bx > .ft { transform: rotateX(90deg) translateZ(calc(var(--h) * var(--u) / 2)); }
.bx > .fo { transform: rotateX(-90deg) translateZ(calc(var(--h) * var(--u) / 2)); }
.fz::after { opacity: var(--sh-z); }
.fb::after { opacity: var(--sh-b); }
.fr::after { opacity: var(--sh-r); }
.fl::after { opacity: var(--sh-l); }
.ft::after { opacity: var(--sh-t); }
.fo::after { opacity: var(--sh-o); }


/* ---------- Survol : discret, toujours lié à un geste ---------- */
.link-arrow [aria-hidden], .topstrip__cta [aria-hidden] { display: inline-block; transition: transform .2s ease; }
.link-arrow:hover [aria-hidden], .topstrip a:hover .topstrip__cta [aria-hidden] { transform: translateX(3px); }
.nav__link { padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; transition: background-size .2s ease, color .15s ease; }
.nav__link:hover { background-size: 100% 1px; }
.logo .mark { transition: transform .3s ease; }
.logo:hover .mark { transform: scale(1.06); }
.mark rect, .mark path { transform-box: fill-box; transform-origin: center; transition: transform .3s ease calc(var(--n, 0) * 40ms); }
.logo:hover .m-g { transform: translateX(-10%); }
.logo:hover .m-o { transform: translateX(10%); }
.logo:hover .m-t { transform: translateY(-9px); }

/* ---------- Logo qui se construit : une seule fois par visite, au premier affichage ---------- */
.logo-build .site-header .mark rect { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); animation-fill-mode: backwards; }
.logo-build .site-header .m-t-bar { transform-origin: left center; animation-name: lb-x; }
.logo-build .site-header .m-t-stem { transform-origin: center top; animation-name: lb-y; animation-delay: .2s; }
.logo-build .site-header .m-g { animation-name: lb-l; animation-delay: calc(.4s + var(--n, 0) * 90ms); }
.logo-build .site-header .m-o { animation-name: lb-r; animation-delay: calc(.4s + var(--n, 0) * 90ms); }
.logo-build .site-header .wordmark { animation: lb-w .5s .75s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes lb-x { from { transform: scaleX(0); } }
@keyframes lb-y { from { transform: scaleY(0); } }
@keyframes lb-l { from { transform: translateX(-60%); opacity: 0; } }
@keyframes lb-r { from { transform: translateX(60%); opacity: 0; } }
@keyframes lb-w { from { transform: translateX(-6px); opacity: 0; } }

/* ---------- Surlignage au feutre : dessiné une fois au chargement ---------- */
.hl { position: relative; z-index: 0; display: inline-block; }
.hl__mark { position: absolute; z-index: -1; left: -.12em; bottom: .04em; width: calc(100% + .24em); height: .5em; overflow: visible; }
.hl__mark path { fill: none; stroke: var(--bar-green); stroke-opacity: .26; stroke-width: 26; stroke-linecap: round; }
.ul { position: relative; display: inline-block; }
.ul__mark { position: absolute; left: 0; bottom: -.3em; width: 100%; height: .5em; overflow: visible; }
.ul__mark path { fill: none; stroke: var(--bar-green); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .hl__mark path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw-mark .75s .45s cubic-bezier(.3, .7, .3, 1) forwards; }
.js .ul__mark path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw-mark .55s 1.2s ease-out forwards; }
@keyframes draw-mark { to { stroke-dashoffset: 0; } }

/* ---------- Parcours qui se dessine : le trait des étapes suit le défilement ---------- */
.steps--col { position: relative; }
.steps--col .steps__n {
  position: relative; z-index: 1; width: 2rem; height: 2rem; box-sizing: border-box; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--green); border-radius: 50%; background: var(--green); color: var(--on-tone); font-size: .875rem;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.steps--col.is-drawing .steps__n { background: var(--surface); border-color: var(--rule); color: var(--muted); }
.steps--col.is-drawing li.is-on .steps__n { background: var(--green); border-color: var(--green); color: var(--on-tone); }
.steps--col.is-drawing::before, .steps--col.is-drawing::after {
  content: ""; position: absolute; left: calc(1rem - 1px); top: var(--line-top, 0); width: 2px; height: var(--line-h, 0); border-radius: 1px;
}
.steps--col.is-drawing::before { background: var(--rule); }
.steps--col.is-drawing::after { background: var(--green); transform-origin: top; transform: scaleY(var(--p, 0)); }

/* ---------- Barre d'action mobile ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -10px 24px -18px rgba(19, 41, 61, .45);
    transform: translateY(110%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .mbar.is-on { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
  .mbar__text { font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .logo:hover .mark, .logo:hover .mark rect, .logo:hover .mark path { transform: none; }
}
