@font-face { font-family: "Caslon"; src: url("polices/caslon.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("polices/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --papier: #f6f1e7; --feuille: #fffcf6; --filet: #e6dccb; --filet-fort: #d6c9b3;
  --encre: #23211c; --gris: #77705f; --gris-clair: #a39b89;
  --vert: #1e5a44; --vert-pale: #e6efe8; --ocre: #a8721a; --ocre-pale: #f7ecd5;
  --rouille: #a3462c; --rouille-pale: #f8e6df;
  --vert-plein: #1e5a44; --rouille-plein: #a3462c; --ocre-texte: #7d5410; --blanc: #fff; --sur-encre: #fff;
  --fond-ext: #ece4d5; --voile: rgba(35, 33, 28, .32); color-scheme: light;
  --serif: "Caslon", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --rayon: 10px; --doux: cubic-bezier(.16, 1, .3, 1);
  --haut: env(safe-area-inset-top, 0px); --bas: env(safe-area-inset-bottom, 0px);
}
/* Mode clair par défaut. Sombre seulement si la personne le choisit (ou « Automatique » et téléphone en sombre). */
html[data-theme="sombre"] {
  color-scheme: dark;
  --papier: #191712; --feuille: #221f19; --filet: #342f27; --filet-fort: #4a4237; --fond-ext: #100f0c;
  --encre: #ece4d4; --gris: #a59c8a; --gris-clair: #766e60; --blanc: #2a261f; --sur-encre: #191712;
  --vert: #7cc19e; --vert-plein: #2c7a5b; --vert-pale: #1d3128; --ocre: #d9a650; --ocre-pale: #382c17; --ocre-texte: #e2b86c;
  --rouille: #e48a6c; --rouille-plein: #b4533a; --rouille-pale: #3a221b; --voile: rgba(0, 0, 0, .55);
}
@media (prefers-color-scheme: dark) { html[data-theme="auto"] {
  color-scheme: dark;
  --papier: #191712; --feuille: #221f19; --filet: #342f27; --filet-fort: #4a4237; --fond-ext: #100f0c;
  --encre: #ece4d4; --gris: #a59c8a; --gris-clair: #766e60; --blanc: #2a261f; --sur-encre: #191712;
  --vert: #7cc19e; --vert-plein: #2c7a5b; --vert-pale: #1d3128; --ocre: #d9a650; --ocre-pale: #382c17; --ocre-texte: #e2b86c;
  --rouille: #e48a6c; --rouille-plein: #b4533a; --rouille-pale: #3a221b; --voile: rgba(0, 0, 0, .55);
} }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--papier); color: var(--encre); font: 16px/1.5 var(--sans); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 4px; }
.nb { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 560px) { body { background: var(--fond-ext); } #app { background: var(--papier); box-shadow: 0 0 0 1px var(--filet); } }

/* ---------- en-tête ---------- */
.entete { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(8px);
  padding: calc(14px + var(--haut)) 20px 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid transparent; }
.entete.colle { border-bottom-color: var(--filet); }
.entete h1 { font: 400 31px/1.05 var(--serif); letter-spacing: -.015em; }
.entete .sous { font-size: 13px; color: var(--gris); margin-top: 2px; }
.rond { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--filet); background: var(--feuille); display: grid; place-items: center; flex: none; }
.rond svg { width: 20px; height: 20px; }
.marque i svg { display: block; }

.bandeau { margin: 0 20px 6px; padding: 10px 12px; border-radius: var(--rayon); background: var(--ocre-pale); color: var(--ocre-texte); font-size: 13.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bandeau button { border: 0; background: var(--encre); color: var(--sur-encre); border-radius: 7px; padding: 7px 11px; font-weight: 600; font-size: 13px; white-space: nowrap; }

main.ecran { flex: 1; padding: 6px 20px calc(110px + var(--bas)); animation: arrivee .4s var(--doux); }
@keyframes arrivee { from { opacity: 0; transform: translateY(6px); } }

/* ---------- briques ---------- */
.feuille { background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 18px; margin-bottom: 12px; }
.etiq { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.titre-serif { font: 400 23px/1.15 var(--serif); letter-spacing: -.01em; }
.chiffre { font: 400 30px/1.05 var(--serif); letter-spacing: -.02em; }
.petit { font-size: 13px; color: var(--gris); }
.ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--filet); }
.ligne:first-child { border-top: 0; }
.sep { height: 1px; background: var(--filet); margin: 14px 0; }
.pastille { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.p-vert { background: var(--vert-pale); color: var(--vert); }
.p-ocre { background: var(--ocre-pale); color: var(--ocre-texte); }
.p-rouille { background: var(--rouille-pale); color: var(--rouille); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; background: var(--encre); color: var(--sur-encre);
  padding: 14px 18px; font-weight: 600; font-size: 15.5px; width: 100%; transition: transform .15s; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.vert { background: var(--vert-plein); color: #fff; }
.btn.clair { background: transparent; color: var(--encre); border: 1px solid var(--filet-fort); }
.btn.mini { width: auto; padding: 9px 13px; font-size: 14px; }
.lien { background: none; border: 0; color: var(--vert); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.rangee { display: flex; gap: 8px; }
.rangee > * { flex: 1; }

/* ---------- aujourd'hui ---------- */
.jauge { height: 8px; border-radius: 8px; background: var(--filet); overflow: hidden; margin-top: 14px; position: relative; }
.jauge i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--vert); transition: width .6s var(--doux); }
.jauge i.ocre { background: var(--ocre); } .jauge i.rouille { background: var(--rouille); }
.legende { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--gris); margin-top: 7px; }

.quatre { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.quatre .feuille { margin: 0; padding: 14px; }
.quatre .chiffre { font-size: 25px; margin-top: 4px; }

.case { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--filet-fort); background: var(--blanc); flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.case svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--doux); }
.case.ok { background: var(--vert-plein); border-color: var(--vert-plein); }
.case.ok svg { opacity: 1; transform: none; }
.facture { display: flex; align-items: center; gap: 12px; flex: 1; text-align: left; background: none; border: 0; padding: 0; min-height: 40px; }
.facture .nom { display: block; font-weight: 500; }
.facture.faite .nom { color: var(--gris); text-decoration: line-through; text-decoration-color: var(--filet-fort); }

.cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 9px 0; font-size: 14.5px; }
.cat .barre { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--filet); overflow: hidden; }
.cat .barre i { display: block; height: 100%; border-radius: 6px; }

/* ---------- opérations ---------- */
.jour-ops { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin: 18px 0 2px; }
.op { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--filet); background: none; text-align: left; }
.op .nom { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op .mt { font-weight: 600; text-align: right; }
.op .mt.plus { color: var(--vert); }
.op .sous { font-size: 12.5px; color: var(--gris); display: flex; align-items: center; gap: 6px; }
.point { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.op.verifier .sous { color: var(--ocre-texte); }
.depot { border: 1.5px dashed var(--filet-fort); border-radius: var(--rayon); padding: 22px 18px; text-align: center; background: var(--feuille); }
.depot.survol { border-color: var(--vert); background: var(--vert-pale); }
.filtres { display: flex; gap: 6px; overflow-x: auto; margin: 14px -20px 0; padding: 0 20px 2px; scrollbar-width: none; }
.filtres button { border: 1px solid var(--filet); background: var(--feuille); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; white-space: nowrap; color: var(--gris); }
.filtres button.on { background: var(--encre); color: var(--sur-encre); border-color: var(--encre); }

/* ---------- fuites ---------- */
.fuite { padding: 14px 0; border-top: 1px solid var(--filet); }
.fuite:first-child { border-top: 0; }
.fuite .tete { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.trois button { border: 1px solid var(--filet); background: var(--blanc); border-radius: 8px; padding: 9px 4px; font-size: 13px; font-weight: 600; color: var(--gris); }
.trois button.on[data-v="garder"] { background: var(--vert-pale); color: var(--vert); border-color: color-mix(in srgb, var(--vert) 35%, transparent); }
.trois button.on[data-v="resilier"] { background: var(--rouille-pale); color: var(--rouille); border-color: color-mix(in srgb, var(--rouille) 35%, transparent); }
.trois button.on[data-v="renegocier"] { background: var(--ocre-pale); color: var(--ocre-texte); border-color: color-mix(in srgb, var(--ocre) 40%, transparent); }
.nouveau { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 13.5px; color: var(--gris); }
.nouveau input { width: 92px; }
.gros-vert { font: 400 46px/1 var(--serif); letter-spacing: -.025em; color: var(--vert); margin-top: 8px; }

/* ---------- formulaires ---------- */
label.champ { display: block; margin-bottom: 14px; }
label.champ span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
label.champ small { display: block; font-size: 12.5px; color: var(--gris); margin-top: 5px; }
input[type=text], input[type=number], input[type=email], input[type=date], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--filet-fort); background: var(--blanc); border-radius: 8px; padding: 12px; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--vert); outline-offset: 0; border-color: var(--vert); }
.euros { position: relative; }
.tri-factures { margin: 0 0 10px; }
.tri-factures .petit { display: block; margin-bottom: 6px; }
.tri-factures .puces { margin: 0; display: flex; flex-wrap: nowrap; gap: 6px; }
.tri-factures .puces button { padding: 7px 11px; font-size: 13.5px; white-space: nowrap; }
.fleches { display: flex; flex-direction: column; gap: 2px; margin-left: -6px; }
.fleches button { width: 26px; height: 20px; display: grid; place-items: center; border: 0; background: none; color: var(--vert); padding: 0; cursor: pointer; }
.fleches button svg { width: 16px; height: 16px; }
.fleches button:disabled { color: var(--filet-fort); cursor: default; }
.intro.verifie { display: flex; gap: 8px; align-items: flex-start; color: var(--vert); }
.intro.verifie svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.champ-op { display: flex; gap: 12px; align-items: flex-end; }
.champ-op label.champ { flex: 1; }
.champ-op .sens-op { margin: 0 0 14px; flex-wrap: nowrap; }
.euros input { padding-right: 34px; }
.euros::after { content: var(--unite, "€"); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gris); }
input[type=range] { width: 100%; accent-color: var(--vert); margin: 12px 0 4px; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puces button { border: 1px solid var(--filet-fort); background: var(--blanc); border-radius: 999px; padding: 8px 12px; font-size: 14px; }
.puces button.on { background: var(--vert-plein); color: #fff; border-color: var(--vert-plein); }

/* ---------- pavé de saisie ---------- */
.montant-saisi { font: 400 52px/1 var(--serif); text-align: center; letter-spacing: -.03em; padding: 6px 0 14px; }
.pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pave button { border: 1px solid var(--filet); background: var(--blanc); border-radius: 10px; padding: 14px 0; font-size: 21px; font-weight: 500; }
.pave button:active { background: var(--papier); }

/* ---------- feuille glissante ---------- */
.voile { position: fixed; inset: 0; background: var(--voile); z-index: 20; animation: fondu .25s; }
@keyframes fondu { from { opacity: 0; } }
.tiroir { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; z-index: 21;
  background: var(--papier); border-radius: 18px 18px 0 0; padding: 10px 20px calc(24px + var(--bas)); animation: monte .35s var(--doux); }
@keyframes monte { from { transform: translate(-50%, 40px); opacity: 0; } }
.tiroir { overscroll-behavior: contain; }
/* La poignée : une vraie zone de 34 px, collée en haut quand le contenu défile. Toucher ferme, tirer vers le bas ferme. */
.tiroir .poignee { position: sticky; top: -10px; z-index: 3; display: block; height: 34px; margin: -10px -20px 8px; cursor: pointer;
  background: var(--papier); border-radius: 18px 18px 0 0; touch-action: none; }
.tiroir .poignee i { position: absolute; left: 50%; top: 12px; width: 42px; height: 5px; margin-left: -21px; border-radius: 4px; background: var(--filet-fort); }
.tiroir .poignee .croix { position: absolute; right: 12px; top: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gris); background: var(--feuille); border: 1px solid var(--filet); }
.tiroir .poignee .croix svg { width: 15px; height: 15px; }
html.tiroir-ouvert, html.tiroir-ouvert body { overflow: hidden; }
.voile { touch-action: none; }
.tiroir h2 { font: 400 26px/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 6px; }
.tiroir .intro { color: var(--gris); font-size: 14.5px; margin-bottom: 16px; }
pre.courrier { white-space: pre-wrap; font: 14px/1.55 var(--sans); background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; padding: 14px; margin: 10px 0 12px; }

/* ---------- méthode ---------- */
.semaines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 2px; }
.semaines i { height: 5px; border-radius: 5px; background: var(--filet); }
.semaines i.faite { background: var(--vert); } .semaines i.encours { background: var(--ocre); }
.action { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--filet); align-items: flex-start; }
.action:first-child { border-top: 0; }
.action .texte { flex: 1; }
.action b { display: block; font-weight: 600; }
.action.faite b { color: var(--gris); text-decoration: line-through; text-decoration-color: var(--filet-fort); }
.action small { display: block; color: var(--gris); font-size: 13px; margin-top: 2px; }

