@charset "UTF-8";
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-normal-400-latin-ext-lGqgckF.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-normal-400-latin-2tcpIt-.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-normal-700-latin-ext-oWWpfHb.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-normal-700-latin--Us-gGc.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-normal-500-latin-ext-HOPDPv1.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-normal-500-latin-k0HXNf5.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-normal-700-latin-ext-HOPDPv1.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-normal-700-latin-k0HXNf5.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-normal-800-latin-ext-HOPDPv1.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-normal-800-latin-k0HXNf5.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fredoka-normal-500-latin-ext-4MyKwOB.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fredoka-normal-500-latin-tp8Uwyw.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fredoka-normal-600-latin-ext-4MyKwOB.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fredoka-normal-600-latin-tp8Uwyw.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fredoka-normal-700-latin-ext-4MyKwOB.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fredoka-normal-700-latin-tp8Uwyw.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Layout : barre de rôles en haut, navigation par onglets propre au rôle, contenu en grille de cartes. Une couleur d'accent par rôle. */
:root {
  --paper:#F5F6F4;
  --card:#FFFFFF;
  --ink:#18201C;
  --muted:#5E6A64;
  --line:#DDE2DE;
  --soft:#ECEFEC;
  --p1:#1F6F5C;
  --p1-soft:#E3F1EC;
  --p2:#B4531F;
  --p2-soft:#FBEBE0;
  --ado:#C2264B;
  --ado-soft:#FCE6EB;
  --kid:#0A6FA8;
  --kid-soft:#E0F2FC;
  --on-accent:#FFFFFF;
  --good:#1E8A4C;
  --bad:#C62E2E;
  --warn:#B7791F;
  --jar1:#F6C744;
  --jar1-soft:#FFF6D6;
  --jar1-ink:#7A5800;
  --jar2:#3DBE6E;
  --jar2-soft:#E3F8EA;
  --jar2-ink:#14632F;
  --jar3:#EE6FA6;
  --jar3-soft:#FDE8F1;
  --jar3-ink:#8E1C4D;
  --accent:var(--p1);
  --accent-soft:var(--p1-soft);
  --f-display:"Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body:"Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-kid:"Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --r:14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --paper:#111614;
    --card:#19201D;
    --ink:#E8EEEA;
    --muted:#9AA7A0;
    --line:#2B3531;
    --soft:#212A26;
    --p1:#5CC4A6;
    --p1-soft:#1B302A;
    --p2:#F0915A;
    --p2-soft:#33231A;
    --ado:#F27896;
    --ado-soft:#36202A;
    --kid:#5BBDF0;
    --kid-soft:#16303F;
    --good:#5BD08C;
    --bad:#F27272;
    --warn:#E8B04F;
    --jar1-soft:#3A3217;
    --jar1-ink:#FBD86B;
    --jar2-soft:#173826;
    --jar2-ink:#7BE3A1;
    --jar3-soft:#3B1D2B;
    --jar3-ink:#F8A5C8;
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --paper:#111614;
  --card:#19201D;
  --ink:#E8EEEA;
  --muted:#9AA7A0;
  --line:#2B3531;
  --soft:#212A26;
  --p1:#5CC4A6;
  --p1-soft:#1B302A;
  --p2:#F0915A;
  --p2-soft:#33231A;
  --ado:#F27896;
  --ado-soft:#36202A;
  --kid:#5BBDF0;
  --kid-soft:#16303F;
  --good:#5BD08C;
  --bad:#F27272;
  --warn:#E8B04F;
  --jar1-soft:#3A3217;
  --jar1-ink:#FBD86B;
  --jar2-soft:#173826;
  --jar2-ink:#7BE3A1;
  --jar3-soft:#3B1D2B;
  --jar3-ink:#F8A5C8;
  color-scheme: dark;
}

[data-role=p1] {
  --accent:var(--p1);
  --accent-soft:var(--p1-soft);
}

[data-role=p2] {
  --accent:var(--p2);
  --accent-soft:var(--p2-soft);
}

[data-role=ado] {
  --accent:var(--ado);
  --accent-soft:var(--ado-soft);
}

[data-role=kid] {
  --accent:var(--kid);
  --accent-soft:var(--kid-soft);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
}

.num {
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  font-family: var(--f-display);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.demo {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
}

.demo b {
  font-weight: 700;
}

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand svg {
  flex: none;
}

.bn {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand b {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
}

.bn small {
  font-size: 12px;
  color: var(--muted);
}

.lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--good);
  background: var(--soft);
  padding: 3px 9px;
  border-radius: 99px;
}

.roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cur {
  position: relative;
}

.cur summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: 7px 14px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.cur summary::-webkit-details-marker {
  display: none;
}

.cur summary .ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.cur[open] summary {
  border-color: var(--ink);
}

