/* PotPotes — palette issue du logo : marine, vert, jaune du pot, bleu, corail */
:root {
	--bg: #f4f7fb; --card: #ffffff; --ink: #1f2d5c; --muted: #6b7591; --line: #e1e7f0;
	--accent: #22a67a; --accent-ink: #ffffff; --pot: #ffb627; --pot-dark: #e8971f;
	--blue: #2f8de4; --pos: #22a67a; --neg: #ef6f62; --radius: 16px;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #141a2b; --card: #1d2540; --ink: #eef2fa; --muted: #9aa5c4; --line: #2c3757; --accent: #34c391; --pos: #34c391; --neg: #ff8a7d; }
}
* { box-sizing: border-box; }
html { font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; background: var(--bg); color: var(--ink); }
body { margin: 0; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 96px; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; font-weight: 800; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.05rem; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-size: 0.9rem; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-bottom: 12px; }
.brand img { width: 40px; height: 40px; }
.brand .name { font-weight: 900; font-size: 1.15rem; }
.brand .name b { color: var(--accent); }
.brand .slogan { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.logo-hero { width: min(320px, 80%); height: auto; margin: 0 auto; display: block; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(31, 45, 92, 0.05); }
.card.pot { background: linear-gradient(135deg, var(--pot), var(--pot-dark)); color: #1f2d5c; border: 0; }
.card.pot .muted { color: rgba(31, 45, 92, 0.75); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
input.amount { font-size: 2.2rem; font-weight: 900; text-align: center; color: var(--pot-dark); }
textarea { min-height: 72px; resize: vertical; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--card); color: var(--ink); }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.danger { color: var(--neg); }
button.small, .btn.small { padding: 6px 10px; font-size: 0.85rem; border-radius: 10px; }
button.block, .btn.block { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--card); cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.icon { font-size: 1.4rem; width: 36px; text-align: center; flex-shrink: 0; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amount-pos { color: var(--pos); font-weight: 800; }
.amount-neg { color: var(--neg); font-weight: 800; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; flex-shrink: 0; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: var(--blue); border-radius: 4px; }
.fab { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; font-size: 2rem; box-shadow: 0 8px 22px rgba(34, 166, 122, 0.4); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.error { color: var(--neg); font-weight: 700; }
details summary { cursor: pointer; font-weight: 700; }
details.movement { border-top: 1px solid var(--line); padding: 10px 0; }
details.movement:first-of-type { border-top: 0; }
details.movement summary { list-style: none; display: flex; align-items: center; gap: 12px; }
details.movement summary::-webkit-details-marker { display: none; }
details.movement .more { padding: 8px 0 0 48px; }
.split-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.split-table td { padding: 4px 0; border-top: 1px dashed var(--line); }
.split-table td:last-child { text-align: right; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { padding: 4px 10px; border-radius: 8px; }
.stepper span { min-width: 1.5em; text-align: center; font-weight: 800; }
.actions { display: flex; gap: 8px; }
ol.steps { margin: 0 0 12px; padding-left: 22px; } ol.steps li { margin-bottom: 10px; line-height: 1.45; }