/* ---------- barre du bas ---------- */
nav.onglets { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 6;
  display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--feuille) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--filet); padding: 6px 4px calc(8px + var(--bas)); }
nav.onglets button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 4px; font-size: 11px; font-weight: 600; color: var(--gris); }
nav.onglets svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
nav.onglets button.on { color: var(--vert); }
.ajout { margin: 0 0 12px; }
.ajout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.flottant { position: fixed; z-index: 7; right: max(20px, calc(50% - 220px)); bottom: calc(84px + var(--bas)); width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--vert-plein); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(30, 90, 68, .28); }
.flottant svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; }

/* ---------- accueil ---------- */
.accueil { flex: 1; display: flex; flex-direction: column; padding: calc(48px + var(--haut)) 24px calc(28px + var(--bas)); }
.accueil h1 { font: 400 46px/1.02 var(--serif); letter-spacing: -.025em; margin-top: 26px; }
.accueil .chapo { font-size: 17px; color: var(--gris); margin-top: 14px; }
.accueil ul { list-style: none; margin: 28px 0; }
.accueil li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--filet); font-size: 15px; }
.accueil li svg { width: 20px; height: 20px; flex: none; color: var(--vert); margin-top: 2px; }
.accueil .bas { margin-top: auto; display: grid; gap: 10px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.marque i { width: 34px; height: 34px; border-radius: 8px; background: var(--vert-plein); display: grid; place-items: center; }
.etapes-accueil { display: flex; gap: 6px; margin: 4px 0 26px; }
.etapes-accueil i { flex: 1; height: 4px; border-radius: 4px; background: var(--filet); }
.etapes-accueil i.on { background: var(--vert); }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--bas)); transform: translateX(-50%); z-index: 30; background: var(--encre); color: var(--sur-encre);
  padding: 11px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 40px); animation: monte .3s var(--doux); }
.vide { text-align: center; padding: 26px 10px; color: var(--gris); font-size: 14.5px; }

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

/* ---------- attente ---------- */
.attente { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--papier) 86%, transparent); backdrop-filter: blur(2px);
  display: grid; place-content: center; justify-items: center; gap: 14px; animation: fondu .2s; }
