/* Solutions IA Québec : le tableau-répertoire.
   Bleu encre = structure. Or = « vous êtes ici » et l'action principale, rien d'autre. */

/* Polices hébergées sur le site (SIL OFL, voir fonts/LICENCES.txt). */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/public-sans-variable.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/public-sans-italic.woff2") format("woff2"); }

:root {
  --ink: #15325c;
  --ink-deep: #0e2444;
  --ink-2: #2a4774;
  --ink-3: #4a6487;
  --hall: #f4f6f9;
  --hall-2: #e9eef4;
  --plaque: #ffffff;
  --rule: #c9d3e0;
  --rule-strong: #8ea0b8;

  --on-ink: #f3f6fa;
  --on-ink-2: #b9c7da;
  --on-ink-rule: rgba(243, 246, 250, 0.22);
  --on-ink-field: #0e2444;
  --strip: rgba(243, 246, 250, 0.05);
  --strip-hover: rgba(243, 246, 250, 0.11);

  --gold: #d4a943;
  --gold-hover: #e2bd62;
  --gold-wash: rgba(212, 169, 67, 0.16);

  --error: #b3261e;
  --error-on-ink: #ffc2b8;

  --f-board: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-text: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --fs-xs: 0.875rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.4rem + 4.2vw, 4.25rem);
  --fs-price: clamp(4rem, 2rem + 7vw, 6rem);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --r: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --head-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}
body {
  margin: 0;
  background: var(--hall);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
input, select, textarea, button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }

.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;
}
.skip {
  position: absolute; left: var(--gutter); top: -120px; z-index: 200;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px;
  border-radius: var(--r); text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 860px) { .wrap { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--f-board); font-weight: 600; font-size: 1.1875rem; line-height: 1.1;
  letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink-deep); border-color: var(--ink-deep); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-deep); }
.btn-line { background: transparent; color: var(--on-ink); border-color: var(--on-ink-rule); }
.btn-line:hover { border-color: var(--on-ink); background: var(--strip-hover); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.65; cursor: progress; }

.link-arrowless { font-weight: 700; }

/* ---------- Repère « Vous êtes ici » ---------- */
.here-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 2px var(--ink-deep);
}
.on-ink .here-dot { box-shadow: 0 0 0 2px var(--on-ink); }

/* ---------- En-tête ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--hall); border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--head-h); position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-board); font-weight: 700; font-size: 1.375rem; line-height: 1;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.nav > a:not(.btn):not(.here-chip) {
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-s);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav > a:not(.btn):not(.here-chip):hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.nav > a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink) !important; }
.here-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 260px;
  padding: 6px 10px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--plaque); color: var(--ink); text-decoration: none; font-size: var(--fs-xs);
}
.here-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.here-chip:hover { border-color: var(--rule-strong); }
/* Dans l'en-tête, le repère reste bleu : l'or est réservé au panneau et à l'action principale. */
.here-chip .here-dot { background: var(--ink); box-shadow: none; }
.nav-toggle { display: none; }

/* ---------- Le panneau ---------- */
.board {
  background: var(--ink); color: var(--on-ink); color-scheme: dark;
  border-radius: var(--r);
  box-shadow: 0 0 0 6px var(--ink-deep), 0 28px 48px -30px rgba(14, 36, 68, 0.55);
  margin-top: calc(var(--s-6) + 6px);
  padding: 0 52px;
}
.board-head {
  display: grid; gap: var(--s-4);
  padding: 52px 0 32px;
}
.board h1 {
  font-family: var(--f-board); font-weight: 700; font-size: var(--fs-3xl);
  line-height: 1; letter-spacing: -0.01em; text-wrap: balance;
}
.board-sub { font-size: var(--fs-l); line-height: 1.5; color: var(--on-ink-2); max-width: 46ch; }
.board-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-2); }
.meta { font-size: var(--fs-s); color: var(--ink-3); }
.on-ink .meta { color: var(--on-ink-2); }
.board-body {
  border-top: 1px solid var(--on-ink-rule);
  padding: 32px 0 52px;
}