.curpanel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  width: min(300px, 100vw - 32px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curpanel h3 {
  font-size: 15px;
}

.curseg {
  display: flex;
  gap: 6px;
}

.curseg button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 8px 4px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.curseg button small {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

.curseg button[aria-pressed=true] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.curseg button[aria-pressed=true] small {
  color: var(--paper);
  opacity: 0.75;
}

.rate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 400;
}

.rate input {
  width: 96px;
  padding: 6px 8px;
}

.curpanel p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.role {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 5px 12px 5px 5px;
  border-radius: 99px;
  font-size: 14px;
}

.role i {
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.role[aria-pressed=true] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.role small {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.tab {
  border: 0;
  background: none;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.tab[aria-selected=true] {
  color: var(--accent);
  border-color: var(--accent);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 24px 64px;
}

.hello {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hello h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
}

.hello p {
  margin: 4px 0 0;
  color: var(--muted);
}

.month {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 12px;
  background: var(--card);
}

.grid {
  display: grid;
  gap: 16px;
}

.kpis {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  min-width: 0;
}

.card h2 {
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.card h2 small {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.kpi .lab {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.kpi .val {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  margin: 4px 0 2px;
  line-height: 1.1;
}

.kpi .hint {
  font-size: 13px;
  color: var(--muted);
}

.kpi.main {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.kpi.main .lab, .kpi.main .hint {
  color: inherit;
  opacity: 0.95;
}

.pos {
  color: var(--good);
}

.neg {
  color: var(--bad);
}

.split {
  display: flex;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0 10px;
}

.split div {
  display: flex;
  align-items: center;
  padding-inline: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  background: var(--c);
}

.list {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.row:last-child {
  border-bottom: 0;
}

.row .t {
  font-weight: 700;
  min-width: 0;
}

.row .s {
  grid-column: 1;
  font-size: 13px;
  color: var(--muted);
}

.row .a {
  grid-row: 1/3;
  grid-column: 2;
  text-align: right;
  font-weight: 700;
}

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip.c {
  background: var(--p1-soft);
  color: var(--p1);
}

.chip.p1 {
  background: var(--p1-soft);
  color: var(--p1);
}

.chip.p2 {
  background: var(--p2-soft);
  color: var(--p2);
}

.chip.soon {
  background: var(--soft);
  color: var(--good);
}

.tbl-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td.r, th.r {
  text-align: right;
}

tr.grp td {
  background: var(--soft);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fbtn {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 13px;
}

.fbtn[aria-pressed=true] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar .h {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  gap: 8px;
}

.bar .h b {
  font-weight: 700;
}

.track {
  position: relative;
  height: 12px;
  background: var(--soft);
  border-radius: 99px;
  margin-top: 5px;
  overflow: hidden;
}

.track .plan {
  position: absolute;
  inset: 0 auto 0 0;
  border-right: 2px solid var(--ink);
  opacity: 0.35;
}

.track .real {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 99px;
}

.track .real.over {
  background: var(--bad);
}

form.add {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink);
  min-width: 0;
  width: 100%;
}

.btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
}

.btn.ghost {
  background: var(--soft);
  color: var(--ink);
}

a.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--on-accent);
}

.proj {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pc .em {
  font-size: 28px;
}

.pc h3 {
  font-size: 17px;
  margin: 6px 0 2px;
}

.pc .meta {
  font-size: 13px;
  color: var(--muted);
}

.prog {
  height: 10px;
  background: var(--soft);
  border-radius: 99px;
  margin: 12px 0 6px;
  overflow: hidden;
}

.prog div {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

.pc .eta {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

.cipher {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 12px;
  background: var(--soft);
  border-radius: 10px;
  padding: 12px;
  word-break: break-all;
  color: var(--muted);
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.flow div {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}

.flow b {
  display: block;
  font-family: var(--f-display);
  font-size: 15px;
}

.flow .srv {
  border-style: solid;
  border-color: var(--bad);
}

/* ----- Ado ----- */
.rule {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rule .r3 {
  border-radius: 12px;
  padding: 12px;
  background: var(--soft);
}

.rule .r3 .p {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
}

.rule .r3 .m {
  font-weight: 700;
}

.rule .r3 small {
  color: var(--muted);
  font-size: 13px;
}

.r3.b {
  background: var(--ado-soft);
}

.r3.e {
  background: var(--jar1-soft);
}

.r3.s {
  background: var(--jar2-soft);
}

.goal {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.ring {
  --v:0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--soft) 0);
}

.ring span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
}

/* ----- Enfant ----- */
.kid {
  font-family: var(--f-kid);
}

.kid h1, .kid h2 {
  font-family: var(--f-kid);
  font-weight: 700;
}

.kidhero {
  background: var(--kid);
  color: var(--on-accent);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.kidhero h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.kidhero p {
  margin: 2px 0 0;
  font-size: 17px;
}

.kbtn {
  font-family: var(--f-kid);
  font-weight: 700;
  font-size: 18px;
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  background: var(--on-accent);
  color: var(--kid);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.kbtn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.kbtn small, .kstatus small {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.kbtn {
  animation: wiggle 2.4s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 86%, 100% {
    transform: rotate(0);
  }
  90% {
    transform: rotate(-3deg);
  }
  95% {
    transform: rotate(3deg);
  }
}
.kstatus {
  border: 2px dashed currentColor;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 17px;
  max-width: 340px;
}

.btn:disabled {
  background: var(--soft);
  color: var(--muted);
  cursor: default;
}

.pocket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.pocket b {
  display: block;
}

.pocket span:not(.kav) {
  font-size: 13px;
  color: var(--muted);
}

.kav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kid);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.demolink {
  display: block;
  margin: 18px auto 0;
  border: 1px dashed var(--line);
  background: none;
  color: var(--muted);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--f-body);
}

.jars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.jar {
  border-radius: 22px;
  padding: 18px;
  text-align: center;
  background: var(--js);
  border: 3px solid var(--jc);
}

.jar .e {
  font-size: 54px;
  line-height: 1;
}

.jar .n {
  font-size: 20px;
  font-weight: 700;
  color: var(--ji);
  letter-spacing: 0.03em;
}

.jar .v {
  font-size: 44px;
  font-weight: 700;
  color: var(--ji);
  line-height: 1.1;
  margin: 6px 0;
}

.jar .d {
  font-size: 15px;
  color: var(--ink);
}

.jar .plus {
  display: inline-block;
  margin-top: 8px;
  background: var(--jc);
  color: #1b1b1b;
  border-radius: 99px;
  padding: 3px 12px;
  font-weight: 700;
  font-size: 14px;
}

.j1 {
  --js:var(--jar1-soft);
  --jc:var(--jar1);
  --ji:var(--jar1-ink);
}

.j2 {
  --js:var(--jar2-soft);
  --jc:var(--jar2);
  --ji:var(--jar2-ink);
}

.j3 {
  --js:var(--jar3-soft);
  --jc:var(--jar3);
  --ji:var(--jar3-ink);
}

.bump {
  animation: bump 0.5s ease;
}

@keyframes bump {
  40% {
    transform: scale(1.08);
  }
}
.level {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  font-size: 56px;
  line-height: 1;
}

.steps {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.steps span {
  font-size: 22px;
  opacity: 0.3;
  filter: grayscale(1);
}

.steps span.on {
  opacity: 1;
  filter: none;
}

.wish {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px dashed var(--line);
}

.wish:last-child {
  border: 0;
}

.wish .em {
  font-size: 36px;
  grid-row: 1/3;
}

.wish .nm {
  font-size: 18px;
  font-weight: 700;
}

.wish .when {
  grid-row: 1/3;
  grid-column: 3;
  font-weight: 700;
  color: var(--kid);
  font-size: 17px;
  text-align: right;
}

.coins {
  font-size: 20px;
  letter-spacing: 2px;
}

.kid .card {
  border-radius: 22px;
  border-width: 2px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  z-index: 9;
}

@media (prefers-reduced-motion: reduce) {
  .bump, .kbtn {
    animation: none;
  }
}
@media (max-width: 520px) {
  .rule {
    grid-template-columns: 1fr;
  }
  .kpi .val {
    font-size: 26px;
  }
}
/* ----- Refonte parents : compte commun, prévisions, import ----- */
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.seg button {
  border: 0;
  background: none;
  padding: 8px 16px;
  font-weight: 700;
  color: var(--muted);
}

.seg button[aria-pressed=true] {
  background: var(--ink);
  color: var(--paper);
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-wrap {
  overflow-x: auto;
  margin: 4px -4px 0;
}

.chart-wrap svg {
  display: block;
  min-width: 620px;
  width: 100%;
  height: auto;
}

.chart-wrap text {
  font-family: var(--f-body);
  fill: var(--muted);
  font-size: 11px;
}

.legend2 {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.legend2 span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend2 i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.legend2 i.l {
  height: 3px;
  border-radius: 2px;
}

.state {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.state.ok {
  background: var(--p1-soft);
  color: var(--good);
}

.state.warn {
  background: var(--jar1-soft);
  color: var(--warn);
}

.state.bad {
  background: var(--ado-soft);
  color: var(--bad);
}

.why {
  font-size: 12px;
  color: var(--muted);
  white-space: normal;
  min-width: 180px;
}

.scen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
}

.sw input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.sw b {
  display: block;
}

.sw small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.sw:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sw .inl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.sw .inl input {
  width: 70px;
  height: auto;
  padding: 4px 6px;
}

.big {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.splitline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.who {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border-radius: 12px;
  padding: 8px 12px;
  flex: 1;
  min-width: 160px;
}

.who i {
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.who b {
  display: block;
}

.who span {
  font-size: 12px;
  color: var(--muted);
}

.drop {
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  background: var(--paper);
}

.drop.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.drop input {
  display: none;
}

.acct {
  display: flex;
  gap: 12px;
  align-items: center;
}

.acct .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--soft);
  flex: none;
}

.acct b {
  display: block;
}

.acct span {
  font-size: 13px;
  color: var(--muted);
}

.matrix td, .matrix th {
  text-align: center;
}

.matrix td:first-child, .matrix th:first-child {
  text-align: left;
}

.cell-yes {
  color: var(--good);
  font-weight: 700;
}

.cell-sum {
  color: var(--warn);
  font-weight: 700;
}

.cell-no {
  color: var(--muted);
}

.private {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

select.mini {
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 8px;
  width: auto;
}

.goalrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.goalrow:last-child {
  border: 0;
}

.goalrow .prog {
  grid-column: 1/3;
  margin: 6px 0 0;
}

.goalrow small {
  color: var(--muted);
}

.free {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.free div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.drop label.btn {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  color: #fff;
  display: inline-block;
  cursor: pointer;
}

.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--bad);
  background: var(--ado-soft);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-top: 16px;
}

.alert .ic {
  font-size: 26px;
  line-height: 1;
}

.alert > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.alert h2 {
  font-size: 17px;
  margin: 0;
  color: var(--bad);
}

.alert p {
  margin: 0;
  font-size: 14px;
}

.alert ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
}

.track .real.over {
  background: var(--bad);
}

@media (max-width: 640px) {
  .top {
    position: static;
  }
}
/* ----- v3 : connexion, navigation simplifiée, historique figé, prévisions ajustables ----- */
.userchip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: 4px 6px 4px 4px;
}

.userchip i {
  font-style: normal;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.userchip b {
  font-size: 14px;
}

.userchip button {
  border: 0;
  background: var(--soft);
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.tabs .tab.cta {
  margin-left: auto;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  border-bottom: 0;
  margin-block: 6px;
  padding: 7px 14px;
}

/* écran de connexion */
.login {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding-block: 32px;
}

.login .box {
  width: min(560px, 100%);
  text-align: center;
}

.login .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.login h1 {
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 800;
}

.login .tag {
  color: var(--muted);
  margin: 0 0 28px;
}

.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px;
}

.prof {
  border: 2px solid transparent;
  background: var(--card);
  border-radius: 20px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 0 var(--line);
}

.prof:hover, .prof:focus-visible {
  border-color: var(--ink);
}

.prof .av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  font-family: var(--f-display);
}

.prof b {
  font-size: 16px;
}

.prof small {
  color: var(--muted);
  font-size: 12px;
}

.unlock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
}

.unlock .av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  margin: 0 auto 10px;
  font-family: var(--f-display);
}

.unlock input {
  text-align: center;
  font-size: 17px;
  margin: 14px 0 10px;
}

.unlock .btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

.unlock .alt {
  margin-top: 10px;
  width: 100%;
}

.unlock .back {
  border: 0;
  background: none;
  color: var(--muted);
  margin-top: 12px;
  font-size: 14px;
}

.pin {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}

.pin span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--kid);
}

.pin span.on {
  background: var(--kid);
}

.pad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 10px;
  justify-content: center;
}

.pad button {
  height: 64px;
  border-radius: 18px;
  border: 0;
  background: var(--kid-soft);
  font-family: var(--f-kid);
  font-size: 26px;
  font-weight: 700;
  color: var(--kid);
}

.spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--soft);
  border-top-color: var(--accent);
  margin: 18px auto;
  animation: sp 0.8s linear infinite;
}

@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation-duration: 3s;
  }
}
/* accueil */
.hero3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.pill3 {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pill3 span {
  flex: 1;
  min-width: 70px;
  text-align: center;
  border-radius: 10px;
  padding: 8px 6px;
  font-weight: 700;
  font-size: 13px;
  background: var(--p1-soft);
  color: var(--good);
}

.pill3 span.warn {
  background: var(--jar1-soft);
  color: var(--warn);
}

.pill3 span.bad {
  background: var(--ado-soft);
  color: var(--bad);
}

.pill3 span small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

.todo {
  display: flex;
  flex-direction: column;
}

.todo .it {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.todo .it:last-child {
  border: 0;
}

.todo .ck {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.todo .it.done .ck {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}

.todo .it.done b {
  color: var(--muted);
  text-decoration: line-through;
}

.todo span {
  font-size: 13px;
  color: var(--muted);
  display: block;
}

.onebar {
  height: 14px;
  background: var(--soft);
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.onebar div {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

/* prévisions mois par mois */
.mrow {
  border-bottom: 1px solid var(--line);
}

.mrow > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto 20px;
  gap: 10px;
  align-items: center;
  padding: 12px 4px;
}

.mrow > summary::-webkit-details-marker {
  display: none;
}

.mrow > summary::after {
  content: "▾";
  color: var(--muted);
  transition: transform 0.2s;
}

.mrow[open] > summary::after {
  transform: rotate(180deg);
}

.mrow > summary .s {
  font-size: 12px;
  color: var(--muted);
  display: block;
  font-weight: 400;
}

.mrow .body {
  background: var(--paper);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 12px;
}

.lines {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
}

.lines input {
  width: 120px;
  padding: 6px 8px;
  text-align: right;
}

.lines .t {
  font-size: 14px;
}

.lines .t small {
  color: var(--muted);
  font-size: 11px;
  margin-left: 6px;
}

.lines input.edited {
  border-color: var(--warn);
  background: var(--jar1-soft);
}

.addline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.addline input {
  flex: 1;
  min-width: 120px;
}

.edit-flag {
  font-size: 11px;
  font-weight: 700;
  color: var(--warn);
  margin-left: 6px;
}

.gap {
  border-left: 5px solid var(--bad);
}

.gap .nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0;
}

.gap .nums div {
  background: var(--soft);
  border-radius: 12px;
  padding: 10px;
}

.gap .nums small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.gap .nums b {
  font-family: var(--f-display);
  font-size: 22px;
}

@media (max-width: 560px) {
  .gap .nums {
    grid-template-columns: 1fr;
  }
  .mrow > summary {
    grid-template-columns: 1fr 1fr auto 18px;
  }
  .mrow > summary .hide-s {
    display: none;
  }
}
/* historique */
.hrow > summary {
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto 20px;
}

.lock {
  white-space: nowrap;
}

.chip.frozen {
  background: var(--soft);
  color: var(--ink);
}

.chip.live {
  background: var(--p1-soft);
  color: var(--good);
}

.chip.open {
  background: none;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.hash {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}

.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stepper span {
  flex: 1;
  min-width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.stepper span.on {
  background: var(--accent);
  color: var(--on-accent);
}

.stepper span.ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.sect {
  scroll-margin-top: 120px;
}

.navpills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.navpills a {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
}

.eng-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.eng-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.eng-row input {
  width: 110px;
  padding: 6px 8px;
  text-align: right;
}

/* historique : opérations, bilan, habitudes ; enveloppes */
.sh {
  font-size: 18px;
  margin: 0 0 10px;
}

.pgrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.pcard .ph {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.pcard .ph i {
  font-style: normal;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--f-display);
  flex: none;
}

.pcard .ph small {
  color: var(--muted);
  font-weight: 400;
}

.prows div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.prows div:last-child {
  border: 0;
}

.pnote {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.habits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.habit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  color: var(--ink);
}

.habit:hover, .habit:focus-visible {
  border-color: var(--accent);
}

.habit .he {
  grid-row: 1/3;
  font-size: 28px;
  line-height: 1.2;
}

.habit .hn {
  font-weight: 700;
}

.habit .hc {
  font-size: 13px;
  color: var(--muted);
}

.habit .hc b {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--ink);
}

.habit .ht, .habit .hs, .habit .spark {
  grid-column: 1/-1;
}

.habit .ht, .habit .hs {
  font-size: 12px;
  color: var(--muted);
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  margin: 8px 0 4px;
}

.spark i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  opacity: 0.8;
}

.opfilters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.opfilters input, .opfilters select {
  min-width: 0;
  width: 100%;
}

@media (max-width: 700px) {
  .opfilters {
    grid-template-columns: 1fr 1fr;
  }
  .opfilters input {
    grid-column: 1/-1;
  }
}
.opsum {
  margin: 0 0 8px;
  font-size: 14px;
}

.op {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.op .d {
  color: var(--muted);
  font-size: 13px;
}

.op .l b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op .l small {
  color: var(--muted);
  font-size: 12px;
}

.envs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.env {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--paper);
}

.env .eh {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.env .eh > span {
  font-size: 22px;
}

.env .eh .inl {
  margin-left: auto;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 13px;
}

.env .eh input {
  width: 90px;
  padding: 5px 8px;
  text-align: right;
}

.env .es {
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--muted);
}

.eneed {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}

.eneed > span:nth-child(2) {
  grid-column: 1;
}

.eneed .btn {
  grid-row: 1/3;
  grid-column: 2;
  padding: 2px 10px;
}

.addline select {
  max-width: 220px;
}

/* ===================== v5 : finition =====================
   Idée directrice : le billet de banque. Un vert d'encre profond, un laiton pour les repères,
   et une rosace de guilloché, utilisée à deux endroits seulement (accueil public et carte du mois).
   Tout le reste reste calme : surfaces blanches sans bordure, ombres douces, libellés en minuscules. */
:root {
  --paper:#ECEFEA;
  --card:#FFFFFF;
  --ink:#13221B;
  --muted:#56655E;
  --line:#D8DFD8;
  --soft:#E4E9E3;
  --p1:#1D5B46;
  --p1-soft:#DDEDE5;
  --note:#173F31;
  --note-2:#0F2E23;
  --brass:#C9A44E;
  --brass-soft:#F4EBD0;
  --good:#1B6E3E;
  --bad:#BF3540;
  --warn:#865600;
  --r:20px;
  --shadow:0 1px 2px rgba(19,34,27,.05), 0 10px 28px -14px rgba(19,34,27,.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --paper:#0E1512;
    --card:#161F1B;
    --ink:#E6ECE8;
    --muted:#97A59E;
    --line:#26312C;
    --soft:#1F2925;
    --p1:#6CC7A6;
    --p1-soft:#183229;
    --note:#133628;
    --note-2:#0A2118;
    --brass:#D8B866;
    --brass-soft:#352D1A;
    --good:#5FCB8C;
    --bad:#F07A80;
    --warn:#E5B04E;
    --on-accent:#0E1512;
    --shadow:0 1px 0 rgba(255,255,255,.03), 0 10px 28px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme=dark] {
  --paper:#0E1512;
  --card:#161F1B;
  --ink:#E6ECE8;
  --muted:#97A59E;
  --line:#26312C;
  --soft:#1F2925;
  --p1:#6CC7A6;
  --p1-soft:#183229;
  --note:#133628;
  --note-2:#0A2118;
  --brass:#D8B866;
  --brass-soft:#352D1A;
  --good:#5FCB8C;
  --bad:#F07A80;
  --warn:#E5B04E;
  --on-accent:#0E1512;
  --shadow:0 1px 0 rgba(255,255,255,.03), 0 10px 28px -14px rgba(0,0,0,.6);
}

body {
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
}

.demo {
  background: var(--note-2);
  color: #E3ECE7;
}

.top {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.brand b {
  letter-spacing: -0.02em;
}

.tab {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 14px;
}

.tab[aria-selected=true] {
  color: var(--ink);
  border-color: var(--accent);
}

.tabs .tab.cta {
  border-radius: 99px;
  padding: 8px 18px;
  margin-block: 6px;
}

.userchip, .cur summary {
  border-color: transparent;
  box-shadow: var(--shadow);
}

main {
  padding-block: 32px 72px;
}

.hello {
  align-items: flex-end;
  margin-bottom: 24px;
}

.hello h1 {
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hello p {
  font-size: 17px;
}

.card {
  border-color: transparent;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h2 {
  font-size: 20px;
}

.kpi .lab, label, th, .chip {
  text-transform: none;
  letter-spacing: 0;
}

.kpi .lab {
  font-size: 14px;
  font-weight: 600;
}

label {
  font-size: 13px;
  font-weight: 600;
}

.chip {
  font-size: 12px;
  font-weight: 600;
}

.btn {
  border-radius: 99px;
  padding: 10px 18px;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  filter: brightness(1.07);
}

.btn:active {
  transform: translateY(1px);
}

input, select {
  border-radius: 12px;
  background: var(--card);
}

.seg {
  border: 0;
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
  background: var(--soft);
}

.seg button {
  border-radius: 99px;
  padding: 7px 15px;
  font-size: 14px;
}

.seg button[aria-pressed=true] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(19, 34, 27, 0.18);
}

.state {
  font-size: 12px;
  padding: 3px 10px;
}

.state.warn {
  background: var(--brass-soft);
}

.mrow > summary {
  border-radius: 12px;
  padding: 14px 8px;
}

.mrow > summary:hover {
  background: var(--soft);
}

.private {
  background: var(--brass-soft);
}

.demolink {
  border-style: solid;
  border-color: var(--line);
}

.todo .ck {
  border-radius: 50%;
}

.todo .it.done .ck {
  background: var(--good);
  border-color: var(--good);
}

.prof {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.unlock {
  border-color: transparent;
  box-shadow: var(--shadow);
  border-radius: 24px;
}

/* --- accueil : la carte du mois --- */
.testpill {
  font-size: 13px;
  font-weight: 600;
  color: var(--warn);
  background: var(--brass-soft);
  padding: 6px 12px;
  border-radius: 99px;
  cursor: help;
}

.hero, .land-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #EEF3EF;
  background: radial-gradient(120% 140% at 88% 0%, #22594A 0%, var(--note) 48%, var(--note-2) 100%);
}

.hero {
  border-radius: 28px;
  padding: 30px 30px 18px;
}

.guil {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -150px;
  top: -170px;
  z-index: -1;
  opacity: 0.42;
  pointer-events: none;
}

.guil g {
  fill: none;
  stroke: var(--brass);
  stroke-width: 0.7;
}

.hero-k {
  margin: 0;
  font-size: 14px;
  color: #B9CEC3;
  font-weight: 600;
}

.hero-h {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 4px 0 24px;
  max-width: 28ch;
  color: #fff;
  line-height: 1.15;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.hero-main > span {
  display: block;
  font-size: 14px;
  color: #B9CEC3;
}

.hero-main b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(46px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 6px 0 8px;
  color: #fff;
}

.hero-main b.neg {
  color: #FFB4BA;
}

.hero-main small {
  font-size: 15px;
  color: var(--brass);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.hero-stats div {
  padding: 2px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats dt {
  font-size: 13px;
  color: #B9CEC3;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.hero-stats dd small {
  display: block;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  color: #B9CEC3;
}

/* le fil du mois : entrées au-dessus, prélèvements en dessous, aujourd'hui en laiton */
.fil {
  position: relative;
  height: 104px;
  margin: 0 6px;
}

.fil-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 48px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.fil-past {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(201, 164, 78, 0.25), var(--brass));
}

.fil-ev {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
}

.fil-ev .dot {
  position: absolute;
  top: 43px;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #86D9AC;
  box-shadow: 0 0 0 3px var(--note);
}

.fil-ev.out .dot {
  background: #F3A2A8;
}

.fil-ev.soon .dot {
  background: var(--note);
  box-shadow: 0 0 0 2px #B9CEC3 inset, 0 0 0 3px var(--note);
}

.fil-ev .lbl {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
}

.fil-ev.in .lbl {
  top: 0;
}

.fil-ev.out .lbl {
  top: 64px;
}

.fil-ev .lbl b {
  display: block;
  font-family: var(--f-display);
  font-size: 15px;
  color: #fff;
}

.fil-ev .lbl small {
  color: #B9CEC3;
}

.fil-ev.soon .lbl b {
  color: #B9CEC3;
}

.fil-today {
  position: absolute;
  top: 36px;
  height: 28px;
  width: 2px;
  margin-left: -1px;
  background: var(--brass);
  border-radius: 2px;
}

.fil-today span {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--brass);
  white-space: nowrap;
}

.fil-ends {
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8FAA9C;
}

.fil-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fil-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fil-list .d {
  color: #B9CEC3;
  font-size: 13px;
}

.fil-list small {
  color: #B9CEC3;
  font-size: 12px;
}

.fil-list b {
  font-family: var(--f-display);
  color: #86D9AC;
}

.fil-list li.out b {
  color: #F3A2A8;
}

.fil-list li.soon {
  opacity: 0.7;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--bad);
  margin-top: 18px;
}

.notice span {
  color: var(--muted);
  font-size: 14px;
}

.linkbtn {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  padding: 0;
  font-size: 14px;
}

.linkbtn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.home-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.panel {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}

.ph2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.ph2 h2 {
  font-size: 20px;
}

.count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.hint-line {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
}

.pace-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.budget {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.brow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
}

.bn2 {
  font-weight: 600;
  font-size: 15px;
}

.bv {
  font-size: 14px;
  font-weight: 700;
}

.bv small {
  color: var(--muted);
  font-weight: 400;
}

.btrack {
  grid-column: 1/-1;
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: var(--soft);
}

.btrack i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: var(--accent);
}

.btrack em {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.3;
}

.brow.fast .btrack i {
  background: var(--warn);
}

.brow.over .btrack i {
  background: var(--bad);
}

.brow.over .bv {
  color: var(--bad);
}

.next3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nm {
  border-radius: 14px;
  padding: 12px;
  background: var(--p1-soft);
  min-width: 0;
}

.nm b {
  display: block;
  font-size: 14px;
}

.nm b::first-letter {
  text-transform: uppercase;
}

.nm span {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  margin: 2px 0;
}

.nm small {
  font-size: 12px;
  font-weight: 700;
  color: var(--good);
}

.nm.heavy, .nm.warn {
  background: var(--brass-soft);
}

.nm.heavy small, .nm.warn small {
  color: var(--warn);
}

.nm.bad {
  background: var(--ado-soft);
}

.nm.bad small {
  color: var(--bad);
}

.envmini {
  display: flex;
  flex-direction: column;
}

.envmini > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.envmini > div:last-child {
  border: 0;
}

.envmini .ee {
  font-size: 20px;
}

.envmini small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.envmini b.num small {
  display: inline;
}

.big2 {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 4px 0 8px;
  line-height: 1;
}

.big2 small {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.lockline {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.lockline::before {
  content: "🔒 ";
}

/* --- prévisions : qui verse quoi --- */
.payhero .big {
  font-size: clamp(38px, 5vw, 52px);
  letter-spacing: -0.035em;
}

.sharebar {
  display: flex;
  gap: 3px;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  margin: 14px 0 2px;
}

.sharebar i {
  display: block;
  min-width: 4px;
}

.who {
  background: none;
  padding: 6px 0;
}

/* --- accueil public --- */
.land {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 24px 0;
}

.land .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.land h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 26px 0 18px;
  max-width: 11ch;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 28px;
}

.land-pts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44ch;
}

.land-pts li {
  padding-left: 14px;
  border-left: 3px solid var(--brass);
}

.land-card {
  border-radius: 30px;
  padding: 28px;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.land-card .guil {
  right: auto;
  left: 50%;
  top: -200px;
  transform: translateX(-50%);
  opacity: 0.6;
}

.land-in {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.entry {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border: 0;
  border-radius: 20px;
  padding: 18px 22px;
  background: #F7F9F6;
  color: #13221B;
  transition: transform 0.15s ease;
}

.entry:hover {
  transform: translateY(-2px);
}

.entry b {
  font-family: var(--f-display);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.entry span {
  font-size: 14px;
  color: #56655E;
}

.entry.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.entry.ghost span {
  color: #B9CEC3;
}

@media (prefers-reduced-motion: reduce) {
  .entry, .btn {
    transition: none;
  }
}
@media (max-width: 980px) {
  .home-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .home-grid.three > .panel:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 820px) {
  .land {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }
  .land-card {
    min-height: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-stats div:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .fil {
    display: none;
  }
  .fil-list {
    display: block;
  }
}
@media (max-width: 700px) {
  .home-grid, .home-grid.three {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 22px 18px 10px;
    border-radius: 24px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hero-stats div {
    padding: 0 10px;
  }
  .hero-stats dd {
    font-size: 18px;
  }
  .guil {
    width: 440px;
    height: 440px;
    right: -200px;
    top: -150px;
  }
}
.vbars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  margin: 6px 0 4px;
}

.vbars div {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.vbars i {
  display: block;
  width: 100%;
  max-width: 34px;
  background: var(--p2);
  border-radius: 6px 6px 2px 2px;
}

.vbars span {
  font-size: 11px;
  color: var(--muted);
}

.mrow > summary {
  grid-template-columns: 1.3fr 1fr 1fr 120px 20px;
}

.mrow.hrow > summary {
  grid-template-columns: 1.2fr 1fr 1fr 1fr 130px 20px;
}

input[type=range] {
  accent-color: var(--accent);
  padding: 0;
  border: 0;
  background: none;
}

.mrow > summary > .chip, .mrow > summary > .state {
  justify-self: end;
}

.envs {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

@media (max-width: 560px) {
  .mrow > summary {
    grid-template-columns: 1fr 1fr 100px 18px;
  }
  .mrow.hrow > summary {
    grid-template-columns: 1fr 1fr 1fr 18px;
  }
  .mrow.hrow > summary .lock {
    display: none;
  }
}
@media (max-width: 640px) {
  .bn small, .top .lock {
    display: none;
  }
  .brand b {
    font-size: 18px;
  }
  .ph2 {
    flex-wrap: wrap;
  }
  .todo .it {
    grid-template-columns: auto 1fr;
  }
  .todo .it > .btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .btn:not(.ghost), :root:not([data-theme=light]) .tabs .tab.cta {
    color: #0E1512;
  }
}
:root[data-theme=dark] .btn:not(.ghost), :root[data-theme=dark] .tabs .tab.cta {
  color: #0E1512;
}

.op.edit {
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
}

.rc-open {
  font-size: 16px;
  padding: 4px 6px;
}

.rc-form {
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.rc-form label.chk {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
}

.rc-form label.chk input {
  width: auto;
}

.rule-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 180px) auto;
}

.rule-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .rule-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .rule-row > input, .rule-row > code {
    grid-column: 1/-1;
  }
}
.mt8 {
  margin-top: 8px;
}

.mt12 {
  margin-top: 12px;
}

.mt16 {
  margin-top: 16px;
}

.mt18 {
  margin-top: 18px;
}

.mt0 {
  margin-top: 0;
}

.mb0 {
  margin-bottom: 0;
}

.m0 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.tiny {
  font-size: 12px;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.bold {
  font-weight: 700;
}

.flex-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flex-center {
  justify-content: center;
}

.span-all {
  grid-column: 1/-1;
}

.inline {
  display: inline;
  margin: 0;
}

.left {
  text-align: left;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.back {
  border: 0;
  background: none;
  color: var(--muted);
  margin-top: 12px;
  font-size: 14px;
}

.back.wide {
  margin-top: 18px;
}

.eng-row.cols5 {
  grid-template-columns: auto 1fr auto auto auto;
}

.eng-row .person-in {
  width: 100%;
  text-align: left;
}

.av-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: var(--c, var(--p1));
}

.bg-c {
  background: var(--c);
}

.bar-w {
  width: calc(var(--w, 0) * 1%);
}

.cipher.pre {
  white-space: pre;
  overflow-x: auto;
  word-break: normal;
}

.hero-actions {
  margin-top: 8px;
}

.login-box-pad {
  padding-block: 8px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 6px;
}

.pad .gap-cell {
  visibility: hidden;
}

[hidden] {
  display: none !important;
}

.logo-body {
  fill: var(--accent);
}

.logo-detail {
  fill: var(--paper);
}

.logo-cheek {
  fill: #F2A7A0;
  opacity: 0.85;
}

.logo-coin {
  fill: var(--brass);
}

.logo-tail, .logo-smile, .logo-coin-ring, .logo-spark {
  fill: none;
  stroke-linecap: round;
}

.logo-tail {
  stroke: var(--accent);
  stroke-width: 1.5;
}

.logo-smile {
  stroke: var(--paper);
  stroke-width: 1.2;
}

.logo-coin-ring {
  stroke: var(--paper);
  stroke-opacity: 0.7;
  stroke-width: 0.9;
}

.logo-spark {
  stroke: var(--brass);
  stroke-width: 1.1;
}

.login .logo .logo-body, .land .logo .logo-body {
  fill: var(--p1);
}

/* Graphiques SVG : classes au lieu d'attributs style (CSP). */
.chart-wrap .grid {
  stroke: var(--line);
  stroke-dasharray: 2 4;
}

.chart-wrap .grid0 {
  stroke: var(--line);
}

.chart-wrap .band {
  fill: var(--ink);
  opacity: 0.08;
}

.chart-wrap .pay-line {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.chart-wrap .cushion-line {
  stroke: var(--bad);
  opacity: 0.55;
  stroke-dasharray: 2 3;
}

.chart-wrap .bal-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.chart-wrap .dot-ok {
  fill: var(--ink);
  stroke: var(--card);
  stroke-width: 1.5;
}

.chart-wrap .dot-warn {
  fill: var(--warn);
  stroke: var(--card);
  stroke-width: 1.5;
}

.chart-wrap .dot-bad {
  fill: var(--bad);
  stroke: var(--card);
  stroke-width: 1.5;
}

.chart-wrap text.dry-label {
  fill: var(--bad);
  font-weight: 700;
  font-size: 12px;
}

.chart-wrap .bar-in {
  fill: var(--good);
  opacity: 0.75;
}

.chart-wrap .bar-out {
  fill: var(--bad);
  opacity: 0.7;
}

.sw-eng {
  background: var(--accent);
}

.sw-cur {
  background: var(--p1-soft);
  outline: 1px solid var(--line);
}

.sw-one {
  background: var(--warn);
}

.sw-bal {
  background: var(--ink);
}

.sw-band {
  background: var(--ink);
  opacity: 0.15;
}

.sw-pay {
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px);
}

.sw-cush {
  background: var(--bad);
  opacity: 0.55;
}

.sw-in {
  background: var(--good);
  opacity: 0.75;
}

.sw-out {
  background: var(--bad);
  opacity: 0.7;
}

.dot-pill {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lead-line {
  font-size: 17px;
  margin: 0;
}

.small2 {
  font-size: 14px;
}

.mb12 {
  margin-bottom: 12px;
}

.ok-card {
  border-left: 5px solid var(--good);
}

.addline input.amount {
  max-width: 130px;
  flex: 0 1 130px;
}

.sharebar i {
  flex: var(--f, 1);
}

.wide {
  width: 100%;
}

.op .d {
  color: var(--muted);
  font-size: 13px;
}

.big-emoji {
  font-size: 34px;
}

.ml6 {
  margin-left: 6px;
}

.eng-row input.age {
  width: 70px;
}

.accent-text {
  color: var(--accent);
}

.big-num {
  font-size: 18px;
}

.level-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--kid);
}

.level-next {
  font-size: 16px;
}

.wsmall {
  font-weight: 500;
}

.kid-tip {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--kid);
}

.pad .gap-cell {
  visibility: hidden;
}

.wish .wn {
  font-size: 18px;
  font-weight: 700;
}

/* Choix de la langue : dans l'en-tête une fois connecté, flottant en haut à droite avant (accueil, connexion). */
.langpick select {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: 7px 12px;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}

.langpick.floating {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 20;
}

.login .box.prot {
  text-align: left;
  width: min(720px, 100%);
}

.prot .logo-row {
  justify-content: center;
}

.prot-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.prot-list h2 {
  font-size: 17px;
  margin: 0 0 4px;
}

.prot-list p {
  margin: 0;
}

.corr-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.corr-form {
  display: grid;
  gap: 6px;
  max-width: 460px;
}

.corr-form label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.corr-form input, .corr-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  min-height: 44px;
}

.corr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.corr-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Fenêtre des devises : tableau de bureau de change (fond encre, chiffres laiton). */
.curpanel.fx {
  width: min(460px, 100vw - 32px);
  background: var(--note-2);
  border-color: transparent;
  color: #E3ECE7;
  padding: 16px;
}

.curpanel.fx h3 {
  color: var(--brass);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.fx-board {
  display: grid;
  gap: 2px;
}

.fx-head, .fx-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, 0.95fr);
  gap: 8px;
  align-items: center;
}

.fx-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B6C9BF;
  padding: 0 8px 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.fx-val {
  text-align: right;
}

.curpanel.fx label.fx-amt {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 11px;
  font-weight: 400;
  color: #B6C9BF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.curpanel.fx label.fx-amt input {
  width: 84px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--brass);
  border-radius: 8px;
  padding: 4px 6px;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

.fx-row {
  padding: 6px 8px;
  border-radius: 10px;
  border-left: 3px solid transparent;
}

.fx-row.on {
  background: rgba(255, 255, 255, 0.09);
  border-left-color: var(--brass);
}

.fx-row .fx-pick {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  text-align: left;
  border: 0;
  background: none;
  color: inherit;
  padding: 6px 0;
  min-height: 44px;
  border-radius: 8px;
}

.fx-row .fx-pick b {
  grid-row: 1/3;
  font-size: 18px;
  color: var(--brass);
  min-width: 30px;
}

.fx-row .fx-pick span {
  font-size: 13px;
  line-height: 1.2;
}

.fx-row .fx-pick small {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #B6C9BF;
  font-weight: 700;
}

.fx-row .fx-pick[aria-pressed=true] span {
  font-weight: 700;
}

.fx-pick:focus-visible {
  outline: 3px solid var(--brass);
}

.fx-base {
  font-size: 12px;
  color: #B6C9BF;
  font-style: italic;
}

.fx-val {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--brass);
  white-space: nowrap;
}

.curpanel.fx label.rate {
  flex-direction: row;
  align-items: center;
  color: #E3ECE7;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.curpanel.fx .rate input {
  width: 70px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--brass);
  border-radius: 8px;
  padding: 6px;
  font-weight: 700;
}

.curpanel.fx p {
  color: #B6C9BF;
  margin-top: 12px;
}

@media (max-width: 420px) {
  .fx-head, .fx-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
  .fx-val, .fx-amt {
    grid-column: 1/-1;
    text-align: left;
  }
  .curpanel.fx label.fx-amt {
    justify-content: flex-start;
  }
}
/* Envies de l'enfant : lien du site et comparateurs. */
.wish .wn {
  display: block;
}

.wlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

.wlinks a, .wsearch a {
  color: var(--kid);
  text-decoration: underline;
  font-weight: 700;
}

.wcmp summary {
  cursor: pointer;
  color: var(--muted);
  list-style: none;
  text-decoration: underline;
}

.wcmp summary::-webkit-details-marker {
  display: none;
}

.wcmp > span {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 6px;
}

.add .wide {
  flex: 1 1 100%;
  grid-column: 1/-1;
}

.wsearch {
  flex: 1 1 100%;
  grid-column: 1/-1;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.wsearch a {
  margin-right: 10px;
}

.werr {
  flex: 1 1 100%;
  grid-column: 1/-1;
  margin: 0;
  font-size: 13px;
  color: var(--bad);
  font-weight: 700;
}

/* Historique > Dépenses. Couleurs de catégories validées (daltonisme, contraste) : clair sur #FFF, sombre sur #161F1B.
   En clair, aqua/jaune/rose ont moins de 3:1 sur le blanc : chaque part a son libellé et son montant visibles, plus un tableau. */
:root {
  --cat1: #2a78d6;
  --cat2: #eb6834;
  --cat3: #1baf7a;
  --cat4: #eda100;
  --cat5: #e87ba4;
  --cat-o: #8a948f;
  --fixed: #008300;
  --var: #6250d6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --cat1: #3987e5;
    --cat2: #d95926;
    --cat3: #199e70;
    --cat4: #c98500;
    --cat5: #d55181;
    --cat-o: #6f7a75;
    --fixed: #008300;
    --var: #9085e9;
  }
}
:root[data-theme=dark] {
  --cat1: #3987e5;
  --cat2: #d95926;
  --cat3: #199e70;
  --cat4: #c98500;
  --cat5: #d55181;
  --cat-o: #6f7a75;
  --fixed: #008300;
  --var: #9085e9;
}

.c1 {
  --sw: var(--cat1);
}

.c2 {
  --sw: var(--cat2);
}

.c3 {
  --sw: var(--cat3);
}

.c4 {
  --sw: var(--cat4);
}

.c5 {
  --sw: var(--cat5);
}

.c-o {
  --sw: var(--cat-o);
}

.donut {
  width: 100%;
  max-width: 240px;
  display: block;
  margin-inline: auto;
}

.donut .slice {
  fill: var(--sw);
  stroke: var(--card);
  stroke-width: 2;
  stroke-linejoin: round;
  cursor: pointer;
}

.donut .slice:hover, .donut .slice:focus {
  opacity: 0.82;
}

.donut-total {
  font: 700 22px var(--f-display);
  fill: var(--ink);
}

.donut-sub {
  font-size: 12px;
  fill: var(--muted);
}

.spend-pie {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px 28px;
  align-items: center;
}

@media (max-width: 640px) {
  .spend-pie {
    grid-template-columns: 1fr;
  }
}
.spend-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.spend-legend button {
  width: 100%;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 3.5em;
  gap: 10px;
  align-items: center;
  padding: 8px 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  text-align: left;
  font: inherit;
}

.spend-legend button:hover, .spend-legend button:focus-visible {
  background: var(--soft);
}

.spend-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--sw);
}

.spend-legend .n {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spend-legend .p {
  color: var(--muted);
  text-align: right;
  font-size: 14px;
}

.chart-wrap .bar-fixed {
  fill: var(--fixed);
}

.chart-wrap .bar-var {
  fill: var(--var);
}

.sw-fixed {
  background: var(--fixed);
}

.sw-var {
  background: var(--var);
}

.rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rank li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
}

.rank .n {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank .bar {
  grid-column: 1/-1;
  height: 6px;
  border-radius: 4px;
  background: var(--soft);
  overflow: hidden;
}

.rank .bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 4px;
  background: var(--fixed);
}

.rank .bar i.var {
  background: var(--var);
}

.fixed-share {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
  background: var(--card);
  margin-top: 8px;
}

.fixed-share i {
  flex: var(--f, 1);
  background: var(--fixed);
}

.fixed-share i.var {
  background: var(--var);
}

/* Téléphone : les sous-onglets passent à la ligne au lieu de couper leurs mots ; la légende des dépenses sur deux lignes. */
@media (max-width: 560px) {
  .seg {
    flex-wrap: wrap;
    border-radius: 16px;
  }
  .seg button {
    white-space: nowrap;
    padding: 7px 12px;
  }
  .spend-legend button {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    grid-template-areas: "sw name name" ". amount pct";
    row-gap: 2px;
  }
  .spend-legend i {
    grid-area: sw;
  }
  .spend-legend .n {
    grid-area: name;
    white-space: normal;
  }
  .spend-legend b {
    grid-area: amount;
  }
  .spend-legend .p {
    grid-area: pct;
  }
}
/* Cases à cocher dans un formulaire (mois d'un engagement…) : sur une ligne, sans les majuscules des libellés de champ. */
label.chk {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
}

label.chk input {
  width: auto;
}

.months-pick {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  border: 0;
  margin: 0;
  padding: 0;
}

.months-pick legend {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.onboard ol {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.onboard li.done {
  color: var(--muted);
  text-decoration: line-through;
}

.onboard li button {
  margin-left: 8px;
}

.choice {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.choice legend {
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}

/*# sourceMappingURL=app-7d1043473d.output.css.map */