/* L'ouverture : fond de l'application, cercle vert au centre exact (comme le démarrage d'Android et d'iPhone),
   et « Ouverture » avec trois points qui ondulent. Visible au moins 1,6 s (choix de Pascal, 2026-11-16), puis fondu. */
#lancement { position: fixed; inset: 0; z-index: 60; background: var(--papier); }
#lancement .rond { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; overflow: hidden; background: #174e3a; }
#lancement .rond img { position: absolute; left: -40px; top: -40px; width: 240px; height: 240px; display: block; }
#lancement p { position: absolute; left: 0; right: 0; top: calc(50% + 104px); text-align: center; font-weight: 600; font-size: 15px; color: var(--gris); letter-spacing: .01em; }
#lancement .vague { display: inline-block; width: 1.2em; text-align: left; }
#lancement .vague i { display: inline-block; font-style: normal; animation: vague 1.2s ease-in-out infinite; }
#lancement .vague i:nth-child(2) { animation-delay: .15s; }
#lancement .vague i:nth-child(3) { animation-delay: .3s; }
@keyframes vague { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
#lancement.fini { animation: lancement-fin .4s cubic-bezier(.4, 0, .2, 1) forwards; pointer-events: none; }
@keyframes lancement-fin { to { opacity: 0; } }
.attente.demarrage { position: static; min-height: 100dvh; background: none; backdrop-filter: none; }
.attente p { font-weight: 600; color: var(--encre); font-size: 15px; }
.roue { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--filet-fort); border-top-color: var(--vert); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .roue { animation: tourne 1.6s linear infinite !important; } }

/* ---------- bloc d'import repliable ---------- */
details.depot { text-align: left; padding: 16px 18px; }
details.depot summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
details.depot summary::-webkit-details-marker { display: none; }
details.depot summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--gris); border-bottom: 2px solid var(--gris); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--doux); }
details.depot[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details.depot[open] { text-align: center; }

/* ---------- compteurs ---------- */
.compteur { padding: 12px 0; border-top: 1px solid var(--filet); }
.compteur:first-of-type { border-top: 0; padding-top: 8px; }

/* ---------- apparence ---------- */
.trois.theme button.on { background: var(--encre); color: var(--sur-encre); border-color: var(--encre); }

/* ---------- recherche dans le relevé ---------- */
.recherche { position: relative; display: block; margin-top: 14px; }
.recherche input { -webkit-appearance: none; appearance: none; width: 100%; border: 1px solid var(--filet-fort); border-radius: 999px; background: var(--feuille); padding: 11px 14px 11px 38px; font-size: 16px; }
.recherche input:focus { outline: 2px solid var(--vert); outline-offset: 0; border-color: var(--vert); }
.recherche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--gris); stroke-width: 2; stroke-linecap: round; }
.trouve { display: flex; justify-content: space-between; font-size: 13px; color: var(--gris); margin-top: 12px; }

