/* © 2026 Yoann Crom — Vicious Studio. Logiciel propriétaire, tous droits réservés (LICENSE). Réf. VS-2026-8EFE48 */
/* La refonte de l'onglet 💶 Argent (2026-10-14) : la marge du mois en grand et d'où elle vient, les chiffres, puis 4 petits
   onglets (📊 Par agence, 💰 Soldes, 🧾 Mouvements, 🎁 Parrainage). Les couleurs de console.css seulement (le rose de
   Vicious Studio, le vert « ok », l'ambre « alerte », le rouge « erreur ») : rien de neuf dans la palette. */
.argent-outils, .argent-outils-rapport, .argent-outils-mouvements { flex-wrap: wrap; }
.argent-a-jour { white-space: nowrap; }
.argent-sans-coupure { white-space: nowrap; }
.argent-a-jour.flash { animation: argent-flash 1.4s ease-out; }
@keyframes argent-flash { 0%, 40% { color: var(--ok); } 100% { color: var(--tres-doux); } }

/* ---------- La marge du mois, en grand ---------- */
.argent-heros { margin: 4px 0 2px; padding: 18px 20px; border-color: rgba(250,5,110,.45);
  background: linear-gradient(135deg, rgba(250,5,110,.10), var(--surface) 62%); }
.argent-heros.fete { animation: argent-fete 1.6s ease-out; }
@keyframes argent-fete { 0% { box-shadow: 0 0 0 0 rgba(250,5,110,.55); } 100% { box-shadow: 0 0 0 18px rgba(250,5,110,0); } }
.argent-heros-tete { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.argent-heros-marge { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.argent-heros-origine { flex: 2 1 330px; min-width: 0; }
.argent-heros-titre, .argent-heros-sous-titre { color: var(--doux); font-weight: 600; }
.argent-heros-sous-titre { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.argent-heros-chiffre { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.argent-heros-chiffre.negatif { color: var(--erreur); }
.argent-heros-quoi { color: var(--doux); font-size: 13px; }
.argent-heros-alerte { color: var(--erreur); font-weight: 600; font-size: 13px; }
/* Les abonnements pas comptés : dit juste sous le gros chiffre, en ambre (relecture du 2026-10-14 : « 0,00 € » se lisait
   comme toute la marge) */
.argent-heros-manque { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(245,177,76,.14);
  color: var(--alerte); font-weight: 700; font-size: 13px; }
.argent-fete { align-self: flex-start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(62,207,142,.14);
  color: var(--ok); font-weight: 700; font-size: 13px; }

/* La barre : une part par source, à sa taille ; une part négative n'y entre pas (elle est dite « perte » dans la légende) */
.argent-barre { display: flex; height: 28px; border-radius: 999px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--bord); margin: 8px 0 12px; }
.argent-barre i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; min-width: 4px; }
.argent-barre i + i { box-shadow: inset 2px 0 0 var(--surface); }
.argent-barre.vide { align-items: center; justify-content: center; color: var(--doux); font-size: 13px; font-weight: 600; height: 34px; }
.part-iphones .pastille-couleur, .argent-barre .part-iphones { background: var(--accent); color: #fff; }
.part-ia .pastille-couleur, .argent-barre .part-ia { background: var(--ok); color: var(--fond); }
.part-abonnements .pastille-couleur, .argent-barre .part-abonnements { background: var(--alerte); color: var(--fond); }
/* 🎬 les variantes vidéo (seulement quand le serveur les compte) : le mauve doux de la palette, bien distinct du rose des iPhones */
.part-variantes .pastille-couleur, .argent-barre .part-variantes { background: var(--doux); color: var(--fond); }
/* des pastilles rondes et pleines : un carré vide bordé se lisait comme une case à cocher (relecture du 2026-10-14) */
.part-cadeaux .pastille-couleur { background: var(--tres-doux); }
.argent-part.inconnue .pastille-couleur { background: rgba(245,177,76,.35); }
.argent-part.perte .pastille-couleur { background: var(--erreur); }
.argent-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.argent-part { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.argent-part .pastille-couleur { width: 10px; height: 10px; border-radius: 50%; flex: none; align-self: center; }
.argent-part .nom { font-weight: 600; }
.argent-part .montant { margin-left: auto; white-space: nowrap; }
.argent-part .pourcent { color: var(--tres-doux); font-size: 12px; min-width: 38px; text-align: right; white-space: nowrap; }
.argent-part .detail { flex-basis: 100%; padding-left: 18px; }
.argent-part.zero { opacity: .6; }
.argent-part.zero .montant { font-weight: 600; }

/* Le 4e chiffre ouvre 💰 Soldes */
.argent-carte-lien { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.argent-carte-lien:hover { border-color: var(--doux); }
.argent-carte-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.argent-carte-lien .voir { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Les 4 petits onglets ---------- */
.argent-petits-onglets { margin: 18px 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--bord); scroll-margin-top: 10px; }
.argent-petits-onglets .puce { font-size: 14px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 6px; }
.argent-petits-onglets .puce:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.argent-pastille.alerte-pastille { background: var(--alerte); color: var(--fond); }
.argent-panneau > h2:first-child { margin-top: 14px; }
.argent-panneau .parrainage-console > h2:first-child { margin-top: 14px; }

/* 📊 Par agence : les en-têtes qui trient, l'explication repliée, la ligne Total */
.tri-rapport { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
.tri-rapport:hover, .tri-rapport.actif { color: var(--texte); }
.tri-rapport .fleche { color: var(--tres-doux); }
.tri-rapport.actif .fleche { color: var(--accent); }
.tri-rapport:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.argent-rapport tr.ligne-total td { background: var(--surface-2); }
.argent-explication { margin: 0 0 10px; }
.argent-explication summary { cursor: pointer; color: var(--doux); font-size: 13px; width: fit-content; list-style: none; }
.argent-explication summary::-webkit-details-marker { display: none; }   /* ❓ suffit : un seul signe pour un repli */
.argent-explication summary:hover, .argent-explication[open] summary { color: var(--texte); }
.argent-explication .aide { margin: 6px 0 4px; }
.argent-export-etat { color: var(--ok); }
#vue-argent a.bouton { color: var(--texte); text-decoration: none; }   /* « Exporter » : un bouton, pas un lien bleu */

/* 💰 Soldes : une barre à la taille du solde, un solde bas en ambre ; le tableau reste étroit, la barre va jusqu'au
   montant (relecture du 2026-10-14 : à 1280 px, ~560 px de vide entre la barre et son chiffre) */
.argent-soldes { max-width: 820px; }
.argent-solde-nom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.argent-barre-solde { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.argent-barre-solde i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.argent-soldes tr.solde-bas td { background: rgba(245,177,76,.06); }
.argent-soldes tr.solde-bas .argent-barre-solde i { background: var(--alerte); }
.argent-solde-etat { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.argent-solde-etat.est-bas { background: rgba(245,177,76,.14); color: var(--alerte); }
.argent-solde-etat.est-vide { background: var(--surface-3); color: var(--tres-doux); font-weight: 600; }
.argent-soldes th:last-child, .argent-solde-montant { text-align: right; white-space: nowrap; }
.argent-solde-montant { width: 1%; font-size: 15px; }

/* 🧾 Mouvements : le filtre par agence */
.argent-outils-mouvements { margin-bottom: 10px; }
.argent-outils-mouvements select.champ { min-width: 220px; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .argent-heros.fete, .argent-a-jour.flash { animation: none; }
}
@media (max-width: 700px) {
  .argent-heros-chiffre { font-size: 36px; }
}
