/* panacheo · site public — feuille courte, écrite à la main, sur les jetons du design system (livrables/design-tokens :
   papier, encre, sauge réservée à l'assistant, Geist et Geist Mono, rayons, espaces de base 4). La direction artistique complète
   des maquettes viendra à la phase front-end : ici, une structure propre et sobre, lisible sans JavaScript, de 360 à 2 560 px. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f5f0;
  --surface: #fffdfa;
  --hollow: #efece5;
  --rule: #e4e0d7;
  --rule-strong: #d3cec3;
  --ink: #1c1b18;
  --ink-2: #4a4740;
  --ink-3: #6e6a62;
  --ink-4: #a9a59c;
  --sage-50: #f1f7f3;
  --sage-100: #e2f0e8;
  --sage-500: #3d9171;
  --sage-600: #2f7d62;
  --sage-700: #24654f;
  --ochre-bg: #f8eedc;
  --ochre: #6b460b;
  --brick: #b23b26;
  --brick-bg: #f9e6e1;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  --fs-h1: clamp(2.375rem, 1.4rem + 3.9vw, 4.75rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h4: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;
  --r-22: 22px;
  --r-pill: 999px;
  --page: clamp(16px, 5vw, 72px);
  --content: 1180px;
  --section-y: clamp(56px, 4vw + 32px, 120px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 12px 32px -12px rgb(60 50 30 / 0.2), 0 2px 6px rgb(60 50 30 / 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.55 var(--font);
  font-feature-settings: "ss01";
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--hollow);
}
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-4);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: -0.045em;
}
h2 {
  font-size: var(--fs-h2);
}
h3,
.h3 {
  font-size: var(--fs-h3);
}
h4,
.h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 var(--s-4);
  max-width: 68ch;
}
ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.2em;
}
.line {
  display: block;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 10;
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-8);
}
.skip-link:focus {
  top: var(--s-4);
}

.wrap {
  width: min(100% - 2 * var(--page), var(--content));
  margin-inline: auto;
}
.kicker {
  font: 500 0.8125rem / 1.4 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
}
.muted {
  color: var(--ink-3);
}
.caption {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.note {
  padding: var(--s-3) var(--s-4);
  background: var(--hollow);
  border-left: 3px solid var(--rule-strong);
  border-radius: var(--r-8);
  color: var(--ink-2);
}
.error {
  padding: var(--s-3) var(--s-4);
  background: var(--brick-bg);
  border-left: 3px solid var(--brick);
  border-radius: var(--r-8);
  color: var(--ink);
}
.price {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--s-3);
}
.price--big {
  font-size: clamp(3rem, 2rem + 5vw, 6.5rem);
}
.code {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.quote {
  font-size: var(--fs-lead);
  border-left: 3px solid var(--ink);
  padding-left: var(--s-4);
  margin: var(--s-6) 0;
}

/* Bandeau et navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand__mark {
  width: 31px;
  height: 20px;
}
.site-nav {
  flex: 1 1 auto;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}
.site-header__end {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.lang-link {
  font: 600 0.8125rem var(--mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
}
@media (max-width: 720px) {
  .site-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
  }
  .site-nav ul {
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 4px;
  }
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  margin-right: var(--s-2);
  color: var(--ink-4);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s-6);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--surface);
  font: 600 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background 220ms var(--ease);
  }
}
.btn:hover {
  background: #2e2c27;
  color: var(--surface);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--hollow);
  color: var(--ink);
}
.btn--small {
  min-height: 40px;
  padding: 0 var(--s-4);
  font-size: 0.9375rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-6) 0;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding: 0;
  list-style: none;
}

/* Héros et sections */
.hero {
  padding-block: clamp(40px, 6vw, 96px) var(--s-8);
}
.hero h1 {
  max-width: 16ch;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.badges li::before {
  content: "✓ ";
  color: var(--ink);
}
.catalog {
  font: 500 0.875rem var(--mono);
  color: var(--ink-2);
}
.section {
  padding-block: var(--section-y);
}
.section--soft {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}
.byline {
  color: var(--ink-2);
  margin-bottom: var(--s-2);
}
.keyfigure {
  margin-top: var(--s-6);
}

/* Faits, listes, étapes */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--s-4) var(--s-8);
  margin: var(--s-6) 0;
}
.facts > div {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--s-3);
}
.facts dt {
  font-weight: 600;
  margin-bottom: 4px;
}
.facts dd {
  margin: 0;
  color: var(--ink-2);
}
.facts--steps {
  counter-reset: step;
}
.facts--steps > div {
  counter-increment: step;
}
.facts--steps dt::before {
  content: counter(step) " · ";
  color: var(--ink-3);
  font-family: var(--mono);
}
.list {
  padding-left: 1.2em;
}
.list li {
  margin-bottom: var(--s-2);
}
.list--check {
  list-style: none;
  padding-left: 0;
}
.list--check li::before {
  content: "✓";
  color: var(--ink);
  margin-right: var(--s-2);
}
.list--cross {
  list-style: none;
  padding-left: 0;
}
.list--cross li::before {
  content: "✕";
  color: var(--brick);
  margin-right: var(--s-2);
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
.steps > li {
  counter-increment: s;
  position: relative;
  padding: var(--s-4) var(--s-4) var(--s-4) 3.2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-16);
}
.steps > li::before {
  content: counter(s);
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hollow);
  color: var(--ink);
  font: 600 0.875rem var(--mono);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0;
  display: grid;
  gap: var(--s-2);
}
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--s-3);
  color: var(--ink-2);
}
.timeline__time {
  font: 500 0.875rem / 1.9 var(--mono);
  color: var(--ink-3);
}
/* La nuit de l'assistant (W1) : seul endroit du site où l'assistant parle, d'où sa sauge. */
.night .timeline__time {
  color: var(--sage-700);
}