/* ---------- annuler ---------- */
.toast { display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.toast.annul { width: max-content; white-space: nowrap; border-radius: 999px; padding: 10px 18px; }
.toast.annul span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.toast button { flex: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .22); background: none; color: #e9bd6a; font: 700 14px var(--sans); padding: 2px 0 2px 12px; white-space: nowrap; cursor: pointer; }
html[data-theme="sombre"] .toast button { color: #7d5410; border-left-color: rgba(0, 0, 0, .18); }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .toast button { color: #7d5410; border-left-color: rgba(0, 0, 0, .18); } }

/* ---------- bascule clair / sombre, à côté des réglages ---------- */
.boutons-entete { display: flex; gap: 8px; flex: none; }
.boutons-entete .rond { color: var(--encre); }

/* ---------- plafonds : chaque catégorie se touche ---------- */
button.cat { width: 100%; border: 0; background: none; text-align: left; color: inherit; font: inherit; font-size: 14.5px; cursor: pointer; }
button.cat small { color: var(--gris); font-weight: 400; }

/* ---------- bilan du mois ---------- */
.feuille.bilan { border-color: color-mix(in srgb, var(--ocre) 45%, var(--filet)); }
.feuille.bilan .quatre .feuille { background: var(--papier); }

/* ---------- synchronisation ---------- */
.code-synchro { font: 600 22px/1.3 var(--sans); letter-spacing: .06em; text-align: center; padding: 16px 10px; margin-bottom: 10px;
  background: var(--feuille); border: 1px dashed var(--filet-fort); border-radius: var(--rayon); word-break: break-all; }
ol.etapes { padding-left: 20px; font-size: 14.5px; color: var(--gris); display: grid; gap: 6px; }

/* ---------- revenus : une ligne par activité ---------- */
.champ-liste { margin-bottom: 14px; }
.champ-liste .titre-champ { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.champ-liste small { display: block; font-size: 12.5px; color: var(--gris); margin-top: 4px; }

/* ---------- transfert vers l'application de l'écran d'accueil (iPhone) ---------- */
.transfert { background:var(--feuille); border:1.5px solid color-mix(in srgb, var(--ocre) 45%, var(--filet)); border-radius:var(--rayon); padding:14px 16px; margin-bottom:12px; }
.transfert .code-synchro { margin:10px 0; }

/* Entre nous : frais partagés et prêts, sur un seul téléphone */
.v-pile-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.v-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.v-confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; top: -20px; animation: v-tombe 1.6s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes v-tombe { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .2; } }
.v-solde { display: flex; align-items: center; gap: 14px; margin-top: 4px; padding: 14px 16px; border-radius: 18px; background: var(--papier); }
.v-solde .av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; color: #fff; font: 800 19px var(--sans); background: var(--gris); }
.v-solde small { display: block; font-size: 13.5px; color: var(--gris); }
.v-solde b { display: block; font-size: 34px; line-height: 1.05; font-weight: 400; }
.v-solde.plus { background: var(--vert-pale); } .v-solde.plus .av { background: var(--vert-plein); } .v-solde.plus b { color: var(--vert); }
.v-solde.moins { background: var(--rouille-pale); } .v-solde.moins .av { background: var(--rouille-plein); } .v-solde.moins b { color: var(--rouille); }
.v-solde.zero b { font-size: 26px; }
.v-actions { margin-top: 12px; align-items: stretch; } .v-actions .btn { height: auto; min-height: 50px; padding: 10px 12px; line-height: 1.2; }
.v-retirer { color: var(--rouille); }
.v-genre { margin: 4px 0 12px; } .v-genre button { flex: 1; text-align: center; }
.v-repart { margin: -2px 0 14px; padding: 14px; border-radius: 16px; background: var(--feuille); border: 1px solid var(--filet); }
.v-rp-cotes { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.v-rp-cotes small { display: block; font-size: 12.5px; color: var(--gris); }
.v-rp-cotes b { display: block; font-size: 22px; } .v-rp-cotes span { font-size: 12.5px; color: var(--gris); }
.v-rp-cotes div:first-child b { color: var(--vert); } .v-rp-cotes .d { text-align: right; } .v-rp-cotes .d b { color: var(--rouille); }
.v-rp-curseur { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin: 8px 0 10px; border-radius: 6px; background: linear-gradient(90deg, var(--vert-plein) var(--p), var(--rouille-plein) var(--p)); }
.v-rp-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--encre); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: grab; }
.v-rp-curseur::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--encre); cursor: grab; }
.v-poste { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--filet); }
.v-poste small { display: block; font-size: 12.5px; color: var(--gris); margin-top: 1px; }
.v-poste b { font-size: 16px; white-space: nowrap; } .v-poste .plus { color: var(--vert); } .v-poste .moins { color: var(--rouille); } .v-poste .neutre { color: var(--gris); }
.v-gens .plus { color: var(--vert); } .v-gens .moins { color: var(--rouille); } .v-gens .on .plus, .v-gens .on .moins { color: inherit; opacity: .85; }
.v-mvt { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 11px 0; background: none; border: 0; border-top: 1px solid var(--filet); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.v-mvt .q small, .v-mvt .effet small { display: block; font-size: 12.5px; color: var(--gris); margin-top: 1px; }
.v-mvt .effet { text-align: right; } .v-mvt .effet b { font-size: 15.5px; }
.v-mvt .effet.plus b { color: var(--vert); } .v-mvt .effet.moins b { color: var(--rouille); } .v-mvt .effet.neutre b { color: var(--gris); }
.v-communes { margin-top: 10px; } .v-communes summary { cursor: pointer; list-style: none; }
.v-gens { margin: 10px 0 14px; } .v-gens button .nb { font-size: 12.5px; opacity: .8; }
.v-quittes { margin: 10px 0 2px; padding: 6px 10px; border-radius: 999px; background: var(--vert-pale); color: var(--vert); font-size: 12.5px; font-weight: 700; text-align: center; }
.v-en-resume { min-height: 22px; margin: -2px 0 14px; color: var(--gris); font-size: 14.5px; }
.v-en-resume b { color: var(--encre); }
.v-partage-op { margin: 0 0 12px; }
.v-lien-op { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--vert-pale); font-size: 14px; }

