/* Mes Confiants — styles communs (fichier statique, pas de build nécessaire) */

@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-latin-ext.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: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-latin.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;
}

:root {
  /* Couleurs : le vert sert à agir et à ce qui entre, le rouge à ce qui sort ou se supprime */
  --vert: #0f5132;
  --vert-fonce: #0a3d25;
  --vert-clair: #e3f0e8;
  --rouge: #b42318;
  --rouge-clair: #fdeceb;
  --ambre: #9a4507;
  --ambre-clair: #fef3d7;
  --encre: #14201a;
  --gris: #5b675f;
  --fond: #f3f5f2;
  --carte: #ffffff;
  --bord: #e1e7e2;

  --police: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rayon: 14px;
  --rayon-grand: 18px;
  --ombre-panneau: 0 -8px 30px rgba(15, 35, 25, .18);
  --barre-bas: 64px;
  --sortie: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.4;
  background: var(--fond); color: var(--encre);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--vert-clair); color: var(--vert-fonce); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Structure ---------- */
.page {
  max-width: 560px; margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 16px;
}
body.avec-nav .page { padding-bottom: calc(var(--barre-bas) + 32px + env(safe-area-inset-bottom)); }
body.avec-action .page { padding-bottom: calc(var(--barre-bas) + 104px + env(safe-area-inset-bottom)); }

.entete {
  position: sticky; top: 0; z-index: 10; background: var(--fond);
  padding: calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
}
.entete-in { max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.entete h1 { flex: 1; min-width: 0; margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bouton-rond {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border-radius: 14px; background: var(--carte); border: 1px solid var(--bord); color: var(--encre); cursor: pointer;
}
.bouton-rond:active { background: var(--vert-clair); }
.avatar-moi { width: 40px; height: 40px; border-radius: 50%; background: var(--vert-clair); color: var(--vert);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }

/* Barre d'onglets du bas */
.nav-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--carte); border-top: 1px solid var(--bord);
  padding: 6px max(6px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
}
.nav-bas-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav-bas a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; min-height: 52px;
  font-size: 12px; font-weight: 600; color: var(--gris); }
