:root {
  --accent: #14573f;
  --titres: Bahnschrift, "DIN Alternate", "DIN Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --accent-text: #ffffff;
  --bg: #e7ecec;
  --card: #ffffff;
  --text: #14202d;
  --muted: #4b5864;
  --line: #c9d2d4;
  --danger: #c0352b;
  --ok: #17803d;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 48px; }
.wrap.wide { max-width: 980px; }
h1, h2, h3 { font-family: var(--titres); letter-spacing: 0; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 6px; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: .92rem; }
.brand { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; }
.brand img { max-height: 48px; max-width: 140px; object-fit: contain; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  margin-bottom: 14px;
}
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #aebcbf;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}
input[type=color] { width: 64px; height: 42px; border: 1px solid #aebcbf; border-radius: 4px; padding: 2px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus, .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; }
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}
.btn.block { display: block; width: 100%; }
.btn.secondary { background: #fff; color: var(--accent); }
.btn:not([disabled]):hover { filter: brightness(.92); }
.btn.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn.small { padding: 7px 12px; font-size: .9rem; border-radius: 3px; }
.btn[disabled] { opacity: .55; cursor: default; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.error { color: var(--danger); font-weight: 600; margin: 8px 0; }
.success { color: var(--ok); font-weight: 600; margin: 8px 0; }
.banner { padding: 12px 14px; border-radius: 4px; background: #fff7e0; border: 1px solid #f0d78a; margin-bottom: 14px; }
.banner.ok { background: #e9f8ee; border-color: #a6dfb9; }
.types { display: grid; gap: 10px; }
.types .btn { text-align: left; background: #fff; color: var(--text); border: 1px solid var(--line); border-left: 6px solid var(--accent); }
.choices { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .choices { grid-template-columns: 1fr; } }
.choices.trois { grid-template-columns: 1fr; }
.preview { margin: 14px 0; text-align: center; }
.preview img { max-width: 100%; max-height: 320px; border-radius: 3px; border: 1px solid var(--line); }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.big-check { font-size: 3rem; color: var(--ok); line-height: 1; }
.center { text-align: center; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #e3e9ea; color: #3f4c57; }
.badge.done { background: #e1f5e8; color: var(--ok); }
.badge.warn { background: #fff0cc; color: #8a5a00; }
.badge.bad { background: #fde4e1; color: var(--danger); }
.sub { border-top: 1px solid var(--line); padding: 12px 0; }
.sub:first-child { border-top: 0; }
.sub ul { margin: 8px 0; padding-left: 20px; }
.logo-preview { max-height: 56px; max-width: 160px; display: block; margin: 8px 0; }
code.link { display: block; overflow-wrap: anywhere; background: #eef2f2; padding: 10px; border-radius: 3px; font-size: .9rem; }
.hero { padding: 56px 0 24px; }
.hero h1 { font-size: 2rem; }
.hero p { font-size: 1.1rem; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
footer.small { margin-top: 28px; color: var(--muted); font-size: .85rem; }

.back { margin: 0 0 14px; font-size: .92rem; }
.back a { text-decoration: none; font-weight: 600; }
.back a:hover { text-decoration: underline; }
button.linklike { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

.doc-types { list-style: none; margin: 0 0 12px; padding: 0; }
.doc-types li { justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.doc-types li:first-child { border-top: 0; }
.company-picker { display: inline-flex; align-items: center; gap: 6px; }

/* Espace RH : écran coupé en deux colonnes sur toute la hauteur — navigation à gauche, contenu à droite */
.rh-layout { display: flex; min-height: 100vh; }
.rh-menu { flex: 0 0 240px; width: 240px; max-width: 240px; position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--card); border-right: 1px solid var(--line); }
.rh-main { flex: 1 1 0; min-width: 0; max-width: 980px; padding: 20px 24px 48px; }
.rh-menu .company-picker { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 14px; width: 100%; }
.rh-menu .company-picker select { width: 100%; max-width: 100%; padding: 8px 10px; text-overflow: ellipsis; }
.rh-menu a { display: block; padding: 9px 12px; border-radius: 3px; color: inherit; text-decoration: none; }
.rh-menu a:hover { background: rgba(20, 32, 45, .06); }
.rh-menu a[aria-current=page] { font-weight: 700; background: rgba(20, 32, 45, .08); }
.rh-menu-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.rh-menu hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; width: 100%; }
/* sous-pages de Configuration, légèrement en retrait */
.rh-submenu { display: flex; flex-direction: column; gap: 2px; margin-left: 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.rh-submenu a { padding: 6px 10px; font-size: .95rem; }
@media (max-width: 760px) {
  .rh-layout { flex-direction: column; }
  .rh-menu { position: static; flex: none; width: 100%; max-width: none; height: auto; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rh-menu .company-picker { flex: 1 0 100%; margin-bottom: 4px; }
  .rh-menu hr { display: none; }
  .rh-menu-bottom { margin-top: 0; flex-direction: row; flex-wrap: wrap; border-top: 0; padding-top: 0; }
  .rh-main { padding: 16px; }
}