/* Mon mois : la réserve du mois et le ruban des jours */
.v-reserve { position: relative; height: 270px; border-radius: 22px; overflow: hidden; background: var(--ocre-pale); border: 1px solid var(--filet); margin-bottom: 4px; }
.v-reserve canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-reserve .v-haut { position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2; }
.v-chiffre { font: 400 70px/0.95 var(--serif); letter-spacing: -.02em; margin-top: 4px; color: var(--encre); }
.v-chiffre small { font-size: 32px; }
.v-reserve .v-bas { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.v-reste { color: #e6f0ea; font-size: 13px; line-height: 1.3; }
.v-reste b { display: block; color: #fff; font: 400 22px var(--serif); }
.v-pastille { flex: none; border-radius: 999px; padding: 5px 11px; font-weight: 700; font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14); }
.v-pastille.ocre { background: #d9a03b; border-color: #d9a03b; color: #1d1606; } .v-pastille.rouille { background: #b4533a; border-color: #b4533a; }
.v-ruban-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin: 14px 2px 0; }
.v-ruban { display: flex; gap: 5px; overflow-x: auto; padding: 10px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.v-ruban::-webkit-scrollbar { display: none; }
.v-j { flex: none; width: 34px; text-align: center; font-size: 10.5px; color: var(--gris); scroll-snap-align: center; line-height: 1.25; }
.v-j .b { height: 58px; border-radius: 9px; background: var(--filet); position: relative; overflow: hidden; margin-bottom: 4px; }
.v-j .b i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--vert-plein); border-radius: 9px; }
.v-j.trop .b i { background: var(--rouille-plein); }
.v-j.futur .b { background: repeating-linear-gradient(135deg, var(--filet) 0 5px, transparent 5px 10px); }
.v-j.auj { color: var(--encre); font-weight: 800; } .v-j.auj .b { outline: 2px solid var(--ocre); outline-offset: 2px; }
.v-j.paie .b { background: var(--ocre); }
.v-phrase { margin: 10px 2px 12px; }

/* Personnaliser cet écran */
.v-perso { display: block; margin: 18px auto 6px; padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--filet-fort); background: none; color: var(--gris); font: 600 13.5px var(--sans); cursor: pointer; }
.v-bloc.v-cache { display: none; }
.v-edition .v-bloc { display: block; position: relative; margin-bottom: 10px; border-radius: 16px; background: var(--feuille); border: 1px solid var(--filet); box-shadow: 0 2px 8px rgba(35,33,28,.06); touch-action: pan-y; }
.v-edition .v-bloc > *:not(.v-barre-bloc) { display: none !important; }
.v-edition .v-bloc.v-cache { display: block; opacity: .5; }
.v-edition .v-bloc.v-cache b { text-decoration: line-through; }
.v-edition .v-bloc.v-tenu { z-index: 5; box-shadow: 0 16px 34px rgba(35,33,28,.22); scale: 1.02; }
.v-barre-bloc { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 6px; min-height: 54px; padding: 0 8px 0 4px; }
.v-poignee { display: grid; place-items: center; height: 44px; font-size: 22px; color: var(--gris); cursor: grab; touch-action: none; user-select: none; }
.v-barre-bloc b { font-size: 15px; }
.v-oeil { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--ocre-pale); color: var(--encre); display: grid; place-items: center; cursor: pointer; }
.v-oeil svg { width: 20px; height: 20px; }
.v-fixe { font-size: 11.5px; color: var(--gris); padding-right: 8px; }
.v-perso-fin { position: sticky; bottom: calc(76px + var(--bas)); margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--feuille); border: 1px solid var(--filet); box-shadow: 0 -6px 24px rgba(35,33,28,.10); }
.v-perso-fin .rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

/* Être aidé : mes droits */
.v-droit { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--filet); }
.v-droit:first-of-type { border-top: 0; }
.v-droit .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--ocre-pale); color: var(--ocre-texte); display: grid; place-items: center; }
.v-droit .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.v-droit b { font-weight: 650; }
.v-droit p { margin: 2px 0 4px; }
.v-droits .dom { white-space: nowrap; }

/* Être aidé : sortir du rouge */
.v-regle { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-top: 4px; }
.v-regle b { font-size: 20px; }
.v-rouge input[type=range] { width: 100%; accent-color: var(--vert-plein); height: 30px; margin: 4px 0; }
.v-datezero { font-size: 34px; line-height: 1; color: var(--vert); margin: 6px 0 2px; }
.v-descente { width: 100%; height: auto; display: block; margin: 4px 0; font-family: var(--sans); }
.v-dette { border-bottom: 1px solid var(--filet); }
.v-dr-tete { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px 0 8px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.v-dr-tete .pt { width: 12px; height: 12px; border-radius: 50%; align-self: start; margin-top: 6px; }
.v-dr-tete small { display: block; color: var(--gris); font-size: 12.5px; margin-top: 2px; }
.v-dr-tete .fin { font-size: 12px; color: var(--vert); font-weight: 700; text-align: right; line-height: 1.3; }
.v-dr-jauge { height: 4px; border-radius: 3px; background: var(--filet); margin: 0 0 12px 24px; overflow: hidden; }
.v-dr-jauge i { display: block; height: 100%; border-radius: 3px; transition: width .4s var(--doux); }
.v-dr-regle { margin: -2px 0 12px 24px; }
.v-dr-regle .lien { font-size: 13.5px; }
.v-report { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; width: 100%; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--vert-pale); color: var(--encre); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.v-inter { width: 42px; height: 24px; border-radius: 999px; background: var(--filet-fort); position: relative; transition: background .2s; }
.v-inter i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--doux); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.v-report[aria-checked="true"] .v-inter { background: var(--vert-plein); }
.v-report[aria-checked="true"] .v-inter i { transform: translateX(18px); }
.v-dr-corps input[type=range] { width: 100%; accent-color: var(--vert-plein); height: 30px; margin: 4px 0 8px; }
.v-nuancier { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.v-nuancier button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; }
.v-nuancier button.on { outline: 2.5px solid var(--c); outline-offset: 3px; }
.v-decouvert input[type=range] { width: 100%; accent-color: var(--rouille-plein); height: 30px; margin: 4px 0 6px; }

