:root {
  --paper: #faf6ee;
  --ink: #2E2018;
  --gold: #9A7B2F;
  --brown: #6B4A2E;
  --line: #e5dcc8;
  --card: #ffffff;
  --muted: #7a6f5c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 500; color: var(--brown); margin: 0 0 8px; }
h1 { font-size: 24px; }
h3 { font-size: 16px; }
p { line-height: 1.5; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
.script { font-family: "Brush Script MT", cursive; color: var(--gold); font-size: 1.1em; }
.eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 11px; color: var(--gold); margin-bottom: 6px; }

.shell { display: flex; flex-direction: column; min-height: 100vh; }
.screen { flex: 1; padding: 20px 16px 90px; max-width: 480px; margin: 0 auto; width: 100%; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn.primary { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.block { display: block; width: 100%; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.tab {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-family: inherit; font-size: 11px;
  flex: 1; padding: 4px;
}
.tab.actif { color: var(--brown); font-weight: 600; }
.tab-icon { font-size: 18px; }

.onboarding { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.onboarding-inner { max-width: 380px; text-align: center; }
.onboarding-inner h1 { font-size: 30px; line-height: 1.2; }

.cle-card { display: flex; gap: 14px; align-items: flex-start; }
.cle-numero {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; flex-shrink: 0;
}

.progress-row { display: flex; justify-content: space-between; padding: 4px 0; }
.progress-bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: var(--gold); }

.ligne-parcours {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.ligne-parcours:first-of-type { border-top: none; }

textarea {
  width: 100%; min-height: 90px; padding: 10px;
  border-radius: 10px; border: 1px solid var(--line);
  font-family: inherit; font-size: 14px; resize: vertical;
}

.destinataires-liste { margin: 10px 0; }
.check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; cursor: pointer; font-size: 14px;
}
.check-row input { width: 18px; height: 18px; }

.reseaux-grid { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

.admin-trigger { text-align: center; margin-top: 24px; }
.link-auteure {
  background: none; border: none; color: var(--muted);
  font-size: 12px; text-decoration: underline; cursor: pointer;
}