/* Répertoire */
.dir-tools {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6);
}
.dir-tools h2 { font-family: var(--f-board); font-weight: 600; font-size: var(--fs-xl); line-height: 1.3; }
.search { flex: 1 1 260px; max-width: 420px; }
.search input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--on-ink-field); color: var(--on-ink);
  border: 1px solid var(--on-ink-rule); border-radius: var(--r); font-size: var(--fs-m);
  caret-color: var(--gold);
}
.search input::placeholder { color: var(--on-ink-2); opacity: 1; }
.search input:focus { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.dir-count { font-size: var(--fs-s); color: var(--on-ink-2); }

.dir-cols { columns: 3 300px; column-gap: var(--s-7); }
.dir-cat { break-inside: avoid; margin-bottom: var(--s-5); }
.dir-cat summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  padding: 4px 0 6px; margin-bottom: var(--s-2);
  border-bottom: 1px solid var(--on-ink-rule);
  list-style: none; cursor: pointer;
}
.dir-cat summary::-webkit-details-marker { display: none; }
.dir-cat summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: auto;
  border-right: 2px solid var(--on-ink-2); border-bottom: 2px solid var(--on-ink-2);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s var(--ease);
}
.dir-cat:not([open]) summary::after { transform: translateY(0) rotate(-45deg); }
.dir-cat-title {
  font-family: var(--f-board); font-weight: 600; font-size: 1.125rem;
  letter-spacing: 0.02em; color: var(--on-ink-2);
}
.dir-cat-count { font-size: var(--fs-xs); color: var(--on-ink-2); }
.dir-list li { margin-bottom: 2px; }
.strip {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px;
  min-height: 40px; padding: 7px 10px 7px 30px;
  background: var(--strip); color: var(--on-ink); text-decoration: none;
  font-family: var(--f-board);
  transition: background-color 0.12s var(--ease);
}
.strip::before {
  content: ""; position: absolute; left: 11px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  border: 1.5px solid var(--on-ink-rule);
}
.strip:hover { background: var(--strip-hover); }
.strip:hover::before { border-color: var(--on-ink-2); }
.strip:focus-visible { outline-offset: 0; }
.strip-name { font-weight: 600; font-size: 1.125rem; line-height: 1.3; white-space: nowrap; }
.strip-dots { flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted var(--on-ink-rule); transform: translateY(-0.3em); }
.strip-line { margin-left: auto; font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--on-ink-2); text-align: right; white-space: nowrap; }
.strip[aria-current="location"] { background: var(--gold-wash); }
.strip[aria-current="location"]::before { background: var(--gold); border-color: var(--gold); }
.strip[aria-current="location"] .strip-name { color: var(--gold); }
.dir-empty { padding: var(--s-5) 0; border-top: 1px solid var(--on-ink-rule); max-width: 60ch; }
.dir-empty p + p { margin-top: var(--s-2); }
.dir-empty a { color: var(--gold); font-weight: 700; }

/* Fiche d'un métier */
.fiche-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4) var(--s-5);
  padding-bottom: var(--s-5); margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--on-ink-rule);
}
.here {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-board); font-weight: 600; font-size: 1.0625rem; color: var(--gold);
}
.fiche-title {
  margin-top: var(--s-2);
  font-family: var(--f-board); font-weight: 700;
  font-size: clamp(2.125rem, 1.3rem + 3vw, 3.25rem); line-height: 1.02;
}
.fiche-title:focus { outline: none; }
.fiche-cat { margin-top: var(--s-1); font-size: var(--fs-s); color: var(--on-ink-2); }
.fiche-phrase { margin-top: var(--s-4); font-size: var(--fs-l); line-height: 1.45; color: var(--on-ink); max-width: 42ch; }
.fiche-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-7); align-items: start; }
.fiche h3 { font-family: var(--f-board); font-weight: 600; font-size: var(--fs-xl); line-height: 1.3; margin-bottom: var(--s-3); }
.fiche-est { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--on-ink-2); }
.fiche-note { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 2px solid var(--on-ink); font-size: var(--fs-s); max-width: 60ch; }
.fiche-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--on-ink-rule);
}