/* Cartes, offres, colonnes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s-4);
  padding: 0;
  margin: var(--s-6) 0;
  list-style: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-22);
  padding: var(--s-6);
}
.card--highlight {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.card--warn {
  background: var(--ochre-bg);
  border-color: #e9d6b0;
}
.card__link {
  display: inline-block;
  font-weight: 600;
  font-size: var(--fs-h4);
  margin-bottom: var(--s-2);
}
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--s-6);
}
.columns--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--s-4);
}
.plan {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-22);
  padding: var(--s-6);
}
.plan--featured {
  border: 2px solid var(--ink);
}
.offer {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--s-6);
  margin-top: var(--s-6);
}
.example {
  background: var(--hollow);
  border-radius: var(--r-16);
  padding: var(--s-4) var(--s-6);
  margin: var(--s-4) 0;
}
.other-country {
  margin-top: var(--s-6);
}
.other-country summary {
  cursor: pointer;
  font-weight: 600;
}
.insert {
  max-width: 640px;
}
.org-logo {
  border-radius: var(--r-12);
  background: var(--hollow);
}
.email {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-16);
  padding: var(--s-6);
  margin: var(--s-4) 0;
}
.email__head {
  display: grid;
  gap: 4px;
  margin: 0 0 var(--s-4);
  font-size: 0.9375rem;
}
.email__head div {
  display: flex;
  gap: var(--s-2);
}
.email__head dt {
  color: var(--ink-3);
  min-width: 4rem;
}
.email__head dd {
  margin: 0;
}

/* Étiquettes et registre */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--hollow);
  font: 500 0.75rem / 1.6 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  vertical-align: middle;
}
.badge--published {
  background: var(--ink);
  color: var(--paper);
}
.badge--upcoming {
  background: var(--hollow);
  color: var(--ink-3);
}
.entries {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.entry {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.entry__meta {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.occupation {
  margin-top: var(--s-8);
}
.signals {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.signal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  align-items: baseline;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-12);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.signal__name {
  font-weight: 600;
  min-width: 10rem;
}
.signal--on .badge {
  background: var(--ochre-bg);
  color: var(--ochre);
}
.signal--off .badge {
  background: var(--hollow);
  color: var(--ink-2);
}

/* Tableaux */
.table-wrap {
  overflow-x: auto;
  margin: var(--s-6) 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.table caption {
  text-align: left;
  font: 500 0.8125rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: var(--s-3);
}
.table th,
.table td {
  text-align: left;
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.table thead th {
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.table tbody th {
  font-weight: 500;
}
.table .align-right {
  text-align: right;
}
.table .align-center {
  text-align: center;
}

/* Questions */
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: var(--s-4) 0;
  max-width: 820px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-h4);
  list-style-position: outside;
}
.faq details p {
  margin-top: var(--s-3);
  color: var(--ink-2);
}

/* Formulaires et outils */
.tool,
.calc {
  display: grid;
  gap: var(--s-3);
  max-width: 640px;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-22);
}
.field {
  display: grid;
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0;
}
.field__label,
legend.field__label {
  font-weight: 600;
}
.field__input {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-12);
  background: var(--paper);
  font: inherit;
  color: inherit;
}
.field__input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px var(--rule);
}
.hint {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin: 0;
}
.choice {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  min-height: 40px;
}
.inline-form {
  display: grid;
  gap: var(--s-2);
  max-width: 480px;
}
.tool__result {
  padding: var(--s-4);
  border-radius: var(--r-16);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
}
.tool__result h3 {
  font-size: var(--fs-h4);
}
.calc__out .facts {
  margin: var(--s-3) 0 0;
}
.checkout {
  max-width: 720px;
}
.checkout__summary {
  margin-bottom: var(--s-6);
}

/* Graphiques (SVG) */
.chart {
  margin: var(--s-6) 0;
}
.chart__svg {
  width: 100%;
  max-width: 760px;
  font-family: var(--font);
}
.chart__label {
  font-size: 15px;
  fill: var(--ink-2);
}
.chart__value {
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink);
}
.chart__track {
  fill: var(--hollow);
}
.chart__bar {
  fill: var(--ink-2);
}
.chart__mark {
  stroke: var(--ink);
  stroke-width: 2;
}