.nav-bas .pastille-icone { position: relative; padding: 4px 18px; border-radius: 99px; transition: background .25s var(--sortie); }
.nav-bas a[aria-current="page"] { color: var(--vert); }
.nav-bas a[aria-current="page"] .pastille-icone { background: var(--vert-clair); }
.compteur { position: absolute; top: -2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--ambre); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* Bouton d'action principal, posé au-dessus de la barre */
.action-bas {
  position: fixed; left: 0; right: 0; z-index: 15;
  bottom: calc(var(--barre-bas) + 10px + env(safe-area-inset-bottom));
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.action-bas > * { max-width: 528px; margin: 0 auto; }

/* ---------- Chiffre clé ---------- */
.chiffre { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.chiffre-label { font-size: 14px; font-weight: 500; color: var(--gris); }
.chiffre-valeur { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.chiffre-valeur .devise { font-size: 18px; font-weight: 600; color: var(--gris); letter-spacing: 0; }
.chiffre-sous { font-size: 14px; color: var(--gris); }

/* ---------- Listes ---------- */
.liste { background: var(--carte); border-radius: var(--rayon-grand); padding: 0 14px; }
.element { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 64px;
  border-bottom: 1px solid var(--bord); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.element:last-child { border-bottom: 0; }
a.element, button.element { cursor: pointer; }
a.element:active, button.element:active { background: linear-gradient(var(--fond), var(--fond)) no-repeat center / calc(100% + 28px) 100%; }
.element-texte { flex: 1; min-width: 0; }
.element-titre { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.element-sous { display: block; font-size: 13.5px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.element-montant { font-weight: 700; white-space: nowrap; }
.initiales { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--fond); color: var(--encre); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.sens { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sens .icone { width: 18px; height: 18px; }
.sens-entre { background: var(--vert-clair); color: var(--vert); }
.sens-sort { background: var(--rouge-clair); color: var(--rouge); }
.plus { color: var(--vert); } .moins { color: var(--rouge); }

.groupe-titre { margin: 8px 0 -8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gris); }
.titre-section { margin: 8px 0 -6px; font-size: 18px; font-weight: 700; }

.vide { text-align: center; color: var(--gris); padding: 28px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vide strong { color: var(--encre); font-size: 17px; }

/* ---------- Recherche ---------- */
.recherche { position: relative; }
.recherche .icone { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gris); pointer-events: none; }
.recherche input { padding-left: 44px; }

/* ---------- À régler ---------- */
.a-regler { background: var(--ambre-clair); color: var(--ambre); border-radius: var(--rayon); }
.a-regler summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 48px;
  font-weight: 700; cursor: pointer; }
.a-regler summary::-webkit-details-marker { display: none; }
.a-regler summary span { flex: 1; }
.a-regler summary .chevron { transition: transform .25s var(--sortie); }
.a-regler[open] summary .chevron { transform: rotate(90deg); }
.a-regler ul { margin: 0; padding: 0 14px 12px 44px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.a-regler li a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 14px;
  font-size: 17px; font-weight: 700; border: 0; border-radius: var(--rayon); margin-top: 16px; cursor: pointer; text-align: center;
  transition: transform .15s var(--sortie), background-color .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-vert { background: var(--vert); color: #fff; }
.btn-vert:hover { background: var(--vert-fonce); }
.btn-rouge { background: var(--rouge); color: #fff; }
.btn-gris { background: var(--bord); color: var(--encre); }
.btn-contour-rouge { background: var(--carte); color: var(--rouge); box-shadow: inset 0 0 0 1.5px var(--rouge); }
.btn-ombre { box-shadow: 0 8px 20px -8px rgba(15, 81, 50, .55); margin-top: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo .btn { margin-top: 0; }
.lien { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--vert); font-weight: 600; }

/* ---------- Formulaires ---------- */
label { display: block; font-size: 14px; font-weight: 500; color: var(--gris); margin: 14px 0 6px; }
input, select, textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 17px; color: var(--encre);
  border: 1px solid var(--bord); border-radius: 12px; background: var(--carte); caret-color: var(--vert); }
input::placeholder { color: #7d877f; }
input:focus { outline: 2px solid var(--vert); outline-offset: 0; border-color: transparent; }

/* ---------- Messages ---------- */
.alerte { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--rayon); font-size: 15px; font-weight: 500; }
.alerte .icone { margin-top: 1px; }
.alerte-ok { background: var(--vert-clair); color: var(--vert-fonce); }
.alerte-err { background: var(--rouge-clair); color: var(--rouge); }
.alerte-rappel { background: var(--ambre-clair); color: var(--ambre); }
.alerte-rappel a { text-decoration: underline; font-weight: 600; }

/* ---------- Panneaux (dialog) ---------- */
.panneau {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92dvh;
  border-radius: 24px 24px 0 0; background: var(--carte); color: var(--encre); box-shadow: var(--ombre-panneau);
}
.panneau[open] { animation: monte .32s var(--sortie); }
.panneau::backdrop { background: rgba(14, 26, 20, .45); }
@keyframes monte { from { transform: translateY(40%); opacity: .4; } }
.panneau-in { padding: 10px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.poignee { width: 40px; height: 5px; border-radius: 3px; background: var(--bord); margin: 0 auto 12px; }
.panneau-titre { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.panneau-texte { margin: 0; color: var(--gris); }

.segment { display: grid; grid-template-columns: 1fr 1fr; background: var(--fond); border-radius: 14px; padding: 4px; }
.segment label { margin: 0; position: relative; }
.segment input { position: absolute; opacity: 0; inset: 0; }
.segment span { display: block; text-align: center; padding: 10px 0; border-radius: 11px; font-weight: 700; font-size: 16px; color: var(--gris);
  cursor: pointer; transition: background-color .2s, color .2s; }
.segment input:checked + span { background: var(--carte); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.segment input[value="depot"]:checked + span { color: var(--vert); }
.segment input[value="retrait"]:checked + span { color: var(--rouge); }
.segment input:focus-visible + span { outline: 2px solid var(--vert); }

.montant-geant { text-align: center; padding: 8px 0 0; }
.montant-geant label { margin: 14px 0 0; }
.montant-geant input { border: 0; background: none; text-align: center; font-size: 42px; font-weight: 800; letter-spacing: -0.02em;
  padding: 4px 0; width: 100%; }
.montant-geant input:focus { outline: none; }
.montant-geant .apres { min-height: 20px; font-size: 14px; color: var(--gris); }
.montant-geant .apres.trop { color: var(--rouge); font-weight: 600; }
.trait { height: 2px; background: var(--bord); border-radius: 1px; margin: 0 auto 8px; max-width: 220px; }
.montant-geant input:focus ~ .trait { background: var(--vert); }

.puces { display: flex; gap: 8px; flex-wrap: wrap; }
.puces label { margin: 0; position: relative; }
.puces input { position: absolute; opacity: 0; inset: 0; }
.puces span { display: block; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--bord); font-weight: 600; font-size: 15px;
  color: var(--encre); cursor: pointer; }
.puces input:checked + span { border-color: var(--vert); background: var(--vert-clair); color: var(--vert); }
.puces input:focus-visible + span { outline: 2px solid var(--vert); outline-offset: 2px; }

.choix-action { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.choix-action .btn { margin-top: 0; justify-content: flex-start; padding: 14px 16px; font-size: 16px; }

/* Popup de confirmation */
.popup { border: 0; border-radius: 20px; padding: 22px; width: calc(100% - 32px); max-width: 400px; color: var(--encre);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.popup::backdrop { background: rgba(14, 26, 20, .5); }
.popup-titre { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.popup-texte { margin: 0; color: var(--gris); line-height: 1.45; }
.popup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

/* ---------- Anciennes classes, encore utilisées par Entrées, Dépenses et Admin ---------- */
.carte { background: var(--carte); border-radius: var(--rayon-grand); padding: 16px; }
.total { background: none; padding: 4px 0; }
.total small { color: var(--gris); font-size: 14px; font-weight: 500; display: block; }
.total strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.ligne { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bord); gap: 10px; }
.ligne:last-child { border-bottom: 0; }
.ligne .sous, .sous { font-size: 13.5px; color: var(--gris); }
.montant { font-weight: 700; white-space: nowrap; }
.mini { background: none; border: 0; color: var(--vert); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.liens-haut { display: flex; justify-content: space-between; gap: 10px; }
.liens-haut a { color: var(--vert); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge-ok { background: var(--vert-clair); color: var(--vert); }
.badge-attente { background: var(--ambre-clair); color: var(--ambre); }
.barre-pct { height: 6px; background: var(--vert-clair); border-radius: 3px; margin-top: 6px; }
.barre-pct span { display: block; height: 100%; background: var(--vert); border-radius: 3px; }
.fixe-form { display: flex; gap: 6px; align-items: center; }
.fixe-form input { width: 110px; padding: 9px; font-size: 15px; text-align: right; }
.fixe-form button { min-height: 40px; padding: 9px 12px; font-size: 14px; font-weight: 700; border: 0; border-radius: 10px; background: var(--vert); color: #fff; cursor: pointer; }
.choix { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--bord); color: var(--encre); font-size: 16px; cursor: pointer; }
.choix input { width: 22px; height: 22px; flex: none; accent-color: var(--vert); }
.origines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.origines .origine { margin: 0; position: relative; }
.origines input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.origines span { display: block; padding: 12px 4px; text-align: center; font-size: 15px; font-weight: 600; color: var(--encre);
  border: 1.5px solid var(--bord); border-radius: 12px; background: var(--carte); cursor: pointer; }
.origines input:checked + span { border-color: var(--vert); background: var(--vert-clair); color: var(--vert); }
.origines input:focus-visible + span { outline: 2px solid var(--vert); outline-offset: 2px; }
nav[role=navigation] { font-size: 14px; }
nav[role=navigation] svg { width: 18px; height: 18px; }


/* ---------- Période (jour / mois) ---------- */
.periode { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--carte); border-radius: var(--rayon); padding: 4px; }
.periode strong { font-size: 16px; font-weight: 700; text-align: center; }
.periode-fleche { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--vert); flex: none; }
a.periode-fleche:active { background: var(--vert-clair); }
.periode-fleche.off { color: var(--bord); }

/* ---------- Puces bouton (libellés fréquents) ---------- */
.puce { padding: 8px 13px; border-radius: 99px; border: 1.5px solid var(--bord); background: var(--carte); font-weight: 600; font-size: 14px; cursor: pointer; }
.puce[aria-pressed="true"] { border-color: var(--vert); background: var(--vert-clair); color: var(--vert); }

/* ---------- Fixes à cocher ---------- */
.bloc-fixes { display: flex; flex-direction: column; gap: 12px; }
.bloc-fixes > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.bloc-fixes > summary::-webkit-details-marker { display: none; }
.bloc-fixes > summary .titre-section { margin: 0; flex: 1; }
.bloc-fixes > summary .chevron { color: var(--gris); transition: transform .25s var(--sortie); }
.bloc-fixes[open] > summary .chevron { transform: rotate(90deg); }
.bloc-fixes[open] > .liste { margin-top: 4px; }
.bloc-fixes .btn, .bloc-fixes .lien { margin-top: 8px; }
.coche { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--bord); display: grid; place-items: center; flex: none; margin: 0 5px; }
.coche .icone { width: 16px; height: 16px; stroke-width: 3; }
.coche.on { background: var(--vert); border-color: var(--vert); color: #fff; }
button.element:hover .coche { border-color: var(--vert); }

/* ---------- Bilan du mois (entrées) ---------- */
.bilan { padding-block: 4px; }
.bilan-ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--bord); }
.bilan-ligne > span:last-child { font-weight: 700; white-space: nowrap; }
.bilan-ligne:last-child { border-bottom: 0; }
.bilan-total { font-weight: 700; font-size: 17px; }


/* ---------- Code PIN en 4 cases ---------- */
.pin-cases { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 280px; }
.pin-cases input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; padding: 0; border: 0; font-size: 16px; caret-color: transparent; cursor: text; }
.pin-cases span { height: 60px; display: grid; place-items: center; border: 1.5px solid var(--bord); border-radius: 14px; background: var(--carte);
  font-size: 26px; font-weight: 800; color: var(--encre); transition: border-color .2s, box-shadow .2s; }
.pin-cases:focus-within span.actif { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert-clair); }
.pin-cases span.rempli { border-color: var(--vert); }

/* ---------- Connexion ---------- */
.accueil-marque { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 40px 0 8px; }
.accueil-marque .logo { width: 60px; height: 60px; border-radius: 18px; background: var(--vert); color: #fff; display: grid; place-items: center; margin-bottom: 6px;
  box-shadow: 0 10px 24px -10px rgba(15, 81, 50, .6); }
.accueil-marque h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.accueil-marque p { margin: 0; color: var(--gris); }

/* ---------- Modèles fixes ---------- */
.jour-pastille { width: 42px; height: 42px; border-radius: 12px; background: var(--fond); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; line-height: 1; flex: none; }
.jour-pastille small { font-size: 10px; font-weight: 600; color: var(--gris); margin-bottom: 2px; }
.element.en-pause .element-titre, .element.en-pause .element-montant, .element.en-pause .jour-pastille { opacity: .45; }
.champ-suffixe { display: flex; align-items: center; gap: 10px; }
.champ-suffixe input { width: 88px; text-align: center; flex: none; }
.champ-suffixe span { color: var(--gris); }
.duo-champs { display: grid; grid-template-columns: 1fr; gap: 0 10px; }
@media (min-width: 480px) { .duo-champs { grid-template-columns: 1fr 1fr; } }
.duo-champs > div { min-width: 0; }
.duo-champs input { font-size: 16px; padding-inline: 10px; }
.interrupteur { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; padding: 14px; border-radius: var(--rayon); background: var(--fond); cursor: pointer; color: var(--encre); }
.interrupteur > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.interrupteur strong { font-weight: 600; font-size: 16px; }
.interrupteur input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; padding: 0; border: 0; border-radius: 99px; background: #c9d2cc;
  position: relative; flex: none; cursor: pointer; transition: background-color .2s; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--sortie); }
.interrupteur input:checked { background: var(--vert); }
.interrupteur input:checked::after { transform: translateX(20px); }
.interrupteur input:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }


/* ---------- Bilan des confiants ---------- */
.flux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flux-case { background: var(--carte); border-radius: var(--rayon-grand); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flux-case .sens { margin-bottom: 8px; }
.flux-label { font-size: 14px; font-weight: 600; color: var(--gris); }
.flux-valeur { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.comparaison { padding-block: 14px; display: flex; flex-direction: column; gap: 14px; }
.part-barre { height: 10px; border-radius: 5px; background: #b9d3c3; overflow: hidden; }
.part-barre span { display: block; height: 100%; background: var(--vert); border-radius: 5px 0 0 5px; }
.part-legende { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.part-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pastille-a { background: var(--vert); } .pastille-b { background: #b9d3c3; }
.tableau-defile { overflow-x: auto; }
.comparaison table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparaison th, .comparaison td { padding: 10px 4px 2px; text-align: right; white-space: nowrap; }
.comparaison thead th { font-size: 12.5px; font-weight: 700; color: var(--gris); padding: 0 4px 6px; border-bottom: 1px solid var(--bord); }
.comparaison tbody th { text-align: left; font-weight: 500; color: var(--gris); vertical-align: top; padding-top: 11px; white-space: normal; border-bottom: 1px solid var(--bord); }
.comparaison td { font-weight: 700; font-size: 15px; }
.comparaison tr.ligne-ecart td { padding: 0 4px 10px; font-size: 13px; font-weight: 600; color: var(--gris); border-bottom: 1px solid var(--bord); }
.comparaison tr.ligne-solde td, .comparaison tbody tr:last-child th { border-bottom: 0; }
.comparaison tbody tr:nth-last-child(2) th { border-bottom: 0; }
.comparaison-phrase { margin: 0; font-size: 14.5px; color: var(--gris); line-height: 1.45; }
.comparaison-phrase strong { color: var(--encre); }


/* ---------- Dépenses du jour (montants à taper) ---------- */
.quotidiennes { display: flex; flex-direction: column; gap: 12px; }
.quotidiennes .titre-section { margin: 4px 0 -2px; }
.quotidiennes .btn { margin-top: 0 !important; }
.ligne-montant label { margin: 0; color: var(--encre); font-size: 16px; cursor: pointer; }
.champ-montant { position: relative; flex: none; width: 138px; }
.champ-montant input { text-align: right; padding: 11px 30px 11px 12px; font-weight: 700; font-size: 18px; }
.champ-montant span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gris); font-weight: 600; pointer-events: none; }

/* Plus */
.menu-liste .element { min-height: 60px; }
.menu-liste .element .icone { color: var(--gris); }
.menu-liste .element .element-titre { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Bascule Semaine / Mois (liens) */
.segment-liens a { display: block; text-align: center; padding: 10px 0; border-radius: 11px; font-weight: 700; font-size: 16px; color: var(--gris); }
.segment-liens a[aria-current="page"] { background: var(--carte); color: var(--vert); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.segment-liens a:focus-visible { outline: 2px solid var(--vert); }
.element[aria-current="true"] { color: var(--vert); }