/* Registre à points de conduite : sur clair par défaut, sur panneau via .on-ink */
.ledger { --l-rule: var(--rule); --l-dots: var(--rule-strong); --l-desc: var(--ink-3); --l-strong: var(--ink); }
.on-ink .ledger { --l-rule: var(--on-ink-rule); --l-dots: var(--on-ink-rule); --l-desc: var(--on-ink-2); --l-strong: var(--on-ink); }
.ledger > li { padding: var(--s-3) 0; border-bottom: 1px solid var(--l-rule); }
.ledger > li:first-child { border-top: 2px solid var(--l-strong); }
.ledger-row { display: flex; align-items: baseline; gap: 6px; }
.ledger-name { font-family: var(--f-board); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.dots { flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted var(--l-dots); transform: translateY(-0.3em); }
.ledger-val {
  font-family: var(--f-board); font-weight: 600; font-size: 1.0625rem; line-height: 1.3;
  text-align: right; font-variant-numeric: tabular-nums;
}
.ledger-desc { margin-top: 4px; font-size: var(--fs-s); line-height: 1.5; color: var(--l-desc); max-width: 62ch; }

/* Conversation type */
.convo { background: var(--plaque); color: var(--ink); border-radius: var(--r); padding: var(--s-5); }
.convo figcaption {
  font-size: var(--fs-xs); color: var(--ink-3);
  padding-bottom: var(--s-3); margin-bottom: var(--s-4); border-bottom: 1px solid var(--rule);
}
.convo-list { display: flex; flex-direction: column; gap: var(--s-3); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: var(--r); font-size: var(--fs-s); line-height: 1.5; }
.msg-agent { align-self: flex-start; background: var(--hall-2); }
.msg-vous { align-self: flex-end; background: var(--ink); color: var(--on-ink); }
.msg-meta { display: block; margin-bottom: 2px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); }
.msg-vous .msg-meta { color: var(--on-ink-2); }
.msg-file {
  display: inline-block; margin-top: 8px; padding: 3px 8px;
  border: 1px solid var(--rule-strong); border-radius: var(--r);
  background: var(--plaque); color: var(--ink); font-size: var(--fs-xs);
}

/* Le seul mouvement de la page : la bascule du panneau et la conversation qui se joue. */
@media (prefers-reduced-motion: no-preference) {
  .is-flipping { animation: bascule 0.26s var(--ease) both; }
  .convo.is-playing .msg { animation: message 0.32s var(--ease) both; }
  .convo.is-playing .msg:nth-child(2) { animation-delay: 0.45s; }
  .convo.is-playing .msg:nth-child(3) { animation-delay: 0.9s; }
  .convo.is-playing .msg:nth-child(4) { animation-delay: 1.35s; }
  .convo.is-playing .msg:nth-child(5) { animation-delay: 1.8s; }
}
@keyframes bascule { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes message { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Garanties ---------- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--rule);
  margin-top: var(--s-7); border-block: 1px solid var(--rule);
}
.facts li {
  background: var(--hall); padding: var(--s-4) var(--s-4) var(--s-4) 0;
  font-family: var(--f-board); font-weight: 600; font-size: 1.125rem; line-height: 1.3;
}
.facts li + li { padding-left: var(--s-4); }

/* ---------- Sections claires ---------- */
.section { padding-top: 112px; padding-bottom: 112px; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--hall-2); }
.h2, .section h2 {
  font-family: var(--f-board); font-weight: 700; font-size: var(--fs-2xl);
  line-height: 1.05; letter-spacing: -0.005em; max-width: 24ch; text-wrap: balance;
}
.h3 { font-family: var(--f-board); font-weight: 700; font-size: var(--fs-xl); line-height: 1.3; }
.h3 + p, .h3 + .prose { margin-top: var(--s-3); }
.ledger + .small { margin-top: var(--s-4); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.section-cta { margin-top: var(--s-6); }
.lead { margin-top: var(--s-4); font-size: var(--fs-l); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 66ch; color: var(--ink-2); }
.prose p + p { margin-top: var(--s-3); }
.section-body { margin-top: var(--s-7); }
.small { font-size: var(--fs-s); color: var(--ink-3); max-width: 62ch; }
.fineprint { margin-top: var(--s-6); font-size: var(--fs-s); color: var(--ink-3); max-width: 70ch; }
.fineprint a { color: var(--ink); font-weight: 700; }
.aside-link { margin-top: var(--s-5); max-width: 62ch; color: var(--ink-2); }
.aside-link a { font-weight: 700; color: var(--ink); }
.stack > * + * { margin-top: var(--s-4); }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); }
.cols-2.ruled { column-gap: 97px; background: linear-gradient(var(--rule), var(--rule)) no-repeat 50% 0 / 1px 100%; }

