/* Lot 8 : Reçu à trier (maquettes 14 et 15, melange `#boite`) et Réglages › Notifications. Jetons du socle seulement (app.css).
   Cibles de 44 pt (Z5) : les boutons « Ranger » et les actions sont un peu plus hauts que sur la maquette (34 pt). */

/* ---------- Reçu à trier ---------- */
.recus .recu-intro { font-size: 15px; color: var(--texte-doux); margin-top: var(--esp-2); max-width: 44ch; }
.recus-heure { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-3); margin: var(--esp-3) 0 var(--esp-4); font-size: 14px; color: var(--texte-doux); }
.recus-tout { margin-top: var(--esp-2); }
.recus-liste { margin-top: var(--esp-4); }
.recus-zone > .encadre, .recus-zone > p { margin-top: var(--esp-3); }

.recu { padding: var(--esp-4) 0; border-bottom: 1px solid var(--ligne); }
.recu:last-child { border-bottom: 0; }
.recu-haut { display: flex; gap: var(--esp-3); align-items: flex-start; }
.recu-haut .rond-ic { width: 38px; height: 38px; border-radius: var(--r-4); }
.recu-haut .ic { width: 19px; height: 19px; }
.recu-titre { font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.recu-de { font-size: 13px; color: var(--texte-doux); margin-top: 2px; }

.proposition-l { display: flex; align-items: center; gap: var(--esp-2); margin: var(--esp-3) 0 0 50px; }
.prop {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--esp-2); min-height: var(--cible); padding: 0 var(--esp-3) 0 var(--esp-4);
  border-radius: var(--r-rond); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); font-size: 14px; text-align: left;
  transition: background var(--duree) ease;
}
.prop:active { background: var(--accent-voile); }
.prop b { font-weight: 600; flex: none; }
.prop .ou-p { color: var(--texte-doux); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop .ic { flex: none; color: var(--texte-doux); }
.prop .pastille { width: 8px; height: 8px; }
.recu-ranger {
  flex: none; min-height: var(--cible); padding: 0 var(--esp-4); border-radius: var(--r-4); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  background: var(--accent); color: var(--accent-contraste); transition: transform 160ms var(--ease-out);
}
.recu-ranger:active { transform: scale(.97); }
.recu-ranger.occupe { position: relative; color: transparent; }
.recu-ranger.occupe::after { content: ""; position: absolute; width: 18px; height: 18px; background: var(--accent-contraste); -webkit-mask: url("../img/logo-violet.png") center / contain no-repeat; mask: url("../img/logo-violet.png") center / contain no-repeat; animation: recu-tourne 1s var(--ease-in-out) infinite; }
@keyframes recu-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .recu-ranger.occupe::after { animation: none; } }

.recu-actions { display: flex; flex-wrap: wrap; gap: 0 var(--esp-1); margin: var(--esp-1) 0 0 calc(50px - 2 * var(--esp-2)); }
.recu-bouton { min-height: var(--cible); padding: 0 var(--esp-2); }
.recu-actions .btn-ligne { color: var(--accent-texte); background: transparent; }

/* Ordinateur : une ligne par reçu, comme la maquette `#boite` (icône, texte, proposition, boutons) */
@media (min-width: 900px) {
  .recu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.2fr) auto; align-items: center; gap: var(--esp-2) var(--esp-4); }
  .proposition-l { margin: 0; }
  .recu-actions { margin: 0; justify-content: flex-end; flex-wrap: nowrap; }
  .recus-tout { width: auto; display: inline-flex; padding: 0 var(--esp-6); }
}

/* ---------- Feuille « Ranger » (maquette 15) ---------- */
.ranger-titre { font-size: 15px; font-weight: 400; color: var(--texte-doux); margin: var(--esp-4) 0 var(--esp-2); }
.ranger-choix { display: flex; flex-wrap: wrap; gap: var(--esp-2); }
.ranger-choix .puce { height: auto; min-height: var(--cible); padding: var(--esp-2) var(--esp-4); border-radius: var(--r-rond); font-size: 15px; }
.ranger-choix .puce[aria-pressed="true"] .pastille { box-shadow: 0 0 0 2px var(--accent-contraste); }
.ranger-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--esp-3); margin-top: var(--esp-6); }
.tri-ligne { padding-top: 0; }

/* ---------- Réglages › Notifications ---------- */
.notifs .groupe { margin-top: var(--esp-6); }
.notifs-ligne { justify-content: space-between; cursor: pointer; }
.notifs-ligne .champ-texte { width: auto; flex: none; }
.notifs-action { margin-top: var(--esp-4); }
.notifs-action .btn { width: 100%; }
.notifs-points { margin: var(--esp-4) 0; padding-left: var(--esp-5); display: grid; gap: var(--esp-3); font-size: 16px; line-height: 1.45; }
.texte-gros { font-size: 17px; line-height: 1.5; margin-top: var(--esp-2); }
@media (min-width: 900px) { .notifs { max-width: 760px; } .recus { max-width: 1080px; } .recus-reglages { max-width: 760px; } }

/* ---------- Feuille « Ranger » : Dépense, Connaissance, Retenir (3.2.1) ---------- */
.ranger-champs { margin-top: var(--esp-2); }
.ranger-champs .etiquette-champ { display: block; margin: var(--esp-3) 0 var(--esp-1); font-size: 14px; color: var(--texte-doux); }
.ranger-retenir { display: flex; align-items: center; gap: var(--esp-3); min-height: var(--cible); margin-top: var(--esp-4); font-size: 15px; }
.ranger-retenir input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.ranger-existe-zone:not(:empty) { margin-top: var(--esp-4); }
.ranger-existe-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--esp-3); margin-top: var(--esp-3); }

/* ---------- Réglages › Reçu à trier ---------- */
.recus-reglages .petit-titre { margin-top: var(--esp-6); }
.recus-regles { margin-top: var(--esp-3); }
.regle { justify-content: space-between; gap: var(--esp-3); }
