/* Shared style of the public pages (confidentialite, guides…). Static: no JavaScript.
   Same tokens as the app (CLAUDE.md "Design tokens"). */
:root {
  --page: #ebe4f5;
  --surface: #ffffff;
  --border: #e2dde8;
  --soft: #ece7f3;
  --primary: #4b2e83;
  --primary-hover: #3e2670;
  --text: #1d1830;
  --muted: #4a4459;
  --cta: #ffc857;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Gabarito', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.6;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-xs); }

.pg-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.pg-logo-mark {
  width: 40px;
  height: 40px;
  display: block;
}
.pg-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.pg-cta:hover { background: var(--primary-hover); color: #fff; }

.pg-main { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; }
.pg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}
@media (min-width: 640px) { .pg-card { padding: 44px 48px; } }

h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; font-weight: 800; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: 20px; font-weight: 800; margin: 32px 0 8px; text-wrap: balance; }
p, li { color: var(--muted); font-size: 16px; text-wrap: pretty; }
/* Comfortable reading measure (about 70 characters per line) */
.pg-card p, .pg-card ul, .pg-card ol { max-width: 58ch; }
strong { color: var(--text); }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }
.pg-lead { font-size: 18px; color: var(--text); }
.pg-date { font-size: 14px; }

/* Placeholders still to fill: impossible to miss on purpose. */
mark.todo { background: #ffe4e6; color: #9f1239; padding: 0 4px; border-radius: var(--radius-xs); font-weight: 700; }

.pg-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
/* The "·" separators sit at line ends when the links wrap, which makes the rows look off-centre: the gap separates the links instead. */
.pg-footer > span[aria-hidden='true'] { display: none; }
.pg-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- "Comment ça marche" blocks ---------- */
.pg-steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.pg-steps li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.pg-steps strong { display: block; }
.pg-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--cta);
  color: var(--text);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.pg-demo {
  margin: 24px 0;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--page);
}
.pg-demo-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.pg-demo-pct { color: var(--primary); }
.pg-bar { height: 10px; margin: 12px 0 14px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.pg-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chips li { margin: 0; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pg-chips .is-done { background: #dcfce7; color: #14532d; }
.pg-chips .is-todo { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--border); }
.pg-demo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.pg-status { list-style: none; padding: 0; display: grid; gap: 10px; }
.pg-status li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.pill-ok { background: #dcfce7; color: #14532d; }
.pill-tight { background: #fef3c7; color: #7a4a00; }
.pill-late { background: #ffe4e6; color: #9f1239; }

.pg-final {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--soft);
  text-align: center;
}
/* Paragraphs are capped at 58ch (.pg-card p): centre those boxes too, not only their text. */
.pg-final p { margin-left: auto; margin-right: auto; }
.pg-final-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--text); }
.pg-cta-lg { min-height: 52px; padding: 0 26px; font-size: 17px; margin-top: 8px; }

/* ---------- Guides ---------- */
.pg-byline { font-size: 14px; margin-top: -4px; }
.pg-formula {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
  text-align: center;
}
.pg-checklist {
  margin-top: 36px;
  padding: 4px 22px 12px;
  border-radius: var(--radius-sm);
  background: #fff4d6;
}
.pg-checklist h2 { margin-top: 20px; }
.pg-checklist ul { list-style: none; padding: 0; }
.pg-checklist li { position: relative; padding-left: 30px; }
.pg-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xs);
}
.pg-final-more { margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.pg-final-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.pg-ico { flex: none; }
.pg-chips li { display: inline-flex; align-items: center; gap: 4px; }