/* Connexions */
.ledger-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); }
.ledger-2 > li:nth-child(2) { border-top: 2px solid var(--l-strong); }


/* Les trois agents : fermés par défaut, un clic ouvre l'agent */
.choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--on-ink-rule); }
.choix-agent {
  display: grid; align-content: start; gap: 6px; padding: var(--s-5); text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 4px solid transparent; color: var(--on-ink); font: inherit;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.choix-agent + .choix-agent { box-shadow: inset 1px 0 0 var(--on-ink-rule); }
.choix-agent:hover { background: var(--strip); }
.choix-agent[aria-expanded="true"] { border-top-color: var(--gold); background: var(--strip); }
.choix-agent:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.choix-nom { font-family: var(--f-board); font-weight: 700; font-size: var(--fs-xl); line-height: 1.3; }
.choix-ligne { font-size: var(--fs-s); color: var(--on-ink-2); }
.choix-voir { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: 6px; font-family: var(--f-board); font-weight: 600; font-size: 1.0625rem; }
.choix-voir::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.choix-agent[aria-expanded="true"] .choix-voir::after { transform: rotate(-135deg); }
.agent-ouvert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); padding: var(--s-6) 0 52px; border-top: 1px solid var(--on-ink-rule); }
.agent-ouvert .offre-label { color: var(--on-ink-2); }
.agent-ouvert .incl > li { border-bottom-color: var(--on-ink-rule); }
.agent-ouvert .incl > li:first-child { border-top: 2px solid var(--on-ink); }
.board-solo .board-body { border-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .agent-ouvert.is-flipping .msg { animation: message 0.32s var(--ease) both; }
  .agent-ouvert.is-flipping .msg:nth-child(2) { animation-delay: 0.5s; }
  .agent-ouvert.is-flipping .msg:nth-child(3) { animation-delay: 1s; }
}
@media (max-width: 860px) {
  .choix, .agent-ouvert { grid-template-columns: minmax(0, 1fr); }
  .choix-agent + .choix-agent { box-shadow: inset 0 1px 0 var(--on-ink-rule); }
}

.section-qui { padding-top: 72px; padding-bottom: 72px; }
.section-qui h2 { max-width: none; }
.board-services { margin-top: var(--s-6); }
.board-services .board-body { border-top: 0; padding-top: var(--s-5); }
.board-services .meta a { color: var(--on-ink); font-weight: 700; }

/* Offres */
.offres { border-top: 2px solid var(--ink); }
.offre {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--s-6); padding: var(--s-6) 0; border-bottom: 1px solid var(--rule);
}
.offre-nom { font-family: var(--f-board); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.1; }
.offre-agent { margin-top: var(--s-1); font-family: var(--f-board); font-weight: 600; font-size: 1.125rem; color: var(--ink-3); }
.offre-promesse { margin-top: var(--s-3); color: var(--ink-2); max-width: 44ch; }
.offre-label { font-family: var(--f-board); font-weight: 600; font-size: 1.0625rem; color: var(--ink-3); margin-bottom: var(--s-2); }
.offre-label:not(:first-child) { margin-top: var(--s-4); }
.offre .incl > li:first-child { border-top: 1px solid var(--rule); }
.offre-resultat { font-family: var(--f-board); font-weight: 700; font-size: 1.375rem; line-height: 1.3; }
.fiche-offre { margin-top: var(--s-4); font-size: var(--fs-s); }
.options-titre { margin-top: var(--s-7); }
#tarification .roi { margin-top: 0; }
.fiche-offre a { color: var(--on-ink); font-weight: 700; }
@media (max-width: 860px) { .offre { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } }

/* Déploiement */
.decision h3 { margin-bottom: var(--s-2); }
.promise { font-style: italic; color: var(--ink-2); margin-bottom: var(--s-4); }
.option + .option { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.option h4 { font-family: var(--f-board); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.option p { margin-top: 4px; color: var(--ink-2); }
.note-gen {
  margin-top: var(--s-7); padding: var(--s-4) 0;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); max-width: 78ch;
}

/* Tarification */
.price-block { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-7); align-items: start; }
.price {
  font-family: var(--f-board); font-weight: 700; font-size: var(--fs-price);
  line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.price-sub { margin-top: var(--s-3); color: var(--ink-2); }
.price-block .btn { margin-top: var(--s-5); }
.incl > li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.incl > li:first-child { border-top: 2px solid var(--ink); }

/* Calculateur */
.roi {
  margin-top: var(--s-8); background: var(--plaque);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 44px;
}
.roi > p { margin-top: var(--s-3); color: var(--ink-2); max-width: 66ch; }
.roi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); margin-top: var(--s-6); }
.roi-field + .roi-field { margin-top: var(--s-5); }
.roi-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.roi-top label { font-weight: 700; font-size: var(--fs-s); }
.roi-field output { font-family: var(--f-board); font-weight: 600; font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.roi-field input[type="range"] { width: 100%; margin: var(--s-2) 0 0; min-height: 32px; accent-color: var(--ink); cursor: pointer; }
.roi-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); }
.roi-total-label { font-weight: 700; }
.roi-total-value {
  font-family: var(--f-board); font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.roi-total-value.is-negative { color: var(--ink-3); }
.roi-note { margin-top: var(--s-3); font-size: var(--fs-s); color: var(--ink-3); }

/* FAQ */
.faq-list { margin-top: var(--s-7); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 2px solid var(--ink); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  min-height: 56px; padding: 12px 0; list-style: none; cursor: pointer;
  font-family: var(--f-board); font-weight: 600; font-size: 1.3125rem; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
}
.faq-item[open] summary::after { background-size: 100% 2px, 2px 0; }
.faq-item summary:hover { color: var(--ink-2); }
.faq-answer { padding-bottom: var(--s-5); max-width: 68ch; color: var(--ink-2); }
.faq-answer p + p { margin-top: var(--s-3); }

/* ---------- Réception : formulaires sur panneau ---------- */
.board-contact { margin-top: var(--s-9); }
.board-contact .board-head { padding-bottom: var(--s-5); }
.board-contact .board-head p { max-width: 62ch; color: var(--on-ink-2); }
.board-contact .board-head p a { color: var(--gold); font-weight: 700; }
.form { display: grid; gap: var(--s-4); max-width: 680px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field label, .field .label { display: block; margin-bottom: 6px; font-weight: 700; font-size: var(--fs-s); color: var(--on-ink); }
.field .hint { font-weight: 400; color: var(--on-ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--on-ink-field); color: var(--on-ink);
  border: 1px solid var(--on-ink-rule); border-radius: var(--r); caret-color: var(--gold);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-ink-2); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--error-on-ink); }