/* Être aidé : sortir du découvert */
.v-dc-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 10px 0 4px; padding: 14px 16px; border-radius: 18px; background: var(--rouille-pale); }
.v-dc-tete small { display: block; font-size: 13px; color: var(--gris); }
.v-dc-tete b { display: block; font: 400 34px/1.05 var(--serif); color: var(--rouille); }
.v-dc-tete .d { text-align: right; } .v-dc-tete .d small { white-space: nowrap; } .v-dc-tete .d b { font: 700 17px/1.25 var(--sans); color: var(--vert); }
.v-dc-cout { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--filet); background: var(--papier); font-size: 13.5px; color: var(--gris); }
.v-dc-cout b { font-size: 22px; color: var(--rouille); white-space: nowrap; }
.v-dc-num { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 20px 8px 0 0; border-radius: 50%; background: var(--encre); color: var(--feuille); font: 800 12px var(--sans); vertical-align: middle; }
.v-dc-titre { display: inline-block; margin-top: 20px; vertical-align: middle; }
.v-dc-etape { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.v-dc-etape .case { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--filet-fort); background: var(--blanc); display: grid; place-items: center; cursor: pointer; padding: 0; }
.v-dc-etape .case svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.v-dc-etape .case.ok { background: var(--vert-plein); border-color: var(--vert-plein); } .v-dc-etape .case.ok svg { opacity: 1; }
.v-dc-etape.faite b { text-decoration: line-through; color: var(--gris); }
.v-dc-etape p { margin: 2px 0 4px; }
.v-dc-tard { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 7px 0; background: none; border: 0; border-top: 1px dashed var(--filet); font: inherit; font-size: 14px; color: var(--encre); text-align: left; cursor: pointer; }
.v-dc-tard small { display: block; font-size: 12.5px; color: var(--vert); text-decoration: underline; text-underline-offset: 2px; }
.v-dc-pistes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.v-dc-piste { padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--vert); background: var(--vert-pale); color: var(--vert); font: 700 15px var(--sans); text-align: left; cursor: pointer; }
.v-dc-piste small { display: block; font-weight: 500; font-size: 12px; color: var(--gris); margin-top: 2px; }
.v-dc-points { position: relative; display: flex; align-items: flex-start; gap: 10px; height: 118px; margin: 12px 0 6px; padding-top: 18px; border-top: 2px solid var(--encre); }
.v-dc-points .zero { position: absolute; right: 0; top: -20px; font-size: 11px; font-weight: 800; color: var(--encre); }
.v-dc-points div { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.v-dc-points small { position: absolute; top: -17px; font-size: 11px; color: var(--gris); }
.v-dc-points i { display: block; width: 100%; max-width: 40px; border-radius: 3px 3px 9px 9px; background: var(--rouille-plein); opacity: .8; }
.v-dc-points div:last-child i { opacity: 1; }
.v-dc-points em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--rouille); }
.v-dc-frais { margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--filet); background: var(--papier); font-size: 13.5px; color: var(--gris); }
.v-dc-frais .h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.v-dc-frais .h b { font-size: 24px; color: var(--rouille); white-space: nowrap; }
.v-dc-frais .l { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--filet); color: var(--encre); }
.v-dc-frais p { margin: 6px 0 0; } .v-dc-frais p b { color: var(--rouille); }
.v-dc-gagne { margin: 10px 0 12px; padding: 16px; border-radius: 18px; background: var(--vert-pale); }
.v-dc-gagne b { display: block; font-size: 26px; color: var(--vert); font-weight: 400; margin-bottom: 4px; }
.v-dc-aide { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--filet); }