/* Pages écrites à la main (Markdown) */
.prose {
  max-width: 760px;
  padding-block: var(--s-8);
}
.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--s-12);
}
.prose h3 {
  font-size: var(--fs-h4);
  margin-top: var(--s-8);
}
.prose blockquote {
  margin: var(--s-6) 0;
  padding-left: var(--s-4);
  border-left: 3px solid var(--rule-strong);
  color: var(--ink-2);
}
.prose .aside {
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-16);
}
.prose .aside__title {
  font-weight: 600;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule-strong);
  margin: var(--s-8) 0;
}
.toc {
  padding-block: var(--s-6) 0;
}

/* Pied de page */
.site-footer {
  margin-top: var(--section-y);
  padding-block: var(--s-12);
  background: var(--ink);
  color: #e9e6df;
}
.site-footer a {
  color: #f7f5f0;
}
.site-footer .kicker,
.site-footer .muted,
.site-footer .caption {
  color: #b5b0a5;
}
.site-footer__call {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid #3a3833;
}
.site-footer__sig {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.site-footer .btn--ghost {
  border-color: #f7f5f0;
  color: #f7f5f0;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--s-6);
  padding-block: var(--s-8);
}
.site-footer__cols ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-2);
  font-size: 0.9375rem;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  border-top: 1px solid #3a3833;
  padding-top: var(--s-6);
}

@media print {
  .site-header,
  .site-footer,
  .actions,
  .tool,
  .breadcrumb {
    display: none;
  }
  body {
    background: #fff;
  }
}