.field-error { margin-top: 6px; font-size: var(--fs-s); color: var(--error-on-ink); }
.form .btn { justify-self: start; margin-top: var(--s-2); }
.hp { display: none !important; }
.agenda { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-bottom: var(--s-6); border-bottom: 1px solid var(--on-ink-rule); }
.agenda .meta { max-width: 46ch; }
.ou { margin: var(--s-5) 0 var(--s-4); font-weight: 700; }
.btn-line-clair { background: transparent; color: var(--on-ink); border-color: var(--on-ink-rule); }
.btn-line-clair:hover { border-color: var(--on-ink); }
.form-legal { font-size: var(--fs-xs); line-height: 1.5; color: var(--on-ink-2); max-width: 62ch; }
.form-legal a { color: var(--on-ink); }
.legal { max-width: 70ch; }
.legal h2 { margin-top: var(--s-7); font-family: var(--f-board); font-weight: 700; font-size: var(--fs-xl); line-height: 1.3; }
.legal p, .legal ul { margin-top: var(--s-3); color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal li + li { margin-top: var(--s-2); }
.form-status { max-width: 680px; padding: var(--s-5); border: 1px solid var(--gold); border-radius: var(--r); background: var(--gold-wash); }
.form-status h3 { font-family: var(--f-board); font-weight: 700; font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.form-status a { color: var(--gold); font-weight: 700; }
.contact-lines { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--on-ink-rule); }
.contact-lines a { color: var(--on-ink); font-weight: 700; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.site-foot {
  margin-top: var(--s-9); padding: var(--s-7) 0;
  background: var(--ink-deep); color: var(--on-ink-2); font-size: var(--fs-s);
}
.site-foot .wrap { display: grid; gap: var(--s-2); }
.site-foot a { color: var(--on-ink); }
.foot-lines { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-2); }

/* ---------- Barre mobile ---------- */
.sticky { display: none; }

/* ---------- Catalogue ---------- */
.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.route > li { padding-top: var(--s-4); border-top: 2px solid var(--on-ink); }
.route-num { font-family: var(--f-board); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.route h3 { margin-top: var(--s-3); font-family: var(--f-board); font-weight: 700; font-size: var(--fs-xl); line-height: 1.3; }
.route-dur { margin-top: 2px; font-size: var(--fs-s); color: var(--on-ink-2); }
.route p:last-child { margin-top: var(--s-3); font-size: var(--fs-s); color: var(--on-ink-2); }

.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); border-top: 2px solid var(--ink); }
.entry { padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.entry .ledger-row { margin-bottom: var(--s-2); }
.entry h3 { font-family: var(--f-board); font-weight: 700; font-size: 1.375rem; line-height: 1.3; }
.entry .tag { font-family: var(--f-board); font-weight: 500; font-size: 1.0625rem; color: var(--ink-3); white-space: nowrap; }
.entry .situation { font-style: italic; color: var(--ink-2); margin-bottom: var(--s-2); }
.entry p { color: var(--ink-2); max-width: 62ch; }
.entry .control { margin-top: var(--s-3); font-size: var(--fs-s); color: var(--ink); }
.entry .gain { font-family: var(--f-board); font-weight: 700; font-size: 1.1875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-here { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s-2); font-size: var(--fs-xs); font-weight: 700; color: var(--ink); }

.founder { max-width: 66ch; }
.founder .ledger-row { margin-top: var(--s-6); padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.founder p { margin-top: var(--s-4); color: var(--ink-2); }
main > .section:last-child { padding-bottom: 0; }


.entry h4 { font-family: var(--f-board); font-weight: 700; font-size: 1.375rem; line-height: 1.3; }
.agent-bloc { margin-top: var(--s-8); }
.agent-bloc:first-of-type { margin-top: var(--s-7); }
.route-titre { margin-top: var(--s-3); font-family: var(--f-board); font-weight: 700; font-size: var(--fs-xl); line-height: 1.3; }
.lead a { color: var(--ink); font-weight: 700; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Adaptations ---------- */
@media (max-width: 1100px) {
  .here-chip { display: none !important; }
}
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; min-width: 44px; min-height: 44px;
    background: var(--plaque); border: 1px solid var(--rule-strong); border-radius: var(--r); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-5);
    background: var(--hall); border-bottom: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn):not(.here-chip) { padding: 14px 0; font-size: var(--fs-m); border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: var(--s-4); }
}
@media (max-width: 860px) {
  .fiche-body, .cols-2, .price-block, .roi-grid, .ledger-2, .entries, .route { grid-template-columns: minmax(0, 1fr); }
  .cols-2.ruled { background: none; }
  .cols-2.ruled > * + * { border-top: 1px solid var(--rule); padding-top: var(--s-6); }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .ledger-2 > li:nth-child(2), .entries > :nth-child(2) { border-top: 0; }
  .route { gap: var(--s-5); }
}
@media (max-width: 767px) {
  html { scroll-padding-bottom: 96px; }
  .board { margin-top: calc(var(--s-5) + 6px); padding: 0 20px; }
  .board-head { padding: 28px 0 24px; }
  .board-body { padding: 24px 0 28px; }
  .roi { padding: 20px; }
  .board-act .btn, .fiche-foot .btn { width: 100%; }
  .strip { min-height: 44px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: var(--s-3); }
  .site-foot { padding-bottom: calc(var(--s-7) + 80px); }
  .sticky {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink-deep); color: var(--on-ink);
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .sticky.is-visible { transform: none; visibility: visible; transition: transform 0.25s var(--ease), visibility 0s; }
  .sticky-text { font-size: var(--fs-xs); line-height: 1.3; color: var(--on-ink-2); }
  .sticky-text strong { display: block; color: var(--on-ink); font-size: var(--fs-s); }
  .sticky .btn { min-height: 44px; padding: 8px 12px; font-size: 1.0625rem; }
  .sticky .btn-gold { flex: 1 1 auto; }
  .btn-line-clair { background: transparent; color: var(--on-ink); border-color: var(--on-ink-rule); }
  .btn-line-clair:hover { border-color: var(--on-ink); }
}