/* Épargne : les tirelires */
.v-anneaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.v-anneaux.defile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.v-anneaux.defile::-webkit-scrollbar { display: none; }
.v-anneaux.defile .v-anneau-p { flex: 0 0 31%; scroll-snap-align: start; }
.v-anneau-p { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; border: 0; background: none; color: var(--encre); font: inherit; cursor: pointer; text-align: center; }
.v-rond { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.v-rond svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.v-rond .fond { fill: none; stroke: var(--filet); stroke-width: 9; }
.v-rond .plein { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .9s var(--doux); }
.v-rond b { position: relative; font: 400 24px/1 var(--serif); color: var(--encre); } .v-rond b small { font-size: 12px; }
.v-plus { position: absolute; top: -4px; font-style: normal; font-weight: 800; font-size: 12px; color: var(--c); opacity: 0; pointer-events: none; }
.v-ajoute .v-plus { animation: v-plus .9s var(--doux); }
@keyframes v-plus { 15% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
.v-ajoute .v-rond { animation: v-pulse .5s var(--doux); }
@keyframes v-pulse { 40% { transform: scale(1.08); } }
.v-a-nom { font-size: 13.5px; margin-top: 4px; } .v-anneau-p small { font-size: 11px; color: var(--gris); line-height: 1.3; }
html[data-theme="sombre"] .v-rond .plein { stroke: color-mix(in srgb, var(--c) 70%, #fff); }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .v-rond .plein { stroke: color-mix(in srgb, var(--c) 70%, #fff); } }
.v-anneau-w { display: flex; flex-direction: column; align-items: center; height: 100%; }
.v-anneau-w .v-anneau-p { flex: 1; align-content: start; }
.v-anneaux.defile .v-anneau-w { flex: 0 0 31%; scroll-snap-align: start; }
.v-a-modif { font-size: 12.5px; padding: 2px 6px 6px; }
.v-a-alerte { color: var(--rouille) !important; font-weight: 700; }
.v-anneau-p.atteint .v-rond b { color: var(--vert); font-size: 30px; }
.v-ti-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type=month] { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--filet-fort); background: var(--blanc); color: var(--encre); border-radius: 8px; padding: 12px; font: inherit; font-size: 16px; text-align: left; -webkit-appearance: none; appearance: none; }
input[type=month]::-webkit-date-and-time-value { text-align: left; }
.champ { min-width: 0; }

/* Relevé : le calendrier du mois */
.v-cal-tete { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; text-align: center; gap: 8px; }
.v-cal-tete b { font-size: 21px; text-transform: capitalize; display: block; } .v-cal-tete small { display: block; }
.v-cal-tete .rond { width: 36px; height: 36px; font-size: 20px; }
.v-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.v-cal .e { text-align: center; font-size: 10px; font-weight: 800; color: var(--gris); letter-spacing: .06em; }
.v-cal button { aspect-ratio: 1; border: 0; border-radius: 10px; font: 600 13px var(--sans); color: var(--encre); background: var(--filet); cursor: pointer; position: relative; animation: v-cal-case .45s var(--doux) both; }
.v-cal button.n1 { background: #f0dcb2; } .v-cal button.n2 { background: #ecc98a; } .v-cal button.n3 { background: #d9a03b; } .v-cal button.n4 { background: #b9612f; color: #fff; }
.v-cal button.sel { outline: 2px solid var(--encre); outline-offset: 2px; }
.v-cal button.paie::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--vert); }
.v-legende { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--gris); margin-top: 10px; }
.v-legende i { width: 16px; height: 9px; border-radius: 3px; background: var(--filet); display: inline-block; }
.v-legende i.n1 { background: #f0dcb2; } .v-legende i.n2 { background: #ecc98a; } .v-legende i.n3 { background: #d9a03b; } .v-legende i.n4 { background: #b9612f; }
.v-legende i.pt { width: 6px; height: 6px; border-radius: 50%; background: var(--vert); }
.v-jourchoisi { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--ocre-pale); font-weight: 600; font-size: 14px; }
@keyframes v-cal-case { from { opacity: 0; transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .v-cal button { animation: none; } }
.v-cal button:disabled, .v-cal-tete .rond:disabled { opacity: .35; cursor: default; }
.v-legende .sep-l { width: 1px; height: 12px; background: var(--filet-fort); margin: 0 4px; }
.v-jourchoisi span::first-letter { text-transform: uppercase; }
.v-cal-zone { margin-top: 14px; }
.v-cal button.auj { box-shadow: inset 0 0 0 2px var(--encre); font-weight: 800; }
.v-cal button.futur, .v-cal button.futur:disabled { background: transparent; box-shadow: inset 0 0 0 1px var(--filet-fort); color: var(--gris-clair); opacity: 1; }
html[data-theme="sombre"] .v-cal button.n1, html[data-theme="sombre"] .v-legende i.n1 { background: #4a3d24; } html[data-theme="sombre"] .v-cal button.n2, html[data-theme="sombre"] .v-legende i.n2 { background: #6e5327; }
html[data-theme="sombre"] .v-cal button.n3, html[data-theme="sombre"] .v-legende i.n3 { background: #a6762a; } html[data-theme="sombre"] .v-cal button.n4, html[data-theme="sombre"] .v-legende i.n4 { background: #c0663a; color: #fff; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .v-cal button.n1, html[data-theme="auto"] .v-legende i.n1 { background: #4a3d24; } html[data-theme="auto"] .v-cal button.n2, html[data-theme="auto"] .v-legende i.n2 { background: #6e5327; }
  html[data-theme="auto"] .v-cal button.n3, html[data-theme="auto"] .v-legende i.n3 { background: #a6762a; } html[data-theme="auto"] .v-cal button.n4, html[data-theme="auto"] .v-legende i.n4 { background: #c0663a; color: #fff; } }

/* Mon mois : la règle 50 / 30 / 20 */
.v-regle5 > .petit:first-of-type { margin-top: 2px; }
.v-r5-barres { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px; margin: 14px 0 6px; }
.v-r5-barre { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--filet); }
.v-r5-barre.leger { height: 6px; opacity: .55; }
.v-r5-barre i { display: block; height: 100%; }
.v-regle5 i.factures { background: var(--gris); } .v-regle5 i.vie { background: #d9a03b; } .v-regle5 i.epargne { background: var(--vert); }
.v-r5-ligne { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom pc" "cons pas"; align-items: center; gap: 2px 10px; padding: 11px 0; border-top: 1px solid var(--filet); }
.v-r5-ligne:first-of-type { border-top: 0; }
.v-r5-nom { grid-area: nom; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.v-r5-nom i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.v-r5-ligne > b { grid-area: pc; font-size: 17px; text-align: right; }
.v-r5-cons { grid-area: cons; padding-left: 18px; }
.v-r5-ligne > .pastille { grid-area: pas; justify-self: end; }
.v-r5-message { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--ocre-pale); font-size: 14px; line-height: 1.45; }
.v-r5-reel { margin-top: 10px; }

